FFmpeg/fftools
Marton Balint 4bfecde9b9 fftools/ffmpeg_demux: honor -ch_layout options for overriding input stream channel layout
The code only set the channel layout of the AVFormatContext, so the user could
not override the channel layout if the demuxer did not have such parameter.

This used to work via the respective AVCodecContext option, but since
639c2f0049 it no longer gets passed to the
decoders. It is actually better if we set it manually, instead of using the
codec option because that way we can also override it on the stream level, so
it will also work for stream copy or bitstream filtering.

We don't allow changing the number of channels, because that can cause
unexpected results. We disable layout guessing, if a channel layout is
specified.

Fixes ticket #11016.

Signed-off-by: Marton Balint <cus@passwd.hu>
2024-05-27 21:46:47 +02:00
..
cmdutils.c fftools: Fix implicit-const-int-float-conversion warning 2024-04-23 16:09:09 +08:00
cmdutils.h fftools/ffmpeg: add loopback decoding 2024-03-13 08:01:27 +01:00
ffmpeg.c fftools, avfilter, avformat: Simplify check for "is dictionary empty?" 2024-05-20 13:52:41 +02:00
ffmpeg.h fftools/ffmpeg_filter: change processing order in fg_finalise_bindings() 2024-04-09 10:34:18 +02:00
ffmpeg_dec.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
ffmpeg_demux.c fftools/ffmpeg_demux: honor -ch_layout options for overriding input stream channel layout 2024-05-27 21:46:47 +02:00
ffmpeg_enc.c fftools/ffmpeg: warn about ignored -enc_time_base for subtitles earlier 2024-04-09 10:34:18 +02:00
ffmpeg_filter.c fftools/ffmpeg_filter: Fix leak on error 2024-05-20 14:15:23 +02:00
ffmpeg_hw.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
ffmpeg_mux.c fftools/ffmpeg_filter: only store complex filtergraphs in global array 2024-04-09 10:34:18 +02:00
ffmpeg_mux.h fftools/ffmpeg_filter: move most of -apad logic to the muxer 2024-04-09 10:34:18 +02:00
ffmpeg_mux_init.c fftools/ffmpeg_mux_init: add missing IAMF Param Definition copies 2024-04-24 18:12:00 -03:00
ffmpeg_opt.c fftools: Fix implicit-const-int-float-conversion warning 2024-04-23 16:09:09 +08:00
ffmpeg_sched.c fftools/ffmpeg_sched: allow filtergraphs to send to filtergraphs 2024-04-09 10:34:18 +02:00
ffmpeg_sched.h fftools/ffmpeg_sched: allow filtergraphs to send to filtergraphs 2024-04-09 10:34:18 +02:00
ffmpeg_utils.h fftools/ffmpeg: rework keeping track of file duration for -stream_loop 2023-11-14 18:18:26 +01:00
ffplay.c fftools, avfilter, avformat: Simplify check for "is dictionary empty?" 2024-05-20 13:52:41 +02:00
ffplay_renderer.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
ffplay_renderer.h fftools/ffplay: add hwaccel decoding support 2023-11-15 01:20:11 +08:00
ffprobe.c fftools, avfilter, avformat: Simplify check for "is dictionary empty?" 2024-05-20 13:52:41 +02:00
fftools.manifest fftools: add DPI awareness manifest 2022-08-13 14:42:52 +02:00
fftoolsres.rc fftools: add DPI awareness manifest 2022-08-13 14:42:52 +02:00
fopen_utf8.h avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
Makefile fftools/ffmpeg: add thread-aware transcode scheduling infrastructure 2023-12-12 08:24:18 +01:00
objpool.c fftools/objpool: Don't use return with expression when returning void 2022-07-23 18:58:35 +02:00
objpool.h fftools: add an object pool 2022-07-23 11:53:19 +02:00
opt_common.c tools/opt_common: Check for malloc failure 2024-05-09 16:17:40 +02:00
opt_common.h fftools/cmdutils: hide some information listing options from basic help 2024-01-20 10:37:32 +01:00
sync_queue.c fftools/ffmpeg_demux, sync_queue: Constify a bit 2024-03-02 02:51:59 +01:00
sync_queue.h fftools/sync_queue: add debug logging 2023-05-28 10:47:59 +02:00
thread_queue.c fftools/thread_queue: count receive-finished streams as finished 2023-11-14 18:18:26 +01:00
thread_queue.h fftools: add a multistream thread-safe queue 2022-07-23 11:53:19 +02:00