]> git.sesse.net Git - ffmpeg/commit
ffprobe: Allow unknown format private AVOptions
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Fri, 26 Jun 2020 13:08:37 +0000 (14:08 +0100)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Thu, 2 Jul 2020 18:24:56 +0000 (19:24 +0100)
commitf43a8112ddf0388421dc7a264ee9ae12d2185b17
treee14af6436f9682562b9409448f840cabdd71ad8e
parent3b8d5bcc3189c6c46279889f1176c0caba4466e4
ffprobe: Allow unknown format private AVOptions

This useful, because by ffprobe's very nature, you use it to probe
a file and find out what it is. Requiring every format private option
to be known to the demuxer forces one to run ffprobe twice, if one
wants to use ffprobe in a generic way.

For example, say one wants to probe all user-uploaded files, while
also ignoring edit lists for any MP4s that are uploaded. Currently,
you'd have to run ffprobe twice: once to identify the format, and
once again to actually probe the metadata you want. After this
patch, you could set -ignore_editlist 1 on every call and only
probe once.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
fftools/ffprobe.c