[MPlayer-dev-eng] [PATCH] Support h264 video in HDTV DVBx TS
Nico Sabbi
nicola.sabbi at poste.it
Mon Aug 31 23:00:54 CEST 2009
Il giorno lun, 31/08/2009 alle 21.24 +0200, Kurt Garloff ha scritto:
> 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!
> __
rejected. It's very hackish and dirty, not the way to implement a
feature like that.
The right way is to reuse a scoreboard as done in demux_mpg.c, obviously
moving the code to a common function, then calling from withing
demux_mpg.c and demux_ts.c
More information about the MPlayer-dev-eng
mailing list