Page 1 of 1
change audio language in mkv?

Posted:
Wed Dec 26, 2012 10:39 am
by wont_start
hi,
when i stream a multi language mkv to my device (Sony HX855) it always select english as default language. on the tv's audio options i can't select another language.
the audiostream is in DTS and serviio convert it to AC3 so the tv can play it.
in the preferences in serviio i found no option to change the audio language too.
is there any way to change the audio language?
greets and merry christmas to you all.
Re: change audio language in mkv?

Posted:
Wed Dec 26, 2012 11:17 am
by zip
It only picks the first track when remuxing the file. Audio selection will come later.
Re: change audio language in mkv?

Posted:
Thu Dec 27, 2012 6:54 pm
by wont_start
Hi and thanks for your answer,
even when the movie is in minute 30 i can't chose a different audiostream.
on the tv i get the message "no other language availible"

Re: change audio language in mkv?

Posted:
Wed Jan 30, 2013 3:46 am
by johnnyquid
Serviio always seems to pick the first audio track when transcoding. Like others I have had the problem of the wanting to select another audio track when using Serviio with transcoding but not being able to. Being able to do so is on the requested feature list for Serviio but until it is implemented here is a workaround. I saw other posts that gave workarounds for the Unix enviroment but I needed one for Windows so I created the below simple wrapper for the ffmpeg.exe that Serviio uses to transcode. The audio track is selectable by editing a text file. Here is how to use on the PC.
1) Go the Serviio library directory. On my pc it was c:\Program Files\Serviio\Lib
2) Make a copy of the file ffmpeg.exe as a just in case backup.
3) Rename ffmepg.exe to ffmpeg_original.exe
4) Put the attached file ffmpeg.exe in the same directory
5) Put the attached file stream.txt in the same directory
6) Change the audio stream you want to stream by editing the file stream.txt
For those who are paranoid and want to compile their own version or who want to improve the above workaround solution, the source code is attached. I used Freebasic to compile.
Re: change audio language in mkv?

Posted:
Sat Mar 23, 2013 11:35 pm
by ruisamaral
johnnyquid, I tried your solution but when ffmpeg is called is always without parameters. I even tried put the parameter string -map 0:1 -map 0:2 but stills the audio was the first one.
What I'm doing wrong?
Re: change audio language in mkv?

Posted:
Thu Apr 18, 2013 1:14 pm
by look3
johnnyquid, thanks for your efforts! Unfortunately, I have the same issue as ruisamaral - the first audio stream is chosen whatever my setting in stream.txt's first line.. Any idea why this happens? Thanks for your help!
Cheers,
look3
Re: change audio language in mkv?

Posted:
Sun May 26, 2013 1:41 pm
by TM2002
remove and reselect folders in library
Re: change audio language in mkv?

Posted:
Mon Jul 08, 2013 8:15 pm
by akajester
You could use mkvmergegui to change the audio track you want to "default", then remux it. Serviio will then pick that as the default track. I'm guessing switching still won't work, but at least you'll get your most preferred audio track.
Re: change audio language in mkv?

Posted:
Tue Jul 01, 2014 3:02 am
by Kareeem33
Thanks for this thread and the suggestion above. I had an .mkv with two languages embedded, the first Russian, and by using the above program was able to unselect the Russian and remux, so now I only get English when streaming via Serviio.
Cheers.
Re: change audio language in mkv?

Posted:
Tue Jul 22, 2014 1:53 am
by Zeppelin
This is a bit of an old topic, but since Serviio still can't pick out which audio stream to use I figured I'd ask. Has anyone gotten the wrapper posted here by Johhny to work? I tried updating my library in Serviio after putting the wrapper files in the lib directory, but it won't update my library. Serviio checks for new files and then stops, leaving me with nothing to play on the TV. Works fine if I restore the backup of the ffmpeg file. I can't imagine I'm doing anything wrong, but I'm wondering if anyone else has had similar problems. I would love to continue using Serviio, but I need the ability to select which audio stream I use. Thanks.
Re: change audio language in mkv?

Posted:
Fri Aug 15, 2014 1:39 pm
by Wixie
i would also like to have such a feature. At least without audio transcoding.
So when you just change the container from mkv into mpeg2ts you can keep all audiotracks
Re: change audio language in mkv?

Posted:
Wed Aug 05, 2015 3:59 am
by tempacc
johnnyquid wrote:Serviio always seems to pick the first audio track when transcoding. Like others I have had the problem of the wanting to select another audio track when using Serviio with transcoding but not being able to. Being able to do so is on the requested feature list for Serviio but until it is implemented here is a workaround. I saw other posts that gave workarounds for the Unix enviroment but I needed one for Windows so I created the below simple wrapper for the ffmpeg.exe that Serviio uses to transcode. The audio track is selectable by editing a text file. Here is how to use on the PC.
1) Go the Serviio library directory. On my pc it was c:\Program Files\Serviio\Lib
2) Make a copy of the file ffmpeg.exe as a just in case backup.
3) Rename ffmepg.exe to ffmpeg_original.exe
4) Put the attached file ffmpeg.exe in the same directory
5) Put the attached file stream.txt in the same directory
6) Change the audio stream you want to stream by editing the file stream.txt
Hi, i tried this workaround but it doesn't work to me. ffmpeg doesn't start when it's required by serviio. I don't know if it might have to do with the folder path for the compiled version and the fact that I'm using the newest version of serviio in an x64 windows version. No idea.
Even though, this possibility was much more interesting than being remuxing around files every time you need a different audio choice.
Any other idea to solve this? (since, I believe, prefered audio setting hasn't been implemented in serviio yet)