Node-Media-Server icon indicating copy to clipboard operation
Node-Media-Server copied to clipboard

Cannot GET /live/STREAM_NAME/index.m3u8

Open danialfarooq opened this issue 7 years ago • 10 comments

I am trying to play my MP4 file in HLS on local host. I start the server with "node app.js" and then enter "ffmpeg -re -i input.mp4 -c copy -f flv http://localhost:8000/live/STREAM_NAME/index.m3u8"

When trying to view the HLS stream on http://localhost:8000/live/STREAM_NAME/index.m3u8"_ on chrome browser I get the error Cannot GET /live/STREAM_NAME/index.m3u8. Any help please, I have been stuck on this for a while.

danialfarooq avatar Jul 23 '18 15:07 danialfarooq

I've met same issue. In my case, I've configured a task as recommanded code snippet in config.trans

{
        app: 'live',
        ac: 'aac',
        hls: true,
        hlsFlags: '[hls_time=2:hls_list_size=3:hls_flags=delete_segments]',
        dash: true,
        dashFlags: '[f=dash:window_size=3:extra_window_size=5]'
 }

Then, I push stream to rtmp://localhost/live/1, the RTMP stream works fine, while I cannot access http://localhost/live/1/index.m3u8, I've tried the urls like http://localhost:8000/live/1/index.m3u8 and http://localhost/media/live/1/index.m3u8 (I've debugged into the node_trans_session.js and got the ./media/live/ path...), they did not work neither.

I wanna know how to achieve hls stream use this repo.

lanbin45 avatar Aug 03 '18 03:08 lanbin45

#120

illuspas avatar Aug 03 '18 07:08 illuspas

I have face this issue also, waiting for someone help..T_T

nirvanaonne avatar Sep 28 '18 07:09 nirvanaonne

Are there files in .\media\live\STREAM_NAM? If not, maybe the ffmpeg.exe is the problem. Check the folder where the ffmpeg.exe in, there are two dll zip file, unzip it.

leeyihua avatar Oct 10 '18 08:10 leeyihua

Duplicate of #108 and probably #120 too.

johan44co avatar Oct 14 '18 01:10 johan44co

Same problem here

FilipLukac avatar Nov 12 '18 12:11 FilipLukac

Duplicate of #108 and probably #120 too.

Dude it's in fucking chinese

Wengiel31 avatar Nov 20 '19 08:11 Wengiel31

Same issue dash,hls not working on aws instance , but mp4 copy saved on media folder. Any idea why this issue, It's working on my local machine.

salomon-thomas avatar Apr 18 '20 07:04 salomon-thomas

Any update on this issue? It seems like it doesn't even serve the m3u8 files. I've tried explicitly exposing the directory with express, and it doesn't work as well.

vonuyvicoo avatar Jan 19 '25 01:01 vonuyvicoo

您好,您的邮件我已收到~~我会及时查看的  (^__^)

lanbin45 avatar Jan 19 '25 01:01 lanbin45