|
@@ -2,6 +2,7 @@ package ffmpegutil
|
|
|
|
|
|
import (
|
|
import (
|
|
"fmt"
|
|
"fmt"
|
|
|
|
+ "net/http"
|
|
"os"
|
|
"os"
|
|
"os/exec"
|
|
"os/exec"
|
|
"path/filepath"
|
|
"path/filepath"
|
|
@@ -27,7 +28,7 @@ set to 512, then the output will be 512 * 1024
|
|
|
|
|
|
Set compression to 0 if resizing / compression is not required
|
|
Set compression to 0 if resizing / compression is not required
|
|
*/
|
|
*/
|
|
-func FFmpeg_conv(input string, output string, compression int) error {
|
|
|
|
|
|
+func FFmpeg_conv(input string, output string, compression int, w *http.ResponseWriter) error {
|
|
var cmd *exec.Cmd
|
|
var cmd *exec.Cmd
|
|
|
|
|
|
switch {
|
|
switch {
|