I am new to video.

I use a small raspberry pi computer https://www.raspberrypi.org/ and the official Pi camera https://www.raspberrypi.org/products/camera-module-v2/ designed for this computer.

I use a software running on my raspberry pi, Pikrellcam, https://billw2.github.io/pikrellcam/pikrellcam.html , to detect motion and record videos when there is a movment. I can set up this software.

I already made videos, I record the birds in my garden : https://www.youtube.com/user/arnauldbordes/videos

I would like to fine tune / set up the video settings (I record videos for the web and streaming on facebook or youtube).

I currently use :

-fps: 30
-video bitrate: 20000000

I wish to obtain the best video quality.

What settings would you advise?

Thank you for any help.