Questions tagged [hls]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
46 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
24 views

How to decrypt ts file when m3u8 file has 'k/timestamp' as key URI?

I am trying to download a HLS stream video as mp4. The stream is AES-128 encrypted and the URI for key is k/timestamp. #EXT-X-KEY:METHOD=AES-128,URI="k/timestamp",IV=...
0
votes
0answers
16 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
17 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
0answers
16 views

FFMPEG RTMP to HLS Conversion Is Really Slow

I have an RTMP server that is outputting a stream as such: ffmpeg -re -i https://somefile.mp4 -maxrate 5M -crf 24 -bufsize 6000k -c:v libx264 -preset superfast -tune zerolatency -strict -2 -c:a aac -...
0
votes
0answers
23 views

what is the best way for restreaming m3u8

I am completely novice on this section . I have some stream links and Want to restream them . I am doing this with ffmpeg on linux server with ssh but I think it is not good solution for this because ...
0
votes
1answer
31 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
38 views

FFMPEG version 4.3.1 incompatible with HLS streaming at contrario of 2.8

I compared release 4.3.1 and 2.8 (https://formulae.brew.sh/formula/ffmpeg@2.8) and 2.8 is working as expected for HLS playout not 4.3.1 here is the URL where it fails with= ./ffplay 'http://195.238.31....
0
votes
0answers
67 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 ...
0
votes
0answers
47 views

FFMPEG HLS encoding live streaming [av_interleaved_write_frame broken pipe]

Live streaming start in a correct way, but in a range of segments (from 10 to 35 segments already loaded), live streaming stops for few time, then restart from segment 0 and go on fine. When this ...
0
votes
0answers
16 views

concatenating files in FFMPEG causing the wrong file length

I have an input coming from an RTSP stream in 2 second increments for an HLS stream. I am copying the file from the stream simply by doing. -stimeout 60000000 -y -rtsp_transport tcp -...
0
votes
2answers
868 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:...
0
votes
0answers
65 views

FFMPEG command to mux video stream into HLS fMP4

I have been trying to display my IP Cameras output onto a webpage to be viewed on a iThing (ipad or iphone) Im diplaying the output below in a video tag like below <video id='hls-example' class=&...
0
votes
0answers
44 views

FFMPEG Playlist of M3U8 URL Breaks RTMP

I've been trying in the last couple of days to loop through an m3u8 url list as input to an rtmp server which I managed to accomplish but with some urls it breaks the rtmp server in the second file ...
0
votes
0answers
134 views

Ffmpeg Hls no audio track in input file var_stream_map

I am trying to encode a video to HLS using Ffmpeg. The problem is that some videos are failing as they have no audio track in them. Sharing the sample ffmpeg command ffmpeg -i vid.mp4 -r 30 -g 60 -...
1
vote
0answers
68 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 ...
0
votes
0answers
35 views

360 degree video support in ffmpeg HLS

I want to play 360 degree videos using HLS/DASH protocols. I am currently using ffmpeg and nginx combo. my question is does ffmpeg support 360 video transcoding to hls format. I tried with following ...
0
votes
0answers
25 views

spatial meta data is missing in ffmpeg transcoding of 360 degree video

I am transcoding 360 degree to a rtmp port using -f hls option. my 360 degree video has meta data of equirectangular projection type. I am using following command sudo ffmpeg -i coaster.mp4 -vcodec ...
2
votes
0answers
87 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 ...
0
votes
1answer
404 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
223 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
27 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
130 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 ...
1
vote
0answers
240 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
399 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....
0
votes
0answers
54 views

gstreamer: m3u8 to mkv/kinesis video

I want to ingest a m3u8 stream to kinesis video (MKV format). I compiled the kvssink plugin but gstreamer fails with unknown error. Maybe I need to convert the stream somehow before sending to ...
2
votes
0answers
393 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
412 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
535 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
120 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
277 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
3k 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....
0
votes
0answers
961 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
748 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
1k 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
719 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
235 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
626 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
653 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
0answers
164 views

HLS stream doesn't work

Good morning, I am setting up an HLS live stream and I have both playlist and segments ready to go. I use Apache for webserver transmission. I ran http://localhost/stream/play.m3u8 with VLC and ...
0
votes
1answer
1k 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 ...
0
votes
2answers
2k views

Restreaming hls stream to rtmp stream using ffmpeg

I am trying to re-stream an hls stream to rtmp stream using ffmpeg : as example : ffmpeg -loglevel debug -re \ -i "https://hddn01.skylinewebcams.com/live.m3u8?a=c6kekc4h116t1m5jbtei273bq0" \ -...
0
votes
0answers
335 views

HLS continuously generated segments

I wanted to know how can I stream through HLS continuously created segments. I basically have a server that gives me 2 images every second and I want them to be streamed asap to an user via HLS until ...
0
votes
1answer
2k views

RTMP to HLS conversion frame rate issues with ffmpeg/nginx

Currently, I'm pushing a RTMP stream to nginx 1.15.3 running on Ubuntu 18.04 LTS from a raspberry pi 3 camera (which seems to be working well on its own, I can pull the stream with no issues on VLC ...
8
votes
1answer
4k views

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

Decrypting HLS stream

I have a continuous HLS livestream that is Widevine encrypted. I can play the stream in my browser, but I want to be able to play the stream locally on a device which does not support encryption. ...
1
vote
0answers
2k views

Convert m3u8 (HLS) to mpd (MPEG-DASH)

I have Live stream of HLS and I want to convert it to MPEG-DASH. What is the best practice? The stream is already h264 aac therefore I understand I do not need to reencode and I just need to ...
0
votes
1answer
2k views

Command line for VLC to restream an internet m3u8 stream to a local m3u8

does anyone know how to restream in VLC a source like http://server.com/test.m3u8 to local file like c:\temp\test.m3u8 ? Saw some example here; https://wiki.videolan.org/Documentation:Streaming_HowTo/...
2
votes
1answer
6k views

How to encode one input file to multiple HLS streams with FFmpeg including the master playlist

Here's the scenario: I need to encode a single input file, assume with libx264 to multiple HLS streams, and the goal is to also generate the HLS master playlist with the same FFmpeg snippet. From ...
0
votes
1answer
1k views

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