From: Guillaume Pellerin Date: Fri, 21 Jun 2013 20:23:40 +0000 (+0200) Subject: fix kdenlive rendering X-Git-Tag: 1.4.5~11 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4bf82b5f3cf762ab2b446f8c1128ae747fcd8431;p=telemeta.git fix kdenlive rendering --- diff --git a/telemeta/util/kdenlive/auto_fade_batch.py b/telemeta/util/kdenlive/auto_fade_batch.py index 1828122c..2704776d 100755 --- a/telemeta/util/kdenlive/auto_fade_batch.py +++ b/telemeta/util/kdenlive/auto_fade_batch.py @@ -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') diff --git a/telemeta/util/kdenlive/mlt_fix_threads.sh b/telemeta/util/kdenlive/mlt_fix_threads.sh index 28bd0ad9..52b96166 100755 --- a/telemeta/util/kdenlive/mlt_fix_threads.sh +++ b/telemeta/util/kdenlive/mlt_fix_threads.sh @@ -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 diff --git a/telemeta/util/kdenlive/mlt_process_batch.py b/telemeta/util/kdenlive/mlt_process_batch.py index afaad379..1b4176da 100755 --- a/telemeta/util/kdenlive/mlt_process_batch.py +++ b/telemeta/util/kdenlive/mlt_process_batch.py @@ -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)