FAQ  •  Register  •  Login

change audio language in mkv?

<<

wont_start

Serviio newbie

Posts: 7

Joined: Sun Nov 25, 2012 6:19 pm

Post Wed Dec 26, 2012 10:39 am

change audio language in mkv?

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.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Dec 26, 2012 11:17 am

Re: change audio language in mkv?

It only picks the first track when remuxing the file. Audio selection will come later.
<<

wont_start

Serviio newbie

Posts: 7

Joined: Sun Nov 25, 2012 6:19 pm

Post Thu Dec 27, 2012 6:54 pm

Re: change audio language in mkv?

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" :(
<<

johnnyquid

Serviio newbie

Posts: 2

Joined: Wed Jan 30, 2013 2:55 am

Post Wed Jan 30, 2013 3:46 am

Re: change audio language in mkv?

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.
Attachments
select_stream.zip
(15.64 KiB) Downloaded 1566 times
<<

ruisamaral

Serviio newbie

Posts: 1

Joined: Sat Mar 23, 2013 11:31 pm

Post Sat Mar 23, 2013 11:35 pm

Re: change audio language in mkv?

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?
<<

look3

Serviio newbie

Posts: 1

Joined: Thu Apr 18, 2013 1:11 pm

Post Thu Apr 18, 2013 1:14 pm

Re: change audio language in mkv?

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
<<

TM2002

Serviio newbie

Posts: 9

Joined: Wed Mar 28, 2012 9:36 am

Post Sun May 26, 2013 1:41 pm

Re: change audio language in mkv?

remove and reselect folders in library
<<

akajester

Serviio newbie

Posts: 15

Joined: Wed Mar 07, 2012 3:45 pm

Post Mon Jul 08, 2013 8:15 pm

Re: change audio language in mkv?

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.
<<

Kareeem33

Serviio newbie

Posts: 1

Joined: Tue Jul 01, 2014 2:57 am

Post Tue Jul 01, 2014 3:02 am

Re: change audio language in mkv?

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.
<<

Zeppelin

Serviio newbie

Posts: 1

Joined: Tue Jul 22, 2014 1:29 am

Post Tue Jul 22, 2014 1:53 am

Re: change audio language in mkv?

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.
<<

Wixie

Serviio newbie

Posts: 16

Joined: Wed Aug 13, 2014 7:44 pm

Post Fri Aug 15, 2014 1:39 pm

Re: change audio language in mkv?

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
<<

tempacc

Serviio newbie

Posts: 2

Joined: Wed Aug 05, 2015 3:43 am

Post Wed Aug 05, 2015 3:59 am

Re: change audio language in mkv?

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)

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 43 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.