Question / Help Need some help with m3u8

hapishyguy

New Member
HI All,

First of all thanks for reading this post. I am new here. Infact I am new to twitch, OBS and Live Streaming etc.
I am trying to accomplish something here but didnt get any information anywhere regarding this so I thought to finally post a thread.

I have a system from some company where I can put a m3u8 url of a feed and it will play on the android boxes I have in only 1/4th of the screen. Something like an ad. Rest of the screen/UI on the box has other apps on it. Basically, the 1/4th of the UI can play m3u8 url. I have made a video of 60 seconds (as of now). Its in mp4 format. The system I have from the company do not accept any other format besides the m3u8. It do not take mp4 either. So what I need is to stream 60 seconds mp4 video in the m3u8 format. I thought that if I can stream that mp4 video through OBS to Twitch then I can get m3u8 link from Twitch and put that m3u8 link in the system and then that video can be played on the android boxes I have (the 1/4th part of the screen/UI). Atleast this is what I thought initially. So I downloaded OBS and installed in on my windows computer. It installed fine and ran fine. I have 8GB computer and will upgrade it to 16GB by next week. So OBS worked fine. Then I made an account on Twitch and connected it with OBS. Then I got that mp4 video that I have and put in OBS and did the livestream to Twitch. It worked. I tested it few times and it worked. Now the other part was to get m3u8 from Twitch. I searched many places online but I couldnt get a concrete workaround. There was one website where you put the twitch streaming site url eg twitch.tv/hapishyguy and it gives you an m3u8 url. You take very long link and put in VLC and it works. It plays in VLC. BUT when you stop the streaming and play it again the m3u8 url changes. So you have to grab a new one and put in VLC again. I am using VLC to test it. I havent put in the system I have. So this way to get the m3u8 link is not good for my purpose as it keeps changing.
Then I open the Twitch streaming page in developer options in the Chrome browser. My idea was I can somehow read it and get the m3u8 url but no luck. So this also did not work.

What I am trying to accomplish -> I want to run that m3u8 url in some system 24x7. So I need to have something where I can have constantly running stream(that 60 seconds video in loop). So, if I use OBS to stream then I have to have a separate computer to run OBS 24x7. I think it might not be a good solution for long run. Besides this, I am not even able to get the m3u8 link anywhere. I need to have a constant m3u8 running stream so that that video can run constantly 24x7 on all the android boxes I have.
SO I need to have something that can run 24x7 and can stream 24x7. Through that stream I can get m3u8 url running 24x7. I put that m3u8 url in my system and it can run 24x7 on all the android boxes I have.

I read somewhere here on OBS forums that nginx can be installed on VPS with the rtsp plugin installed. This will give rtsp url. I can put the video in loop and that 60 second video can play in loop all over again and again. I thought instead of installing it on VPS I can install it on pi4 at home and get rtsp url BUT I need m3u8 url only as the system I have dont take rtsp url either. It takes only m3u8 url. So this option will not work me either.

So, can anyone guide what should I do so that I can make loop of the 60 second video I have, run it 24x7 somewhere, get m3u8 url and put it in my system. Also when I stop the system and play it again (to add some content to the video) the m3u8 url do not change.

Any help will be appreciated. Thanks!
 

skyguychuck

New Member
It plays in VLC. BUT when you stop the streaming and play it again the m3u8 url changes. So you have to grab a new one and put in VLC again.

Hi. I'm curious to know if you ever found a resolution to the ever-changing m3u8 URL issue. I'm having the same issue. There are several live streams that I want to be able to monitor through VLC, but every time I stop the stream, the process starts all over again. Thanks.
 
Top