From: Pieter Viljoen <pieter@viljoen.com> To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] ffprobe closed_captions json output not set while text output is set Date: Thu, 17 Mar 2022 11:30:12 -0700 Message-ID: <CAMKH4OVv2Dcz80ohjPB-NUQdYzTrK3EUuieBO6EioC22Ox0WPg@mail.gmail.com> (raw) Please reconsider an abandoned patch to allow consistent behavior in closed caption detection between ffprobe with and without "-print_format json". https://patchwork.ffmpeg.org/project/ffmpeg/patch/MN2PR04MB59815313285AA685E37D09AEBAB09@MN2PR04MB5981.namprd04.prod.outlook.com/ I also asked for solutions on reddit, videohelp, IRC, ffmpeg-user, resorting to asking on ffmpeg-devel. I would like to add the ability to detect and remove closed captions from video streams using ffmpeg, in an open source tool I maintain that cleans up media files for direct play on Plex, Emby, Jellyfin, etc. ( https://github.com/ptr727/PlexCleaner) When I run ffprobe in JSON output mode, it is not setting the "closed_captions" attribute. When I run ffprobe in default output mode, it does correctly identify closed captions in video streams and prints "Closed Captions" in the stream descriptor. The divergent behavior appears to be a ffprobe bug. Details of the problem is described where I asked for help on reddit and videohelp: https://www.reddit.com/r/ffmpeg/comments/tcnhto/how_to_detect_closed_captions_in_video_stream/ https://forum.videohelp.com/threads/405123-Detect-embedded-closed-captions-in-video-stream-using-ffprobe-json-output I did not get any help, but after lots of googling I did find an abandoned patch that describes exactly the problem I am experiencing: https://patchwork.ffmpeg.org/project/ffmpeg/patch/MN2PR04MB59815313285AA685E37D09AEBAB09@MN2PR04MB5981.namprd04.prod.outlook.com/ https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=&submitter=&state=*&q=closed_captions&archive=both&delegate= https://www.mail-archive.com/ffmpeg-devel@ffmpeg.org/msg126211.html The proposed patch seemed trivial, but I do not understand the nuances of the objections. I'd like the patch to be please re-considered, or an alternative proposed that allows ffprobe's JSON output to return correct closed_captions values. --- Pieter _______________________________________________ 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".
reply other threads:[~2022-03-17 18:30 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CAMKH4OVv2Dcz80ohjPB-NUQdYzTrK3EUuieBO6EioC22Ox0WPg@mail.gmail.com \ --to=pieter@viljoen.com \ --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