ffmpeg command to tonemap an HDR video to SDR in OGV format

I was successfully using this command on other SDR videos. It caps the vertical resolution at 1080p but maintains the original aspect ratio and uses settings recommended by Godot devs:

ffmpeg
    -hide_banner
    -i %movie%.mp4
    -vf "scale=-1:1080:force_original_aspect_ratio=decrease"
    -q:v 6
    -q:a 6
    -g:v 64 %movie%.ogv 

I added newlines before each option to make it easier to read, but I’m running this all on one line.

The resulting colours are very washed out, so I’m hoping I can use some kind of automatic tonemapping to produce a better result (it’s an outdoor forest scene with a person wearing an orange shirt).

I found this example to convert HDR to SDR, but the playback is very choppy (low framerate) when I change the output file to .ogv and libx265 -> libtheora:

ffmpeg
    -i %movie%.mp4
    -vf "zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p"
    -c:v libtheora
    -crf 22
    -preset medium
    -tune fastdecode %movie%_sdr.ogv 

I also get these warnings:

[out#0/ogv @ 000001d6237b1240] Codec AVOption crf (Select the quality for constant quality mode) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream.

[out#0/ogv @ 000001d6237b1240] Codec AVOption preset (Encoding preset) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream.

[out#0/ogv @ 000001d6237b1240] Codec AVOption tune (The metric that the encoder tunes for. Automatically chosen by the encoder by default) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream.

How can I make this work for Ogg Vorbis ogv files?