Problems with Audio / Subtitle selection for BD discs (1 Viewer)

yhoogi

MP Donator
  • Premium Supporter
  • March 9, 2008
    599
    47
    Home Country
    Germany Germany
    @DaBaSe

    just curiosity of mine:


    Did you tried it from a BD drive?
    If yes: did you tried to view from an iso file (or from a folder) to see if the problem still exists?


    Cheers,
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Thanks for the updates :)

    @yhoogi
    I don't have a lot of time to reply right now, but at least I can say that I don't think the problem has anything to do with LAV splitter settings. LAV splitter is not used for BD playback, so those settings should have no effect.

    One other thing I meant to say in my previous reply: in your previous log files I saw that MP was using two audio codecs.
    [2017-01-05 01:18:30,265] [Log ] [MPMain ] [DEBUG] - Check graph connections for: Enhanced Video Renderer
    [2017-01-05 01:18:30,265] [Log ] [MPMain ] [DEBUG] - Check graph connections for: Default DirectSound Device
    [2017-01-05 01:18:30,266] [Log ] [MPMain ] [DEBUG] - Check graph connections for: LAV Video Decoder
    [2017-01-05 01:18:30,266] [Log ] [MPMain ] [DEBUG] - Check graph connections for: AC3Filter
    [2017-01-05 01:18:30,266] [Log ] [MPMain ] [DEBUG] - Check graph connections for: LAV Audio Decoder
    [2017-01-05 01:18:30,266] [Log ] [MPMain ] [DEBUG] - Check graph connections for: MediaPortal BD Reader

    I wondered if that could have something to do with the audio selection problem.

    Can you please provide a screenshot of all the LAV audio codec settings?

    P.S. I'm a little surprised you're not using the MediaPortal Audio Renderer. Any reason for that?
    P.P.S. The developer who is working on Blu-Ray support is most likely using LAV Video + LAV Audio + EVR + MPAR.

    Sorry, no more time for now. More later...
     

    yhoogi

    MP Donator
  • Premium Supporter
  • March 9, 2008
    599
    47
    Home Country
    Germany Germany
    Ok & Thanks.

    Here you go with the screenshot (at end of post)

    This with AC3 is strange, as I don't use it anywhere (although it is installed)
    Maybe I will delete it

    For the audio-renderer: I have since ages the default Direct Sound Device
    & had never any issues due to that.
    If this is required I will change it.
    Maybe this should be noted somewhere


    Cheers

    Note: changing to MP Audio Renederer did not resolve then issue - same behaviour
    Note2: Deletion of AC3 Filter does not change anything as well
    Tried with the Movie of my 2nd Log in the prior posting; as soon as I change the subtitle to german, the language switches to english


    upload_2017-1-5_22-8-1.png


    upload_2017-1-5_22-8-25.png
     
    Last edited:

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Thanks yhoogi :)

    This with AC3 is strange, as I don't use it anywhere (although it is installed)
    Maybe I will delete it

    For the audio-renderer: I have since ages the default Direct Sound Device
    & had never any issues due to that.
    If this is required I will change it.
    Maybe this should be noted somewhere
    It all makes sense now that I see the screenshot. All is caused by your settings:
    1. You've enabled bit-streaming for DD/AC-3, DD+/E-AC3, TruHD, DTS and DTS HD in the LAV audio settings.
    2. You've configured MP to use the default DirectSound audio renderer which an analog output.
    These two things cannot work together.

    Enabling bit-streaming means that the LAV codec will pass the stream untouched and not decode it as usual. That's fine... but when bit-streaming, you must use a digital audio output. Bit-streaming is digital by definition. You've configured MP to use the default DirectSound audio renderer. During these tests the default audio device (which is the one that will be used) is the "Lautsprecher (USB Audio)" output. That's an analog output, so it can't ever work for bit-streaming. DirectShow and/or MP are/were detecting that problem and solving it automatically by inserting the AC3Filter codec. AC3Filter was decoding the audio as required for compatibility with the audio output.

    So in short:
    1. If you enable bit-streaming in LAV settings, you must use a digital audio output such as "DENON-AVRHD-C (NVIDIA High Definition Audio)".
    2. If you want to use the "Lautsprecher (USB Audio)" audio output or MediaPortal Audio Renderer (MPAR), you must disable bit-streaming in LAV settings.

    Note: changing to MP Audio Renederer did not resolve then issue - same behaviour
    I guess that you didn't disable bit-streaming in the LAV settings. Log file shows:
    [2017-01-05 22:36:48,359] [Log ] [MPMain ] [DEBUG] - Check graph connections for: LAV Audio Decoder
    [2017-01-05 22:36:48,368] [Log ] [MPMain ] [DEBUG] - - remove done
    [2017-01-05 22:36:48,368] [Log ] [MPMain ] [DEBUG] - Check graph connections for: Enhanced Video Renderer
    [2017-01-05 22:36:48,368] [Log ] [MPMain ] [DEBUG] - Check graph connections for: MediaPortal - Audio Renderer
    [2017-01-05 22:36:48,369] [Log ] [MPMain ] [DEBUG] - Check graph connections for: LAV Video Decoder
    [2017-01-05 22:36:48,369] [Log ] [MPMain ] [DEBUG] - Check graph connections for: DScaler Audio Decoder
    [2017-01-05 22:36:48,383] [Log ] [MPMain ] [DEBUG] - Check graph connections for: MediaPortal BD Reader

    Same problem as before. The only difference is that DScaler Audio Decoder was used instead of AC3Filter because you uninstalled AC3Filter.

    Note2: Deletion of AC3 Filter does not change anything as well
    I wouldn't expect deleting it to solve the problem. Deleting AC3Filter is unnecessary and a bit pointless. If AC3Filter is unavailable, DirectShow and/or MP will just find some other codec to use as you can see above (DScaler).

    Again, either:
    1. Configure MP to use the "DENON-AVRHD-C (NVIDIA High Definition Audio)" audio output, OR...
    2. Disable bit-streaming in LAV audio codec settings.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    @DaBaSe
    Lars, I can see the dropped frames in your previous EVR (video renderer) log:
    [collapse]
    [2017-01-04 12:42:36,188] [ c8330b8] [163c] - Dropping frame, nextSampleTime -336.62 ms, last sleep 0.00 ms, last pres -403.00 ms, paint 27.36 ms, queue count 4, SOP 232, EOP 0, RawFRRatio 1, dropped 9, drawn 6045
    [2017-01-04 12:42:36,188] [ c8330b8] [163c] - Dropping frame, nextSampleTime -295.01 ms, last sleep 0.00 ms, last pres -403.00 ms, paint 27.36 ms, queue count 3, SOP 232, EOP 0, RawFRRatio 1, dropped 10, drawn 6045
    [2017-01-04 12:42:36,188] [ c8330b8] [163c] - Dropping frame, nextSampleTime -253.35 ms, last sleep 0.00 ms, last pres -403.00 ms, paint 27.36 ms, queue count 2, SOP 232, EOP 0, RawFRRatio 1, dropped 11, drawn 6045
    [2017-01-04 12:42:36,188] [ c8330b8] [163c] - Dropping frame, nextSampleTime -211.69 ms, last sleep 0.00 ms, last pres -403.00 ms, paint 27.36 ms, queue count 1, SOP 232, EOP 0, RawFRRatio 1, dropped 12, drawn 6045
    [2017-01-04 12:42:36,188] [ c8330b8] [163c] - Dropping frame, nextSampleTime -170.02 ms, last sleep 0.00 ms, last pres -403.00 ms, paint 27.36 ms, queue count 0, SOP 232, EOP 0, RawFRRatio 1, dropped 13, drawn 6045
    [2017-01-04 12:42:36,191] [ c8330b8] [184c] - Scheduling sample from the past (157.06 ms, last call to NotifyWorker: 0.22 ms, Queue: 0)
    [2017-01-04 12:42:36,222] [ c8330b8] [184c] - Scheduling sample from the past (146.54 ms, last call to NotifyWorker: 31.39 ms, Queue: 0)
    [2017-01-04 12:42:36,246] [ c8330b8] [184c] - Scheduling sample from the past (129.00 ms, last call to NotifyWorker: 0.25 ms, Queue: 0)
    [2017-01-04 12:42:36,251] [ c8330b8] [184c] - Scheduling sample from the past (92.70 ms, last call to NotifyWorker: 0.22 ms, Queue: 0)
    [2017-01-04 12:42:36,262] [ c8330b8] [184c] - Scheduling sample from the past (62.03 ms, last call to NotifyWorker: 0.21 ms, Queue: 0)
    [2017-01-04 12:42:36,268] [ c8330b8] [184c] - Scheduling sample from the past (25.69 ms, last call to NotifyWorker: 0.20 ms, Queue: 0)[/collapse]

    Sorry, I'm not sure what caused it, but it seems obvious that it relates to the file change at 12:42:35 as you said:
    04-01-2017 12:42:35.645 [ 1198]demux: New playitem 3
    04-01-2017 12:42:35.645 [ 1198]Demux::Flushing PES 0
    04-01-2017 12:42:35.646 [ 1198]Playlist Manager new Playlist 401 clip 3 start 11.651 clipOffset -321.557 Audio 1 duration 265.557

    I see that you configured MP to use the MediaPortal Audio Renderer (MPAR)... but MP is not actually using it:
    [2017-01-04 12:37:02,357] [Log ] [MPMain ] [DEBUG] - Check graph connections for: Default DirectSound Device
    [2017-01-04 12:37:02,358] [Log ] [MPMain ] [DEBUG] - Check graph connections for: Enhanced Video Renderer
    [2017-01-04 12:37:02,358] [Log ] [MPMain ] [DEBUG] - Check graph connections for: MediaPortal - Audio Renderer
    [2017-01-04 12:37:02,359] [Log ] [MPMain ] [DEBUG] - - remove done
    [2017-01-04 12:37:02,359] [Log ] [MPMain ] [DEBUG] - Check graph connections for: VSFilter (forced auto-loading version)
    [2017-01-04 12:37:02,360] [Log ] [MPMain ] [DEBUG] - Check graph connections for: LAV Audio Decoder
    [2017-01-04 12:37:02,360] [Log ] [MPMain ] [DEBUG] - Check graph connections for: LAV Video Decoder
    [2017-01-04 12:37:02,360] [Log ] [MPMain ] [DEBUG] - Check graph connections for: MediaPortal BD Reader

    The default DirectSound device is used instead.
    It's possible that using MPAR could help to reduce dropped video frames, so this could be worth investigating.
    I guess MP is using the DirectSound renderer because of incompatible LAV audio and/or MPAR settings like yhoogi.
    So, could you please attach screenshots of your LAV audio codec and MPAR settings?

    Thanks :)
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    @yhoogi
    I finally had a chance to look at your latest log file.

    For that movie it seems the audio and/or sub-titles languages are often not known:
    05-01-2017 22:36:42.421 [ 1738] Video [4113] H264
    05-01-2017 22:36:42.421 [ 1738] Audio #0:[4352] und DTS 5
    05-01-2017 22:36:42.421 [ 1738]demux: ParseAudioStreams - Audio track #0 selected
    05-01-2017 22:36:42.422 [ 1738] BD_EVENT_AUDIO_STREAM - 1
    05-01-2017 22:36:42.422 [ 1738] Audio #0:[4352] und DTS 5

    05-01-2017 22:37:50.575 [ 2300] Video [4113] H264
    05-01-2017 22:37:50.575 [ 2300] Audio #0:[4352] und DTS 5
    05-01-2017 22:37:50.576 [ 2300] Audio #1:[4353] und DTS 5
    05-01-2017 22:37:50.576 [ 2300] Audio #2:[4354] und DTS 5
    05-01-2017 22:37:50.576 [ 2300]demux: ParseAudioStreams - Audio track #0 selected
    05-01-2017 22:37:50.576 [ 2300] Subtitle [4608] und PGS
    05-01-2017 22:37:50.576 [ 2300] Subtitle [4609] und PGS
    05-01-2017 22:37:50.576 [ 2300] Subtitle [4610] und PGS
    05-01-2017 22:37:50.576 [ 2300] Subtitle [4611] und PGS

    That can explain why MP/BDReader struggles to maintain the correct audio and sub-titles selection for that movie.
     

    yhoogi

    MP Donator
  • Premium Supporter
  • March 9, 2008
    599
    47
    Home Country
    Germany Germany
    Thanks yhoogi :)

    1. Configure MP to use the "DENON-AVRHD-C (NVIDIA High Definition Audio)" audio output, OR...
    2. Disable bit-streaming in LAV audio codec settings.

    As far as I remember the behaviour was also seen in a setup with my AV receiver, but I will check to be sure and report back

    @yhoogi

    That can explain why MP/BDReader struggles to maintain the correct audio and sub-titles selection for that movie.


    Question would be then why a selection of a subtitle stream is changing the audio stream as they should be independent.
    I makes me wonder how the filter chain looks like. I constantly struggle with the correct setup to observe it via graphedit, though

    I will report back as soon as I had a chance to test it out

    Cheers & Thanks,
     

    yhoogi

    MP Donator
  • Premium Supporter
  • March 9, 2008
    599
    47
    Home Country
    Germany Germany
    So, I made the cross check using my AVR.
    Btw: I switched back to Default DirectSound Device
    I experienced desync between Audio & Video during Anime playback (AAC audio, handled via ffdshow) while using the MP Audio Renderer
    Seems like this was the reason ages ago to stick to the default

    Now:
    First two files are tests done with the two BD movies also used in the former tests: There was exactly the same behaviour -> so no change due to the Audio renderer
    With the 2nd BD (2nd attachment) & after selection via BD Menu to German subs, I had again French Audio & a Skandinavian Sub
    I used afterwards F9 and for audio French was identified. After selection of German, the German Audio Track was played.
    Seems like via F9, Audio/sub selection is performed correctly

    I did a 4th run, selecting as Audio-Renderer the DirectSound Denon AVR (using directly DirectSound Denon AVR didn't worked -> see file 3)
    There again no change in behaviour
    For the last movie I used again F9, after French language & Skandinavian Subs occured
    Both were correctly identified by MP and I was able to switch them to German/German (should be at the end of the 4th log)


    Cheers
     
    Last edited:

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    I experienced desync between Audio & Video during Anime playback (AAC audio, handled via ffdshow) while using the MP Audio Renderer
    Seems like this was the reason ages ago to stick to the default
    This is probably caused by wrong configuration again. If you use MPAR, you should untick "auto A/V sync correction" in the LAV audio codec settings. MPAR does the sync correction. If you enable sync correction in both LAV and MPAR, they "fight" eachother, and the result will be loss of synchronisation.

    Btw: I switched back to Default DirectSound Device
    Did you also disable LAV bit-streaming as instructed?
     

    yhoogi

    MP Donator
  • Premium Supporter
  • March 9, 2008
    599
    47
    Home Country
    Germany Germany
    1)
    Thanks for the clarification on potential clash between LAV & MP renderer, will check it.

    2)
    Nope, I didn't as I was using my AVR who can handle bitstreams
    & this shall be fundamentally possible.

    Btw: the statement that Direct Sound is for analog output is not true. Direct Sound routes the Audio to the designated playing device
    either selected via Windows (DirectSound) or in MP (DirectSound DENON AVR,..)

    For the above 4 logs, output was routed via HDMI and is digital.
    If bitstreaming is performed DirectSound ensures that it is routed untouched

    If these elements are not checked in LAV TrueHD signals are not routed to the receiver

    For me the big question is more why selection via F9 works and selection via BD menu not


    Cheers,
     

    Users who are viewing this thread

    Top Bottom