舊的-vcodec/-acodec現在已經不推薦使用了,現在最好用-c/codec
-c/-codec在-i之前指定decoder,在-i之後指定encoder。如果要用copy,應該放在所有-i輸入流之後,然後使用。
ffmpeg -i in1.mkv -i in2.mkv -c copy out.mkv
如果需要更細分的,譬如in1的video用copy,而in2的video用其他,需要使用-c
0 copy -c
1 libx264這樣。如果trackid分配比較複雜,則可以配合-map設置輸入文件在輸出文件中各track的順序。在
FFmpeg官方文檔裡有詳細說明及示範。
つまんねー事聞くなよ!
I, personally, for me, believe (
obviously sometimes) that my
OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (
source)
Follow me:
@06_taro
世界304日——
为纪念伟大的宇宙史上最强压制
304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。