I have this problem with some AVI files. The output of

ffmpeg -i file.avi

contains the line

[NULL @ 0x97c4d40]Invalid and inefficient vfw-avi packed B frames detected.

Someone advised me to use

ffmpeg -i file.avi -vcodec h263 -acodec aac -f mpg output.mpg

to convert the file to the correct format, but that produces the error

Unknown input or output format: mpg

How can I convert my files?

link|improve this question

80% accept rate
Have you tried repairing the file? ffmpeg -i infile.avi -acodec copy -vcodec copy outfile.avi – slhck Mar 15 '11 at 19:34
Yes, outfile.avi has the same problem. – xralf Mar 15 '11 at 19:56
feedback

2 Answers

mpeg instead of mpg

ffmpeg -i file.avi -vcodec mpeg4 -f mpeg output.mp4

link|improve this answer
This writes error message: Unknown encoder 'aac' – xralf Mar 15 '11 at 18:50
I edited my answer - try – jet Mar 15 '11 at 19:08
This writes: Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height – xralf Mar 15 '11 at 19:21
ffmpeg -i file.avi -vcodec mpeg4 -s 320x240 -b 300k -r 23.98 -acodec libmp3lame -ar 48000 -ab 112k output.mp4 - you can play with size and bitrate – jet Mar 15 '11 at 19:50
The same error. – xralf Mar 15 '11 at 19:59
feedback

I'd use MPEG Streamclip. It's really simple. Although they haven't updated the software in a while, I've been using the same version for years (most recently on my Intel Mac with OS 10.6.6). It's good for individual files. Not sure about batching. Good luck.

MPEG Streamclip is a powerful free video converter, player, editor for Mac and Windows. It can play many movie files, not only MPEGs; it can convert MPEG files between muxed/demuxed formats for authoring; it can encode movies to many formats, including iPod; it can cut, trim and join movies. MPEG Streamclip can also download videos from YouTube and Google by entering the page URL.

link|improve this answer
I'm on Linux (Ubuntu). – xralf Mar 15 '11 at 18:51
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.