1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "videoUrls": ["https://images-assets.nasa.gov/video/iss061m2627771232_Live_Interviews_Jeanette_Epps_191004/iss061m2627771232_Live_Interviews_Jeanette_Epps_191004~small.mp4"],
10 "authorized": True,
11 "maxAnalysisSeconds": 20,
12 "sampleFps": 4,
13 "targetAspectRatio": "9:16",
14}
15
16
17run = client.actor("automation-lab/video-speaker-crop-keyframes").call(run_input=run_input)
18
19
20print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
21for item in client.dataset(run.default_dataset_id).iterate_items():
22 print(item)
23
24