How do you get H264 / HLS / M3U8 streams to play?

m_listed

Getting the hang of it
Joined
Jun 11, 2016
Messages
176
Reaction score
57
I've been interested in getting Blue Iris streams directly on desktop instead of having to use the mobile app for smooth playback. The solution seems to be HLS (HTTP Live Streaming) (I have a Mac). But when I use the /h264/cameraName/temp.m3u8 or temp.ts or temp.h264 streams, none of these seems to function.

The .m3u8 file loads only the initial picture after 15 seconds of waiting for the page to load, and then never plays any further frames. (Blue Iris tells me this connection is getting 0.5 fps or so for some reason, but I'm not getting even those frames).

The .ts file never even loads the initial frame, just sits at "Loading"

The .h264 file starts downloading something at a high rate through the browser. Trying to open this link through VLC instead runs into Blue Iris's HTML-based authentication page and, of course, VLC can't open it.

Has anyone gotten any of these streams to work? I'm pretty sure the iPhone app uses HLS and that plays perfectly well for me.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,901
Reaction score
21,270
try /h264/cam1 in vlc...where cam1 is the camera shortname
 

m_listed

Getting the hang of it
Joined
Jun 11, 2016
Messages
176
Reaction score
57
try /h264/cam1 in vlc...where cam1 is the camera shortname
That didn't work. I disabled the Blue Iris authentication, and the .ts file started working with VLC (but it would play for 3 seconds, pause for 2 seconds, and then play again for 3 seconds, and so on...). However, I obviously can't disable authentication.

I need the .m3u8 file to work so I can authenticate through the browser and then play it through the browser like other .m3u8 files, since you can't sign into Blue Iris with VLC, and you can't play .ts and .h264 with the browser.
 

fenderman

Staff member
Joined
Mar 9, 2014
Messages
36,901
Reaction score
21,270
That didn't work. I disabled the Blue Iris authentication, and the .ts file started working with VLC (but it would play for 3 seconds, pause for 2 seconds, and then play again for 3 seconds, and so on...). However, I obviously can't disable authentication.

I need the .m3u8 file to work so I can authenticate through the browser and then play it through the browser like other .m3u8 files, since you can't sign into Blue Iris with VLC, and you can't play .ts and .h264 with the browser.
You can authenticate in VLC just like you can for any ip camera..you simply need the correct url...it may have been posted somewhere at some point....I would simply email support..
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,674
Reaction score
14,020
Location
USA

m_listed

Getting the hang of it
Joined
Jun 11, 2016
Messages
176
Reaction score
57
Check out my custom BI web pages here: https://www.ipcamtalk.com/showthread.php/93-I-made-a-better-remote-live-view-page

There is a page in there called livestream.htm which will open the HLS stream for any camera, in any modern browser. You can use it like this: http://127.0.0.1/livestream.htm?cam=index

Swap "index" for any other camera ID if you like.
I actually am an avid user of your UI2, thank you for it! But that page you suggested just gives me the loading symbol and never loads anything. That was actually why I made this thread; I tried the HLS option from UI2 first, but it doesn't load the stream in any browser, and neither does the livestream.htm link. I'm not sure how to debug it.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,674
Reaction score
14,020
Location
USA
Something definitely sounds defective then. I could take a look at it if you have enough upload speed and don't mind PMing me a temporary user name and password + URL to use. HLS streaming is fairly easy to debug since it just uses ordinary HTTP requests that are easily traced. If BI is returning an error message or something I should be able to tell.
 
Top