tarina

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

commit 4c011dd40029faacbbe1cdcc9f49183dc65dbc1a
parent 583823883079d80170e06fbcf5d71f3643776a20
Author: rob <rob@tarina.org>
Date:   Sat, 20 Apr 2019 20:25:01 +0100

change compression quality a little higher

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

diff --git a/tarina.py b/tarina.py @@ -499,7 +499,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=25) + camera.start_recording(foldername + 'timelapse/' + filename + '_' + str(n).zfill(3) + '.h264', format='h264', quality=23) 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=25) + camera.start_recording(foldername + filename + '.h264', format='h264', quality=23) starttime = time.time() recording = True elif recording == True and float(time.time() - starttime) > 0.2: