[NUT-devel] [PATCH][RFC] keyframes

Michael Niedermayer michaelni at gmx.at
Tue Nov 20 12:18:09 CET 2007


Hi

attached patch would change nut.txt to the alternative keyframe definition

this would allow files with no classic keyframes but instead things like
P frames where each would have 10% intra blocks to be muxed in nut and
still allow seeking
without this seeking is not possible, the seek to non keyframe hack would
only work if all streams would allow seeking to any frame as back ptrs would
not be meaningfull in such a file


it would also fix cases where B frames with a PTS after the previous I frame
would use frames prior to the I frame for prediction


and it could be used to allow decoding B frames with a PTS prior to the last
I frame, that is

IPBBIBB
     ^^

if they dont use previous frames for prediction
this would fix a missing feature relative to mpeg1/2/4 which allow that
and provide enough information to make this odd case easily detectable


Compatibility effects:
new demuxers can always demux old files
old demuxers can demux new files as long as they only contain normal keyframes
otherwise they fail to demux the specific keyframes

Effects on optimal seeking:
unknown

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newkey.diff
Type: text/x-patch
Size: 4172 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/nut-devel/attachments/20071120/aa7b5875/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/nut-devel/attachments/20071120/aa7b5875/attachment.pgp>


More information about the NUT-devel mailing list