Question about the vvenc plugins

#57 · closed · 2 comments

View on GitHub ↗

Jamaika1

Struggle with vvc. I have no idea how to make ffmpeg from vvc on 2 x pass at once. I know that can give commands twice. It seems simple but something is missing. I don't know how to initialize the ff_encode_encode_cb function. https://github.com/MartinEesmaa/FFmpeg-VVC/commit/c75940db290478df657c09089605d221dc47118e ffmpeg_avx2.exe -y -v verbose -i "input.mp4" -c:v libvvenc -vb 6000k -r 30000/1001 -an -frames:v 100 -movflags faststart -vvenc-params threads=16:_pass=2:_passes=2 -vf scale=1920:1080:in_range=full:_out_range=full,format=yuv420p10le 113.vvc [libvvenc @ 0000024931628010] libvvenc version: 1.12.1-0f7b70d [libvvenc @ 0000024931628010] vvenc [notice]: Internal format : 1920x1080 29.97 Hz SDR BT.709 vvenc [notice]: Threads : 16 (parallel frames: 4) vvenc [notice]: Rate control : VBR 6 Mbps two-pass pass 1/2 vvenc [notice]: Perceptual optimization : Enabled vvenc [notice]: Intra period (keyframe) : 256 ... [out#0/vvc @ 000002492f4d0910] Starting thread... RC pass 1/2, analyze poc 31= 0KiB time=N/A bitrate=N/A speed=N/A ... [libvvenc @ 0000024931628010] libvvenc version: 1.12.1-0f7b70d [libvvenc @ 0000024931628010] vvenc [notice]: Internal format : 1920x1080 29.97 Hz SDR BT.709 vvenc [notice]: Threads : 16 (parallel frames: 4) vvenc [notice]: Rate control : VBR 6 Mbps two-pass pass 2/2 vvenc [notice]: Perceptual optimization : Enabled vvenc [notice]: Intra period (keyframe) : 256 ... Error during encoding https://github.com/Jamaika1/plugins_ffmpeg701_mingw1150/commit/2cf965a2ff189998c53e8270873b1f1757cda8cb https://www.sendspace.com/file/ripdsm

Comments

MartinEesmaa

Hi, @Jamaika1! Sorry for late response. Anyway... please note you may need to create pass file before encoding. Example of first pass out of second pass: ``` ffmpeg_vvceasy -i sample.mp4 -c:v libvvenc -b:v 3000k -pass 1 -an -f null NUL ``` Second pass out of second pass: ``` ffmpeg_vvceasy -i sample.mp4 -c:v libvvenc -b:v 3000k -pass 2 -c:a copy encoded.mp4 ``` See information: https://github.com/fraunhoferhhi/vvenc/wiki/FFmpeg-Integration#vbr-rate-control-variable-bitrate-mode Also that you inserted `-movflags faststart` is optional which is only for MP4 muxing. If you have a question or issue, let me know! Thanks! :) - Martin Eesmaa

MartinEesmaa

I have to close the issue after three months with no response. Sorry about that. Feel free to reopen the issue again anytime. :) - Martin Eesmaa