1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "videos": [{
9 "name": "Sintel demo",
10 "scenes": [
11 {
12 "image": "https://api.apify.com/v2/key-value-stores/RkSrriT2fTvMveOOb/records/sintel-dragon.jpg?signature=11gwPwjv6DDqDYar9BCsG",
13 "duration": 4,
14 "zoom": "in",
15 "texts": [{
16 "text": "SINTEL",
17 "position": "top",
18 "font": "Anton",
19 "fontSize": 120,
20 "end": 3.5,
21 }],
22 },
23 {
24 "video": "https://api.apify.com/v2/key-value-stores/RkSrriT2fTvMveOOb/records/sintel-clip.mp4?signature=DqX7vu3jAYw8EvQE12V1",
25 "start": 0.5,
26 "end": 3.5,
27 },
28 {
29 "image": "https://api.apify.com/v2/key-value-stores/RkSrriT2fTvMveOOb/records/sintel-market.jpg?signature=VuRpSNn2h6bNPNrsPcvL",
30 "duration": 4,
31 "fit": "blur",
32 "zoom": "out",
33 },
34 ],
35 "voiceover": "https://api.apify.com/v2/key-value-stores/RkSrriT2fTvMveOOb/records/narration.mp3?signature=1NvxzbK6Cnw0M9espC1Ov",
36 "music": {
37 "url": "https://api.apify.com/v2/key-value-stores/RkSrriT2fTvMveOOb/records/sintel-music.mp3?signature=FGXdm8vCVD4u2z7EdnQl",
38 "volume": 0.3,
39 },
40 "captions": {
41 "url": "https://api.apify.com/v2/key-value-stores/RkSrriT2fTvMveOOb/records/narration.srt?signature=NWQ0GYOx6bBSKbfcJ0AE",
42 "wordsPerCaption": 3,
43 "highlightColor": "#FFD60A",
44 },
45 "logo": {
46 "url": "https://api.apify.com/v2/key-value-stores/RkSrriT2fTvMveOOb/records/logo.png?signature=1gjlJe5nz2Oq9DcMpjQwT",
47 "widthPercent": 8,
48 },
49 "fadeOutSeconds": 1,
50 }] }
51
52
53run = client.actor("steadyscrape/video-render-api").call(run_input=run_input)
54
55
56print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
57for item in client.dataset(run.default_dataset_id).iterate_items():
58 print(item)
59
60