Wrong audio track selected when playing MKV files (1 Viewer)

pedu

Portal Member
January 19, 2012
17
0
Home Country
Denmark Denmark
I have selected English as default Audio language and Danish as default Subtitle language in the Videos configuration settings. However when trying to play back a MKV file with two embedded audio tracks (1st: German, 2nd: English) Media Portal always select the 1st track - not the 2nd with English audio. I have attached my mediaportal.log file but by browsing through it I stumbled upon the following (marked in bold):

2012-01-31 22:37:30.001415 [Info.][MPMain(1)]: VideoPlayer:play \\NAS\video\High Definition\Blu-ray\Moviename (1080p).mkv
2012-01-31 22:37:30.011416 [Info.][MPMain(1)]: VideoPlayer9: Enabling DX9 exclusive mode
2012-01-31 22:37:30.014416 [Info.][MPMain(1)]: VMR9: added EVR Renderer to graph
2012-01-31 22:37:30.313433 [Info.][MPMain(1)]: VideoPlayer9: found H264 video out pin
2012-01-31 22:37:30.364436 [Info.][MPMain(1)]: Added filter: ArcSoft Video Decoder to graph
2012-01-31 22:37:30.368436 [Info.][MPMain(1)]: DirectShowUtils: First try to insert new audio renderer Default DirectSound Device
2012-01-31 22:37:30.368436 [Info.][MPMain(1)]: DirectShowUtils: Found audio renderer
2012-01-31 22:37:30.388437 [Info.][MPMain(1)]: Added filter: LAV Audio Decoder to graph
2012-01-31 22:37:30.599449 [Info.][MPMain(1)]: VideoPlayer9: Cleanup Captions
2012-01-31 22:37:31.048475 [Info.][MPMain(1)]: VideoPlayerVMR7: Subtitle CultureInfo da
2012-01-31 22:37:31.106478 [Info.][MPMain(1)]: VideoPlayerVMR7: CultureInfo Selected active subtitle track language: Danish (0)
2012-01-31 22:37:31.107478 [Info.][MPMain(1)]: VideoPlayerVMR7: AudioLanguage CultureInfo en
2012-01-31 22:37:31.160482 [Info.][MPMain(1)]: VideoPlayer:Duration:6336,371708

2012-01-31 22:37:31.161482 [Info.][MPMain(1)]: g_Player.OnStarted() \\NAS\video\High Definition\Blu-ray\Moviename (1080p).mkv media:Video


As far as I can see MP finds and select the correct subtitle stream da but does not find an audio stream which honours the AudioLanguage CultureInfo en.

By manually inspectiing the file with MediaInfo I get the following info


Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 1h 45mn
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 483 MiB (6%)
Title : German AC3
Language : German
Default : Yes
Forced : No

Audio #2
ID : 3
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : A_DTS
Duration : 1h 45mn
Bit rate mode : Constant
Bit rate : 1 510 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 1.11 GiB (15%)
Title : English DTS
Language : English
Default : No
Forced : No


So it's obvious that the MKV container contains two audio tracks with the second track being the English track. I also noticed that the first track (German) has the default track flag set - however I thought that MP would ignore this flag and enforce the Audio Language selected in Video settings instead.

Is this a bug or have I got it all wrong?

Cheers,
Peter
 

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Hi Peter,
    Did you solve you issue or it always not working ?
    Seb.

    I have try on attached sample and english track is selected correctly.
    Could you upload a sample ?
    Thanks :)
     

    Attachments

    • Audio_Language_Selection.rar
      20.3 MB

    Users who are viewing this thread

    Top Bottom