tarina

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

commit f410e0a85b81c5724293dfc85355df5c5a2409e2
parent 7af8f0872a4aa6a840c55ed4cf1cb66b0e215811
Author: rob <rob@tarina.org>
Date:   Sun, 10 Sep 2023 18:45:36 +0100

fix trim

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

diff --git a/tarina.py b/tarina.py @@ -823,7 +823,7 @@ def main(): for i in cameras: if i not in camerasoff: if a==0: - pressed="new_scene" + pressagain="new_scene" else: sendtocamera(i,port,'NEWSCENE') a=a+1 @@ -3778,9 +3778,9 @@ def audiotrim(filename, where): if where == 'end': run_command('sox -V0 ' + filename + '.wav ' + filename + '_temp.wav trim 0 -' + str(int(audiosync)/1000)) if where == 'beginning': + logger.info('trimming from beginning at: '+str(int(audiosync)/1000)) run_command('sox -V0 ' + filename + '.wav ' + filename + '_temp.wav trim ' + str(int(audiosync)/1000)) - else: - run_command('sox -V0 -G ' + filename + '_temp.wav ' + filename + '.wav fade 0.01 0 0.01') + run_command('sox -V0 -G ' + filename + '_temp.wav ' + filename + '.wav fade 0.01 0 0.01') os.remove(filename + '_temp.wav') #if int(audiosync) > 400: # writemessage('WARNING!!! VIDEO FRAMES DROPPED!')