On Tue, Jan 27, 2015 at 8:43 AM, Gerard <[email protected]> wrote:
> Hello, > > I'm having trouble determining how is set the total duration of a > fragmented MP4. If mvhd, tkhd and mdhd boxes have the duration set to > 0xffffffff how does the demuxer know how long is the stream? > > Thanks, > > Gerard > _______________________________________________ > ffmpeg-devel mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > Hi Gerald, if duration is not set in tkhd, mvhd, demuxer can guess duration using bitrate and file size. If I recall correctly, this is what MPEG2-TS demuxer does in ffmpeg. I don't think that there is other way to find out duration without processing entire stream. _______________________________________________ ffmpeg-devel mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
