Cant play live stream(m3u8) using hls.js, flashls, jw player

I am trying to livestream a .m3u8 using these web video player but can’t get them to work. What am I missing? This link is working fine in vlc on both PC and Android. Link:http://mumsite.cdnsrv.jio.com/jiotv.live.cdn.jio.com/Aaj_Tak/Aaj_Tak_800.m3u8 (It’s an Indian news channel) I tried it on: www.hlsplayer.net/ video-dev.github.io/hls.js/demo/ www.flashls.org/latest/examples/chromeless/ www.flashls.org/latest/examples/osmf/GrindPlayer.html www.flashls.org/latest/examples/osmf/StrobeMediaPlayback.html What am I missing? Is there … Read more

FFmpeg RTSP to HLS Conversion is causing random freezes and errors

So, I have a command that converts RTSP to HLS for me: sudo ffmpeg -fflags nobuffer -rtsp_transport udp -i rtsp://admin:’password’@10.2.10.201/video1 -vsync 0 -copyts -vcodec copy -movflags frag_keyframe+empty_moov -an -hls_flags delete_segments+append_list -f segment -segment_list_flags live -segment_time 3 -segment_list_size 10 -segment_format mpegts -segment_list /mnt/hls2/stream2.m3u8 -segment_list_type m3u8 /mnt/hls2/%d.ts It seems to work just fine, but in the console, … Read more

Reducing live stream latency while playing HLS input with FFplay

I wish to play a live stream (HLS) with lowest latency possible, preferably with FFplay/FFmpeg. Currently testing with the following stream: https://dwstream4-lh.akamaihd.net/i/dwstream4_live@131329/master.m3u8 If I try playing it directly using FFplay with following options, latency is over 10 seconds as compared to the second method below. ffplay -probesize 32 -sync ext “https://dwstream4-lh.akamaihd.net/i/dwstream4_live@131329/master.m3u8” -vst v:x Here x … Read more

FFMPEG: RawVideoPipeSource and RawAudioPipeSource: Adding live audio to live video and providing via HLS

I want to provide a HLS live stream which displays the current time (clock, video) and e.g. every complete minute the time as a speech (audio). The following simplification works already (I hope everybody can read the syntax, I use FFMPEGCore. If neccessary, I can provide the FFMPEG statement): FFMpegArgumentProcessor processor = FFMpegArguments .FromFileInput(“background.wav”, true, … Read more

Get browser rendered frame timestamp of video that is streamed via RTMP to an NGINX server and streamed via HLS to a browser

Setup Server A OS: Ubuntu 20.04 Streaming out.mp4 with ffmpeg to rtmp://1.1.1.2/show/test out.mp4 10 Total Frames @ 1FPS with each frame with a sequential number 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 out.mp4 is set to looping ffmpeg command: ffmpeg -re -stream_loop -1 -i out.mp4 -c:v libx264 -preset veryfast -b:v 6000k -maxrate … Read more

HLS video become corrupted if using FFmpeg to download it

I was trying to download an HLS video (.m3u8) using FFmpeg. The video was fine when I open the .m3u8 file directly VLC, but the .mp4 file downloaded using FFmpeg was totally broken (the frames and sound were missing every other second). There’re some warnings printed to the terminal while downloading: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55df899ad5c0] DTS … Read more

Convert HTTP HLS with absolute URLs to HTTPS

I am having an HTTP HLS stream with absolute URLs inside and I want to convert all HTTP to HTTPS. So this is an example for my input HLS stream: $ curl http://test.net/live/hls_channel/live_tv.m3u8 #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=673025,CODECS=”avc1.4d401f,mp4a.40.2″,RESOLUTION=640×360 http://test.net/hls/live/hls_channel/05.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1081720,CODECS=”avc1.64001f,mp4a.40.2″,RESOLUTION=720×576 http://test.net/hls/live/hls_channel/04.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2512155,CODECS=”avc1.640029,mp4a.40.2″,RESOLUTION=1280×720 http://test.net/hls/live/hls_channel/03.m3u8 #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=5270851,CODECS=”avc1.640028,mp4a.40.2″,RESOLUTION=1920×1080 http://test.net/hls/live/hls_channel/01.m3u8 In the end, I would like to have something like this: $ … Read more

FFMPEG: RawVideoPipeSource and RawAudioPipeSource: Adding live audio to live video and providing via HLS

I want to provide a HLS live stream which displays the current time (clock, video) and e.g. every complete minute the time as a speech (audio). The following simplification works already (I hope everybody can read the syntax, I use FFMPEGCore. If neccessary, I can provide the FFMPEG statement): FFMpegArgumentProcessor processor = FFMpegArguments .FromFileInput(“background.wav”, true, … Read more

HLS packing with loudnorm audio filter in FFMPEG

What does a command look like that does HLS packing and loudness normalization in ffmpeg? I have a command to do packing: ffmpeg -i $filepath -filter_complex “[0:v]split=2[v1][v2]; [v1]scale=w=854:h=854[v1out]; [v2]scale=w=640:h=640[v2out]” -map [v1out] -c:v:0 libx265 -b:v:0 3M -maxrate:v:0 3M -minrate:v:0 3M -bufsize:v:0 3M -g 48 -sc_threshold 0 -keyint_min 48 -map [v2out] -c:v:1 libx265 -b:v:1 1M -maxrate:v:1 1M … Read more