A comment to remember how to extract SPS and PPS from a file with ffmpeg.

This commit is contained in:
Frédéric Tronel
2023-12-01 16:48:27 +01:00
parent 0f46dc9fda
commit 58ec094cfc

View File

@@ -53,6 +53,11 @@ class SupportedFormat(IntEnum):
else:
return 'Unsupported format'
# Extract SPS/PPS
# https://gitlab.com/mbunkus/mkvtoolnix/-/issues/2390
# ffmpeg -i <InputFile (before concatenation)> -c:v copy -an -sn -bsf:v trace_headers -t 0.01 -report -loglevel 0 -f null -
def getFormat(inputFile):
logger = logging.getLogger(__name__)