[FFmpeg-user] I try to use libvvenc for encoding and get only "speed=0.0991"
Alex
al-ffmpeguser at none.at
Thu Oct 17 19:49:20 EEST 2024
Hi.
I'm curious about the new vv codec and tried to encode a small file with
libvvenc. https://ffmpeg.org/ffmpeg-codecs.html#libvvenc
What suprices me was that I only get a very low speed for encoding.
```
frame=36660 fps=3.0 q=-0.0 size= 86272KiB time=00:20:23.08 bitrate=
577.8kbits/s speed=0.0991
```
I'm pretty sure I make something wrong, maybe somebody can give me a hint what's
wrong and what's the right solution can I use.
```shell
ffmpeg -i testfile.mp4 -c:v libvvenc -c:a copy testfile-manual_libvvenc.mkv
ffmpeg version 7.1 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration: --disable-decoder=amrnb --disable-gnutls --disable-liblensfun
--disable-libopencv --disable-podpages --disable-sndio --disable-stripping
--enable-avfilter --enable-chromaprint --enable-frei0r --enable-gcrypt
--enable-gpl --enable-ladspa --enable-libaom --enable-libaribb24 --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
--enable-libcodec2 --enable-libdav1d --enable-libdc1394 --enable-libdrm
--enable-libdvdnav --enable-libdvdread --enable-libfdk-aac --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme
--enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libilbc
--enable-libjack --enable-libjxl --enable-libklvanc --enable-libkvazaar
--enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse
--enable-librabbitmq --enable-librist --enable-librsvg --enable-librubberband
--enable-libshine --enable-libsmbclient --enable-libsnappy --enable-libsoxr
--enable-libspeex --enable-libsrt --enable-libsvtav1 --enable-libtesseract
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2
--enable-nonfree --enable-omx --enable-openal --enable-opencl --enable-opengl
--enable-openssl --enable-postproc --enable-pthreads --enable-shared
--enable-version3 --incdir=/usr/include/x86_64-linux-gnu
--libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --toolchain=hardened
--enable-vaapi --enable-libvpl --enable-libxavs2 --enable-libdavs2
--enable-libvmaf --enable-libvvenc --cc=x86_64-linux-gnu-gcc
--cxx=x86_64-linux-gnu-g++ --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.100 / 61. 19.100
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'testfile.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.1.100
Duration: 00:39:57.90, start: 0.000000, bitrate: 1184 kb/s
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661),
yuv420p(progressive), 854x480 [SAR 1:1 DAR 427:240], 993 kb/s, 29.97 fps, 29.97
tbr, 11988 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 127 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream #0:2[0x10000](und): Data: none (rtp / 0x20707472), 47 kb/s (default)
Metadata:
creation_time : 2015-07-10T17:32:50.000000Z
handler_name : GPAC ISO Hint Handler
Stream #0:3[0x10001](und): Data: none (rtp / 0x20707472), 9 kb/s (default)
Metadata:
creation_time : 2015-07-10T17:32:53.000000Z
handler_name : GPAC ISO Hint Handler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> vvc (libvvenc))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libvvenc @ 0x5a8b79567780] libvvenc version: 1.12.0
Output #0, matroska, to 'testfile-manual_libvvenc.mkv':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf61.7.100
Stream #0:0(und): Video: vvc (vvc1 / 0x31637676), yuv420p10le(progressive),
854x480 [SAR 1:1 DAR 427:240], q=2-31, 29.97 fps, 1k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc61.19.100 libvvenc
Stream #0:1(und): Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz,
stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
frame=36660 fps=3.0 q=-0.0 size= 86272KiB time=00:20:23.08 bitrate=
577.8kbits/s speed=0.0991
```
That's the vv encoders
```
ffmpeg -hide_banner -encoders|egrep -i vv
VFS..D dvvideo DV (Digital Video)
V....D libvvenc libvvenc H.266 / VVC (codec vvc)
```
That's the HWAccels
```
ffmpeg -hide_banner -hwaccels
Hardware acceleration methods:
vdpau
vaapi
qsv
drm
opencl
```
I have also run a encode with av1 and this was quite fast.
```
ffmpeg -hide_banner -i testfile.mp4 -c:v libsvtav1 -c:a copy
testfile-manual_libsvtav1.mkv
```
That's the test files in the directory.
```
ls -larth testfile*
-rw-r--r-- 1 alex alex 339M Okt 17 14:30 testfile.mp4
-rw-rw-r-- 1 alex alex 298M Okt 17 15:11 testfile-manual_libsvtav1.mkv
-rw-rw-r-- 1 alex alex 89M Okt 17 18:46 testfile-manual_libvvenc.mkv
```
Which further information's do you need for analyzing?
Regards
Alex
More information about the ffmpeg-user
mailing list