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

Question about the vvenc plugins #57

Open
Jamaika1 opened this issue Nov 22, 2024 · 1 comment
Open

Question about the vvenc plugins #57

Jamaika1 opened this issue Nov 22, 2024 · 1 comment

Comments

@Jamaika1
Copy link

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.
MartinEesmaa/FFmpeg-VVC@c75940d

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

Jamaika1/plugins_ffmpeg701_mingw1150@2cf965a

https://www.sendspace.com/file/ripdsm

@MartinEesmaa
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants