

See the ffmpeg documentation for more info. Example to filter video and stream copy audio: ffmpeg -i input -filter_complex "scale=iw/2:-1" -map "" -map 0:a -c:a copy output However, you can stream copy unfiltered streams while filtering others. So it is not possible to filter and stream copy the same stream at the same time. | input | demuxer | encoded data | decoder
These options are marked T on the output of ffmpeg -h filterGetting the error Filtering and streamcopy cannot be used together means you have to avoid setting stream copy mode (for example -c:v copy, -c:a copy, -vcodec copy, -acodec copy, -c copy, etc) when filtering the same video or audio.įiltering requires the input video to be fully decoded into raw video, then the raw video is processed by the filter(s), finally it is encoded: _ _ This filtergraph splits the input stream in two streams, then sends one. I use this command:ffmpeg -i main.mp3 -i 1.mp3 -i 2.mp3 -i 3.mp3 \ -filtercomplex '\ 0volume1a0 \ 1adelay1000a1 \ 2adelay2000a2 \. In this case it maps to the same stream but this allows you to be slightly lazier. Not possible to copy & filter the same stream ffmpeg with many input and filters - Stack Overflow. I changed the filtering input from 0:1 to 0:a:0 which means 'first input:audio stream type:first (audio) stream'.
