UPnP / DLNA Media Server for MediaPortal 2 | Page 38

Discussion in 'UPnP / DLNA Media Server' started by McGoober, January 1, 2012.

  1. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    changes are pushed to github :) (at least for the TranscodingService)


     
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. MrTechno
    • Team MediaPortal

    MrTechno Development Group

    Joined:
    February 27, 2011
    Messages:
    1,256
    Likes Received:
    275
    Gender:
    Male
    Location:
    London
    Ratings:
    +515 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    • Like Like x 1
    • Thank You! Thank You! x 1
  4. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    Really Nice work! Maybe push it to the MainRepo as Version 5? So development can continue in this branch :)
    But I think we have to start thinking what happens with the older brnaches :whistle:
     
    • Agree Agree x 1
  5. henso
    • Team MediaPortal

    henso Development Group

    Joined:
    February 16, 2012
    Messages:
    1,874
    Likes Received:
    432
    Gender:
    Male
    Ratings:
    +667 / 0
    Home Country:
    Denmark Denmark
    I pushed support for this. I also made some changes to the MediaServer based on this that makes it support seeking better but I had to revert the code for invoking FFMPEG because I need the console output during transcoding. Maybe this should be moved to the FFMpegLib at some point?
     
    • Thank You! Thank You! x 1
  6. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    Thank you very much :)
    You changed the ResourceProvider. I reused some code of that, so could you explain a bit more why you changed it? What the problem was?
    Maybe this part could also be implemented in a more general way so that it can be reused?
    https://github.com/FreakyJ/MediaPor...Access/WSS/stream/BaseClasses/BaseSendData.cs
    https://github.com/FreakyJ/MediaPor...ceAccess/WSS/stream/Control/RetrieveStream.cs

    I know it is ugly to copy code, but I didn't know how to do it otherwise...

    I guess that is nor problem as long as you use the ffmpeg from FFMPeglib :) And you used:
    Code (Text):
    1. using (ServiceRegistration.Get<IImpersonationService>().CheckImpersonationFor(((ILocalFsResourceAccessor)data.TranscodeData.InputResourceAccessor).CanonicalLocalResourcePath))
    Perfect!! :sneaky:

    That is a great idea :) I pushed the latest changes to FFMPeg lib.
    I think it should be implemented in a general way so that the calling fucntion can receive the output? What do you think?
     
  7. henso
    • Team MediaPortal

    henso Development Group

    Joined:
    February 16, 2012
    Messages:
    1,874
    Likes Received:
    432
    Gender:
    Male
    Ratings:
    +667 / 0
    Home Country:
    Denmark Denmark
    I'm not sure I know what you mean. Could you clarify?

    Are you getting range requests from the clients connecting to MP2Ext.? My understanding is you request the starting point through the API?
    Some of the code will be similar but I don't have any ideas that make sense on how to share it.

    I think that the caller should be able to get console and error output in either string or binary form. There should also be a way to cancel a running process.
     
  8. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    I was talking about that file: https://github.com/MediaPortal/Medi...er/ResourceAccess/DlnaResourceAccessModule.cs
    And I was taking source code from there and used it in the files linked above.

    Yes I get the starting point from the Api, like start at Minute 40. But seeking and everything else is done by http. You just get a stream url which you can pass to VLC.
    This is what you get:
    You can put this into VLC and you get your stream, similar to DLNA.

    To sad, I had the same problem :(

    Totally agree!

    There was a todo if I remember correctly. MJGraf is very buss right now and I wanted him to do the changes at the core which are required for that... I was afraid to damage something because it seems to be a very sensitive part with a huge bunch of comments why something is like it is. He actually wrote that part.
     
  9. henso
    • Team MediaPortal

    henso Development Group

    Joined:
    February 16, 2012
    Messages:
    1,874
    Likes Received:
    432
    Gender:
    Male
    Ratings:
    +667 / 0
    Home Country:
    Denmark Denmark
    Well most of the changes were to support seeking while a file is being transcoded.
    That's not what it states in the wiki: http://wiki.team-mediaportal.com/1_...Remote_Access/MPExtended/Developers/Streaming
    You also get time range requests? I think you only get those over UPnP AV.
     
  10. MrTechno
    • Team MediaPortal

    MrTechno Development Group

    Joined:
    February 27, 2011
    Messages:
    1,256
    Likes Received:
    275
    Gender:
    Male
    Location:
    London
    Ratings:
    +515 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    @FreakyJ suggestion if you're short of time to work on both this and MPExtended. Since MediaServer lacks support for series / movies and some other views and I have a version that with the MIA rework branch how about I work on this? It will only be the hierarchical stuff, @henso has done great things with the DLNA profiling and transcoding that I hopefully won't need to modify.
     
    • Like Like x 2
  11. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    Yeah, I would love if you jump in :)
    And the good thing is: I can copy it later to adopt the MP2Extended branch to your MIA rework :)
     
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!