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 10404485FC for ; Mon, 11 Dec 2023 16:33:20 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 18DB068D18A; Mon, 11 Dec 2023 18:33:17 +0200 (EET) Received: from mail-oo1-f99.google.com (mail-oo1-f99.google.com [209.85.161.99]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D968A68D0CD for ; Mon, 11 Dec 2023 18:33:10 +0200 (EET) Received: by mail-oo1-f99.google.com with SMTP id 006d021491bc7-59067f03282so2646805eaf.0 for ; Mon, 11 Dec 2023 08:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proxyid.net; s=google; t=1702312389; x=1702917189; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fjjCCBk8P7LC9QJo9h4qFJYNmByDAnqQ1il6e5H9jxo=; b=CUR7tDWbON/VP9xH5AONpOzVlRswmI+3oaehFqjeNOrkMG+1YimcbqDoP3/xI3JH2c 162YBCtXvkooNyNZZIisHIdDA6VMpiX+5ohbOn7LOrwRj0L1NwW3ZhqyW3VKVRpMeo0u MSOTfvK56h4aQWydfAXKzPE03b2gY7V46+BYo/kLxkI06bYUEPxPzwDbIxfUD/Jnn98p xi8WuTv9+9GF5CcV6xZsTQP0FQUkag1rjSNUQxOQ+sUwtSx+bUblfNKutXA4fIa8dCub 8Gg1JZy6aaxGvyt5sQ7v6hO56m2uakXpKINOhvLgKdcpsQ0wsg6qd2HiHJWwTE/Nk/xk vu8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702312389; x=1702917189; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fjjCCBk8P7LC9QJo9h4qFJYNmByDAnqQ1il6e5H9jxo=; b=sGMrMl6146KB+OYCBcxy+YttfqJ9LzGwnApWRnFnUezAaGlU2UOFnhoAVJPe9r1Mz1 Ko64aUE3BlFWHrzWe/0gYoJMlvUj8u5i1oz8LR6/9iaf/d3bjWcI3j/lLp9uQ2u8hJS+ 0Vhrt+q6YLXcvcoEhqVHVy/x2JEcpy1s84fRg+SNoG7edjnTI/spsfdD6Gl7NWE02gLw WJUbHds+8o9fWT9Nc1Hgf3dLrN83uJatxPZbL0uafM8zZLojBc22ZvGJOTbsR28Pboz6 CYnSgnqUc6vqhEzTstPqhG5v78D6GwIQZumKmbfrSBchD2RPP/U2vkPyCOImhpX7ABzM FjGQ== X-Gm-Message-State: AOJu0YyruA5VeCYm3S6mPQZ9W0r+qUKyp9KnzZd6OdlrIrB4hylteZqM o+Me9m6jHcBPs1yR8BSD6PP8oF11pXWGZ0iFXqPqFEcew9AI95oJnwUkFQ== X-Google-Smtp-Source: AGHT+IHWzKYTbi1m6Z464sD8yFpjj47tNDKx8cStBAHovazVP953N7yY98g4Z3lg8n0u1O11p01i0hP/hTKW X-Received: by 2002:a05:6820:2294:b0:590:6b74:3bc3 with SMTP id ck20-20020a056820229400b005906b743bc3mr3605997oob.2.1702312388759; Mon, 11 Dec 2023 08:33:08 -0800 (PST) Received: from wsx-cc1-001.. (c-76-141-0-17.hsd1.il.comcast.net. [76.141.0.17]) by smtp-relay.gmail.com with ESMTPS id q29-20020a4a6c1d000000b00590e3964038sm457301ooc.4.2023.12.11.08.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:33:08 -0800 (PST) X-Relaying-Domain: proxyid.net From: Marth64 To: ffmpeg-devel@ffmpeg.org Date: Mon, 11 Dec 2023 10:33:05 -0600 Message-Id: <20231211163305.970490-1-marth64@proxyid.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [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 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: 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 + +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 + @section hapqa_extract Extract Rgb or Alpha part of an HAPQA file, without recompression, in order to create an HAPQ or an HAPAlphaOnly file. -- 2.34.1 _______________________________________________ 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".