mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2026-01-02 01:40:49 +00:00
Implementing validation feature
This commit is contained in:
13
ptulsconv/movie_export.py
Normal file
13
ptulsconv/movie_export.py
Normal 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)
|
||||
Reference in New Issue
Block a user