[FFmpeg-user] HLS stream delivery problem

Theo Kooijmans tkooijmans at gld.nl
Tue Sep 22 11:36:39 EEST 2020

I have the FFMpeg encoding working fine on a Win10 PC but I have problems with uploading HLS files to a HLS server.
This is what I see with CPU load when I transcode from a live Decklinkcard to a local folder.
I get a even load on the CPU without big peaks

[cid:image001.png at 01D690CB.F6946710]

Below overview is when try to upload to a drive letter in windows which is connected to a HLS server.
There are now high peaks in CPU load and memory is slowly rising to it's limits.

Do you know how to fix this?
This is my code with ffmpeg,     Y:\ is drive letter to the HLS server (WebDAV)

ffmpeg -thread_queue_size 5096 -f dshow -video_size 1920x1080 -pixel_format uyvy422 -rtbufsize 128M -framerate 25.00 -i video="Decklink Video Capture (2)":audio="Decklink Audio Capture (2)" -c:v libx264 -crf 21 -filter_complex "[v:0]split=2[vtemp001][vtemp002];[vtemp001]scale=w=960:h=540[vout001];[vtemp002]scale=w=1920:h=1080[vout002]" -preset veryfast -g 25 -sc_threshold 0 -map [vout001] -c:v:0 libx264 -b:v:0 2000k -map [vout002] -c:v:1 libx264 -b:v:1 6000k -map a:0 -c:a aac -b:a 128k -ac 2 -map a:0 -c:a aac -b:a 128k -ac 2 -f hls -hls_time 6 -hls_segment_size 6000000 -hls_flags +delete_segments+split_by_time -master_pl_name index.m3u8 -var_stream_map "v:0,a:0 v:1,a:1" "Y:\stream_%v.m3u8"

[cid:image002.png at 01D690CB.F6946710]

Theo Kooijmans

-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 109815 bytes
Desc: image001.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20200922/915b20ff/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 137123 bytes
Desc: image002.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20200922/915b20ff/attachment-0001.png>

More information about the ffmpeg-user mailing list