Different video and audio streams.

Discussion in 'OnlineVideos' started by Juppe, March 18, 2018.

  1. Juppe

    Juppe Portal Pro

    Joined:
    November 17, 2006
    Messages:
    292
    Likes Received:
    15
    Ratings:
    +20 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    I'm developing a new plugin for a site that returns two/three different streams. One Video, one audio and sometimes one for subtitles. Is it possible to make this work with OnlineVideos?
    And if it is, how shall I do to get it to work?


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Juppe

    Juppe Portal Pro

    Joined:
    November 17, 2006
    Messages:
    292
    Likes Received:
    15
    Ratings:
    +20 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    I've investigated it a bit more and it seems that it is a hls(HTTP Live Stream) that I can start with a m3u8 playlist. Is this supported in Online Videos or is there any workaround to get this to work?
     
  4. Juppe

    Juppe Portal Pro

    Joined:
    November 17, 2006
    Messages:
    292
    Likes Received:
    15
    Ratings:
    +20 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    I did find the helper class hlshelper and hope that it will work for me to use that class.
     
  5. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,769
    Likes Received:
    735
    Location:
    Nuenen
    Ratings:
    +1,085 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    The results of that hlshelper could directy be used in onlinevideos, there are already some examples where that helper is used (but I guess you've found them already :) )

    But if that site returns them as separate audio and video streams, then I don't know if those can be merged into one which you can feed to the player.
    Same goes for subtitles although there may be other options to pass subs to the player. (I only have used the videoinfo property where you can put in the complete srt-file contents, so no experience with other methods...)
     
  6. Juppe

    Juppe Portal Pro

    Joined:
    November 17, 2006
    Messages:
    292
    Likes Received:
    15
    Ratings:
    +20 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    Thanks. I seems like the site returns separate audio and video. Is it possible to use that or do I have to do it in another way?
    Isn't there other places in MP that uses different streams for audio and video?
    If there are, couldn't Online Videos use that also?

    One other strange thing is that I only get playlists back all the time. I shall try to explain what I mean.
    I first get a playlist with URL:s to the audio, video and subtitle and when I use those URL:s I get new playlists with the same info but different URL:s and so on. Does anyone run in to this problem and know what to do?

    I can upload a playlist if that helps?
     
  7. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,769
    Likes Received:
    735
    Location:
    Nuenen
    Ratings:
    +1,085 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Hm, sounds a bit strange. Must say I never encountered anything like this in all the years maintaining onlinevideos
    Care to disclose the site? Or DM if appropriate, 'cause I'm getting a bit curious here :)
     
  8. Juppe

    Juppe Portal Pro

    Joined:
    November 17, 2006
    Messages:
    292
    Likes Received:
    15
    Ratings:
    +20 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    I think I've found out why I only get playlists all the time. It was me that didn't understand that I had to send cookies back to the site when I should get the streams. I havent tested it yet, but think it is right.
    The site I'm trying to get working is DPlay.se/dk/no.

    But there still another problem and that is that I will get one audio stream and one video stream, and I think there are segments, so not one stream of video, rather small pieces that must be put together. Both for the video and audio stream.

    Hope someone have a solution for this?

    I can add that I get them to work in VLC if I just put in the URL to the first playlist.
    I think that the containt in the streams are encrypted too, is there a way in Online videos to decrypt it or shall that be done in my plugin?
     
    Last edited: March 21, 2018
  9. Juppe

    Juppe Portal Pro

    Joined:
    November 17, 2006
    Messages:
    292
    Likes Received:
    15
    Ratings:
    +20 / 0
    Home Country:
    Sweden Sweden
    Show System Specs
    Here is an example of one of the playlist. Had to rename it from m3u8 -> txt
     

    Attached Files:

  10. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,769
    Likes Received:
    735
    Location:
    Nuenen
    Ratings:
    +1,085 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    that seems to be something you can feed to the player,,,
     
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!