From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 25CFA4A307 for ; Tue, 26 Mar 2024 16:04:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 37C9868D5D5; Tue, 26 Mar 2024 18:04:30 +0200 (EET) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0531968D3E3 for ; Tue, 26 Mar 2024 18:04:24 +0200 (EET) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-515b69e8f38so1022399e87.1 for ; Tue, 26 Mar 2024 09:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711469062; x=1712073862; darn=ffmpeg.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=733TbZ5VVsdIyO1r/FP1qh4/B1zZ6sbut6LB03jD6fE=; b=EhL/89+EmXcEGUTAvsIRZeoe7qSo8XJYzVN30GRjc8EDzLfNZjw1vajLz3vtZYmU8y YnoFU4RW8j4CEZz9947f6JVBiwoMGlHt/M2BLuxwNvQcqD4SxOziKWqAxFIRDqcTyK/O G6ddq1lE37a2OxwMlZ/poTvymvvAHLkV2+FRVso86KjcTEFGF8MUI6tRknVsM1prJ+Qm bVTousZ8YSC91vF1YOh8CEXD2MKLRWD3tsGLPNbvZME0kxdmBFm36BaMHssc2UhYL5FS g2AX6NVWY1gp91MAOnVkbK8lPMS72dy8Yv1+NSBHFPwUvbur1w7NwmdB5Icf8/HTq/gP cGYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711469062; x=1712073862; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=733TbZ5VVsdIyO1r/FP1qh4/B1zZ6sbut6LB03jD6fE=; b=FIuEFBd4i5DM7oh6UruHyhGKYnIEpWxf88mlMlvOnP+dVnWoKKrHt4j462FtiV4IcC 1btN6khgZc+2LQXIcs0p4LP0t+p83mwtn9gXT9c6ZAiXgMo9+Wa8HKixVTZD/+ceavlk RcTVau12tN9BBZS6xMRd58PowobDyMJl1hlfGP243Vp5RMWakQFbV9pILGat4DRvVsvF q49c3zsQx3AxQHQmm6uTFa5c8OF7lIcJf7Ap4VLadUIlUS0+nKSMI6bkl+382o31o78l 4Xgb4D6hGk5q/1Xwyd8cuIUVlRPZcO/I9cCfz6iXfd5gV3mju+VotBLxRNyzlTdhIWjG USMg== X-Gm-Message-State: AOJu0YxEEV7CQUPwqCmzO4EcZCMtMob/ijwfjQISC5TJ5sdyiNsSjoaF mexGXisRPMxpYv2+ypy22dusSDNF66jyWrX/wlPaaMMGE81F4+0vrGze+/fOVm0= X-Google-Smtp-Source: AGHT+IEbp9V1akcKu7cnw6D41lVlkowo6tVyETpfiuZrllC46dlzHJjN0FKatKECZun39vBRiihjxw== X-Received: by 2002:a19:5e58:0:b0:513:a724:3b9f with SMTP id z24-20020a195e58000000b00513a7243b9fmr7039603lfi.7.1711469062083; Tue, 26 Mar 2024 09:04:22 -0700 (PDT) Received: from mariano (net-93-70-84-101.cust.vodafonedsl.it. [93.70.84.101]) by smtp.gmail.com with ESMTPSA id s19-20020a056402521300b00568d5e737b0sm4213197edd.57.2024.03.26.09.04.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 09:04:21 -0700 (PDT) Received: by mariano (Postfix, from userid 1000) id 5A3F5BFCE0; Tue, 26 Mar 2024 17:04:20 +0100 (CET) Date: Tue, 26 Mar 2024 17:04:20 +0100 From: Stefano Sabatini To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches , Marth64 References: <20240324022504.1419451-1-marth64@proxyid.net> <20240324022504.1419451-3-marth64@proxyid.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240324022504.1419451-3-marth64@proxyid.net> User-Agent: Mutt/2.1.4 (2021-12-11) Subject: Re: [FFmpeg-devel] [PATCH v9 2/5] avformat/rcwtdec: add RCWT Closed Captions demuxer X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Marth64 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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 > --- > 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 : > - 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 , which is equivalent > to -opt > > 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".