tarina

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

commit 3ab99cf2af9a72f21bc9d0530bf721a2ce037a54
parent cfa674e78ed867977f7cd3f0999bb8947510613a
Author: rbckman <rob@tarina.org>
Date:   Wed,  1 Nov 2023 18:25:03 +0000

dubbin and syncin for real

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

diff --git a/tarina.py b/tarina.py @@ -4107,10 +4107,12 @@ def audiotrim(filename, where, dub): delayerr = 'V' + str(audiosync) print(delayerr) print('the results:') - #pipe = subprocess.check_output('mediainfo --Inform="Audio;%Duration%" ' + filename + '.wav', shell=True) - #audiolenght = pipe.decode().strip() - #print('aftersyncvideo: '+str(videolenght) + ' audio:'+str(audiolenght)) - #time.sleep(4) + pipe = subprocess.check_output('mediainfo --Inform="Audio;%Duration%" ' + filename + '.wav', shell=True) + audiolenght = pipe.decode().strip() + print('aftersyncvideo: '+str(videolenght) + ' audio:'+str(audiolenght)) + if int(audiolenght) != int(videolenght): + vumetermessage('SYNCING FAILED!') + time.sleep(10) #os.remove('/dev/shm/' + filename + '.wav') return float(audiosync)/1000, int(videolenght), int(audiolenght) #os.system('mv audiosynced.wav ' + filename + '.wav')