From: Stefano Sabatini <stefasab@gmail.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Marth64 <marth64@proxyid.net> Subject: Re: [FFmpeg-devel] [PATCH v9 2/5] avformat/rcwtdec: add RCWT Closed Captions demuxer Date: Tue, 26 Mar 2024 17:04:20 +0100 Message-ID: <ZgLyBH8INxVLT8tq@mariano> (raw) In-Reply-To: <20240324022504.1419451-3-marth64@proxyid.net> On date Saturday 2024-03-23 21:25:01 -0500, Marth64 wrote: > RCWT (Raw Captions With Time) is a format native to ccextractor, > a commonly used OSS tool for processing 608/708 Closed Captions (CC). > RCWT can be used to archive the original extracted CC bitstream. > The muxer was added in January 2024. In this commit, add the demuxer. > > One can now demux RCWT files for rendering in ccaption_dec or interop > with ccextractor (which produces RCWT). Using the muxer/demuxer combo, > the CC bits can be kept for processing or rendering with either tool. > This can be an effective way to backup an original CC stream, including > format extensions like EIA-708 and overall original presentation. > > Signed-off-by: Marth64 <marth64@proxyid.net> > --- > Changelog | 2 +- > doc/demuxers.texi | 30 ++++++++++ > libavformat/Makefile | 1 + > libavformat/allformats.c | 1 + > libavformat/rcwtdec.c | 123 +++++++++++++++++++++++++++++++++++++++ > 5 files changed, 156 insertions(+), 1 deletion(-) > create mode 100644 libavformat/rcwtdec.c > > diff --git a/Changelog b/Changelog > index 934241a965..4587d0d511 100644 > --- a/Changelog > +++ b/Changelog > @@ -19,7 +19,7 @@ version <next>: > - lavu/eval: introduce randomi() function in expressions > - VVC decoder > - fsync filter > -- Raw Captions with Time (RCWT) closed caption muxer > +- RCWT (Raw Captions with Time) Closed Captions muxer and demuxer > - ffmpeg CLI -bsf option may now be used for input as well as output > - ffmpeg CLI options may now be used as -/opt <path>, which is equivalent > to -opt <contents of file <path>> > diff --git a/doc/demuxers.texi b/doc/demuxers.texi > index b70f3a38d7..04293c4813 100644 > --- a/doc/demuxers.texi > +++ b/doc/demuxers.texi > @@ -1038,6 +1038,36 @@ the command: > ffplay -f rawvideo -pixel_format rgb24 -video_size 320x240 -framerate 10 input.raw > @end example > > +@anchor{rcwtdec} > +@section rcwt > + > +RCWT (Raw Captions With Time) is a format native to ccextractor, a commonly > +used open source tool for processing 608/708 Closed Captions (CC) sources. > +For more information on the format, see @ref{rcwtenc,,,ffmpeg-formats}. > + > +This demuxer implements the specification as of March 2024, which has > +been stable and unchanged since April 2014. > + > +@subsection Examples > + > +@itemize > +@item > +Render CC to ASS using the built-in decoder: > +@example > +ffmpeg -i CC.rcwt.bin CC.ass > +@end example > +Note that if your output appears to be empty, you may have to manually > +set the decoder's @option{data_field} option to pick the desired CC substream. this options is for the cc_dec decoder, while this is assuming EIA_608, am I confused? > + > +@item > +Convert an RCWT backup to Scenarist (SCC) format: > +@example > +ffmpeg -i CC.rcwt.bin -c:s copy CC.scc > +@end example > +Note that the SCC format does not support all of the possible CC extensions > +that can be stored in RCWT (such as EIA-708). > +@end itemize > + > @section sbg > [...] LGTM otherwise, thanks. _______________________________________________ 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:[~2024-03-26 16:04 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-24 2:24 [FFmpeg-devel] [PATCH v9 0/5] RCWT Closed Captions demuxer (v9) Marth64 2024-03-24 2:25 ` [FFmpeg-devel] [PATCH v9 1/5] avformat/subtitles: extend ff_subtitles_queue_insert() to support not yet available events Marth64 2024-03-26 15:43 ` Stefano Sabatini 2024-03-26 15:48 ` Marth64 2024-03-26 16:16 ` Andreas Rheinhardt 2024-03-24 2:25 ` [FFmpeg-devel] [PATCH v9 2/5] avformat/rcwtdec: add RCWT Closed Captions demuxer Marth64 2024-03-26 16:04 ` Stefano Sabatini [this message] 2024-03-24 2:25 ` [FFmpeg-devel] [PATCH v9 3/5] avformat/rcwtenc: remove repeated documentation Marth64 2024-03-26 16:04 ` Stefano Sabatini 2024-03-24 2:25 ` [FFmpeg-devel] [PATCH v9 4/5] doc/muxers: refresh the RCWT muxer's doc to be consistent with the demuxer Marth64 2024-03-24 2:25 ` [FFmpeg-devel] [PATCH v9 5/5] doc/indevs: update CC extraction example to use RCWT muxer Marth64 2024-03-26 15:29 ` [FFmpeg-devel] [PATCH v9 0/5] RCWT Closed Captions demuxer (v9) Marth64 2024-03-26 16:07 ` Stefano Sabatini 2024-03-28 18:03 ` Stefano Sabatini 2024-03-28 18:29 ` Marth64 2024-03-28 19:24 ` Marth64
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=ZgLyBH8INxVLT8tq@mariano \ --to=stefasab@gmail.com \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=marth64@proxyid.net \ /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