[MEncoder-users] Problem encoding some MPEG2-TS to MP4/h.264 streams [ and producing the evdience ]

Owen Williams williams at dmu.ac.uk
Tue Feb 16 12:27:31 CET 2010


Hello,
  I'm having a problem encoding some MPEG-TS with adverts in them
(though that maybe a red herring.)

During the encode this suddenly starts being output repeatedly:

  Too many video packets in the buffer: (4096 in 12648301 bytes).
  Maybe you are playing a non-interleaved stream/file or the codec failed?
  For AVI files, try to force non-interleaved mode with the -ni option.

For the following video this starts at about 67% as the advert starts:

Original:

http://ocean.blue.dmu.ac.uk/~williams/MP4Test/1004_20100207185500.mpg

MP4:

http://ocean.blue.dmu.ac.uk/~williams/MP4Test/bob2.mp4

Wrapped in Flowplayer:

http://ocean.blue.dmu.ac.uk/~williams/MP4Test/


The MP4 in flowplayer quits audio but the video carries on.  Mplayer
displays the error above for the MP4 but has no problem with the
original MPEG2-TS.

For the last few days I've been using dd with skip, bs and count to
extract a portion of the video to exhibit the bad behaviour but failed.

A 10MB sample:

http://ocean.blue.dmu.ac.uk/~williams/MP4Test/bob2.mpg
http://ocean.blue.dmu.ac.uk/~williams/MP4Test/bob2a.mp4

This is the basic command line:

  /usr/local/bin/mencoder  ../Copy/copy.mpg -o Compromised.avi -fps 25 -ofps 25 -lavdopts threads=8 -ovc x264 -x264encopts pass=2:bitrate=800:me=umh:me_range=16:dct_decimate:nointerlaced:no8x8dct:nofast_pskip:trellis=0:partitions=p8x8,i4x4:keyint=250:keyint_min=25:psy_rd=0.8,0.0:frameref=1:bframes=0:b_adapt=0:b_pyramid=none:noweight_b:direct_pred=none:subq=8:mbtree=0:chroma_me:nocabac:aq_mode=1:deblock=-3,-3:vbv_maxrate=1500:vbv_bufsize=1000:level_idc=30:threads=auto:ssim:psnr -vf yadif=0,spp=3,hqdn3d,softskip,expand=aspect=4/3,scale=640:480,harddup -field-dominance -1 -sws 10 -oac faac -faacopts br=192:mpeg=4:object=2 -srate 48000 -channels 2

I'm using:

mplayer SVN-r30504-4.1.2
ffmpeg SVN-r21637
faac-1.28.tar.gz
x264 fcf70c2f9853d74ac077a7af016e28eef05e2f5a (4th Feb 2010)

I have had an misunderstanding which I'm going to look up now.  That is
I was reading 'non-interlaced' where it said 'non-interleaved.'  It made
me wonder if the adverts where non-interlaced which would be breaking UK
Freeview 'laws.'  Other streams that are broken also quit at an advert
but always the first advert.

I think this may be a regression but I don't want to say that I'm sure.

Any help much appreciated,

Owen.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mplayerhq.hu/pipermail/mencoder-users/attachments/20100216/d3280651/attachment.pgp>


More information about the MEncoder-users mailing list