[mythtv] DVB/H.264 Video in MythTV - a couple of patches

Mark Buechler mark.buechler at gmail.com
Thu Mar 9 22:56:20 UTC 2006


Has anyone looked at playing H.264 video within a DVB stream before? Here in
the US there's a provider streaming FTA H.264 video and it would be
interesting if Myth could play the stream.

The only thing I've managed to do so far is:

--- siparser.cpp.old    2006-02-11 12:30:11.000000000 -0500
+++ siparser.cpp        2006-02-28 13:36:22.000000000 -0500
@@ -900,6 +900,9 @@ void SIParser::ParsePMT(uint pid, tableh
             case 0x0F:
                 e.Type = ES_TYPE_AUDIO_AAC;
                 break;
+            case 0x1B:
+                e.Type = ES_TYPE_VIDEO_H264;
+                break;
             case 0x81:
                 // Where ATSC Puts the AC3 Descriptor
                 e.Type = ES_TYPE_AUDIO_AC3;
@@ -980,6 +983,10 @@ void SIParser::ParsePMT(uint pid, tableh
                 e.Description = QString("MPEG-2 Video");
                 p.hasVideo = true;
                 break;
+            case ES_TYPE_VIDEO_H264:
+                e.Description = QString("MPEG-4/H264 Video");
+                p.hasVideo = true;
+                break;
             case ES_TYPE_AUDIO_MPEG1:
                 e.Description = QString("MPEG-1 Audio");
                 p.hasAudio = true;

And if you have the dvbradio patch installed you'll also need this:

--- dvbrecorder.cpp.old 2006-02-28 13:39:09.000000000 -0500
+++ dvbrecorder.cpp     2006-02-28 13:40:28.000000000 -0500
@@ -384,7 +384,9 @@ bool DVBRecorder::OpenFilters(void)
         int pid = (*es).PID;
         dmx_pes_type_t pes_type;

-        if ((*es).Type == ES_TYPE_VIDEO_MPEG1 || (*es).Type ==
ES_TYPE_VIDEO_MPEG2)
+        if ((*es).Type == ES_TYPE_VIDEO_MPEG1 ||
+            (*es).Type == ES_TYPE_VIDEO_MPEG2 ||
+            (*es).Type == ES_TYPE_VIDEO_H264)
             videoMissing = false;

         if (_hw_decoder_option)

I assumed since MythTV uses ffmpeg then the stream would just play. I
assumed wrong. Can anyone shed more light on this and possibly point me in
the correct direction?

Thanks, Mark.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20060309/9c5b443b/attachment.htm 


More information about the mythtv-dev mailing list