From: Marton Balint <cus@passwd.hu> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v2 4/5] mpegtsenc: Don't periodically announce PCR on SCTE-35 streams Date: Mon, 3 Jul 2023 21:17:36 +0200 (CEST) Message-ID: <b98370f0-a7ef-d61-5c90-c9bcc2a16b75@passwd.hu> (raw) In-Reply-To: <1688408109-14381-5-git-send-email-dheitmueller@ltnglobal.com> On Mon, 3 Jul 2023, Devin Heitmueller wrote: > Changes were made between in the last two years to periodically > send PCR-only packets on all PIDs, but for cases where the stream > may send packets very infrequently (like SCTE-35), this results in > extra TR101290 errors because it fails the PCR interval test. > > I am not quite sure what the "right" fix should be for this, but > for now just disable all periodic sending of PCR-only packets on > SCTE-35 streams. Hmm, only one PID per service should generate PCR, and if there is a video stream in the service, then that is preferred for PCR generation. An SCTE stream should only get selected for PCR if there are no video streams in a service. Or are you seeing something else? And it is also strange that not sending PCR for any stream improves the PCR interval test, it should make it worse, because less PCRs are provided, no? Thanks, Marton > > Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> > --- > libavformat/mpegtsenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c > index c6cd1fd..ba60582 100644 > --- a/libavformat/mpegtsenc.c > +++ b/libavformat/mpegtsenc.c > @@ -1579,7 +1579,7 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st, > int st2_index = i < st->index ? i : (i + 1 == s->nb_streams ? st->index : i + 1); > AVStream *st2 = s->streams[st2_index]; > MpegTSWriteStream *ts_st2 = st2->priv_data; > - if (ts_st2->pcr_period) { > + if (ts_st2->pcr_period && st2->codecpar->codec_id != AV_CODEC_ID_SCTE_35) { > if (pcr - ts_st2->last_pcr >= ts_st2->pcr_period) { > ts_st2->last_pcr = FFMAX(pcr - ts_st2->pcr_period, ts_st2->last_pcr + ts_st2->pcr_period); > if (st2 != st) { > -- > 1.8.3.1 > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2023-07-03 19:20 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-07-03 18:15 [FFmpeg-devel] [PATCH v2 0/5] Add passthrough support for SCTE-35 Devin Heitmueller 2023-07-03 18:15 ` [FFmpeg-devel] [PATCH v2 1/5] avcodec: Add new side data type to contain original PTS value Devin Heitmueller 2023-07-03 18:15 ` [FFmpeg-devel] [PATCH v2 2/5] mpegts: Stash original PTS for SCTE-35 sections for processing later Devin Heitmueller 2023-07-03 18:15 ` [FFmpeg-devel] [PATCH v2 3/5] mpegtsenc: Add support for output of SCTE-35 streams over TS Devin Heitmueller 2023-07-03 18:15 ` [FFmpeg-devel] [PATCH v2 4/5] mpegtsenc: Don't periodically announce PCR on SCTE-35 streams Devin Heitmueller 2023-07-03 19:17 ` Marton Balint [this message] 2023-07-05 15:29 ` Devin Heitmueller 2023-07-03 18:15 ` [FFmpeg-devel] [PATCH v2 5/5] bsf: Add new bitstream filter to set pts_adjustment when reclocking Devin Heitmueller
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=b98370f0-a7ef-d61-5c90-c9bcc2a16b75@passwd.hu \ --to=cus@passwd.hu \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git