I am looking to create an mp3 of silence that is the same duration as the input video file using either ffmpeg or mencoder.
Using ffmpeg I have tried this:
ffmpeg -y -i in.avi -ab 8k -ac 1 -vol 0 -acodec libmp3lame out.mp3
Which works great if the video has an audio track but fails miserably if it does not.
Any ideas?
Thanks!
ffmpeg -shortest -ar 44100 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -i in.avi -vcodec copy -acodec libmp3lame out.avi -map 1:0 -map 0:0– Banthar Oct 25 '11 at 18:15