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 DCF0849D53 for ; Sun, 10 Mar 2024 14:56:51 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6AC2A68CC85; Sun, 10 Mar 2024 16:56:48 +0200 (EET) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4B74B68C633 for ; Sun, 10 Mar 2024 16:56:41 +0200 (EET) Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-51380c106d9so2481923e87.3 for ; Sun, 10 Mar 2024 07:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710082599; x=1710687399; 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=vsZGMClwuLJglwVVloDiRSjDzVcDJGUCspvO0bIQzDM=; b=UmT6Us1SGYOucWtBF3K1/7hRtSKT7PeUa84RcEMzlYY4R2yXAZcFMRrkmxjFp8Lkkd BQKGvEEpAkOciTIdzaR+s6muYvt3Sb4MsF036nJqh+v89/anUg3sdEGDIBXwlBGZm/9T SkPgESE+3VoCEtzfONIMdaDLgsjFHHoQqvwqQfCsp7ELEdFgfcBJqbn2wbkP/XaY91la z2RNr00tJqFR5R4wW/xPb1WKharsn5MQdDRYa+rWKDi1LlyfLHv0iUHiZ90EGwHteKCZ gMhVuEMzRtll6WG2IgpC7Vv1QFwb5IFqeixxt3DXfT0aWAupA+mNYOuQK/fYd+z1f9Z+ EVyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710082599; x=1710687399; 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=vsZGMClwuLJglwVVloDiRSjDzVcDJGUCspvO0bIQzDM=; b=qddkJx6r6izekbslhmjU8uBAExpu0hh3Ng0uo0Nohkc+UmltYLmMkKA5UKopgQGL+h jC/nK7uL65BzJSsUKSg391oKD2DG7EvKQGfWgso0d0B2SJax8hsxDv8kdcAVu5HAXmHn scKP1ApiODC3bX0tisRL8UwqsNko5DSNaKTJTnn/s3GwbGkkJ9KiYNMPfl8tG4hZ4Chn fMYiNu2eJ65BnUdedy1FPb/uuYBRoqiws5uoiC5qc0IlPz0uLW1UUQuWmo75HOWzlj6l vGiheD1K3EFgXE10l5NYuTySzC7tIANMf+NShH1ArFKUWXIXRu34aarFPHOdB5TMYHur KzoA== X-Gm-Message-State: AOJu0YzpUA1YpRnno4wxH0FrfkUW7Olz+F7CrHczZITAX60n67L0nwz6 J1Nk4ZTLG7MDx1P6zSvlnQz0NN3zJgYSUi6w3mHE4Da0Spd4WOJUYr0Tw7JJ X-Google-Smtp-Source: AGHT+IFW/OajAUkxuBZ3C80/j+U0pXyRhGeuKrE2eDk6nC2mvcuYefqLqFtVpi/nhROSS1kR79tOlA== X-Received: by 2002:ac2:4ac5:0:b0:513:a723:f1b4 with SMTP id m5-20020ac24ac5000000b00513a723f1b4mr725405lfp.61.1710082599376; Sun, 10 Mar 2024 07:56:39 -0700 (PDT) Received: from mariano ([188.210.239.79]) by smtp.gmail.com with ESMTPSA id jw22-20020a170906e95600b00a4623030893sm405259ejb.126.2024.03.10.07.56.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 07:56:38 -0700 (PDT) Received: by mariano (Postfix, from userid 1000) id C24C4BFCDC; Sun, 10 Mar 2024 15:56:37 +0100 (CET) Date: Sun, 10 Mar 2024 15:56:37 +0100 From: Stefano Sabatini To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches , Marth64 References: <20240310015649.3233692-1-marth64@proxyid.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240310015649.3233692-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 2024-03-09 19:56:49 -0600, Marth64 wrote: > Following up on this from December 2023. I simplified the content and > hopefully addressed the feedback. > > Signed-off-by: Marth64 > --- > doc/bitstream_filters.texi | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi > index e06de1a73a..61539d2473 100644 > --- a/doc/bitstream_filters.texi > +++ b/doc/bitstream_filters.texi > @@ -213,6 +213,21 @@ 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 > > +To remove all user data from a MPEG-2 stream, including Closed Captions: > +@example > +ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=178' OUTPUT > +@end example > + > +To remove all SEI from a H264 stream, including Closed Captions: > +@example > +ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=6' OUTPUT > +@end example > + > +To remove all prefix and suffix SEI from a HEVC stream, including Closed Captions and dynamic HDR: > +@example > +ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=39|40' OUTPUT > +@end example > + Not against, but I'm not super convinced this is super useful as it does not really explain what these values come from. Probably it would be more useful a table, or even better make the parser somehow expose the supported types with the meaning (this would enable having e.g. a symbolic type "cc" abstracting the containter format). OTOH I agree thius would provide some practical examples, therefore I'll apply while we have no smarter way to expose the logic in a more effective way. 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".