[Jira MP1-4730] MKV multiple video track support (1 Viewer)

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    upload_2015-12-15_19-32-42.png


    upload_2015-12-15_19-34-14.png


    It seems ok on my side :)

    Could you post a little sample ?
     

    Attachments

    • upload_2015-12-15_19-32-34.png
      upload_2015-12-15_19-32-34.png
      2.7 MB

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    It can be the regex expression that is maybe not correct if LAV is not in use :
    Name = "V: 2D [eng] (h264 high L4.1, yuv420p, 1920x1080) [default]"
    after regex it can :
    streamName = "2D [h264 high L4.1, yuv420p, 1920x1080]"

    The relevant part of code is :

    public override string VideoType(int iStream) in \mediaportal\Core\Player\VideoPlayerVMR7.cs
    and
    private void ShowVideoStreamsMenu() in \mediaportal\WindowPlugins\Common.GUIPlugins\Video\GUIVideoFullscreen.cs
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    No need log : (if language is und (undetermined) for video track, it seems the regex take default as name)
    Could you try to set language for video track ?

    upload_2015-12-16_0-52-33.png
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    I'm not really good with regex but the culprit part is there :
    public override string VideoType(int iStream)

    Code:
    if (resultLAVF.Success)
          // check for LAVF response format, e.g.:
          // S: Title [Lang] (Info) when only Language in stream -> answer is S: Lang -> start to detect if [lang] is present if not replace Lang by ""
          {
            string lang_or_title = resultLAVF.Groups[1].Value;
            string lang = resultLAVF.Groups[2].Value;
            string info = resultLAVF.Groups[3].Value;
            if (!string.IsNullOrEmpty(info))
            {
              if (!string.IsNullOrEmpty(lang))
              {
                streamName = "" + lang_or_title + " [" + info + "]";
              }
              else
              {
                streamName = info;
              }
            }
            else if (string.IsNullOrEmpty(info))
            {
              streamName = regex.Replace(streamName, "").Trim();
            }
          }
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Yep and related too :
    public override string VideoLanguage(int iStream)

    So what is the best result to get ? and after that need a good regex man lol
     

    Stéphane Lenclud

    Retired Team Member
  • Premium Supporter
  • April 29, 2013
    2,576
    1,294
    Home Country
    Germany Germany
    I can regex.
    So if the Language property is not present it assumes English so we don't get the bug.
    The Language property has to be present and set to undefined. I guess that makes sense for a video track without burn-in.
     

    Users who are viewing this thread

    Similar threads

    • Sticky
    All good now!!
    All good now!!
    We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
    Replies
    2
    Views
    968
    Maybe they only show the bits information for the x64 version and no bits information for the 32-bit version?
    Maybe they only show the bits information for the x64 version and no bits information for the 32-bit version?
    We have just released MediaPortal 1.34 - Dune x86 and x64 version. Highlights of this release Bugfixes: [MP1-5201] - Fix MPC-HC...
    Replies
    10
    Views
    4K
    I can't believe I missed the new feature, pixel shaders. :) Thankyou guys for all your work (y)
    I can't believe I missed the new feature, pixel shaders. :) Thankyou guys for all your work (y)
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    1
    Views
    2K
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core: Fix FrameGrabbing for EVR [MP1-5222] - TV Server: Fix ISO-8859-10/14 DVB text encodings [MP1-5224] - Fix Card "CancelTune" request Since Pre-Release : New: Since Pre-Release : Improvement / Rework...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    Replies
    0
    Views
    2K
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    2K
    Top Bottom