I am trying to create a smil file with REST API.
this is my CURL request:
curl -X POST -H ‘Accept:application/json; charset=utf-8’ -H ‘Content-Type:application/json; charset=utf-8’ --digest --user ‘:’ http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/instances/smilfiles/mytestsmil -d
{
“restURI”: “http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/smilfiles/mytestsmil”,
“title” => “apiTest”,
“smilStreams”: [
{
“systemLanguage”: “en”,
“src”: “myStream_160.mp4”,
“systemBitrate”: “50000”,
“type”: “video”,
“audioBitrate”: “44100”,
“videoBitrate”: “64000”,
“restURI”: “http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/smilfiles/mytestsmil”,
“width”: “640”,
“height”: “480”
},{
“systemLanguage”: “en”,
“src”: “myStream_360.mp4”,
“systemBitrate”: “50000”,
“type”: “video”,
“audioBitrate”: “44100”,
“videoBitrate”: “850000”,
“restURI”: “http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/smilfiles/mytestsmil”,
“width”: “640”,
“height”: “360”
}, {
“systemLanguage”: “en”,
“src”: “myStream_160.mp4”,
“systemBitrate”: “50000”,
“type”: “video”,
“audioBitrate”: “44100”,
“videoBitrate”: “200000”,
“restURI”: “http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live/smilfiles/mytestsmil”,
“width”: “284”,
“height”: “160”
}]
}’
RESPONSE:
{“success”:false,“wowzaServer”:“4.7.8”,“message”:“The server has not found anything matching the request URI”,“code”:“404”}
let me know for any clue,
Thanks