mbox

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

Message ID 20211004205221.62939-1-nicolas.gaullier@cji.paris
Headers show

Message

Nicolas Gaullier Oct. 4, 2021, 8:52 p.m. UTC
This is a following to a precedent work which was a too long patch serie:
https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=2593
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(-)