#8039(avformat:new): mpegtsenc: incorrect PCR with multiple programs
#8039: mpegtsenc: incorrect PCR with multiple programs -----------------------------------+-------------------------------------- Reporter: ahakon | Type: defect Status: new | Priority: important Component: avformat | Version: git-master Keywords: mpegtsenc | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -----------------------------------+-------------------------------------- Summary of the bug: The MPEG-TS muxer has a '''serious''' bug related to the PCR pid selection. This bug appears when more than one program is used. The root cause is because the current code targets only one program when selecting the stream for the PCR. How to reproduce: [ test file "Day_Flight.mpg" from https://samples.ffmpeg.org/MPEG2/mpegts-klv/Day%20Flight.mpg ] {{{ % ffmpeg -loglevel verbose -y -f mpegts -i Day_Flight.mpg \ -map i:0x1e1 -c:v:0 copy -map i:0x1e1 -c:v:1 copy \ -program st=0 -program st=1 -f mpegts out-error.ts }}} If you analyze the output, you can see that the file "out-error.ts" has PCR marks in every packet of the pid 256 (a total of 561862 packets with PCR marks). However, the pid 257 has 783 packets only with PCR marks. Current source code of the mpegts muxer only initializes the PCR of one program. Other programs are unintialized. And this is a bug. Regards. A.H. -- Ticket URL: <https://trac.ffmpeg.org/ticket/8039> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
. Patches should be submitted to the ffmpeg-devel mailing list and not
#8039: mpegtsenc: incorrect PCR with multiple programs ------------------------------------+------------------------------------ Reporter: ahakon | Owner: Type: defect | Status: new Priority: important | Component: avformat Version: git-master | Resolution: Keywords: mpegtsenc | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Comment (by ahakon): Sorry for that... this bug tracker.
.
OK, but with all due respect, I post here because it's a real bug and there are no comments on the mailing list: https://patchwork.ffmpeg.org/patch/14036/ Regards. A.H. -- Ticket URL: <https://trac.ffmpeg.org/ticket/8039#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#8039: mpegtsenc: incorrect PCR with multiple programs ------------------------------------+------------------------------------ Reporter: ahakon | Owner: Type: defect | Status: new Priority: normal | Component: avformat Version: git-master | Resolution: Keywords: mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Changes (by cehoyos): * keywords: mpegtsenc => mpegts * priority: important => normal Comment: Feel free to ping your patch on the mailing list or on irc. -- Ticket URL: <https://trac.ffmpeg.org/ticket/8039#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#8039: mpegtsenc: incorrect PCR with multiple programs ------------------------------------+------------------------------------ Reporter: ahakon | Owner: Type: defect | Status: closed Priority: normal | Component: avformat Version: git-master | Resolution: fixed Keywords: mpegts | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+------------------------------------ Changes (by cus): * status: new => closed * resolution: => fixed Comment: Fixed in d770e0f401e77ccd4640bbc805384f928d5de244. -- Ticket URL: <https://trac.ffmpeg.org/ticket/8039#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg