[Finished] MP1-4777 Additional info for video and audio (3 Viewers)

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    I have changed it by :

    C#:
    if (MediaInfo != null && m_speedRate == 5000 && MediaInfo.BestVideoStream.FrameRate == 24)

    But i'm not sure if it's ok because, we can have multiple video stream (i suppose that all should be at the same framerate but maybe not)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    I don't think i'm on right way lol, better is, if you can try to merge the above branch and see if it's doable :)
    There is change in mediaportal.cs too and i'm not sure where to put :
    MediaInfo = new MediaInfoWrapper(strFile); :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    If i change in g_player by adding back :

    C#:
    public static MediaInfoWrapper mediaInfo = null

    After, i change :

    C#:
    var mediaInfo = new MediaInfoWrapper(strFile);
    to
    mediaInfo = new MediaInfoWrapper(strFile);

    Then i can use now (in mediaportal.cs) :

    C#:
    if (g_Player.mediaInfo != null && g_Player.mediaInfo.BestVideoStream.FrameRate == 24)
     
    Last edited:

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    if (g_Player.mediaInfo != null && g_Player.mediaInfo.BestVideoStream.FrameRate == 24)

    What is the BestVideoStream? I think we need the" currentstream".FrameRate for calculate the right frame rate for slow down.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Need @yartat to confirm, i have take reference of other part of code, but i agree with you, it's surely not the right method to take or maybe if it is, that need to be renamed to currentstream..... :)
     

    yartat

    Portal Pro
    October 1, 2007
    71
    115
    Kjiv, Ukraine
    Home Country
    Ukraine Ukraine
    Wow, you are one who wakes early. I like to sleep a long time ;)
    @regeszter are right we need to use currentstream.
    C#:
    var stream = CurrentVideoStream;
    if (m_speedRate == 5000 && stream != null && stream.FrameRate == 24)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Wow, you are one who wakes early. I like to sleep a long time ;)
    @regeszter are right we need to use currentstream.
    C#:
    var stream = CurrentVideoStream;
    if (m_speedRate == 5000 && stream != null && stream.FrameRate == 24)

    Yep but FrameRate are not available it seems :)

    upload_2016-3-5_10-47-17.png


    But for MediaPortal.cs how to handle it ? (it's not ok : https://forum.team-mediaportal.com/...or-video-and-audio.133856/page-3#post-1177498 ofc we need to use CurrentVideoStream too but need FrameRate to be implemented)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    And for ex : CurrentVideoStream in RTSPPlayer is not implemented :

    C#:
        public override int CurrentVideoStream
        {
          get { throw new NotImplementedException(); }
          set { throw new NotImplementedException(); }
        }

    So above code will not work, i think we should expose current mediainfo somewhere that can be used like i'm trying in
    https://forum.team-mediaportal.com/...or-video-and-audio.133856/page-3#post-1177498
     

    yartat

    Portal Pro
    October 1, 2007
    71
    115
    Kjiv, Ukraine
    Home Country
    Ukraine Ukraine
    But for MediaPortal.cs how to handle it ? (it's not ok : https://forum.team-mediaportal.com/...or-video-and-audio.133856/page-3#post-1177498 ofc we need to use CurrentVideoStream too but need FrameRate to be implemented)
    Sorry, CurrentVideo property, of course. Not CurrentVideoStream[DOUBLEPOST=1457173595][/DOUBLEPOST]
    And for ex : CurrentVideoStream in RTSPPlayer is not implemented
    I didn't find any usage of the RTSPPlayer in the Mediaportal project. It doesn't used in the PlayerFactory, it doesn't have any instancing in other parts (plugin, tests)
     

    Users who are viewing this thread

    Top Bottom