Nathan Lutchansky wrote:
Sorry, just to clarify, Jack, your approach of writing a sync frame only for MPEG4 I frames is correct. What I meant to say is that using the V4L2 flags should be compatible with any compression hardware and format, regardless of whether it is MPEG1/MPEG2/MPEG4/H.264/WMV9/whatever, without having to try and parse the data stream itself. -Nathan
Right, I should look up the V4L2 flags instead of just ripping the data straight out of the MPEG header, which should make this patch applicable to any hardware encoded steams.
Can you tell me if always it's safe just to keep a running count of the keyframes written and use that as the keyframe number in the call to UpdateSeekTable? (The old code that assumes fixed keyframe distance uses "((fnum - startnum) >> 1) / keyframedist")
Thanks Jack _______________________________________________ mythtv-dev mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
