Log in

View Full Version : How to FFMPEG HDV sized source to MPEG2 without buffer errors?


Redsandro
30th September 2009, 00:16
I use MPEG2 encoded proxies for my Lagarith source files when I edit a sequence for smooth playback preview capabilities.

But often my MPEG's stutter in the way of an occasional skip of multiple frames or jumping of the audio during which you hear short beeping/plopping sounds.

The command I usually use is:
ffmpeg -i source.avs -s hd1080 -aspect 16:9 -r 25 -vcodec mpeg2video -f vob -b 25M -mbd rd -trellis 2 -cmp 2 -subcmp 2 -g 13 -bf 2 -ab 384k target.mpg

In this case source.avs is like:
AVISource("source.laggy.avi")
ConvertToYV12(matrix="Rec709")

I keep getting a lot of messages lile[mpeg @ 0x2d88b30]packet too large, ignoring buffer limits to mux itand buffer underflows. Actually I've been always getting these even when the resulting MPEG plays fine, but it's the only thing I can mention that seems out of the ordinary for me.

Any ideas where I create this problem?

Redsandro
7th January 2010, 03:04
»bump«

Please allow me to re-ask this question now that some time has past. I am truely interested and haven't found a solution so far. I have the same problem with MPEG-4 (AVC), but less often.

I did notice that while MPC-HC skips, plops and stutters on bad occurances of this problem, youtube (after conversion of an uploaded file) does not have these plops and skips. Some TV/Hardware players do and some don' t play those files correctly. I am guessing it has something to do with strictly following buffer guidelines of loosened restrictions by the player, both hardware or software, but the fact remains that it starts with ignoring buffer limits and buffer underruns by ffmpeg that I don't volunteer to get, and I'd really like some advice on how to make this work. :)