[MPlayer-dev-eng] [PATCH] Support h264 video in HDTV DVBx TS

Kurt Garloff kurt at garloff.de
Mon Aug 31 21:24:59 CEST 2009


Hi,

when mplayer failed to play recorded HDTV files, I was rather surprised
-- I was used to mplayer playing about anything that I could get hold
off ...

The fix turned out to be simple though. Looks like mplayer expects
VIDEO_MPEG12 in the MPEG2 Transport Stream, but the HDTV DVBx signal
really puts VIDEO_H264 in there.

The sync packets allow to detect this, so I added a goto statement
and things start to work. May not be the most elegant solution, but
works like a charm.

Looking at video_read_properties(), I wonder whether the function
should be reworked to detect what video is found in the stream as
opposed to needing to know beforehand and then failing if the assumption
does not hold.

Enjoy!
-- 
Kurt Garloff                   <kurt at garloff.de>        [Private, Koeln]
Linux: VP OPS PartnerEng       <garloff at suse.de>            [Novell Inc]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-mpeg2_ts_h264.diff
Type: text/x-patch
Size: 910 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090831/0f1e24e9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090831/0f1e24e9/attachment.pgp>


More information about the MPlayer-dev-eng mailing list