User Tools

Site Tools


howto:merge-video

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
howto:merge-video [2025/04/03 23:58] Wulf Rajekhowto:merge-video [2025/05/04 18:52] (current) Wulf Rajek
Line 247: Line 247:
 # remove all but a specific language audio streams # remove all but a specific language audio streams
 ffmpeg -i input_file -map 0 -map -0:a -map 0:a:m:language:fre -c copy output_file ffmpeg -i input_file -map 0 -map -0:a -map 0:a:m:language:fre -c copy output_file
 +# loop to remove all but turkish audio streams:
 +for f in *.mkv; do ffmpeg -hide_banner -i "$f" -map 0 -map -0:a -map 0:a:m:language:tur -c copy "${f%.*}.tur.mkv"; done
 +
 +
 </code> </code>
  
  
howto/merge-video.txt · Last modified: by Wulf Rajek