commit 0862bff62f40c0f9fef2bbf2ccafbae192bd0338
parent 2586fe315943b49314d48912043815238a68b455
Author: rbckman <rbckman@ceppo>
Date: Mon, 7 Oct 2019 12:16:40 +0300
reduce quality more, we never want dropped frames anymore
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tarina.py b/tarina.py
@@ -568,7 +568,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=25, bitrate=3000000)
+ camera.start_recording(foldername + 'timelapse/' + filename + '_' + str(n).zfill(3) + '.h264', format='h264', quality=26, bitrate=3000000)
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))
@@ -2235,7 +2235,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=25, bitrate=3000000)
+ camera.start_recording(foldername + filename + '.h264', format='h264', quality=26, bitrate=3000000)
starttime = time.time()
recording = True
elif recording == True and float(time.time() - starttime) > 0.2: