[FFmpeg-trac] #9923(ffmpeg:new): hls has low CPU utilization
FFmpeg
trac at avcodec.org
Tue Sep 13 20:53:08 EEST 2022
#9923: hls has low CPU utilization
-------------------------------------+-------------------------------------
Reporter: vidbin | Type: defect
Status: new | Priority: minor
Component: ffmpeg | Version: git-
Keywords: hls cpu | master
utilization | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
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
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9923>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list