[MPlayer-users] [Bug?] mencoder and EDL, failure to resume encode after edl skip

Etienne Buira etienne.buira.lists at free.fr
Thu Oct 1 21:54:30 CEST 2009


Hi!

I have many TV captures of that form:
$ ffmpeg -i tv_capture.ts
[...]
Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
Input #0, mpegts, from 'tv_capture.ts':
  Duration: N/A, start: 5638.777689, bitrate: 15192 kb/s
  Program 415 
    Stream #0.0[0xae]: Video: mpeg2video, yuv420p, 544x576 [PAR 32:17 DAR 16:9], 15000 kb/s, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x7a4](fra): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s

I want to enode these files using mencoder (r29732), but I also want to get rid
of commercials, so I use EDL files which look like that:
--- EDL file ---
0.0 5850.610352 0
9502.410156 9746.089844 0
11237.169922 9999999.9 0
--- end of EDL ---
It simply specifies to skip the garbage at the beginning (line 1), to
skip the commercials (line 2), and to skip garbage at the end (line 3).

The mencoder command line follows:
nice -n 19 ~/software/mplayer/mplayer/mplayer/mencoder \
-o encoded_capture.avi -hr-edl-seek -edl edl-to-skip-commercials \
-oac mp3lame -lameopts q=9 -ovc x264 \
-x264encopts frameref=7:direct_pred=auto:partitions=all:8x8dct:me=umh:subq=7:mixed_refs:trellis=2:crf=21 \
-vf crop=512:560:16:8 tv_capture.ts

This works on many files, but on many files, it fails with huge load of
messages like:
Too many video packets in the buffer: (2388 in 33556784 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.



More information about the MPlayer-users mailing list