You can find examples of v360 filtering (and much more) in: FFmpeg_Book.pdf
by Michael Koch, astroelectronic@t-online.de, scripts are PC based, but mostly easy to adapt.
And I find this free ffmpeg course to be valuable:
slhck.info/ffmpeg-encoding-course/#/ Werner Robitza, June 04, 2018
Learn about FFprobe and FFmpeg, 2023
In ffmpeg (in stereo was where I found it), there is a frame size limit of ≈16000x16000 px over/under (or 32000x8000 side/side). I tried to work with 16384x16384 and it failed (2020, ffmpeg 4.3).