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 D352C4817B for ; Mon, 11 Dec 2023 20:27:30 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 83F7968D1E4; Mon, 11 Dec 2023 22:27:27 +0200 (EET) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EA49568D095 for ; Mon, 11 Dec 2023 22:27:20 +0200 (EET) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-40c3ceded81so24369665e9.1 for ; Mon, 11 Dec 2023 12:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20230601.gappssmtp.com; s=20230601; t=1702326440; x=1702931240; darn=ffmpeg.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YgzM21pOcSsJv5ME38yAfZZGIvqiGqVyZl4Vwq/ok2c=; b=PfqM7n5llL2tOkXW8qHJ7ZBfRBowHu7JxYRqWKGaPla0Bdw5V1NP/lyVsFvzAP7Dj8 VYc0f+9sFLAAfmCwotmTHaPyv5b/ZYWKyp20b10krMtG12UgXv6X4uQnYh4eHt/U2c/C 2BI0LooO9KhyTd2tYmhoZX2JU7B4Xy2dyiea8TTMjzUyA9pIHPeEiBc1kdMjt0ssb7Ph yReB/tUvgh5ei2KmVopK1KpJdvGrZIjMG+urk4dSDAX1lStANC6HC+/UPo6F3WvKm3uA BBj6taBmVrAsY6gl4AhivHBTuk0/Q+fZyV1CtKYu6GGXO0mWwKwNE1nUw2U39Wo1vMGV SCVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702326440; x=1702931240; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YgzM21pOcSsJv5ME38yAfZZGIvqiGqVyZl4Vwq/ok2c=; b=fF4udxw9n41/kqnMgq8ZZ6DvJrSNY0omD0VVKh/vpnTZXpnfXIdltbXNtMPvSJAF8X qrne0W67XCw3uMsKgYYQ3zxhppxf8ZC0GsYmFnXBFjo9VyUKRlAf0lJcumkS03ACJTOV RrdyLsN5nKlBZBpe0Dp4DYNPqSMieBmW7f3WXVkM5V8qE9+lr5T4fmaGc6wSHIIqOVsx RXLMYYEgqZnptX1SGDFv3WLstI/Sal4vlwY+n96QLBqIVLEQgUp0+1CTfmdRf2XiF1+H yxKXeBMV+D3UvaEJARWgI8RBuOAXPgdBSDBIhcGZzHS7kpdTJDyFBhdoJ+RYFcEG3Mpr s7Og== X-Gm-Message-State: AOJu0Yy4Mxlf9LuIZw/ZOfENU9fJtjQ5Clwq85XbXkDqHfMiDLkuWLDj UEQ6BVscFVcd2pcNRGmrkw5m+mN7ZvbAUYx0Ieo= X-Google-Smtp-Source: AGHT+IHjzsvVdpobLCceSDzpBft8sgwUAcvaxtquVvfAHoEACvlHPmZvOrZbp/oIT4+GPfdbRNHWjw== X-Received: by 2002:a05:600c:364a:b0:40c:2b24:325e with SMTP id y10-20020a05600c364a00b0040c2b24325emr2502212wmq.184.1702326439930; Mon, 11 Dec 2023 12:27:19 -0800 (PST) Received: from [192.168.0.15] (cpc92302-cmbg19-2-0-cust1183.5-4.cable.virginm.net. [82.1.212.160]) by smtp.gmail.com with ESMTPSA id m11-20020adfe94b000000b00333504001acsm9292177wrn.15.2023.12.11.12.27.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Dec 2023 12:27:19 -0800 (PST) Message-ID: <1d84b346-9b97-434b-b5ef-28e9a5993eee@jkqxz.net> Date: Mon, 11 Dec 2023 20:27:40 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20231211163305.970490-1-marth64@proxyid.net> From: Mark Thompson In-Reply-To: <20231211163305.970490-1-marth64@proxyid.net> Subject: Re: [FFmpeg-devel] [PATCH v2] doc/bitstream_filters: add filter_units practical examples for removing closed captions 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 11/12/2023 16:33, Marth64 wrote: > Added v2 label and signed off as per proper procedure. > > Signed-off-by: Marth64 > --- > doc/bitstream_filters.texi | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi > index dc4f85bac0..7c36c5346d 100644 > --- a/doc/bitstream_filters.texi > +++ b/doc/bitstream_filters.texi > @@ -213,6 +213,24 @@ To remove all AUDs, SEI and filler from an H.265 stream: > ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=35|38-40' OUTPUT > @end example > > +SEI messages are commonly used to contain Closed Captions as well as other metadata such as dynamic HDR. > +This filter can be used to remove the SEI messages if desired. > + > +To remove SEI messages (including CC) from a MPEG-2 stream: > +@example > +ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=178' OUTPUT > +@end example MPEG-2 doesn't call these SEI, it is simply "user data". > + > +To remove SEI messages (including CC) from a H264 stream: > +@example > +ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=6' OUTPUT > +@end example > + > +To remove SEI messages (including CC and dynamic HDR) from a HEVC stream: > +@example > +ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=39' OUTPUT > +@end example Are closed captions allowed in suffix SEI as well? T.35 messages are certainly allowed there. (I'm mildly inclined to think that a more specific bitstream filter able to mess with the SEI types would be more useful? This approach feels like it has a lot of collateral damage.) Thanks, - Mark _______________________________________________ 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".