Questions tagged [hls]

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

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

converting stream output on decklink with ffmpeg, ubuntu

Crosposted at BlackMagic device: DeckLink SDI Ubuntu 22.04 ffmpeg version 6.0 built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04) Decklink SDK 12.7 I am am able to playback local files to the decklink ...
John Munoz's user avatar
1 vote
0 answers
161 views

FFmpeg HLS conversion with HEVC and fmp4

I've tried everything but I can't get this to work: I'm trying to convert a .mkv AVC video to HLS with HEVC codec, also creating two streams for 1080p and 720p quality, and the command I came out with ...
mrpino's user avatar
  • 11
0 votes
2 answers
166 views

FFmpeg watermark and HLS stream

I want to convert and MP4 video into HLS multi-resolution (360, 720) and add watermark image inside the output segments. I did two result but missing the watermark image with the multi scale: // one ...
Mohamed Taher's user avatar
0 votes
1 answer
104 views

Green pixelated issue when applying -vf flag to ffpmeg hls transcoding

I'm trying to create chunks of multiple bitrates to play them smoothly across various devices and bandwidth. But the ffmpeg command output is creating green pixelated video. If I remove the -vf flag ...
The Mask's user avatar
  • 101
1 vote
1 answer
88 views

Encoding multiple live channels

I have a code working that encodes a UDP live channel into an HLS stream using m3u8 container. My question is, is there a way to simplify doing multiple channels, and ensure each is the same quality ...
bv3469's user avatar
  • 11
1 vote
1 answer
312 views

Stream camera video with ffmpeg in Firefox via dash.js

I am trying to stream live video from a camera using ffmpeg to a browser. I have found several questions about this on StackOverflow and here, but they all pertain to creating a video file from a ...
Spencer Williams's user avatar
0 votes
0 answers
331 views

Need to find the bitrate of video stream but ffprobe exits earlier with error unsupported codec before reaching to video stream

We are seeing an issue while finding the HLS videostream bit rate with ffprobe. The stream has some timed metadata and when we run ffprobe with HLS input, error occurs: Unsupported codec with id 98313 ...
Namita Garg's user avatar
1 vote
1 answer
161 views

Issue in converting encrypted HLS with FFMPEG to UDP

We are looking for help in debugging a problem related to converting encrypted HLS to UDP output. If we download encrypted HLS content and then convert it to UDP, it works well. But if we directly ...
Namita Garg's user avatar
0 votes
0 answers
139 views

How to use Docker FFMPEG and HLS on my website

I want to use a Docker container to convert an mkv video to an HLS "video". This is my command for it: docker run --rm \ -v /mnt:/config \ linuxserver/ffmpeg \ -i "/config/test....
NormalUser's user avatar
0 votes
1 answer
467 views

Thumbnail preview for HLS using ffmpeg

I have a question about converting an mp4 file to HLS. I would also like to include the first frame of each ts chunk as a thumbnail in the m3u8 file. Is it possible to accomplish this using a single ...
Venkat's user avatar
  • 1
0 votes
0 answers
363 views

How to convert HLS to UDP on FFmpeg or any other freeware?

What freeware can I use to convert an HLS playlist to a UDP stream? I tried FFmpeg on hls url to udp stream, which worked. I'm trying to find a freeware that can manage to do the same, but with ...
Alex Romero's user avatar
0 votes
0 answers
221 views

Trying to set bitrate of HLS Format segments in ffmpeg

I've tried to set bitrate when converting mp4 into HLS Format in FFMPEG but it doesn't seem to work. ffmpeg -y -i myvideo.mp4 -codec copy -bsf:v h264_mp4toannexb -map 0 -f segment -hls_segment_size ...
unsquaredcoder1's user avatar
0 votes
0 answers
206 views

ffmpeg HEVC mp4 to HLS stream

I'm using ffmpeg -f hls option to create multiple resolutions from 1 single mp4 source it works fine on all browsers with video.js with regular h.264 source mp4. however throwing HEVC HDR source (e.g. ...
Mitch's user avatar
  • 1
0 votes
0 answers
674 views

MP4 to HLS stream conversion error after resizing video using FFmpeg

When trying to create HLS stream from original video, FFmpeg creates HLS stream without errors. ~ $ ffmpeg -i test.mp4 -f hls -hls_time 3 -hls_segment_filename seg%02d.ts stream.m3u8 But when I ...
ITeptIcklyTa's user avatar
1 vote
0 answers
330 views

