From: Devin Heitmueller <devin.heitmueller@ltnglobal.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Anton Khirnov <anton@khirnov.net> Subject: Re: [FFmpeg-devel] [External Sender] Re: [PATCH] fftools/ffmpeg_enc: Prevent duplicate A53 Closed Captions at frame rate up-conversion Date: Tue, 13 Jun 2023 10:11:42 -0400 Message-ID: <CAHGibzEMRp9y7cH-Az-EqtDLqYXjA3yKVyH+C4f5d24BgJ6pcA@mail.gmail.com> (raw) In-Reply-To: <DM6PR14MB3645BA1E8FAC28EE7CA6460AE151A@DM6PR14MB3645.namprd14.prod.outlook.com> On Fri, Jun 9, 2023 at 12:33 PM Artem Smorodin <artem.smorodin@telestream.net> wrote: > The behavior that adds this patch was there before, but was removed after about 5.1.1, so I think it's safe to restore it until a better solution is implemented. I have to admit that I'm hesitant about introducing a patch that only works for upconversion (i.e. if you go from 59.94 to 29.97 you will lose half the caption data), as well as when it does work it produces caption blocks which are malformed and will cause issues with some downstream decoders. > Regarding a better solution: > I don't think we should change the behavior of the "-r" option, instead I suggest moving ccfifo from libavfilter to libavutil and using it in the ffmpeg program. In my original patch series I actually had the ccfifo stuff as part of libavutil so it could be shared across the project. However there was concern about having to maintain a public ABI for a brand new interface and thus we decided to keep it private for now (and even with private APIs there is a mechanism to share them across multiple libav* libraries). That said, I hadn't considered the notion of fftools needing access to it, and I think the general trend has been to move away from fftools using private APIs. I suspect we could get "-r" to transparently add the FPS filter to the end of the filtergraph, just like we do with the vf_scale when users specify "-s" on the command line. Although this does raise the issues that Anton raised regarding dropped/duplicated frames. My inclination would be to tell people "Don't use '-r' if you care about captions being properly preserved. Use '-vf fps' instead." But I recognize that there are plenty of people who won't know the difference. Devin -- Devin Heitmueller, Senior Software Engineer LTN Global Communications o: +1 (301) 363-1001 w: https://ltnglobal.com e: devin.heitmueller@ltnglobal.com _______________________________________________ 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-06-13 14:12 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-06-09 13:19 [FFmpeg-devel] " Artem Smorodin 2023-06-09 15:13 ` Devin Heitmueller 2023-06-09 16:33 ` [FFmpeg-devel] [External Sender] " Artem Smorodin 2023-06-13 14:11 ` Devin Heitmueller [this message] 2023-06-11 3:55 ` [FFmpeg-devel] " Anton Khirnov 2023-06-13 14:16 ` Devin Heitmueller 2023-06-13 14:41 ` Gyan Doshi
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=CAHGibzEMRp9y7cH-Az-EqtDLqYXjA3yKVyH+C4f5d24BgJ6pcA@mail.gmail.com \ --to=devin.heitmueller@ltnglobal.com \ --cc=anton@khirnov.net \ --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