Questions tagged [hls]

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

102 questions
10
votes
2 answers

Generate hls stream using h265 codec

I am trying to convert h264 video to an hls stream which uses h265 codec. As this bitmovin article suggests, we need to use fragmented mp4 for the hls/h265 stream to work on safari. I am able to convert h264 to h265 properly using this…
8
votes
1 answer

ffmpeg HLS playlist not starting at the beginning

I'm attempting to take a 5-minute video file and produce a single-file HTTP Live Stream playlist and .ts file. The playlist file format can support byte-ranges instead of separate files as of iOS 5, which is a fine target for my use cases. But, when…
Collin Allen
  • 1,245
7
votes
2 answers

RTSP -> HLS using FFMPEG

I'm using FFMPEG to convert my rtsp stream into an HLS stream so it can be played on all browsers on my website using player js. I'm having an issue with FFMPEG dying if the internet connection to the rtsp stream goes out for a min. Is there a way…
James
  • 121
5
votes
2 answers

how to generate multiple bitrate HLS content from live rtsp stream?

I am gerating single bitrate live hls content from live rtsp stream . I am using the following command ffmpeg -v verbose -i rtsp://127.0.0.1:8080/test.sdp \ -vcodec libx264 -acodec aac -ac 1 -strict -2 -crf 18 -profile:v baseline \ -maxrate 400k…
5
votes
3 answers

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

I have the m3u8 file and the key.bin, inside the m3u8 file…
5
votes
0 answers

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) configured for these purposes. I want to use…
4
votes
1 answer

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 create the requested HLS stream on the fly. So the…
4
votes
1 answer

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 been edited to loop seamlessly. When I play the…
Malaco
  • 41
4
votes
1 answer

FFmpeg and HLS multiple audio renditions

I'm trying to use FFmpeg to produce an HLS playlist which contains multiple audio renditions, but I cannot get the audio & video tracks to sync together. Here is the scenario: Suppose I have 2 video files, each with 1 audio track I use FFmpeg to…
3
votes
2 answers

FFmpeg HLS muxer .ts file name format

Is it possible to have .ts files named by date/time (any format) instead of sequence number when using the HLS muxer? If so, how can it be done? ffmpeg -i - -hls-some-option-here…
Brad
  • 6,629
3
votes
0 answers

Why is HTTP live streaming not working using VLC?

I'm trying to set up HTTP live streaming (HLS) with a webcam, just over the local network, using VLC. I've successfully been able to do other types of streaming (e.g. http) with the same webcam, but I'd like to get HLS working (the livehttp module)…
htmlcat
  • 131
3
votes
1 answer

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 slow \ -f hls -hls_list_size 2 \ …
lblenner
  • 151
3
votes
0 answers

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 degree video plays side by side. ffmpeg command to…
Ram
  • 31
3
votes
0 answers

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/live/test Everything is great, all works as…
2
votes
0 answers

How to create an HLS segment on-demand for smooth streaming

Goal I want to generate a single HLS segment (.ts file) from an .mp4 file, given a segment number n, assuming each segment is 4 seconds long (matching -hls_time 4). The goal is for the segment to play smoothly, just like it does when generated as…
1
2 3 4 5 6 7