Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "os/exec"
  5. )
  6.  
  7. func newCmd(imageFile, audioFile, outFile string) *exec.Cmd {
  8. return exec.Command("ffmpeg",
  9. "-r", "1",
  10. "-loop", "1",
  11. "-i", imageFile,
  12. "-i", audioFile,
  13. "-acodec", "copy",
  14. "-r", "1",
  15. "-shortest", "-vf",
  16. "scale=1280:720",
  17. outFile,
  18. )
  19. }
  20.  
  21. func main() {
  22. cmd := newCmd("ep1.jpg", "ep1.wav", "ep1.flv")
  23.  
  24. cmd.Run()
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement