gonzopi

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

commit ad4c8fbb58605c07a158b0e0598020618ef3aac4
parent 9b0ff613460c131235b2686f2b9f95cf88e41726
Author: rbckman <rob@tarina.org>
Date:   Fri, 28 Mar 2025 13:46:31 +0000

intra_period=1

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

diff --git a/gonzopi.py b/gonzopi.py @@ -1413,7 +1413,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) + camera.start_recording(filmfolder+ '.videos/'+video_origins+'.h264', format='h264', bitrate = bitrate, level=profilelevel, quality=quality, intra_period=1) starttime = time.time() os.system('ln -sfr '+filmfolder+'.videos/'+video_origins+'.h264 '+foldername+filename+'.h264') recording = True @@ -4097,7 +4097,7 @@ def stretchaudio(filename,fps): def encoder(): global bitrate - return '-c:v h264_omx -profile:v high -level:v 4.2 -preset ultrafast -bsf:v h264_metadata=level=4.2 -g 1 -b:v '+str(bitrate)+' -c:a copy ' + return '-c:v h264_omx -profile:v high -level:v 4.2 -preset slow -bsf:v h264_metadata=level=4.2 -g 1 -b:v '+str(bitrate)+' -c:a copy ' #-------------Compile Shot--------------