I’ve been using this command for running rav1e encoder:

ffmpeg -i test.mkv -pix_fmt yuv420p -f yuv4mpegpipe - | rav1e - --first-pass --quantizer 100 --speed 10 --tiles 8 --tune Psychovisual --second-pass --quantizer 100 --speed 10 --tiles 8 --tune Psychovisual --output output.ivf

But all it does is give this error:

av_interleaved_write_frame(): Invalid argument Last message repeated 3 times Error writing trailer of pipe:: Invalid argument

Does anyone know the correct syntax for two pass encode in rav1e?