I
I
impressive172021-06-26 16:15:32
Nginx
impressive17, 2021-06-26 16:15:32

.m3u8 streaming not working?

Hey!
I want to set up hls streaming
I made a manifest from mp4 using ffmpeg -i sample.mp4 -profile:v baseline -level 3.0 -s 840x560 -start_number 0 -hls_list_size 0 -f hls sample.m3u8 Installed
nginx, taught me how to give m3u8 file by link
I checked the stream on this resource (and locally in the tag <video>), but nothing works
Question: what problems can there be?
On my server, in the same directory, there are m3u8 and ts files.
The manifest looks like this

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:4
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:4.166667,
sample0.ts
#EXTINF:3.833333,
sample1.ts
#EXTINF:4.166667,
sample2.ts
#EXTINF:2.833333,
sample3.ts
#EXTINF:2.666667,
sample4.ts
#EXT-X-ENDLIST

In the browser network, you can see that the manifest is coming, but the ts files are not coming

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
impressive17, 2021-06-26
@impressive17

add_header Access-Control-Allow-Origin *;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question