Implementing validation feature

This commit is contained in:
Jamie Hardt
2020-10-22 14:10:28 -07:00
parent 6ad29ccf8b
commit d17f6951d6
6 changed files with 103 additions and 5 deletions

13
ptulsconv/movie_export.py Normal file
View File

@@ -0,0 +1,13 @@
import ffmpeg # ffmpeg-python
def create_movie(event):
start = event['Movie.Start_Offset_Seconds']
duration = event['PT.Clip.Finish_Seconds'] - event['PT.Clip.Start_Seconds']
input_movie = event['Movie.Filename']
print("Will make movie starting at {}, dur {} from movie {}".format(start, duration, input_movie))
def export_movies(events):
for event in events:
create_movie(event)