commit cf7ad4714a1b2482b27440239f93f3b49ddf5f0a
parent 2702c8081bf43e513241ce8c28f6e6fb2ac6ae0f
Author: rbckman <rob@tarina.org>
Date: Wed, 19 Mar 2025 10:39:24 +0000
intra_period=1 produces messy compression
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gonzopi.py b/gonzopi.py
@@ -1407,7 +1407,7 @@ def main():
os.system(gonzopifolder + '/alsa-utils-1.1.3/aplay/arecord -D hw:' + str(plughw) + ' -f '+soundformat+' -c ' + str(channels) + ' -r '+soundrate+' -vv '+ foldername + filename + '.wav &')
sound_start = time.time()
if onlysound != True:
- camera.start_recording(filmfolder+ '.videos/'+video_origins+'.h264', format='h264', bitrate = bitrate, level=profilelevel, quality=quality, intra_period=1)
+ camera.start_recording(filmfolder+ '.videos/'+video_origins+'.h264', format='h264', bitrate = bitrate, level=profilelevel, quality=quality)
starttime = time.time()
os.system('ln -sfr '+filmfolder+'.videos/'+video_origins+'.h264 '+foldername+filename+'.h264')
recording = True