#9923 closed defect (invalid)
hls has low CPU utilization
Reported by: | vidbin | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | undetermined |
Version: | git-master | Keywords: | hls |
Cc: | vidbin | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
When using HLS CPU usage is reduced by up to 2/3rd.
Using a three minute 1440p60 video:
ffmpeg -i /root/1440p.mkv -y -acodec aac -vcodec libsvtav1 -threads 24 -f mp4 -movflags faststart -max_muxing_queue_size 1024 -map_metadata -1 -pix_fmt yuv420p -b:a 192k -ac 2 -vf scale=w=-2:h=1080 -crf 42 -preset 7 -g 999 /root/output-1080p-fragmented.mp4
CPU utilization is 2000%-2200%
However, using the below command is only 700% CPU utilization:
ffmpeg -i /root/1ea4267d-37e3-4d40-bb92-124dd8faf1a6-1440-fragmented.mp4 -y -acodec aac -vcodec libsvtav1 -threads 24 -f mp4 -movflags faststart -max_muxing_queue_size 1024 -map_metadata -1 -pix_fmt yuv420p -b:a 192k -ac 2 -vf scale=w=-2:h=1080 -crf 42 -preset 7 -g 999 -hls_time 4 -hls_list_size 0 -hls_playlist_type vod -hls_segment_filename /root/1080-fragmented.mp4 -hls_segment_type fmp4 -f hls -hls_flags single_file /root/1080.m3u8
I'm trying on a later ffmpeg build and have the same issue.
ffmpeg version git-2022-09-10-c92edd9 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 10 (Debian 10.2.1-6) configuration: --enable-gpl --enable-version3 --enable-gnutls --enable-static --disable-debug --disable-ffplay --cc=gcc --enable-fontconfig --enable-gray --enable-libaom --enable-libopus --enable-libvpx --enable-libsvtav1 --enable-libx264 libavutil 57. 36.101 / 57. 36.101 libavcodec 59. 42.104 / 59. 42.104 libavformat 59. 30.101 / 59. 30.101 libavdevice 59. 8.101 / 59. 8.101 libavfilter 8. 48.100 / 8. 48.100 libswscale 6. 8.108 / 6. 8.108 libswresample 4. 9.100 / 4. 9.100 libpostproc 56. 7.100 / 56. 7.100 Hyper fast Audio and Video encoder
Change History (2)
comment:1 by , 2 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 2 years ago
Component: | ffmpeg → undetermined |
---|---|
Keywords: | cpu utilization removed |
Note:
See TracTickets
for help on using tickets.
After further testing the CPU usage is only limited to 700% when encoding lower resolutions from the created HLS video.
So probably not a ffmpeg bug. I'll go ahead and close this.