Ingesting an Asset
Add the content that you want to distribute in the playlists in Media Streams.
Assets (content) are ingested (added) into a distribution channel and streamed using a packaging configuration. To run the ingest operation, the asset publisher must have the MEDIA_WORKFLOW_JOB_CREATE
permission on the compartment where the asset is ingested.
- Read the primary playlist (m3u8) from the Object Storage location in the region.
- Read the bucket, playlist, and any rendered files in the channel.
Media Streams can ingest only HLS playlists. To use OCI Media Streams to deliver your content, create an HLS playlist by using OCI Media Flow.
Asset ingestion using the CLI requires a media asset ID for ingestion.
You can use the Console to view the existing media asset IDs and proceed with asset ingestion or you can create a new one in the CLI based on the HLS media in your object storage bucket using the
create
command:oci media-services media-asset create [OPTIONS]
Required parameters for the
create
command are:--compartment id [text]
--type [text]
:<use the type PLAYLIST for the HLS media>
--namespace-name [text]
--bucket-name [text]
--object-name [text]
:<name of the primary HLS or m3u8 file>
After the media asset ID is created, you can ingest the asset.
To ingest an asset, use the
ingest-stream-distribution-channel-asset-metadata-entry-details
command:oci media-services stream-distribution-channel ingest-stream-distribution-channel-asset-metadata-entry-details [OPTIONS]
Required parameters for the
ingest-stream-distribution-channel-asset-metadata-entry-details
command are:--media-asset-id [text]
--stream-distribution-channel-id [text]
--compartment-id [text]
To get all the commands for
stream-distribution-channel
:oci media-services stream-distribution-channel -h
To get help for the
ingest-stream-distribution-channel-asset-metadata-entry-details
command:oci media-services stream-distribution-channel ingest-stream-distribution-channel-asset-metadata-entry-details -h
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
To ingest an asset, use the
IngestStreamDistributionChannel
operation.After the asset is successfully ingested, you can manually create a Preview URL. For details, see Creating a Preview URL.