[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


    Write your reply...

    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
    242
    • Sticky
    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
    505
    • Sticky
    Upgrade install on MP 1.36 x64 proceeded without issue, everything I have tried so far is working and looking very good. Many Thanks(y):)
    Upgrade install on MP 1.36 x64 proceeded without issue, everything I have tried so far is working and looking very good. Many...
    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
    470
    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
    2K
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the Requirements and you've filled in your System Specs. Have a look at our MediaPortal Wiki! Maybe the solution is already there. Have a look at our Jira (Bug and Issue Tracker)and the threads in this section, maybe...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Before you create this bug report: Make sure that your system (Windows, codecs and drivers) is up to date, matching the...
    Replies
    0
    Views
    309
    Top Bottom