[FFmpeg-devel] [PATCH 0/1] avformat: Add probe_streams option

Nicolas Gaullier nicolas.gaullier at cji.paris
Mon Oct 4 23:52:20 EEST 2021

This is a following to a precedent work which was a too long patch serie:
At the end, s337m will be probed (if the user choose to) in WAV files.
But it is important to maintain workfows where typically WAV files are remuxed in MXF with s337m going through.

I have reworked on what I think a user might expect when disabling codec auto-detection.
I have not disabled stream probing for some very specific or legacy cases (asf, avi, mpg/Hikvision,sofdec) but maybe I should have.
The main idea is to always trust the descriptors, even if it means crashing.

Typically, an mpegts file having no PAT/PMT will not be supported at all. There is a clear use case for that,
for example when using ffprobe in front of a transcoder that is not ffmpeg and not able to handle such files.

I expect some enriching discussion around this... thank you for your feedbacks...

Nicolas Gaullier (1):
  avformat: Add probe_streams option

 doc/formats.texi            |  3 +++
 libavformat/avformat.h      |  9 +++++++++
 libavformat/mpeg.c          |  5 +++--
 libavformat/mpegts.c        | 10 ++++++----
 libavformat/options_table.h |  1 +
 libavformat/version.h       |  2 +-
 libavformat/wavdec.c        |  8 +++++---
 7 files changed, 28 insertions(+), 10 deletions(-)


More information about the ffmpeg-devel mailing list