Audio issue on mkv to m3u8 conversion using ffmpeg

I'm using the following command to convert mkv AUDIO to aac in the aim of using it in a m3u8 file with others audio playlist but both hls.js and videojs seems to be unable to read it dropping issues ...
PommeGolden _'s user avatar
0 votes
0 answers
342 views

How to split an MKV file into HLS segments of approximately 25MB each?

I'm reaching out to seek your help regarding the partitioning of an MKV file into HLS segments composed of TS files. I'm aiming to divide my portions into segments of maximum 25MB size, but it seems ...
Paolo's user avatar
  • 1
0 votes
0 answers
94 views

Transcoding ts of m3u8 to multi bitrate ts. Causes player stuck due to overlap

I have live M3u8. Woukd like to convert into multiprofile m3u8 and master.m3u8. we have achieved this using python script to populate multiprofile index.m3u8 and master.m3u8. when we are transcoding ...
gaurav verma's user avatar
0 votes
0 answers
379 views

HLS stream optimization

I have this command to create HLS stream. Is there any way to optimize it? I know that changing CRF and preset will tune up the encoding speed, but I am looking for another tuning. Thanks for reply. ...
Figa's user avatar
  • 1
2 votes
1 answer
587 views

Delay video (and audio) by x seconds in FFMPEG HLS Stream

I have an input HLS stream stream.m3u8 using my macbook camera by running: ffmpeg -f avfoundation ^ -framerate 30 -i 0 ^ -c:v libx264 -c:a aac -b:a 128k ^ -ac 2 -crf 5 -preset veryfast -...
Daniel Schmidt's user avatar
0 votes
0 answers
209 views

How to save HLS stream with adaptive bitrate

I have been trying to monitor the impact of network on HLS stream. I have a HLS stream with different bitrate (360/720/1080) and I would like to save video as played in player with adaptive bitrate ...
BytesxD's user avatar
0 votes
0 answers
322 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 -...
Gijs J's user avatar
  • 1
1 vote
0 answers
628 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 ...
vdeconinck's user avatar
0 votes
1 answer
135 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....
enriquedc04's user avatar
0 votes
0 answers
665 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:******...
enriquedc04's user avatar
1 vote
1 answer
5k 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 ...
Remdale's user avatar
  • 13
0 votes
0 answers
261 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 ...
Taylor Sperring's user avatar
0 votes
0 answers
514 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:$...
Yerzhan Tulepov's user avatar
2 votes
0 answers
431 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 ...
D.Bence's user avatar
  • 35
0 votes
1 answer
412 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 ...
S.N.'s user avatar
  • 1
0 votes
1 answer
808 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 ...
SHERLOV's user avatar
0 votes
1 answer
1k 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 &...
jonny789's user avatar
  • 151
0 votes
1 answer
1k 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: ...
Timotej Leginus's user avatar
0 votes
0 answers
2k 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&...
Darren Ng's user avatar
  • 389
4 votes
1 answer
4k 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 ...
Malaco's user avatar
  • 41
0 votes
0 answers
2k 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 ...
boskar's user avatar
  • 13
1 vote
0 answers
79 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 ?
SKV's user avatar
  • 19
1 vote
0 answers
733 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 ...
Awaneesh's user avatar
0 votes
1 answer
161 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=...
yspreen's user avatar
  • 133
0 votes
1 answer
2k 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 ...
dravit's user avatar
  • 105
1 vote
0 answers
425 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, ...
Lennox's user avatar
  • 11
2 votes
1 answer
5k 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 ...
lblenner's user avatar
  • 141
2 votes
0 answers
1k 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, ...
Vinícius Gajo's user avatar
0 votes
0 answers
1k 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'...
Vinícius Gajo's user avatar
1 vote
1 answer
1k 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 ...
Vinícius Gajo's user avatar
2 votes
0 answers
886 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
Owen's user avatar
  • 119
2 votes
0 answers
416 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 ...
Fernando's user avatar
0 votes
0 answers
654 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 ...
Jonathan Sotelo's user avatar
0 votes
0 answers
168 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 ...
Rishabh Shukla's user avatar
1 vote
1 answer
761 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 (...
Rishabh Shukla's user avatar
0 votes
1 answer
673 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 ...
Moises's user avatar
  • 1