Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- image="pic.jpg"
- audiotrack="music.mp3"
- output="stilltovid.avi"
- dur=`mp3info -p "%S" $audiotrack`
- echo $dur
- 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