mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 08:50:48 +00:00
14 lines
412 B
Python
14 lines
412 B
Python
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)
|