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 9B43F4803A for ; Sun, 10 Dec 2023 01:36:09 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C8F4068D0B0; Sun, 10 Dec 2023 03:36:06 +0200 (EET) Received: from mail-il1-f225.google.com (mail-il1-f225.google.com [209.85.166.225]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 03BE968D05B for ; Sun, 10 Dec 2023 03:36:00 +0200 (EET) Received: by mail-il1-f225.google.com with SMTP id e9e14a558f8ab-35d396ae91fso13888795ab.3 for ; Sat, 09 Dec 2023 17:36:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proxyid.net; s=google; t=1702172159; x=1702776959; 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=FeHAJ22xV8Z/iRdfRYgAmzZArb5UQGueOwBnsOHJX7A=; b=NCg52BHCNG6oetVq6GjfYRXBDcZMhGTW4lpb7FN3VXgFo0xdj9iSyNJC0bVAv1THfP 6CuTUxOyli18cIK/aImUnM/AeWgJSrNSfFByRJt23XbBivDxAmUDdGK0zYuDvToaUZNZ c7avbIakHivyBFrSttRxnqc0CkIHaxIfRAZbLESfPj1pjs8X3HQqPoY2rOpJuaqjQU1w g9NOBnbTBAmS6lVntpZxl23kHheBBNhAu843NhB8XqpAIffHb/YPmTCxHZXZw3rs33sp ikHOYewG7+y5CBebQacpgwmL6ADtLRPMe07iPZJGPKtnNcCliCvrgrgGBZGTRAk0Lq7F Ou7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702172159; x=1702776959; 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=FeHAJ22xV8Z/iRdfRYgAmzZArb5UQGueOwBnsOHJX7A=; b=dG6iyFqF8n+z1L14zKA/fcC7TsBcwPEgam/mnFf+2qauqlYptheMLVNXerhJZshz3m br/263FlVfLjyiQjiJTBNR3QXPkbv4flqZnwDhEI/G7sCPtKdMtlUBr1lcReSVSP66ac N+7/BXbXwuFIc+CNGkLwP0Io4dx7QL/M64QL+o8veql3GCYUJxdwBUvXsgm6zTUkG/RV Hgi03cTUPnniAyttz7OEYHLoI3t5Z92MRK+PrYtS1X+JMEJUBwLoQu5KxXTuw9QqohxZ rT14A19xsXT5f8ZY2dJtegK3JeXxBqj3qxu58KKIJXEvfg1D/ocDCtf+W2jwErXGfslp md3w== X-Gm-Message-State: AOJu0YyqCzLLMdU7HjHJWUwQvxkk4R6WpOkBYI147pYg/P0GP6vh9NHO rz2oT3PU9tGsr1L2tKmZd6xuEVE5XyeqnAxfBS/vBhFjNtcVE2grCSb3Xw== X-Google-Smtp-Source: AGHT+IGO0CG1N95OPwMPv+ynzx+Nsqr3WcjYKWVf6gF/Gz6Z/IGLrZx2C/fLngAIa+AKEL7P1PHi/9Ui4qvA X-Received: by 2002:a05:6e02:156c:b0:35d:5895:1d1b with SMTP id k12-20020a056e02156c00b0035d58951d1bmr3700952ilu.24.1702172159170; Sat, 09 Dec 2023 17:35:59 -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 d13-20020a056e02214d00b0035d25366fe9sm326562ilv.63.2023.12.09.17.35.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 17:35:59 -0800 (PST) X-Relaying-Domain: proxyid.net From: Marth64 To: ffmpeg-devel@ffmpeg.org Date: Sat, 9 Dec 2023 19:35:50 -0600 Message-Id: <20231210013550.786075-1-marth64@proxyid.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [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: --- 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 + @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".