The Transcode API can be used with any S3-compatible storage provider.
Storj S3 Credentials
This step assumes that you have already created an account with Storj. Follow the Storj guide for generating S3 credentials using either the web interface oruplink. Make sure that the credentials have
the proper read/write permissions for the bucket that your video files will be
read from and that transcoded videos will be written to. The access key and
secret key of the credentials will be used in the next step.
Upload Video to Storj
Make sure you have a video file uploaded to your Storj bucket. You must upload the video file using one of the following methods:- Via the Storj web interface
- Via the Storj uplink CLI
- Via a S3 API client
- AWS has S3 API client implementations in different programming languages
- The code examples illustrate how to upload a video file to Storj using a S3 API client
 
Transcode with Livepeer
This step assumes that you have already created a Livepeer Studio account and an API key.- Node.js
- Python
- Go
- $API_KEYis your Livepeer Studio API key
- $ACCESS_KEY_IDis the access key and- $SECRET_ACCESS_KEYis the secret key of the S3 credentials you generated in the previous step
- input.bucketis the name of your Storj bucket
- input.pathis the path that your video file can be found in the Storj bucket
- outputs.hls.pathis the path that the HLS playlist and mpegts segments is found in when transcoding is complete
- outputs.mp4.pathis the path that the MP4 video files is found in when transcoding is complete
- profilesis an optional parameter to specify the desired properties of transcoded video
outputs.hls.path, and MP4 output videos will be available at
outputs.mp4.path.
For more information about the transcode API refer to the
API reference docs.
Playback From Storj
You can create a public playback URL for the transcoded video by first creating a shared Storj URL:- If you are using uplink, follow the Storj Link Sharing guide to create a URL for your bucket
- Ex.
uplink share sj://demo-bucket/ --url --not-after=none --base-url=https://link.storjshare.io
- If you are using the web interface, navigate to your bucket under “Buckets” and click the “Share Bucket” button to create a URL for your bucket
outputs.hls.path for the request in the previous step was
/samplevideo/hls, then the master HLS playlist used for playback will be
available at:
https://lvpr.tv/?url=https://storage.lp-playback.studio/raw/jwjfgdx…/demo-bucket/samplevideo/hls/index.m3u8
will play back the video using the embeddable Livepeer player.