tarina

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

commit 559d5b98b96cdf0a770eea9f0031b4d1e0bb12a8
parent 497ca1b23dce65236a2f823b89e64df1c30734d6
Author: rob <rob@tarina.org>
Date:   Thu,  5 Sep 2019 16:35:43 +0300

the sweet spot between quality and usability in the encoder

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

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