[MPlayer-dev-eng] [BUG] mencoder broken on a 1080i h264 ts stream that MPlayer can play

Jason Tackaberry tack at urandom.ca
Wed Feb 4 18:28:42 CET 2009


Hi,

Provided I use -demuxer lavf, MPlayer is able to correctly play 1080i
streams captured from my Hauppauge HD PVR.  Without -demuxer lavf,
MPlayer appears to play every other frame at half speed, and A/V loses
sync.

I'd like to trancode some of this content with mencoder, however even
with -demuxer lavf, the resulting output (when played back with MPlayer)
looks like the original stream does when played back without -demuxer
lavf (every other frame at half speed).

I am transcoding thusly:

   mencoder -demuxer lavf 1080i-stream.ts -oac copy -ovc x264 \
            -x264encopts crf=24:threads=0 -o output.avi

The mencoder output shows a duplicate frame every other frame, which
explains why the output looks as it does:

[...]
Pos:   0.7s     29f ( 1%)  0.00fps Trem:   1min  34mb  A-V:0.008 [0:384]
1 duplicate frame(s)!
Pos:   0.7s     31f ( 1%) 30.27fps Trem:   1min  35mb  A-V:0.015 [0:384]
1 duplicate frame(s)!
Pos:   0.8s     33f ( 1%) 31.34fps Trem:   1min  35mb  A-V:0.022 [0:383]
1 duplicate frame(s)!
Pos:   0.9s     35f ( 1%) 30.89fps Trem:   1min  36mb  A-V:0.028 [0:384]
[...]

Again, MPlayer plays the original stream properly when -demuxer lavf is
used.

I believe others have uploaded samples of 1080i captures from the HD PVR
in the past, but if not, I'm happy to do so.

Thanks,
Jason.




More information about the MPlayer-dev-eng mailing list