[Live-devel] MPEG2TransportStreamIndexer & h264...
Ross Finlayson
finlayson at live555.com
Mon Jun 25 19:26:06 PDT 2007
>I've been trying to use trick play by creating an index file (using
>MPEG2TransportStreamIndexer) for an MPEG-TS (h264/mp3) file.
>I've has no luck with it - been getting an empty index file.
>
>I understand that the indexer is designed to work with mpeg1-2 files.
>Question is whether I should spend some time into making this handle
>h264 files as well. Would that be too difficult?
It's on our "to do" list. What makes it non-trivial is that the
index file generation code works by analyzing each of the video
frames in the Video Elementary Stream embedded within the Transport
Stream - in order to figure out which frames are 'key frames' (i.e.,
I-frames), and where they are. I.e., the indexing code would need to
know the structure of MPEG-4 video frames (just as it currently knows
about MPEG-2 video frames).
>I've taken my slim chances with a quick and very naive hack in
>MPEG2IFrameIndexFromTransportStream::analyzePMT()
>...
> if (stream_type == 1 || stream_type == 2) {
> fVideo_PID = elementary_PID;
> return;
> }
>...
>
>and added
>|| stream_type == 27 (you can see the desperation surely...)
>
>and got the point of a filled index file but naturally the index is
>messed up i think and trick play does not work properly...
See above.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list