TvPlugin: Preferred audio stream setting (2 Viewers)

gemx

Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Just added a "preferred audio stream setting" for the setup plugin.
    Now the plugin has a config form (right click on MyTv plugin under "Plugins")
    You can configure to "prefer AC3" and all languages that you prefer (hit the "..." button to change the languages).
    The logic how the stream is choosen is the following:
    - cycle to all available audio streams
    - select the one which language is in the selected languages
    - if preferAC3 is selected then find a stream were the language matches and the type is AC3
    - If the language does not match anywhere see if preferAC3 is selected. If so choose the AC3 stream
    For example:

    1. mp3: ger
    2. mp3:
    3. ac3:

    if you have selected "language=ger" and "prefer AC3" stream number 1 would be chosen.
    That means language is always preferred over AC3 in this case.
    1. mp3: ger
    2. mp3:
    3. ac3: ger
    In this example stream 3 would be choosen.
    So please think about this before writing a bug report.
    There is also some log output so be sure to post the mediaportal.log file if you encounter bugs.
    The index in the logs is always 0 based.
     

    Hemulen

    Portal Member
    January 1, 2007
    15
    0
    54
    Home Country
    Sweden Sweden
    Thanks! This is what I've been waiting for!From wich build is it "in the box"?
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    The big Q is .... does it also work for multi seat freaks like me ?

    :)

    Anyways, great work.

    /Gibman
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Hemulen:
    If you now download the latest rev you have it ;)
    gibman:
    It should work but haven't tested.
     

    MPUserFromGER

    MP Donator
  • Premium Supporter
  • July 31, 2006
    403
    3
    Germany
    Home Country
    Germany Germany
    Thanks gemx, it works great on my single seat setup.
    I will mark it as implemented in the improvement suggestions section.
     

    hirscho

    Portal Pro
    December 24, 2006
    186
    20
    Home Country
    Germany Germany
    Hi gemx,
    thanks a lot for this feature. It was really the only thing missing for me to totally change from TVEngine V2 to TV3. During testing I detected one issue:

    I have checked the option prefer ac3 in the TV plugin

    1. I start the TV engine and directly call a channel with ac3 audio stream --> ac3 audio stream is selected
    2. I change to a channel without ac3 audio stream --> Of course mp2 stream is selected
    3. Change back to channel with ac3 audio stream --> Only the mp2 stream is selected
    4. Change to another channel with ac3 stream --> ac3 audio stream is selected

    Can you have a look at this behavior? I have included my Log-Files.
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Not working in multiseat mode.
    using latest SVNs of today.

    The plugin is configged to

    dan
    prefer ac3.

    The client/server logs show when I tune to a channel with multiple audio pids avail.

    I have attached 2 log scenarios.

    1) "choosing mpeg1 language"
    This is when tuning "Playhouse Disney" on the "viasat nordic" provider.
    When I hit F9 (contex menu) I get to select swedish, norwegian and danish.
    Auto default selection (danish) does not work, swedish is being played.
    Also manual selection from the F9 audio selection context does not make any difference either. Swedish is still being heard.

    2) "choosing ac3 language".
    This is when tuning "Tv1000" on the "viasat nordic" provider.
    Here I have the same mpeg1 soundtracks avail. to choose from.
    The last track is AC3.
    The same problems appear as in scenario 1.

    I will post the server logs later :)

    Client logs attached-

    PS; I just tested it on the server in singleseat setup and it isn't working there either.

    Might it be a problem with the provider ?

    /Gibman
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    hirscho:
    Already noticed that problem but haven't found a solution yet.
    It's a problem in TsFileSource filter. Sometimes after a channel change the filter needs some time to recognize all available streams but the request is sent right after switching so TsFileSource thinks the audio stream is not there and so doesn't switch it
     

    MPUserFromGER

    MP Donator
  • Premium Supporter
  • July 31, 2006
    403
    3
    Germany
    Home Country
    Germany Germany
    Hi gemx,

    any update on that issue?
    I am also observing it and even more strange, sometime the audio is completely stuttering after switching the channel. So it seems that the "too early" switching leads to a complete hang sometimes...
     

    Users who are viewing this thread

    Top Bottom