]> git.parisson.com Git - telemeta.git/commitdiff
fix kdenlive rendering
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 21 Jun 2013 20:23:40 +0000 (22:23 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 21 Jun 2013 20:23:40 +0000 (22:23 +0200)
telemeta/util/kdenlive/auto_fade_batch.py
telemeta/util/kdenlive/mlt_fix_threads.sh
telemeta/util/kdenlive/mlt_process_batch.py

index 1828122c400a21529accff5718d189e2baf63bf1..2704776d5d18c2f706f6cbe606769e499748e1f5 100755 (executable)
@@ -11,6 +11,7 @@ if __name__ == '__main__':
         path = dir + os.sep + filename
         flag = path + '.faded'
         if ext in extension and not os.path.exists(flag):
+            os.system('cp ' + path + ' ' + path + '.bak')
             fade = AutoFade(path)
             data = fade.run()
             f = open(path, 'w')
index 28bd0ad9023193b50606b268fa36ae0dc660d79c..52b96166bda16f2245b53d415f193697760ff720 100755 (executable)
@@ -1,7 +1,10 @@
 #!/bin/sh
 
-for file in `ls $1/*.sh`; do
-perl -pi -e 's/threads=2/threads=8/g' $file
-perl -pi -e 's/threads=4/threads=8/g' $file
-perl -pi -e 's/threads=6/threads=8/g' $file
+threads=$1
+dir=$2
+
+for file in `ls $dir/*.sh`; do
+ perl -pi -e 's/threads=2/threads=$threads/g' $file
+ perl -pi -e 's/threads=4/threads=$threads/g' $file
+ perl -pi -e 's/threads=6/threads=$threads/g' $file
 done
index afaad379288ec61ff9adfd24c32f728c8b2d7da1..1b4176da752d14f23633025ec9e7c6685effee8c 100755 (executable)
@@ -24,7 +24,8 @@ if __name__ == '__main__':
                             local_path = root + os.sep + local_file
                             local_flag = local_path + '.faded'
                             if not os.path.exists(local_flag):
-                                os.system('cp ' + path + ' ' + path + '.bak')
+                                print 'fading :        ' + local_path 
+                                os.system('cp ' + local_path + ' ' + local_path + '.bak')
                                 fade = AutoFade(local_path)
                                 data = fade.run()
                                 f = open(local_path, 'w')
@@ -32,5 +33,6 @@ if __name__ == '__main__':
                                 f.close()
                                 os.system('touch ' + local_flag)
 
+                print 'processing :    ' + path
                 os.system('nice -n 19 ' + path)
                 os.system('touch ' + flag)