[FFmpeg-trac] #2058(undetermined:open): FFMPEG sometimes not able to stream copy mpeg2video files, error with pts < dts
FFmpeg
trac at avcodec.org
Thu Aug 14 19:33:15 CEST 2014
#2058: FFMPEG sometimes not able to stream copy mpeg2video files, error with pts <
dts
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Owner:
Type: defect | Status: open
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution:
av_interleaved_write_frame mpegts | Blocked By:
mpeg2video | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by ramitbhalla):
A potential hack for fixing this issue (thought it may created non
compliant video if this error is ignored)
remove the line:
{{{
return AVERROR(EINVAL);
}}}
Complete code:
{{{
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -486,7 +486,6 @@ static int compute_pkt_fields2(AVFormatContext *s,
AVStream *st, AVPacket *pkt)
if (pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE &&
pkt->pts < pkt->dts) {
av_log(s, AV_LOG_ERROR, "pts (%s) < dts (%s) in stream %d\n",
av_ts2str(pkt->pts), av_ts2str(pkt->dts), st->index);
- return AVERROR(EINVAL);
}
av_dlog(s, "av_write_frame: pts2:%s dts2:%s\n",
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/2058#comment:16>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list