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 25F6B48615 for ; Mon, 11 Dec 2023 23:29:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 61FE368D210; Tue, 12 Dec 2023 01:29:29 +0200 (EET) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B344A68D186 for ; Tue, 12 Dec 2023 01:29:23 +0200 (EET) Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-50bffb64178so6006166e87.2 for ; Mon, 11 Dec 2023 15:29:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702337362; x=1702942162; 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=UV8Ah7DZJn1gvW2XzUaKUAecpW7HMQLlSx0wbQYt2fc=; b=YWNXjSo72OBEXIOlkDydGtNSbs7Nmby3Y8LRv2hVCEdusn9Cfy5iM+vtE6BSbAtK7P ug3jLBrBPFnd5bGe3ar2LTuTyccILRADpKOGrvvVvLEVbYyfCfOS5/9IhX5LoQJKYjJF wShA4xx2DjFfzRDuS/uE+c9zLylCtz/EhbklwSwdjMoMYmz1DdsEdRaBpbUOuaSAPNyU qDOLiMAyFm1t43e8tAII9lXcf7yIOwjfeft0EfXBL+OdtZ0mOlhS6alZD7UFjeGZIuu+ 4NnqaPzu5tS2SUW0SjZkDa9XM8kLphllrEXnduAMEKJ/tFz9aAOSnTyC5vXtjXXAed8z kfrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702337362; x=1702942162; 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=UV8Ah7DZJn1gvW2XzUaKUAecpW7HMQLlSx0wbQYt2fc=; b=WHiMh2bNo+ko8tM7OX4NO4weRF5eC0lNzKykPKkfufRC9sbFAVNyU6dlnlXJJjRXjP 2uF3ktsf6elM4FPSZ8SitaZap4dLOxyf0G6Mk4iNyuW+ASWkl2dJWnCrrH4dr2DnlFkS eh5UE7wY/T369YuJVMIxQvqyVpuDrrPE18ZyPSsJHQxF6waufihQznYAtoUlM2PdD9Ag TkAHNwog212/kl52bbeFNu0dTUsxV1jJ4Hr9b65fN0V3zmjt+KW+hRGL6uZe8QI+h0gY vuA8V2K30XQayPB/mIFG5YyDXFhPxgZIvE/I+zE8rNoHXLfIrSJbt8Q6vl4L293QiNkJ pHnw== X-Gm-Message-State: AOJu0YynAJ8HNwwT+Qydqt7c2emS6IkbTxeOCqo6bzQu0+AOTsM43iB2 zwR/CRCD1SfveksIbwbUq8aNz8QaWkE= X-Google-Smtp-Source: AGHT+IG2vY2PLdq/+zVUew/vY0hJWhqEdGwi/Mn1PMSstjfsxRT3N5GHE6s5GEjI+bfkRB5C0oT1sw== X-Received: by 2002:a05:6512:2810:b0:50b:f4f4:8d22 with SMTP id cf16-20020a056512281000b0050bf4f48d22mr2966314lfb.58.1702337361602; Mon, 11 Dec 2023 15:29:21 -0800 (PST) Received: from mariano (dynamic-adsl-84-220-189-10.clienti.tiscali.it. [84.220.189.10]) by smtp.gmail.com with ESMTPSA id a14-20020a056512020e00b0050c0bbbe3d0sm1188061lfo.137.2023.12.11.15.29.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 15:29:21 -0800 (PST) Received: by mariano (Postfix, from userid 1000) id D0FC8BFCDA; Tue, 12 Dec 2023 00:29:20 +0100 (CET) Date: Tue, 12 Dec 2023 00:29:20 +0100 From: Stefano Sabatini To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches , Marth64 References: <20231210013550.786075-1-marth64@proxyid.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231210013550.786075-1-marth64@proxyid.net> User-Agent: Mutt/2.1.4 (2021-12-11) Subject: Re: [FFmpeg-devel] [PATCH] 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 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 2023-12-09 19:35:50 -0600, Marth64 wrote: > --- > doc/bitstream_filters.texi | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi > index c63c20370f..d2ad6e78ff 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 > + > +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 Shall be good, but probably we can still do a bit better, by making explicit the common pattern. Something as: ... 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, including CC, given the bitstream SEI unit type (which changes depending on the video stream). To remove SEI messages (including CC) from a MPEG-2 stream: ... _______________________________________________ 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".