1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
FFmpeg/fftools
Gyan Doshi c50f5460d2 ffmpeg_opt: restore documented stream selection behaviour
11d3b03fcb added consideration of default stream disposition for audio
and video when choosing the 'best' stream among all the inputs. This can
lead to video streams with lower resolution or audio streams with fewer
channels being selected.

Stream disposition, however, only sets a priority for a stream
among all other streams in the *same input*. It cannot set a priority
for a stream across all inputs.

This patch sets a middle-way and selects the best stream from each file
with default disposition considered. Then it discards disposition weight
and selects best stream as per the original criteria of highest
resolution for video and most channels for audio.
2021-08-01 09:51:07 +05:30
..
cmdutils.c avcodec/avcodec: Stop including channel_layout.h in avcodec.h 2021-07-22 11:14:31 +02:00
cmdutils.h fftools/cmdutils.c: Add cmd line option to override detection of cpu count. 2021-07-16 10:06:23 +02:00
ffmpeg_filter.c libavresample: Remove deprecated library 2021-04-27 10:43:13 -03:00
ffmpeg_hw.c ffmpeg: Don't require a known device to pass a frames context to an encoder 2020-05-03 16:04:27 +01:00
ffmpeg_opt.c ffmpeg_opt: restore documented stream selection behaviour 2021-08-01 09:51:07 +05:30
ffmpeg_qsv.c Remove unnecessary mem.h inclusions 2021-07-22 14:47:57 +02:00
ffmpeg_videotoolbox.c ffmpeg_videotoolbox: skip memory copy if hwaccel_output_format match 2021-06-10 19:54:03 +08:00
ffmpeg.c ffmpeg: fix order between field order autodetection and override 2021-07-25 22:40:49 +03:00
ffmpeg.h avcodec/avcodec: Stop including bsf.h in avcodec.h 2021-07-22 11:14:16 +02:00
ffplay.c Remove unnecessary avassert.h inclusions 2021-07-22 15:02:30 +02:00
ffprobe.c avcodec/avcodec: Stop including channel_layout.h in avcodec.h 2021-07-22 11:14:31 +02:00
Makefile ffmpeg: remove superfluous custom cuvid hwaccel 2020-03-03 18:11:28 -03:00