# إنشاء مشروع تجريبي جديد وإرجاع عنوان URL/معرف المشروع.
curl -XPOST \
-H "Content-type: application/json" \
--user demo-cloud:demo-password \
-d '{
"name": "Example Project",
"width": 1920, "height": 1080,
"fps_num": 30, "fps_den": 1,
"sample_rate": 44100, "channels": 2,
"json": {}
}' \
'https://cloud.openshot.org/projects/'
# إضافة الوسائط المرفوعة كمقطع على الجدول الزمني للمشروع.
curl -XPOST \
-H "Content-type: application/json" \
--user demo-cloud:demo-password \
-d '{
"file": "https://cloud.openshot.org/files/INSERT-FILE-ID/",
"position": 0, "start": 0, "end": 10, "layer": 1,
"project": "https://cloud.openshot.org/projects/INSERT-PROJECT-ID/",
"json": {}
}' \
'https://cloud.openshot.org/clips/'
# تطبيق حركة معدة مسبقًا على مقطع موجود باستخدام معرف المقطع.
curl -XPOST \
-H "Content-type: application/json" \
--user demo-cloud:demo-password \
-d '{
"preset": "Zoom In",
"length_in_seconds": "3.0",
"curve": "Ease In"
}' \
'https://cloud.openshot.org/clips/INSERT-CLIP-ID/presets/'
# بدء مهمة تصدير فيديو للمشروع باستخدام الإعدادات المختارة.
curl -XPOST \
-H "Content-type: application/json" \
--user demo-cloud:demo-password \
-d '{
"export_type": "video",
"video_format": "mp4", "video_codec": "libx264", "video_bitrate": 8000000,
"audio_codec": "aac", "audio_bitrate": 1920000,
"start_frame": 1, "end_frame": 0,
"project": "https://cloud.openshot.org/projects/INSERT-PROJECT-ID/",
"webhook": "", "json": {}, "status": "pending"
}' \
'https://cloud.openshot.org/exports/'
# التحقق من حالة (وعناوين URL للنتائج) مهمة التصدير المحددة.
curl -XGET \
-H "Content-type: application/json" \
--user demo-cloud:demo-password \
'https://cloud.openshot.org/exports/INSERT-EXPORT-ID/'
# تحميل ملف الفيديو المعالج لمهمة التصدير المكتملة.
curl -L -XGET \
--user demo-cloud:demo-password \
-o generated-video.mp4 \
'https://cloud.openshot.org/exports/INSERT-EXPORT-ID/download/'