Jump to content

HLS link problem with EMBY server on Windows


Recommended Posts

Posted

I installed EMBY on my Windows PC and wanting to retrieve the HLS (M3u8) link to do live streaming on VLC it does not work and when I copy the link to firefox I have this message:
Access token is invalid or expired.

the link I type is: http://@IP-Server:8096/emby/videos/5/master.m3u8

 

This log file from my server 

embyserver.txt

Posted

Hello Fares1611,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:


Thank you.

Emby Team

GrimReaper
Posted

Quoted from 'Report malicious' (which is not correct place to post your replies, @Fares1611) :

Quote

I had done this before by going to VLC and it worked, I got the HLS link via "inspection tools" by putting a m3u8 filter, but now can't access the stream can you help me?

 

Posted
Quote

 I got the HLS link via "inspection tools" by putting a m3u8 filter, but now can't access the stream can you help me?

Can you please describe this in more detail? Again, you can't take the stream urls from the browser and then go use them somewhere else. You need to use the Emby API.

Posted

Sorry I hit the wrong button just before, to be clearer, before I managed to retrieve the HLS link of a video from my library thanks to the "development tool" of my browser then I put an m3u8 filter and I retrieved the HLS link as can be seen below:

 

image.png.c8a4e94339664243bebd1e24b92c3502.png


And now I can't

Please help me

Posted

I cannot retrieve the stream of my video to view it on VLC, for example.  While I was getting there before I got an error.

pwhodges
Posted
1 hour ago, Fares1611 said:

I cannot retrieve the stream of my video to view it on VLC, for example.

On 11/12/2022 at 18:49, Luke said:

Again, you can't take the stream urls from the browser and then go use them somewhere else.

It seems that your experience is exactly as expected.

Paul

Happy2Play
Posted

But the transcode session is deleted when the session is done.  So at most if it worked would be while it still had a session in the browser.  But the conditions that were playing in the browser would be limited vs direct playing in VLC. 

Posted

I understand but it doesn't even work in VLC, that's why someone has an idea how to get the direct HLS stream of a video from my library?

pwhodges
Posted

Maybe by using DLNA?

Paul

Posted
1 hour ago, Fares1611 said:

I understand but it doesn't even work in VLC, that's why someone has an idea how to get the direct HLS stream of a video from my library?

  • Emby uses HLS for streaming - but only in the context of a PlaySession, and that in turn in the context of a client session
  • Emby is not a plain HLS server and cannot be used as such
    By "plain HLS server", I mean a server that provides a list of HLS stream URLs, pointing to master.m3u playlists which can be accessed directly 

If you want a simple HLS server, then Emby is not the right choice. The power of Emby is the ability to adapt to whatever kind of client you have, and provide the "right" kind of stream for that client and its configuration and the specific request that is being made (e.g. which audio/subtitle stream, which bandwidth, etc).

For those reasons, there do not exist any "universal" HLS URLs you could access. 

As @Luke had already pointed out, you need to use the Emby server API:

  • You need to log in to the server and establish a session
  • You need to provide a device profile which specifies the capabilities of the client from which you are logging in (and on which you want to playback)
  • Then you need to find the item you want to play...
  • ...and retrieve media sources for it (GetPlaybackInfo)
  • In the response of the latter, you will find valid streaming URLs for this specific case
    these won't be permanently valid though, just valid for this specific client session and playback request
  • During playback, you should also regularly inform the server about your state (playing, paused) and also when you have stopped playback (so the server can release related resources)
Posted

Thank you very much for your answer it helps me a lot, I succeeded with the use of API request it works on PC / Tablet and Android Phone via the browser but it does not work on Iphone I tried to add options but it doesn't work can you help me. The link I use is:

http://my_ip_address:8096/videos/(id_of_my_video)/stream.mp4?Static=true&api_key=(my_api_key)

  • 4 weeks later...
Posted
On 12/17/2022 at 3:01 PM, Fares1611 said:

Thank you very much for your answer it helps me a lot, I succeeded with the use of API request it works on PC / Tablet and Android Phone via the browser but it does not work on Iphone I tried to add options but it doesn't work can you help me. The link I use is:

http://my_ip_address:8096/videos/(id_of_my_video)/stream.mp4?Static=true&api_key=(my_api_key)

Hi, what does "does not work" mean?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...