kelciour / playphrase

Search and play phrases from movies and audiobooks
169 stars 26 forks source link

(Feature) Option to setup Audio Language #13

Closed raj6996 closed 4 years ago

raj6996 commented 4 years ago

First of all thanks for updating Python v3 and fixing other issues so fast. I used dual audio films, output file of Sam's videogrep was my Native language instead of English. Here I have tested your scripts video segments were English only. Is there anyway to setup audio of dual voiced films? Thanks.

kelciour commented 4 years ago

The script used the first audio stream by default. I updated the script and now the video segment should contain the same number of audio tracks as in the video file, i.e. you should be able to change them with your video player.

Aside from that, I can only recommend to use MKVToolNix GUI either to remove any extra audio tracks or change their order.

Additionally, mpv.conf can be updated to allow mpv to automatically select a different audio track while playing the audio file.

https://mpv.io/manual/master/#options-alang

The option to setup the preferred audio language would be nice, if the video file contains multiple audio tracks, but it's not something I can do.