Advertisement
Guest User

video.sh

a guest
Jan 29th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.23 KB | None | 0 0
  1. #!/bin/bash
  2. image="pic.jpg"
  3. audiotrack="music.mp3"
  4. output="stilltovid.avi"
  5. dur=`mp3info -p "%S" $audiotrack`
  6. echo $dur
  7. ffmpeg -loop_input -f image2 -r 25 -t $dur -i $image -i $audiotrack -vcodec msmpeg4v2 -b 2000k -acodec copy $output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement