[FFmpeg-trac] #7524(avformat:new): missing PCR timestamps in secondary streams with the MPEGTS muxer

FFmpeg trac at avcodec.org
Tue Oct 30 16:32:21 EET 2018


#7524: missing PCR timestamps in secondary streams with the MPEGTS muxer
-------------------------------------+------------------------------------
             Reporter:  msiders      |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  mpegts, pcr  |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------

Comment (by msiders):

 Hi,
 I came up with a solution!

 The current implementation of the MPEG-TS muxer only inserts PCR
 timestamps in the main stream. This stream is typically the video stream
 in a video service, or the audio stream in a radio service.

 However, when multiple streams are mixed in the same MPEG-TS service, you
 may need to have more than one stream with time stamps. This is true when
 you will remux the service to create multiple services. For example, when
 you copy the different audio tracks from the service for creating
 additional radio services. Or when more than one video stream is included
 and in the remux you generate independent services.

 To resolve this limitation, I created on myself a patch to insert the PCR
 timestamps in more than the first stream. This is completely optional, as
 it’s not a good idea to put PCRs in all streams (even if it’s not generate
 errors). Two new parameters are incorporated to mark all video streams
 and/or all audio streams.

 The patch implements this optional behavior:
 https://patchwork.ffmpeg.org/patch/10827/

 I hope it will accepted.
 Regards.
 M.Sanders.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7524#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list