[FFmpeg-trac] #5423(avformat:new): Wrong duration_ts from mpeg-ts file by avformat_find_stream_info()
FFmpeg
trac at avcodec.org
Wed Jun 15 15:39:52 CEST 2016
#5423: Wrong duration_ts from mpeg-ts file by avformat_find_stream_info()
-------------------------------------+-------------------------------------
Reporter: | Owner:
Aleksandr_Slobodeniuk | Status: new
Type: defect | Component: avformat
Priority: normal | Resolution:
Version: git-master | Blocked By:
Keywords: mpegts h264 | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Aleksandr_Slobodeniuk):
Invented some "regular" solution for this problem, but it doesn't look
like very good too.
reordered frame can be detected like this:
{{{
duration = pkt->pts + pkt->duration;
if (duration < previous duration)
{
we met I or P frame before.
}
else
{
we didn't meet I or P frame before, so we probably should
increment duration on one frame in the end, or maybe read some mem
before.
}
}}}
But what if there's a row of b-frames in the end, that are referenced only
backward..
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5423#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list