Questions tagged [hls]

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

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

append new segments to the previous m3u8 file

Is it possible to append new ts segments to the end of the previous m3u8 file? In case when a conversion was in progress and has been interrupted and now we want to continue that. Thanks.
1
vote
1answer
28 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 ...
0
votes
0answers
40 views

How do i use FFMPEG to convert mp4 to a single file encrypted hls?

I have a simple mp4 video that i want to convert to hls 4 encrypted single file stream how can i do that using ffmpeg ? i have already tried this command ffmpeg -i bigbuckbunny.mp4 -hls_time 20 -...
1
vote
0answers
32 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 ...
0
votes
0answers
14 views

How can I convert MP4 to HLS with rendering subtitle? [duplicate]

ffmpeg -i /path/to/video.mp4 -codec: copy -bsf:v h264_mp4toannexb \ -start_number 0 -hls_time 10 -hls_list_size 0 -f hls /path/to/outhls/index.m3u8 My ffmpeg: How can I convert MP4 to HLS with ...
0
votes
0answers
24 views

VLC Player got freeze when getting requested *.m3u8 playlist from HTTP Server

I use FFMPEG for HLSstreaming with a command : ffmpeg -f dshow -i video="GENERAL - UVC " -profile:v baseline -level 3.0 -c:v libx264 -crf 21 -preset veryfast -c:a aac -b:a 128k -ac 2 -f hls -...
0
votes
0answers
7 views

HLS player, SAFARI. If no internet and no buffer left then video stops then I turn on internet and video does not resume playing. It stucks

HLS player, SAFARI. If no internet and no buffer left then video stops then I turn on internet and video does not resume playing. It stuck. Does somebody has this issue? Using HTML5 wrapper for hls-...
1
vote
1answer
391 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
260 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 ...
0
votes
0answers
72 views

Applying AWS Cloudfront signed cookie to hls content sometimes causing CORS issue

I am currently using aws S3 + Cloudfront for my video streaming platform. As we are serving hls content, so we applied signed cookie to protect our data (.m3u8 & .ts segments inside). I have ...
0
votes
0answers
106 views

How to extract only a specific HLS segment of video with ffmpeg

I'm going to extract chunks of a video file with HLS muxer but there is a problem with that which I can't extract a specific segment, not the whole segments. For example: I have a 60min video and ...
1
vote
1answer
145 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 ...
0
votes
1answer
166 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:...
0
votes
0answers
334 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 (...
0
votes
0answers
28 views

Query parameters are not passed in HLS playlist file in Mozilla but working fine in Chrome

I have a VOD server(Wowza) and now want to integrate it with Akamai CDN. I am using a secure token as query parameter. The URL I am calling with player is: https://my.akamai.url/vod_app_name/smil:...
2
votes
1answer
90 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 ...
0
votes
0answers
257 views

Command Line 'hls_segment_size' creates TS files with segment failures

I am converting a simple mp4 video to hls but I need the segments to be in approximately a specific size I researched and found: -hls_segment_size 17000000 17000000 bytes(~17MB) this creates TS ...
1
vote
0answers
63 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
265 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
32 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
545 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
1answer
752 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" -bufsize ...
0
votes
0answers
495 views

ffmpeg as 'dummy' DASH/HLS player?

I need to stress-test a video streaming server, so I'd like to stream the DASH/HLS content, but not decode it. Basically, just traverse the DASH manifest or HLS playlist (as it updates), then fetch ...
0
votes
0answers
271 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
687 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 ...
3
votes
1answer
2k 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
890 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
1k 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
993 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/...
1
vote
1answer
3k 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
970 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....
1
vote
0answers
369 views

Video encoder & segmenter for HLS VoD poor quality

I am trying to encode and segment video for HLS on demand(VoD). I am using the following code for such: ffmpeg -i 20170706_174314.mp4 -c 24 \ -vcodec libx264 -acodec aac -ac 1 -strict -2 -b:v ...
1
vote
1answer
1k views

FFMpeg to decode Closed Captions

I have 150+ stream URLs, some with 608 captions, some with 708 captions, some with no captions, and others with a combination of two and multiple renditions of each. The goal: input URLs to FFMpeg ...
1
vote
0answers
1k views

Transcoding HD RTP/UDP stream with FFMPEG

I've a Tera STI440 streamer with two inputs used (for TV channel streaming). When I watch the source stream it seems allright, but when I start FFMPEG transcoding, the image is going to collapse on ...
0
votes
1answer
1k views

How can I record part of an HLS-streamed audio and upload it to YouTube as an audio podcast

I will be posting a how-to guide as an answer to this question. It will demonstrate how to accomplish the above task, while meeting five requirements that at first seemed difficult to achieve: I ...
6
votes
1answer
5k views

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

ffmpeg exec command not running in nginx rtmp

I am using nginx and rtmp module to stream live hls and mpeg-dash. here is my rtmp command in nginx .conf rtmp { server { listen 1936; application mypull { live on ; meta copy; ...
0
votes
1answer
3k views

extract separated audio from m3u8 link

I am trying to extract separated audios from live streaming m3u8 file, But when I use ffmpeg -i "live m3u8 link" -c copy "output.ts" Every new video and audio data seem just append on output.ts, is ...
3
votes
1answer
5k views

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

NGINX / RTMP / HLS live stream on Raspberry pi (Debian 8.4)

Debian 8.4 / Raspbian 8.0 Nginx 1.9.15 ffmpeg 2.6.8 (server side) / avconv 11.6-6:11.6-1~deb8u1+rpi1 (camera collect) . Avconv is a FFMPEG fork, it does work fine on raspbian. Flow schema cam-1 : ...
0
votes
1answer
1k views

ffmpeg transcoding and HLS

Transcoding the input stream to the smaller twos: ffmpeg -re -v info -i "rtmp://localhost/live/stream live=1" \ -c:v libx264 -b:v 500k -vf scale=540:-1 -preset faster -copyts \ -c:a aac -b:a 64k -ac ...
0
votes
1answer
410 views

What happens when you change video resolution on a player (netflix, youtube, vimeo)?

Of course the overall quality goes down and the bitrate is lowered, but is the actual pixel count lowered? If so, how? When you upload a video it is usually transcoded into various bitrates, but is ...
1
vote
1answer
916 views

nginx HLS vod capability to stop and track streams

I need to be able to stream VOD, but videos will be tracked per minute, so I need to constantly maintain information of how much minutes user has, and when he spend minutes, I need to terminate his ...
5
votes
1answer
3k views

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

ffmpeg HEVC with HLS specific fragment duration

I use a 10bit build of ffmpeg/x265 to run the following command where I decode an input x265/10bit video, pipe it into another cmd line tools and pipe again the output into a new ffmpeg instance where ...
5
votes
2answers
14k views

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

FFMpeg generated m3u8 segmented videos long delay before playback starts

I am using ffmpeg to generate a segmented list of files in order to stream them to an iOS app. The list of files is generated fine but when it comes time to play them, the video needs to be downloaded ...
2
votes
2answers
4k views

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