How do I use dual pass with vp9/webm?

Tried your preset, getting same issue.

Would be nice if a dev could take a look, this part from the logs is what I can see is where the issue starts.

[libvpx-vp9 @ 000000000072d360] --prefix=/root/shotcut/shotcut/Shotcut --enable-vp8 --enable-postproc --enable-multithread --enable-runtime-cpu-detect --disable-install-docs --disable-debug-libs --disable-examples --disable-unit-tests --target=x86_64-win64-gcc
[libvpx-vp9 @ 000000000072d360] Failed to initialize encoder: Invalid parameter
[libvpx-vp9 @ 000000000072d360] Additional information: rc_twopass_stats_in.sz indicates truncated packet.

I really don’t get it, because the parameters it’s sending are the exact same parameters it sends for the first pass or other outputs when I don’t do dual pass.

Here’s a log output from a single pass output.

[libvpx-vp9 @ 000000000072dd00] v1.7.0-134-ge0b88b5
[libvpx-vp9 @ 000000000072dd00] --prefix=/root/shotcut/shotcut/Shotcut --enable-vp8 --enable-postproc --enable-multithread --enable-runtime-cpu-detect --disable-install-docs --disable-debug-libs --disable-examples --disable-unit-tests --target=x86_64-win64-gcc
[h264 @ 000000000072a820] Reinit context to 1280x720, pix_fmt: yuv420p
[libopus @ 000000000661ba00] Value 16666,000000 for parameter ‘frame_duration’ out of range [2,5 - 60]
[h264 @ 000000000072c500] Reinit context to 1280x720, pix_fmt: yuv420p
[h264 @ 000000000f2d90c0] Reinit context to 1280x720, pix_fmt: yuv420p
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[producer avformat-novalidate] D:/Misc/OBS recordings/ReplayBuffer 2018-03-31 16-17-48.mp4
checking VFR: pkt.duration 256
[h264 @ 000000000f2d9a60] Reinit context to 1280x720, pix_fmt: yuv420p
[webm @ 0000000006762340] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[webm @ 0000000006762340] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Automatically inserted bitstream filter ‘vp9_superframe’; args=‘’
Current Frame: 228, percentage: 94
Current Frame: 229, percentage: 95
Current Frame: 230, percentage: 95
Current Frame: 232, percentage: 96
Current Frame: 233, percentage: 96
Current Frame: 234, percentage: 97
Current Frame: 235, percentage: 97
Current Frame: 236, percentage: 97
Current Frame: 238, percentage: 98
Current Frame: 239, percentage: 99
Current Frame: 240, percentage: 99
Completed successfully in 00:00:14