Questions tagged [hls]
HLS (HTTP Live Streaming) is an HTTP-based media streaming communications protocol
83
questions
0
votes
0
answers
62
views
Set "readrate" to a high value for fixed time duration in FFmpeg
I'm trying to restream HLS livestream input to MPEG-TS livestream output using FFmpeg. It works with the following command, but with a small issue
Command:
ffmpeg -readrate 1 -fflags nobuffer -...
0
votes
0
answers
19
views
Dynamically generating HLS segments from a file using FFmpeg creates unplayable stream
Context: I'm working for a TV station with many .TS (VOD) files that sometimes require a manual check. I would like the check to happen in a browser, hence using HLS or equivalent.
Goal: I have to ...
0
votes
1
answer
38
views
MPEG-TS file not consistent start time
I am trying to figure out, how come my downloaded mpeg-ts file usually starts at 0 but some of them are not. I'm using wowza streaming engine to stream videos on demand and download the ts files later....
0
votes
0
answers
158
views
ffmpeg -stream_loop -1 not working on hls input
Im running this command to re-stream an hls to my rtmp server.
ffmpeg -stream_loop -1 -fflags +igndts -hide_banner -re -i playlist_main2_c.m3u8 -c copy -f flv -flvflags no_duration_filesize rtmp:******...
1
vote
1
answer
764
views
Download m3u8 blob video using ffmpeg
The video is located on this page after clicking on the WATCH TRAILER button
https://web3.wb.com/warnermedia/movieverse
In the network tab of the browser I found several links to m3u8 playlists among ...
0
votes
0
answers
66
views
nvenc scale_npp causes FFmpeg to fail to launch HLS nginx
After updating my graphics card from a 680 to a 1650, I am now able to encode multiple bitrates of my HLS stream using NVENC. However, I am stumped with the following issue, if I attempt to add the ...
0
votes
0
answers
117
views
No #EXT-X-ENDLIST in stream.m3u8
Having a ts file with 60s duration and this part of a config for rtsp-simple-server:
...
~archive/(.*)$:
runOnDemand: ffmpeg -re -stream_loop 0 -i /cameras/$G1 -c copy -f rtsp rtsp://localhost:$...
2
votes
0
answers
131
views
ffmpeg cli settings for the most accurate seeking in the output video
I have a problem with video encoding for HLS stream.
I've found that most video players not support frame accurate seeking or pausing at specific frame and they can't really give us the accurate ...
0
votes
1
answer
198
views
streaming with HLS / hevc / fmp4
demo site:
http://47.254.74.168:8080/
I made some streaming of HLS/HEVC/FMP4 by ffmpeg(5.1), which list is above link.
however, the streaming encoded with h265 codec is not working in safari, and h264 ...
0
votes
1
answer
311
views
How do I secure my hls link so that no other site will use it
I made a streaming server using Nginx RTMP.
I installed it and tested it and it works fine but when I broadcast and use the m3u8 link on my site, I find that some sites can take it and put it there ...
0
votes
1
answer
426
views
Passing headers to encrypted hls stream in ffmpeg
I am using ffmpeg 5.1. I want to save encrypted aes-128 hls in which the decrypting key link is in m3u8 stream link.
I am able to pass headers & get m3u8 file content using :
ffmpeg -headers &...
0
votes
0
answers
93
views
Twitch hls streams causes problems on muted segments
I've tried to play twitch vod using the hls url. On vlc and video js.
This works fine on both until it reaches a muted segment in which the video freezes but will play again when it reaches a unmuted ...
0
votes
1
answer
452
views
FFmpeg doesn't write to HLS output (udp multicast input)
This is the output from ffprobe.
Input #0, mpegts, from 'udp://239.0.0.80:2345?localaddr=192.168.2.127':
Duration: N/A, start: 39580.799967, bitrate: N/A
Program 60
Metadata:
...
0
votes
0
answers
905
views
ffmpeg play youtube hls m3u8 with hardware acceleration
(1) I get the hls/m3u8 url from video ID with yt-dlp.
(2) I play the hls/m3u8 url with ffmpeg/ffplay.
ffplay "https://manifest.googlevideo.com/api/manifest/hls_playlist/.../playlist/index.m3u8&...
4
votes
1
answer
3k
views
How do I optimize my HLS stream for faster seek times?
I am currently working on a web application that uses a video as the background for the landing page. The video itself is rather short at about 10 seconds, but that does not matter as the content has ...
0
votes
0
answers
165
views
Subtitle insertion in existing HLS stream
I have pre existing HLS stream and we want to add subtitles to the stream. We have subtitles in WebVTT format available. How can we add the subtitles in the existing HLS stream? Is it feasible with ...
0
votes
0
answers
879
views
Raspberry Pi to website stream
there are countless howtos describing how to stream from Raspberry Pi to somewhere, I'm somehow lost and tired of trying different configurations.
My resources:
Raspberry pi camera v2
Raspberry Pi v3
...
0
votes
0
answers
23
views
create outputfile from many HLS inputstream but there is a faulty inputstream
If I understood right
ffmpeg -i [stream1.m3u8] -i [stream2.m3u8] ... -i [streamx.m2u8] -c:a copy [output.mp4]
uses the stream which has the highest resolution among all the input video streams to ...
1
vote
0
answers
48
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 ?
1
vote
0
answers
394
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
1
answer
84
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
1
answer
991
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 ...
1
vote
0
answers
224
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, ...
1
vote
1
answer
3k
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
0
answers
661
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
0
answers
521
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
1
answer
461
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 ...
1
vote
0
answers
442
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
1
vote
0
answers
274
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
0
answers
403
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
0
answers
99
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
1
answer
641
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
1
answer
491
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
0
answers
324
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 ...
3
votes
3
answers
11k
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
0
answers
268
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 ...
3
votes
0
answers
365
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
2
answers
2k
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
0
answers
1k
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
1
answer
37
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
1
answer
542
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
0
answers
742
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
1
answer
1k
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
0
answers
2k
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
0
answers
789
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
0
answers
1k
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
1
answer
495
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
0
answers
502
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
1
answer
5k
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
0
answers
3k
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 ...