tarina

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

commit 22da6092065d351c2ad5445b08de80d08f0f2084
parent 82b94a2b27c810426003f7904b6e4595feab3b75
Author: rob <rob@tarina.org>
Date:   Sat, 18 Mar 2023 21:42:54 +0000

try record audio to sdcard direct

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

diff --git a/tarina.py b/tarina.py @@ -652,7 +652,7 @@ def main(): beeping = False if os.path.isdir(foldername) == False: os.makedirs(foldername) - os.system(tarinafolder + '/alsa-utils-1.1.3/aplay/arecord -D plughw:' + str(plughw) + ' -f '+soundformat+' -c ' + str(channels) + ' -r '+soundrate+' -vv /dev/shm/' + filename + '.wav &') + os.system(tarinafolder + '/alsa-utils-1.1.3/aplay/arecord -D plughw:' + str(plughw) + ' -f '+soundformat+' -c ' + str(channels) + ' -r '+soundrate+' -vv '+ foldername + filename + '.wav &') if onlysound != True: camera.start_recording(foldername + filename + '.h264', format='h264', quality=quality, level=profilelevel) starttime = time.time() @@ -692,7 +692,7 @@ def main(): if beeps > 0: buzz(300) #compileshot(foldername + filename) - os.system('cp /dev/shm/' + filename + '.wav ' + foldername + filename + '.wav') + #os.system('cp /dev/shm/' + filename + '.wav ' + foldername + filename + '.wav') if beeps > 0: buzz(150) t = 0 @@ -1749,7 +1749,7 @@ def timelapse(beeps,camera,foldername,filename,between,duration): #camera.start_recording(foldername + 'timelapse/' + filename + '_' + str(n).zfill(3) + '.h264', format='h264', quality=26, bitrate=5000000) camera.start_recording(foldername + 'timelapse/' + filename + '_' + str(n).zfill(3) + '.h264', format='h264', quality=quality, level=profilelevel) if sound == True: - os.system(tarinafolder + '/alsa-utils-1.1.3/aplay/arecord -D hw:'+str(plughw)+' -f '+soundformat+' -c '+str(channels)+' -r '+soundrate+' -vv /dev/shm/' + filename + '_' + str(n).zfill(3) + '.wav &') + os.system(tarinafolder + '/alsa-utils-1.1.3/aplay/arecord -D hw:'+str(plughw)+' -f '+soundformat+' -c '+str(channels)+' -r '+soundrate+' -vv '+foldername + filename + '_' + str(n).zfill(3) + '.wav &') files.append(foldername + 'timelapse/' + filename + '_' + str(n).zfill(3)) starttime = time.time() recording = True