Ffmpeg#-ccopyすべてのストリームをコピーする
Ffmpeg C Copy Copy All Streams
ffmpeg -i test.mp4 -c copy output.mkv
-ccopyはすべてのストリームをコピーします。示す すべてのストリームをコピーする 。
-c[:stream_specifier] codec (input/output,per-stream) -codec[:stream_specifier] codec (input/output,per-stream) Select an encoder (when used before an output file) or a decoder (when used before an input file) for one or more streams. codec is the name of a decoder/encoder or a special value copy (output only) to indicate that the stream is not to be re-encoded.
例えば
ffmpeg -i INPUT -map 0 -c:v libx264 -c:a copy OUTPUT
すべてのビデオストリームをlibx264でエンコードし、すべてのオーディオストリームをコピーします。
ストリームごとに、最後に一致するcオプションが適用されるため、
ffmpeg -i INPUT -map 0 -c copy -c:v:1 libx264 -c:a:137 libvorbis OUTPUT
libx264でエンコードされる2番目のビデオとlibvorbisでエンコードされる138番目のオーディオを除くすべてのストリームをコピーします 。