Questions tagged [hls]

HLS (HTTP Live Streaming) is an HTTP-based media streaming communications protocol

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

Rearranging the order of ts files in m3u8 causes them to get stuck during playback

I have one m3u8 file and several TS files. The following is the actual output of the m3u8 file. #EXTM3U #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-ALLOW-CACHE:YES #EXT-X-TARGETDURATION:5 #EXTINF:...
1
vote
0answers
9 views

mediastreamvalidator throws "Error Injecting Segment data"

mediastreamvalidator throws "Error Injecting Segment data" for fMP4+hevc+HLS file. here is the attached screenshot. How to fix it to make it playable ?
0
votes
0answers
11 views

HLS+fmp4 not working

fmp4 video file is readily playable when served to iOS and Android, but it is being served full media in a single go. So, In order to serve chunk-wise, used HLS. But unable to play on iOS and played ...
0
votes
0answers
40 views

Add timed ID3 metadata to HLS using ffmpeg

For interactive video, I want to add timed ID3 metadata (different metadata at different times in the video) using FFmpeg but I couldn't find anything related to it on the internet. I want to add ...
0
votes
0answers
6 views

unable to play hevc fmp4 videos on ios [migrated]

We have got to know, in order to serve hevc videos on iOS, we need to use HLS+fMP4 approach from the following link https://developer.apple.com/forums/thread/132291 When serving a HLS+fMP4+HEVC ...
0
votes
0answers
21 views

Has anybody ever gotten FFMPEG to work with HLS multi-layer live streaming on Akamai?

Has anybody ever gotten FFMPEG to work with HLS multi-layer live streaming on Akamai? Just a general inquiry as we can start a stream and it looks like its happy leaving ffmpeg but as far as we can ...
0
votes
1answer
11 views

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=...
0
votes
0answers
31 views

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 ...
0
votes
0answers
85 views

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 ...
0
votes
1answer
232 views

Generate HLS with H265 codec

I have been trying to generate a HLS stream encoded with h265 but with no success. I came across Generate hls stream using h265 codec but the solution given in it doesn't seems to be working. Another ...
0
votes
0answers
41 views

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 #...
1
vote
0answers
38 views

Converting RTSP to HLS as close to realtime as possible

What flags do I use to make ffmpeg convert RTSP into an HLS playlist with the video stream as close to realtime as possible? We would rather have instantaneous video, without regard for bandwidth, ...
0
votes
0answers
236 views

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/...
1
vote
1answer
653 views

HLS stream created from webcam with ffmpeg is not displayed correctly

I want to create a HLS live stream from my webcam using ffmpeg. I have this command which creates files used by HLS to stream the video in input. sudo ffmpeg \ -i path/to/video.mp4 \ -preset ...
0
votes
0answers
267 views

FFMPEG warning pkt->duration = 0

I'm facing a strange WARNING message in the logs of FFMPEG when trying to capture an HLS stream. This is the log with some information changed to avoid problems with my boss: [info] Input #0, hls, ...
0
votes
0answers
42 views

How to correctly handle FFMPEG errors?

In my project I need to read from a stream that sends live content in HLS format and then save this content locally in a specific folder appending this data from the previous record to the new ones. I'...
1
vote
1answer
44 views

How to append a stream record to previous data recorded?

I have a question about the append process in FFmpeg. Actually I have a live stream that comes from Wowza in HLS format (.m3u8 and .ts). Everything works fine if the stream doesn't fails. In this ...
0
votes
0answers
405 views

ffmpeg RTSP -> HLS stream stops with repeating the message “Non-monotonous DTS in output stream 0:0”

I am trying to make an HLS video stream from RTSP video stream, got from a Dahua IP camera. The "architecture", may I say, is as follows: The IP camera is connected to a router, providing ...
0
votes
0answers
173 views

What is the difference between .m4s and .ts media files?

From my understanding they can both contain media segments and are meant to be reconstructed at the client but what is the difference between the two? Edit: This is in the context of HLS
0
votes
0answers
60 views

How to put watermark in some segment .ts without transcoding full video

