Upload video from URL (with subtitles)
Upload video from URL (with subtitles)
Upload video from URL (with subtitles)
FastPix pull-based uploads let you upload media by providing public URLs from any cloud storage and attach multiple subtitle tracks during media creation.
1. Authorization
This token is generated by combining your FastPix Token ID and Secret Key in the format: Token ID:Secret Key, then encoding it in base64.
2. Payload request
1"tok-keyword">curl "tok-flag">--request "tok-keyword">POST \
2 "tok-flag">--url https://api.fastpix.com/v1/on-demand \
3 "tok-flag">--header "tok-string">'accept: application/json' \
4 "tok-flag">--header "tok-string">'authorization: Basic {BASE64_TOKENID:SECRET}' \
5 "tok-flag">--header "tok-string">'content-type: application/json' \
6 "tok-flag">--data '
7{
8 "inputs": [
9 {
10 "type": "video",
11 "url": "https://static.fastpix.com/fp-sample-video.mp4"
12 },
13 {
14 "type": "subtitle",
15 "url": "https://storage.fastpix.net/media/test/srt_tracks/add_tracks/subtitle_French.srt",
16 "languageCode": "fr-FR",
17 "languageName": "French"
18 },
19 {
20 "type": "subtitle",
21 "url": "https://storage.fastpix.net/media/test/srt_tracks/add_tracks/subtitle_German.srt",
22 "languageCode": "de-DE",
23 "languageName": "German"
24 }
25 ],
26 "accessPolicy": "public",
27 "maxResolution": "1080p",
28 "mediaQuality": "standard"
29}'