commit c420b837304814854daba18dc5ab6d4d2da2c028
parent c681f47d3932335c930a1828ae1602616a059352
Author: rbckman <robinbackman@gmail.com>
Date: Fri, 8 Feb 2019 11:21:04 +0200
quality setting changed
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tarina.py b/tarina.py
@@ -474,7 +474,7 @@ def timelapse(beeps,camera,foldername,filename,tarinafolder):
settings = str(between), str(duration), '', ''
writemenu(menu,settings,selected,header)
seconds = (3600 / between) * duration
- vumetermessage('1 h timelapse filming equals ' + str(seconds) + ' second clip ')
+ vumetermessage('1 h timelapse filming equals ' + str(int(seconds)) + ' second clip ')
pressed, buttonpressed, buttontime, holdbutton, event, keydelay = getbutton(pressed, buttonpressed, buttontime, holdbutton)
if pressed == 'up' and menu[selected] == 'BETWEEN:':
between = between + 0.1
@@ -511,7 +511,7 @@ def timelapse(beeps,camera,foldername,filename,tarinafolder):
t = time.time() - starttime
pressed, buttonpressed, buttontime, holdbutton, event, keydelay = getbutton(pressed, buttonpressed, buttontime, holdbutton)
if recording == False and t > between:
- camera.start_recording(foldername + 'timelapse/' + filename + '_' + str(n).zfill(3) + '.h264', format='h264', quality=20)
+ camera.start_recording(foldername + 'timelapse/' + filename + '_' + str(n).zfill(3) + '.h264', format='h264', quality=25)
if sound == True:
os.system(tarinafolder + '/alsa-utils-1.0.25/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))
@@ -1249,7 +1249,7 @@ def main():
if os.path.isdir(foldername) == False:
os.makedirs(foldername)
os.system(tarinafolder + '/alsa-utils-1.0.25/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=20)
+ camera.start_recording(foldername + filename + '.h264', format='h264', quality=25)
starttime = time.time()
recording = True
elif recording == True and float(time.time() - starttime) > 0.2: