ffmpeg: merge input_codecs into input_streams.