gonzopi

git clone https://git.tarina.org/gonzopi
Log | Files | Refs | README | LICENSE

commit 1208e547f930a164b5663ccc6a8b36c3bceb87a7
parent 3838d8a960419f030a2a118723c6e4a3964051d9
Author: rob <rob@tarina.org>
Date:   Mon, 20 Nov 2023 14:14:52 +0000

fix cammode and fps selection

Diffstat:
Mgonzopi.py | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/gonzopi.py b/gonzopi.py @@ -109,7 +109,8 @@ def main(): cammode = 'film' camera_model='' fps = 25 - fps_selected=2 + fps_selection=[5,8,10,11,12,13,14,15,24.985,35,49] + fps_selected=8 quality = 27 profilelevel='4.2' headphoneslevel = 40 @@ -1422,7 +1423,6 @@ def main(): if camera_model == 'imx477': if fps_selected < len(fps_selection)-1: fps_selected+=1 - fps_selection=[5,8,10,11,12,13,14,15,24.985,35,49] fps=fps_selection[fps_selected] camera.framerate = fps elif menu[selected] == 'Q:': @@ -1587,7 +1587,6 @@ def main(): if camera_model == 'imx477': if fps_selected > 0: fps_selected-=1 - fps_selection=[5,8,10,11,12,13,14,15,24.985,35,49] fps=fps_selection[fps_selected] camera.framerate = fps elif menu[selected] == 'Q:': @@ -1636,7 +1635,7 @@ def main(): #serverstate=filmsettings[20] plughw=filmsettings[21] channels=filmsettings[22] - cammode=filmsettings[23] + #cammode=filmsettings[23] scene=filmsettings[24] shot=filmsettings[25] take=filmsettings[26] @@ -4819,7 +4818,7 @@ def startcamera(lens, fps): if camera_revision == 'rev.D': camera.framerate = 23.15 elif camera_model == 'imx477': - fps_selection=[5,15,24.985,35,49] + #fps_selection=[5,15,24.985,35,49] fps=fps_selection[fps_selected] camera.framerate = fps else: