Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VVC Default IDC Incorrect for FFmpeg 7.1 #631

Closed
GT500org opened this issue Feb 5, 2025 · 2 comments
Closed

VVC Default IDC Incorrect for FFmpeg 7.1 #631

GT500org opened this issue Feb 5, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@GT500org
Copy link

GT500org commented Feb 5, 2025

FastFlix Version: 5.8.2

Operating System: Win 10 x64 (22H2)

Describe the bug
Encoding in VVC with default IDC fails. Most relevant part of the logs appears to be the following:
[libvvenc @ 0000013413ed88c0] Invalid level_idc: 0.
Changing IDC to 6 allowed the encode to proceed.

To Reproduce

  1. Update FFmpeg to 7.1 (I'm using the build from gyan.dev).
  2. Add a video to FastFlix (my source used an MKV container, video was encoded in H.265/HEVC using NVENC via OBS Studio, with Opus audio).
  3. Switch the encoder to VVC.
  4. I changed QP to 21 since my video is 2560x1440.
  5. Start encoding.
  6. Encoding should error out immediately.

Logs

  built with gcc 14.2.0 (Rev1, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libopenjpeg --enable-libquirc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-liblc3 --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  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
-vsync is deprecated. Use -fps_mode
Input #0, matroska,webm, from 'E:\Videos\Cyberpunk_2077_Testing_Out_My_Armor.mkv':
  Metadata:
    ENCODER         : Lavf61.1.100
  Duration: 00:02:24.64, start: 0.000000, bitrate: 239657 kb/s
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(pc, bt2020nc/bt2020/arib-std-b67), 2560x1440 [SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 1k tbn
      Metadata:
        DURATION        : 00:02:24.641000000
      Side data:
        Content Light Level Metadata, MaxCLL=1000, MaxFALL=1000
        Mastering Display Metadata, has_primaries:1 has_luminance:1 r(0.6800,0.3200) g(0.2650,0.6900) b(0.1500 0.0600) wp(0.3127, 0.3290) min_luminance=0.000000, max_luminance=1000.000000
  Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp
      Metadata:
        title           : Track1
        DURATION        : 00:02:24.521000000
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> vvc (libvvenc))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libvvenc @ 0000013413ed88c0] Invalid level_idc: 0.
[vost#0:0/libvvenc @ 0000013413ed8640] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0000013413ed8ec0] Error sending frames to consumers: Invalid argument
[vf#0:0 @ 0000013413ed8ec0] Task finished with error code: -22 (Invalid argument)
[vf#0:0 @ 0000013413ed8ec0] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/libvvenc @ 0000013413ed8640] Could not open encoder before EOF
[vost#0:0/libvvenc @ 0000013413ed8640] Task finished with error code: -22 (Invalid argument)
[vost#0:0/libvvenc @ 0000013413ed8640] Terminating thread with return code -22 (Invalid argument)
[out#0/matroska @ 000001341361f340] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0KiB time=N/A bitrate=N/A speed=N/A

Conversion failed!

Please make sure to remove any personal information or video names in the screenshots and logs!
(not necessary, it's a gameplay video I recorded for YouTube)

@GT500org GT500org added the bug Something isn't working label Feb 5, 2025
@cdgriffith
Copy link
Owner

Thanks, took a bit to find what the valid fields are now https://github.com/fraunhoferhhi/vvenc/blob/cf8ba5ed74f8e8c7c9e7b6f81f7fb08bce6241b0/source/Lib/vvenc/vvencCfg.cpp#L159

I will update it to just not pass it in instead of using 0 for auto anymore.

cdgriffith added a commit that referenced this issue Feb 21, 2025
* Adding more preview positions
* Adding ultra high quality mode for ffmpeg nvenc encoder
* Fixing #631 VVC Level can't be set to 0 anymore (thanks to GT500org)
cdgriffith added a commit that referenced this issue Feb 22, 2025
* Adding QP mode for FFmpeg Nvenc encoding
* Adding more preview positions
* Adding ultra high quality mode for ffmpeg nvenc encoder
* Adding Ubuntu 24.04 builds
* Adding #633 download for stable version of ffmpeg by default on Windows (thanks to Maddie Davis)
* Fixing #611 Extension type not being selected properly from profiles if encoders isn't switched (thanks to Hankuu)
* Fixing #628 Custom QP/CRF saved in profile may not be restored correctly (thanks to Gregorio O. DeMojeca)
* Fixing #631 VVC Level can't be set to 0 anymore (thanks to GT500org)
* Removing Ubuntu 20.04, 22.04 and Mac 12 builds
@cdgriffith
Copy link
Owner

Fixing in 5.9.0, thanks for bringing this to my attention! https://github.com/cdgriffith/FastFlix/releases/tag/5.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants