[mythtv] h.264 & GOP frames

Mark Buechler mark.buechler at gmail.com
Sun Apr 9 18:00:12 UTC 2006


I've been talking with someone off-list concerning h.264 TS streams in
MythTV and it seems Myth already has everything necessary for this to work.
However, it seems Myth makes some assumptions which break h.264 in having to
do with GOP headers. Is anyone on this list familiar with how h.264 streams
handle GOPs differently than mpeg2? Or if they are even required in an
h.264stream? The following patch to libmythtv will allow DVB
h.264 TS streams here in the US to play but not very well. The playback can
get very choppy over time.

Index: avformatdecoder.cpp
===================================================================
--- avformatdecoder.cpp (revision 9631)
+++ avformatdecoder.cpp (working copy)
@@ -2565,7 +2671,9 @@
                     seq_count++;
                     if (!seen_gop && seq_count > 1)
                     {
-                        HandleGopStart(pkt);
+//                        HandleGopStart(pkt);
+                        seen_gop = true;
+                        justAfterChange = true;
                     }
                 }
             }

Can someone with expertise in this give some insight?

Thanks, Mark.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20060409/155d229e/attachment.htm 


More information about the mythtv-dev mailing list