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

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,523
    10,466
    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,523
    10,466
    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,523
    10,466
    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,523
    10,466
    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,523
    10,466
    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

    This is for the tvserver, the iptv part. It used to only support m3u files containing all the channels, but now you can use a m3u8 too. Usually you get an m3u8 from your iptv provider, but there are also some that can be found on the internet
    This is for the tvserver, the iptv part. It used to only support m3u files containing all the channels, but now you can use a m3u8...
    Hi! I read about [MP1-5236] - Add support for m3u8 files, but I can't find info on how to use this. So, where and how can I use...
    Replies
    1
    Views
    953
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    We have just released MediaPortal 1.37 - Willow x86 and x64 version. Highlights of this release Bugfixes: [MP1-5232] - GPU...
    Replies
    4
    Views
    2K
    Well, all that remains is to find someone who will add this render if it is a render.
    Well, all that remains is to find someone who will add this render if it is a render.
    Are there plans to support other video renderers? MadVR got added a while ago, but this a 'hardcoded' selection in the...
    Replies
    23
    Views
    2K
    • Sticky
    yes that is indeed what I did in that ticket. It may already be working without updating those plugins because most of it was not relevant to the plugin itself (test, some leftover unused parts etc).
    yes that is indeed what I did in that ticket. It may already be working without updating those plugins because most of it was not...
    We have just released MediaPortal 1.38 - Tatiana & Leo x86 and x64 version. Highlights of this release Bugfixes: New...
    Replies
    37
    Views
    5K
    MP1 MP2 MP2 - V2.3 EPG has stopped DE
    The only configuration that is certain to work is when the MP client and MP server are from the same release. It is sometimes possible to use MP clients from a release that is different to the MP server, but whether it works depends on the specific changes that were made between the two releases. -- from CyberSimian in the UK
    The only configuration that is certain to work is when the MP client and MP server are from the same release. It is sometimes...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Replies
    10
    Views
    4K
    Top Bottom