[FFmpeg-user] HLS stream delivery problem

andrei ka andrei.k.gml at gmail.com
Tue Sep 22 13:26:36 EEST 2020


hi
sometimes it helps to separate encoding & packaging - encode to a multicast
and read that multicast from another process and repackage it. color
conversions can eat cpu. what for do you need 2nd scaling to 1080 after
defining that you're grabbing at that resolution, your input should be
already scaled... can your i7 2600 stand 1 resolution encoding without
choking ? + as you're writing ts to Y run dd on it, check if you have enuf
dd io speed left...
&rei

On Tue, Sep 22, 2020 at 10:37 AM Theo Kooijmans <tkooijmans at gld.nl> wrote:

>
> 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]
>
>
>
> Regards,
> Theo Kooijmans
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list