
我有一個包含兩個音訊串流的 .mkv 檔案。但是當我打算將其轉換為 .mp4 時,ffmpeg 僅選擇第一個音訊串流。我怎麼能讓 ffmpeg 使用第二個?多謝。
答案1
是的,請參閱https://apple.stackexchange.com/questions/235376/how-do-i-add-vtt-subtitles-to-a-mp4-video-to-view-on-an-iphone-ios,https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo和https://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/subtitle_options。這是字幕,但它給了一個例子。嘗試
ffmpeg -i input.mkv -map 0:v -map 0:a -c copy output.mp4
-map 0:a:1
如果只需要第二個音訊串流,則使用。 (或者也許是-map 1:a
。)