Create media from URL
This endpoint allows developers or users to create a new video or audio media in FastPix using a publicly accessible URL. FastPix fetches the media from the provided URL, processes it, and stores it on the platform for use.
Public URL requirement:
The provided URL must be publicly accessible and must point to a video stored in one of the following supported formats: .m4v, .ogv, .mpeg, .mov, .3gp, .f4v, .rm, .ts, .wtv, .avi, .mp4, .wmv, .webm, .mts, .vob, .mxf, asf, m2ts
Supported storage types:
The URL can originate from various cloud storage services or content delivery networks (CDNs) such as:
-
Amazon S3: URLs from Amazon’s Simple Storage Service.
-
Google Cloud Storage: URLs from Google Cloud’s storage solution.
-
Azure Blob Storage: URLs from Microsoft’s Azure storage.
-
Public CDNs: URLs from public content delivery networks that host video files.
Upon successful creation, the API returns an id that must be retained for future operations related to this media.
How it works
-
Send a POST request to this endpoint with the media URL (typically a video or audio file) and optional media settings.
-
FastPix uploads the video from the provided URL to its storage.
-
Receive a response containing the unique id for the newly created media item.
-
Use the id in subsequent API calls, such as checking the status of the media with the Get Media by ID endpoint to determine when the media is ready for playback.
FastPix uses webhooks to tell your application about things that happen in the background, outside of the API regular request flow. For instance, after the media file is created (but not yet processed or encoded), FastPix sends a POST request to your specified webhook URL with the event video.media.created.
After processing completes, monitor the events video.media.ready and video.media.failed to track the status of the media file.
Related guide: Upload videos from URL
Authentication
FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request.
- Username: Access Token ID
- Password: Secret Key
Activate your FastPix account to generate your API credentials. See the guide here
Request
Add one input object at a time. For example, first add a VideoInput object. If you also need a watermark, click Add item again and select WatermarkInput. Repeat this process for AudioInput or SubtitleInput as needed. For a complete explanation of how media uploads from URL and processing work, refer to the
FastPix Video on Demand Overview.
You can search for videos with specific key value pairs using metadata, when you tag a video in “key” : “value” pairs. Dynamic metadata allows you to define a key that allows any value pair. You can have maximum of 255 characters and upto 10 entries are allowed.
Generates subtitle files for audio/video files.
“capped_4k”: Generates an mp4 video file up to 4k resolution “audioOnly”: Generates an m4a audio file of the media file “audioOnly,capped_4k”: Generates both video and audio media files for offline viewing
normalize volume of the audio track. This is available for pre-recorded content only.
Enable or disable the chapters feature for the media. Set to true to enable chapters or false to disable.
Enable or disable named entity extraction. Set to true to enable or false to disable.