VOD to Live Stream

Hi Max,

We have one use-case where user will schedule a VOD content for Live Streaming, How we can initialize a transponder with a VOD link ? Can you please help ?
 

Max

Administrator
Staff member
Good day.
You can publish a stream from VOD using REST API. Please read details here
Code:
POST /rest-api/vod/startup HTTP/1.1
HOST: localhost:8081
content-type: application/json
content-length: 83

{
    "uri":"vod-live://sample.mp4",
    "localStreamName": "test"
}
 
Hi Max, we followed above method, Every time when we are doing a POST request its coming back as 200 Ok, but when I am trying to find_all the VOD streams its returning as 404 Not found

this is where we are doing post request -


with the following body:

{
"uri":"vod-live://https://bliving.s3.amazonaws.com/react-native-video/assets/movie_4.mp4",
"localStreamName": "vod-test"
}

Our each post request returning as 200 OK, but when I am trying to find its returning 404
 
Hi Max, I have tried the method mentioned in the documentation for AWS S3 file VOD Streaming.

First approach -

Code:
{
"uri":"vod-live://s3/cloud-storage-records/sintel.mp4",
"localStreamName": "vod-2-aws"
}
Second approach -

Code:
{
"uri":"vod-live://s3/https://cloud-storage-records.s3.ap-south-1.amazonaws.com/sintel.mp4",
"localStreamName": "vod-2-aws"
}

for testing sake, used full object URL after S3 also, but no matter what we pass as URL every time I am getting following error flashphoner.log tail (detailed log screenshot is attached) -


Bash:
17:26:07,338 INFO               NodeApi - HTTPS-pool-5-thread-30 Play failed cause - FAILED
17:26:07,338 INFO             PullAgent - HTTPS-pool-5-thread-30 Agent vod-live://s3/cloud-storage-records/sintel.mp4-5674e6da-afe7-471e-b2a2-9736ee7ab1d4 changed state to FAILED
17:26:07,338 INFO          AgentFactory - HTTPS-pool-5-thread-30 Provide stream initialization result ADDED
17:26:07,339 ERROR            PullAgent - Thread-70 Agent activity thread working with state FAILED
17:26:07,339 INFO             PullAgent - Thread-70 Agent vod-live://s3/cloud-storage-records/sintel.mp4-5674e6da-afe7-471e-b2a2-9736ee7ab1d4 changed state to STOPPED
can you please let me know what causing such error ?

FYI: all the S3 credentials are set on the Flashphoner.properties.
 

Attachments

Max

Administrator
Staff member
for testing sake, used full object URL after S3 also
With AWS S3, you can use only URIs like vod-live://s3/cloud-storage-records/sintel.mp4. Full HTTP URIs works with S3 compatible storages only (Digital Ocean Spaces for example)
So make sure you have an S3 bucket cloud-storage-records in your S3 storage. Make sure the file is compatilbe with those format requirements. Also make sure the WCS EC2 instance and S3 storage are in the same region.
If the problem still persists, please collect a report as described here using repot.sh script, then send it using this private form.
 
Top