Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for thread in range(1, total_threads + 1):
- new_lossless = lossless.replace('[NUM]', str(thread))
- joined_avs.write('tmp = FFVideoSource("{0}",colorspace="YV12_10-bit_hack",track=-1,pp="")\n'.format(new_lossless))
- if(thread == 0):
- if(total_threads == 1):
- #first and only thread
- joined_avs.write('total1 = tmp\n')
- else:
- #first thread
- joined_avs.write('total1 = tmp.Trim(0,tmp.FrameCount() - 51)\n')
- elif(thread == total_threads - 1):
- #final thread
- joined_avs.write('total1 = total1 + tmp.Trim(51,tmp.FrameCount())\n')
- else:
- joined_avs.write('total1 = total1 + tmp.Trim(51,tmp.FrameCount() - 51)\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement