commit daa914687b477a639deb93dcec80f8db4ef41c66
parent 40d1e7a0b4edc5248d80d94c4f040cf2c55273a3
Author: rbckman <rob@tarina.org>
Date: Wed, 8 Nov 2023 21:59:51 +0000
better compand
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/tarina.py b/tarina.py
@@ -2935,7 +2935,7 @@ def stretchaudio(filename,fps):
run_command('cp '+filename+'.wav '+filename+'_temp.wav')
run_command('ffmpeg -y -i ' + filename + '_temp.wav -filter:a atempo="'+str(ratio) + '" ' + filename + '.wav')
os.remove(filename + '_temp.wav')
- time.sleep(5)
+ #time.sleep(5)
return
#-------------Compile Shot--------------
@@ -3152,7 +3152,7 @@ def rendershot(filmfolder, filmname, scene, shot):
print('Videohash of shot is: ' + videohash)
#if something shutdown in middle of process
if os.path.isfile(renderfilename + '_tmp.mp4') == True:
- os.system('mv ' + renderfilename + '_tmp.mp4 ' + renderfilename + '.mp4')
+ os.system('cp ' + renderfilename + '_tmp.mp4 ' + renderfilename + '.mp4')
scenedir = filmfolder + filmname + '/scene' + str(scene).zfill(3) + '/shot' + str(shot).zfill(3) + '/'
# Check if video corrupt
renderfix = False
@@ -3446,7 +3446,8 @@ def renderfilm(filmfolder, filmname, comp, scene, muxing):
if comp > 0:
writemessage('compressing audio')
os.system('mv ' + renderfilename + '.wav ' + renderfilename + '_tmp.wav')
- run_command('sox ' + renderfilename + '_tmp.wav ' + renderfilename + '.wav compand 0.3,1 6:-70,-60,-20 -5 -90 0.2')
+ #run_command('sox ' + renderfilename + '_tmp.wav ' + renderfilename + '.wav compand 0.3,1 6:-70,-60,-20 -5 -90 0.2')
+ run_command('sox ' + renderfilename + '_tmp.wav ' + renderfilename + '.wav compand 0.0,1 6:-70,-43,-20 -6 -90 0.1')
os.remove(renderfilename + '_tmp.wav')
if muxing == True:
#muxing mp3 layer to mp4 file
@@ -4118,7 +4119,7 @@ def audiotrim(filename, where, dub):
# audiosyncms = 1000 + audiosyncms
logger.info('Videofile is: ' + str(audiosync) + 'ms longer')
logger.info('Videofile is: ' + str(int(audiosync)/1000) + 's longer')
- time.sleep(2)
+ #time.sleep(2)
#make fade
#make delay file
print(str(int(audiosync)/1000))
@@ -4379,7 +4380,7 @@ def empty(filename):
return False
if os.path.isfile(filename + '.mp4') == True:
writemessage('Take already exists')
- time.sleep(2)
+ time.sleep(1)
return True
#--------------BUTTONS-------------