TV Client audio language preference (1 Viewer)

findftp

MP Donator
  • Premium Supporter
  • September 20, 2011
    184
    35
    Nootdorp
    Home Country
    Netherlands Netherlands
    Hello,

    Before I post a bug (with all necessary), I would like to know if the TV client should be able to give different languages different priorities.
    I've attached a picture of the client where at the right side you can put languages. You can also move them up and down which should indicate that they would have different priorities. However, I don't see those 'priorities' mentioned at http://wiki.team-mediaportal.com/MediaPortal/Configuration/Television/TVClient. Obviously, moving them up and down should indicate that it means different priority.

    I noticed that when enabled 'Prefer AC-3 sound' language priorities are being ignored (with 'Prefer audiotype over language' turned off!)

    Can someone confirm (or rather deny) that this is correct behavior? If not, I will fill in a correct bug report.

    Thanks for helping.
     

    Attachments

    • TVAudio.png
      TVAudio.png
      22.3 KB

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi findftp

    If you have "prefer AC-3" sound ticked and "prefer audiotype over language unticked" then my understanding is that the stream selection logic should be as follows:

    1. Are there any streams with languages matching any preferred language? If "yes", discard streams that don't match preferred languages and go to step 2. If "no", go to step 3.
    2. Prioritise the remaing streams according to language priority and select the stream(s) with the highest priority available. If there is only one stream for the highest prioritised language then choose that stream. If there are mulitple streams with the same same highest prioritised language then discard the streams for the other languages and go to step 3.
    3. Prioritise the remaining streams by stream type - if the stream is AC3/DD then it is higher priority than AAC and MPEG streams. If there is only one AC3/DD stream then choose that stream. If there are multiple AC3/DD streams then choose the first one. If there are no AC3/DD streams then just choose the first [non AC3/DD] stream.

    Here is an [unrealistic] example. Say you have a channel with the following streams:
    1. deu/AC3
    2. deu/AC3
    3. eng/AC3
    4. ita/AC3
    5. deu/MPEG
    6. eng/MPEG
    7. ita/MPEG

    Language priorities are:
    1. fre
    2. deu
    3. eng

    Prefer AC-3 is ticked.
    Prefer audiotype over language is unticked.

    Now we apply the logic:
    - In step 1 we discard streams 4 and 7 since they don't match any preferred language.
    - In step 2 we discard streams 3 and 6 since they don't match the highest priority language which is available (deu).
    - In step 3 we first discard stream 5 since we prefer AC3/DD audio, then we select stream 1 as it is the first AC3/DD stream.

    A little tricky but hopefully you can follow that logic. If the description matches what you expected but you don't see that happening in practise then please post logs and describe what you expected to happen.

    mm
     

    findftp

    MP Donator
  • Premium Supporter
  • September 20, 2011
    184
    35
    Nootdorp
    Home Country
    Netherlands Netherlands
    Hi mm1352000,

    Thank you for your clear answer. I also thought it should work the way you explain, however, it is not happening.

    First situation (MediaPortalLogs_03_01_12__17_54.zip, settings1.png, channel1-1.png and channel1-2.png)
    Prefer AC3 is ticked, language over type is unticked.

    Language preference:
    1. nld
    2. dut
    3. eng

    viewing channel 1-1.png:
    dut MPEG1
    eng AC3
    -> eng AC3 is automatically selected while it shouldn't be.

    viewing channel 1-2.png
    ger MPEG1
    eng MPEG1
    fra MPEG1
    ita MPEG1
    spa MPEG1
    -> eng MPEG1 is correctly selected (probably because nld and dut are unavailable?)


    ------------------------------------------------------------

    Second situation (MediaPortalLogs_03_01_12__17_59.zip, settings2.png, channel2-1.png and channel2-2.png)
    Prefer AC3 is unticked, language over type is unticked.
    Language preference:

    1. nld
    2. dut
    3. eng

    viewing channel 2_1.png:
    dut MPEG1
    eng AC3
    ->dut MPEG1 is correctly selected.


    viewing channel 2-2.png
    ger MPEG1
    eng MPEG1
    fra MPEG1
    ita MPEG1
    spa MPEG1
    -> eng MPEG1 is correctly selected



    It seems that 'prefer audiotype over language' is working while it is unticked.


    system specs:
    MediaPortal Version: 1.2.2
    MediaPortal Skin: Avalon
    Windows Version: Windows 7 x86 SP1
    CPU Type: AMD A4-3400, 2.7Ghz, FM1
    HDD: OCZ SSD 2.5", 60GB, SATA, Vertex 2
    Memory: 2x Kingston 2GB, 1333MHz, DDR3, Non-ECC, CL9
    Motherboard: Asus F1A75-M, AMD A75, FM1
    Video Card: AMD A4-3400, 2.7Ghz, FM1
    Video Card Driver: Catalyst Software Suite 11.12
    Sound Card: onboard (Realtek ALC892)
    Sound Card AC3:
    Sound Card Driver: VIA_AUDIO_V6018800
    1. TV Card: TBS 6981
    1. TV Card Type: DVB-S2
    1. TV Card Driver: 2.0.1.3
    2. TV Card:
    2. TV Card Type:
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: Cyberlink PDVD 11
    MPEG2 Audio Codec: LAV Audio codec 0.34
    h.264 Video Codec: Cyberlink PDVD 11
    Satelite/CableTV Provider:
    HTPC Case:
    Cooling:
    Power Supply:
    Remote: MCE
    TV: Philips 40PFL7605h
    TV - HTPC Connection: HDMI
     

    Attachments

    • settings1.png
      settings1.png
      78 KB
    • channel1-1.png
      channel1-1.png
      337 KB
    • channel1-2.png
      channel1-2.png
      327 KB
    • settings2.png
      settings2.png
      81.1 KB
    • channel2-1.png
      channel2-1.png
      342.3 KB
    • channel2-2.png
      channel2-2.png
      206.4 KB

    findftp

    MP Donator
  • Premium Supporter
  • September 20, 2011
    184
    35
    Nootdorp
    Home Country
    Netherlands Netherlands
    Anyone please?
    Do I need to add some extra information to be more helpfull?
    Can somebody point me in the right direction of the source code? I'm willing to read it and find the 'error' myself.
     

    findftp

    MP Donator
  • Premium Supporter
  • September 20, 2011
    184
    35
    Nootdorp
    Home Country
    Netherlands Netherlands
    In MePo 1.2.3 this bug is still present.
    'Prefer AC3' ignores the language preference.
    At the other hand, I much more like to see 1.3.0 to be finished than solving this problem.
     

    Users who are viewing this thread

    Top Bottom