[FFmpeg-trac] #11341(undetermined:new): Fre:ac’s OPUS encoding outperforms FFmpeg by an order of magnitude
FFmpeg
trac at avcodec.org
Wed Dec 11 10:39:12 EET 2024
#11341: Fre:ac’s OPUS encoding outperforms FFmpeg by an order of magnitude
-------------------------------------+-------------------------------------
Reporter: Iver Jordal | Type:
| enhancement
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
performance, OPUS |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the issue:
When encoding a 1-hour 48 kHz mono WAV file to OPUS, FFmpeg takes
significantly longer than fre:ac under similar conditions. Even with
standard settings, fre:ac is faster than FFmpeg’s libopus encoding, and
using the --superfast option in fre:ac results in roughly a 10x speed
improvement on my PC. This issue is not related to a specific version of
ffmpeg - I tried ffmpeg v4, v5, v6 and v7. I used a modern nVME SSD and
Intel i7-13700HX on Windows 11 during benchmarking, but I believe the
issue applies to other storage devices, CPUs and operating systems as
well.
How to reproduce:
FFmpeg (libopus @ 96k, execution time: ~19.1s):
{{{
ffmpeg -nostdin -n -i 1hourmono_48khz.wav -vn -c:a libopus -b:a 96K -ar
48000 -dash 1 -f opus output_ffmpeg_libopus.opus
}}}
fre:ac (opus @ 96k, standard, execution time: ~12.3s):
{{{
.\freaccmd.exe -o "output_freac.opus" --encoder=opus -- --bitrate 96
"1hourmono_48khz.wav"
}}}
fre:ac (opus @ 96k, superfast, execution time: ~1.66s):
{{{
.\freaccmd.exe -o "output_freac_superfast.opus" --encoder=opus --superfast
-- --bitrate 96 "1hourmono_48khz.wav"
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11341>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list