View Single Post
  #4  
Old 29-03-2021, 13:03
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
You can even rip out unused languages from videos files with ffmpeg. Unfortunatelly the audio streams are not named, therefore you have to figure out what audio stream is what language they speak.

Usage:
Code:
ffmpeg -i "C_GameEnd.mp4" -map 0:0 -map 0:X -acodec copy -vcodec copy "Processed\C_GameEnd.mp4"


-map 0:X
I don't know what number is for which language. Use MPC and change audio track to listen.

X = Audio stream ID

-map 0:0 is the main audio track (non-voice) I guess.

First -map 0:0 tells ffmpreg to not touch non-voice track (main audio like sounds and stuff)
Second -map 0:X tells ffmpeg to not touch selected voice audio track (X).
In the above example ffmpeg removes all audio tracks with the exception of 0 (main audio track) and X.
"-acodec copy" tells ffmpeg to copy audio source (it doesn't change stuff like bitrate, etc.). Just a 1-to-1 copy without changing anything.
"-vcodec copy" is the same for video source.

If you want to leave 2 voice languages, add a third -map option:
ffmpeg -i "C_GameEnd.mp4" -map 0:0 -map 0:X -map 0:Y -acodec copy -vcodec copy "Processed\C_GameEnd.mp4"
__________________
Haters gonna hate

Last edited by KaktoR; 29-03-2021 at 13:18.
Reply With Quote
The Following 5 Users Say Thank You to KaktoR For This Useful Post:
:( Sad8669 (17-05-2021), Cesar82 (29-03-2021), fabrieunko (23-10-2022), Masquerade (29-03-2021), ZAZA4EVER (29-03-2021)