[mythtv] [PATCH] pcHDTV: Use sequence-start headers when GOPheaders are absent

Geoffrey Hausheer ou401cru02 at sneakemail.com
Tue Jan 6 09:48:40 EST 2004


On Tue, 6 Jan 2004 00:54:28 -0600, "Jason Hoos" said:
> Attached is the patch I was working on before the holidays to handle 
> HDTV streams that don't have GOP headers in them.  It does away with 
> my previous hack in hdtvrecorder.cpp of using picture start headers 
> in favor of using sequence start headers, which would seem to be the 
> correct way of doing things.  In addition, it updates
> avformatdecoder.cpp with the same logic, something I overlooked with
> the picture start stuff.  With this patch, my GOP-less station is
> working quite nicely now, with seeking and everything.  
> 
Do you happen to have a short example of such a stream I can play with? 
This would seem to be a completely non-compliant MPEG2 stream.  You
mentioned applying this in hdtvrecorder, so does that imply that what
gets saved to disk isn't the raw stream from the card?

I'm wondering because I want the stuff I'm working on for handling
MPEG2->MPEG2 transcoding to work with all reasonable streams, and this
would seem like one of those. Since my code translates streams to
MPEG2-PS format, it would need to build the GOP if it doesn't exist. 
This isn't necessarily hard, but I need to know about it.

.Geoff


More information about the mythtv-dev mailing list