[FFmpeg-trac] #344(FFprobe:open): FFProbe does not provide PTS, DTS info present in MPEG file.
FFmpeg
trac at avcodec.org
Sat Aug 27 14:59:37 CEST 2011
#344: FFProbe does not provide PTS, DTS info present in MPEG file.
-------------------------------------------+----------------------
Reporter: darrenhudson | Owner: michael
Type: defect | Status: open
Priority: normal | Component: FFprobe
Version: git-master | Resolution:
Keywords: FFProbe Time Timestamp PTS DTS | Blocked By:
Blocking: | Reproduced: 0
Analyzed: 0 |
-------------------------------------------+----------------------
Comment (by reimar):
Well, FFmpeg can find the pts values, too, as you see when you change
this:
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1001,7 +1001,7 @@ static void compute_pkt_fields(AVFormatContext *s,
AVStream *st,
// some mpeg2 in mpeg-ps lack dts (issue171 / input_file.mpg)
// we take the conservative approach and discard both
// Note, if this is misbehaving for a H.264 file then possibly
presentation_delayed is not set correctly.
- if(delay==1 && pkt->dts == pkt->pts && pkt->dts != AV_NOPTS_VALUE &&
presentation_delayed){
+ if(0 && delay==1 && pkt->dts == pkt->pts && pkt->dts !=
AV_NOPTS_VALUE && presentation_delayed){
av_log(s, AV_LOG_DEBUG, "invalid dts/pts combination\n");
pkt->dts= pkt->pts= AV_NOPTS_VALUE;
}
However, FFmpeg removes them because they are clearly and obviously wrong.
The video contains B-frames, however the pts and dts value are identical!
Are you sure the stream analyzer correct checks this?
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/344#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list