commit c12ea2c2a0a0db02ed1de1657a5389698efce673
parent be294015c0eb096eff891d76a70c53201cc19f51
Author: rbckman <rob@tarina.org>
Date: Tue, 29 Aug 2023 14:31:35 +0100
wowoweewaa
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tarina.py b/tarina.py
@@ -755,7 +755,8 @@ def main():
stopinterface(camera)
all_takes = organize(filmfolder, filmname)
for i in all_takes:
- compileshot(i,filmfolder,filmname)
+
+ compileshot(i[,filmfolder,filmname)
logger.info('SYNCING:'+i)
organize(filmfolder, filmname)
#run_command('scp -r '+filmfolder+filmname+'/'+'scene'+str(scene).zfill(3)+' pi@'+ip+':'+filmfolder+filmname+'/')
@@ -2662,6 +2663,10 @@ def compileshot(filename,filmfolder,filmname):
videolenght=0
audiolenght=0
#Check if file already converted
+ if '.h264' in filename:
+ filename=filename.replace('.h264','')
+ if '.mp4' in filename:
+ filename=filename.replace('.mp4','')
if os.path.isfile(filename + '.h264'):
logger.info('Video not converted!')
writemessage('Converting to playable video')