commit ae552b5fa1e17c0aecc531fc4fe067284541b1cd
parent c7e7632cba58c495b8756d42279847233e11bbfd
Author: rbckman <rob@tarina.org>
Date: Thu, 3 Sep 2020 11:10:40 +0300
quality change
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tarina.py b/tarina.py
@@ -487,7 +487,7 @@ def main():
if os.path.isdir(foldername) == False:
os.makedirs(foldername)
os.system(tarinafolder + '/alsa-utils-1.1.3/aplay/arecord -D hw:0 -f S16_LE -c 1 -r44100 -vv /dev/shm/' + filename + '.wav &')
- camera.start_recording(foldername + filename + '.h264', format='h264', quality=26, bitrate=3000000)
+ camera.start_recording(foldername + filename + '.h264', format='h264', quality=26, bitrate=5000000)
starttime = time.time()
recording = True
elif recording == True and float(time.time() - starttime) > 0.2:
@@ -1350,7 +1350,7 @@ def timelapse(beeps,camera,foldername,filename):
if recording == False and t > between:
if beeps > 0:
buzz(150)
- camera.start_recording(foldername + 'timelapse/' + filename + '_' + str(n).zfill(3) + '.h264', format='h264', quality=26, bitrate=3000000)
+ camera.start_recording(foldername + 'timelapse/' + filename + '_' + str(n).zfill(3) + '.h264', format='h264', quality=26, bitrate=5000000)
if sound == True:
os.system(tarinafolder + '/alsa-utils-1.1.3/aplay/arecord -D hw:0 -f S16_LE -c 1 -r 44100 -vv /dev/shm/' + filename + '_' + str(n).zfill(3) + '.wav &')
files.append(foldername + 'timelapse/' + filename + '_' + str(n).zfill(3))