From 58ec094cfc176281ecf471d9cecd919cc750deb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tronel?= Date: Fri, 1 Dec 2023 16:48:27 +0100 Subject: [PATCH] A comment to remember how to extract SPS and PPS from a file with ffmpeg. --- removeads.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/removeads.py b/removeads.py index b0b53e7..2d93a22 100755 --- a/removeads.py +++ b/removeads.py @@ -53,6 +53,11 @@ class SupportedFormat(IntEnum): else: return 'Unsupported format' +# Extract SPS/PPS +# https://gitlab.com/mbunkus/mkvtoolnix/-/issues/2390 +# ffmpeg -i -c:v copy -an -sn -bsf:v trace_headers -t 0.01 -report -loglevel 0 -f null - + + def getFormat(inputFile): logger = logging.getLogger(__name__)