I'm using the command below to create an HLS playlist: ffmpeg -i "Full.mp4" -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -vcodec libx264 -crf 22 -preset medium -c:a copy ...
0
votes
0answers
88 views

Restream HLS thru a VPS to the Internet

I have an IP camera connected to a computer which converts an RTSP stream from the camera to HLS and serves it to the web. The problem is, that it is located at a remote place where the Internet ...
0
votes
0answers
88 views

Get HLS decryption key from browser

How can I get decryption key for AES-128 encrypted HLS stream. In the m3u8 file, the URI for key leads to a file which is of 48 bytes which is encrypted. The stream is played by browser so it must ...
0
votes
0answers
224 views

Fixing video container keyframes for live streaming

I have a capture card that is handled by a program which I intend to run in a Raspberry Pi 3 (I compiled for it) to stream video locally to a Chromecast. This program is run and spits out video data ...
0
votes
0answers
75 views

FFmpeg command not working?

I want to convert mp4 file to hls format Is something wrong with this command Please Let me Know String exec = "-y -i "+mediaPath+ " -preset slow -g 48 ...
1
vote
1answer
300 views

I don't know why this FFmpeg command is not working in android? [closed]

Please Save My Day D/FFmpeg (10151): Build.CPU_ABI : arm64-v8a D/FFmpeg (10151): ffmpeg is ready! [GETX] CLOSE TO ROUTE /UploadView D/FFmpeg (10151): Running publishing updates method I/message (...
0
votes
1answer
148 views

Hot to limit the HLS ts segments counter

I've been trying to live stream an IP camera by feeding the rtsp video to FFMPEG. I can see the ts segments are created and old ones deleted, but the names of the ts keep increasing in count. Like ...
0
votes
0answers
184 views

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 ...
1
vote
2answers
6k views

How to download aes encrypted m3u8 using ffmpeg or youtube-dl?

I have the m3u8 file and the key.bin, inside the m3u8 file is: #EXTM3U #EXT-X-VERSION:4 #EXT-X-PLAYLIST-TYPE:VOD #EXT-X-INDEPENDENT-SEGMENTS #EXT-X-TARGETDURATION:6 #EXT-X-MEDIA-SEQUENCE:0 #EXT-X-KEY:...
1
vote
0answers
168 views

How do I allow Nginx to share a Let’s Encrypt certificate used by Apache on the same system?

I run an apache WordPress website on VMbox Debian 10. I have a domain at eu.org and Let’s Encrypt certificate for my domains, so my site is accessible through HTTPS. I also installed Nginx with RTMP ...
2
votes
0answers
198 views

How to preserve 360 degree video metadata such as spherical information while ffmpeg transcoding

My objective is Live streaming 360 degree video using nginx, nginx-rtmp and ffmpeg. HLS Streaming as such working but while streaming 360 degree video, spherical data is lost at client side and 360 ...
1
vote
2answers
980 views

ffmpeg inside nginx-rtmp module doesn't work when scaling video

So I setup an nginx RTMP server using this rtmp module. Below is my nginx.conf that I made following this guide. rtmp { server { listen 1935; chunk_size 4096; ...
0
votes
0answers
556 views

ffmpeg mjpeg stream record as hls hls_time not working

I am trying to save mjpeg stream to hls using following command ffmpeg -f mjpeg -i http://192.168.1.145:8081 -f hls -hls_list_size 4 -hls_time 2 -hls_flags delete_segments ./live.m3u8 And the ...
-1
votes
1answer
34 views

When RTMP is phased out, what will social media companies use for ingesting streams?

From what I've read RTMP is the best low latency solution for sending streams and other current technologies are designed for P2P streaming (WebRTC) and consuming streams (HLS & Dash) (Dash I need ...
0
votes
1answer
399 views

Downloaded mp4 file wont play under any video player

I downloaded a video using Youtube-dlg its was a HLS stream and it downloaded fully except Youtube-dlg told me there was an error when it finished.. I presume that the site i downloaded from made it ...
2
votes
0answers
452 views

Nginx RTMP to HLS issue

I am trying to figure out the issue when pushing to RTMP which has HLS turned on. Below is the command I am using: ffmpeg -i hls.m3u8.url -vcodec: copy -acodec libfdk_aac - -f flv rtmp://serverurl/...
-2
votes
1answer
799 views

How to reduce cpu load on mpd to m3u8 restreaming

I have 100% CPU load on restreaming. Is there any solution to reduce it? [program:channel] autorestart=true command=/usr/local/ffmpeg/bin/ffmpeg -re -hide_banner -headers 'Referer: https://example....
4
votes
0answers
1k views

Broadcast a screen with ffmpeg via http

These quarantine days I was going to share my desktop to friends to explain them what is git in a practice. The problems are: I use FreeBSD. We are behind NATs. But I've got a VPS with VPN (Wireguard)...
1
vote
0answers
683 views

Stream multiple RTMP IP Cameras with OBS and ffmpeg

I created a streaming server using Nginx and the RMTP module on a VPS running CentOS 7. I am trying to stream multiple IP cameras using OBS for broadcasting the stream. My question is how to create ...
1
vote
0answers
980 views

FFMPEG is losing connection when relay streaming with m3u8 to rtmp even with reconnection flag

I'm trying to get streaming from mixer using api and relay to youtube rtmp I did that but it is losing connection. it streams for almost 3 minutes and connection drops on server or local commands ...
1
vote
1answer
235 views

Set time of first chunk when convert video to hls using ffmpeg

I'm using ffmepg to convert video to hls stream. For current i can set time of each chunk by using -segment_time parameter but i want to set time of first chunk (different than other chunk). I ...
1
vote
0answers
374 views

FFmpeg HLS single file playback is broken when encryption enabled

HLS files generated with encryption enabled and the single segment (byte range) option result in videos that are unplayable. The same videos play without issue when encryption is not utilized. Here ...
1
vote
1answer
4k views

How to smoothly play .m3u8 files in Windows Media Player

Windows Media Player technically plays .m3u8 files, but it stutters between each of the audio segments. As an example, try playing https://s3.amazonaws.com/cnn-assets/app-assets/cnn-lite/liteaudio....
1
vote
0answers
2k views

Reduce ffmpeg buffer size

I'm testing transcoding from rtmp to hls. As I see, ffmpeg seems to flush every 256k to file. I tried several options like bufsize, flush_packets but it didn't work. I want to flush frame video as ...
2
votes
1answer
1k views

FFmpeg: tee muxer fails on multiple outputs HLS and .mp4

I'm trying to encode an input .mp4 for both HLS and re-size into separate .mp4 files using the tee muxer, and HLS's "var_stream_map". When I run the below command with both HLS and .mp4s in the tee ...
1
vote
1answer
2k views

HLS conversion issue while using "var_stream_map"

I am using the following command to convert an existing .mp4 video into multiple video and audio formats ffmpeg -y \ -i sample.mp4 \ -hls_list_size 0 \ -hls_key_info_file keyfile \ -b:...
1
vote
0answers
867 views

Unexpectedly large HLS TS Files

It seems sometimes the HLS segmenting does not work properly for few streams. My TS file grows until the drive is full, there's no segmenting happening. Most of my streams running perfectly for weeks (...
2
votes
1answer
343 views

FFMPEG glitches when encoding from mp4 to HLS

For the past two days I am trying to figure out why FFMPEG produces a glitchy video when transcoding h264 mp4 to HLS with xlib264. It happens to every video. The glitch looks like this : 720p MP4 ...
1
vote
0answers
1k views

Nxing HLS Reverse Proxy

I'm using 5 nginx servers as a reverse proxy to my origin. My origin only sends out HLS content, so .ts, .aac, .vtt and .m3u8 files. This is working really well for the most part, but when I have ...
1
vote
1answer
976 views

Repeating / Looping Scrolling Text using FFMPEG

Currently, I am using this to reading a text file and scrolling it to the bottom from right to left: ffmpeg -i rtmp://127.0.0.1/source/$name -threads 1 -c:v libx264 -profile:v baseline -b:v 128K -s ...
0
votes
1answer
2k views

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 ...