2
1
I have a long ogg sounds file that I want to put on youtube, I don't have a video so want to display a single jpg for the duration for the ogg. I've seen:
avconv -i "sound file.ogg" -i cog.jpg out.avi
I have adjusted the jpg to be 640 x 480 but I get the following warnings:
Incompatible pixel format 'yuvj420p' for codec 'mpeg4', auto-selecting format 'yuv420p'
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[ac3 @ 0x18ae340] invalid bit rate
And it bombs out on:
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
Any ideas on what parameters I could use to make this work?
It bombs out on: Unknown encoder 'libfaac' replacing it with: libvo_aacenc seems to do the trick – pluke – 2013-04-09T11:08:14.413
1This one offers quite mediocre quality. Use
-c:a aac -strict experimental -b:a 192k
for the native Libav one which is a little bit better, or install FAAC before installing Libav—it should then link against FAAC properly. – slhck – 2013-04-09T15:11:52.057