Closed syndr0m closed 7 years ago
✓ ubuntu@p-afsmsch-001 ~ $ curl -X POST -d "{\"filename\":\"/space/videos/sources/The_New_Edition_Story-0001.mxf\"}" http://p-afsmsch-001.afrostream.tv:4000/api/contents
{"error":"fork/exec /usr/bin/ffmpeg: cannot allocate memory"}
=> kill -9 du pfScheduler => on relance l'import manuellement
✓ ubuntu@p-afsmsch-001 ~ $ curl -X POST -d "{\"filename\":\"/space/videos/sources/The_New_Edition_Story-0001.mxf\"}" http://p-afsmsch-001.afrostream.tv:4000/api/contents
{"contentId":13013,"uuid":"0776419d-bb3f-4097-9cd8-04ffe860b771"}
export FILENAME="/space/videos/sources/subtitles/The_New_Edition_Story-0001.vtt";
export SUBTITLE="/space/home/afrostream/media/catchup/bet/The_New_Edition_Story-0001.vtt";
export SUBTITLE=$(basename "$SUBTITLE");
export SOURCE_FILENAME=/space/videos/sources/The_New_Edition_Story-0001.mxf;
export SOURCE_SUBTITLE=/space/videos/sources/subtitles/The_New_Edition_Story-0001.vtt;
export contentId=13013;
curl -X POST -d "{\"contentId\":${contentId},\"subtitles\":[{\"lang\":\"fra\",\"url\":\"http://sources-1.adm.afrostream.net/subtitles/${SUBTITLE}\"}]}" http://p-afsmsch-001.afrostream.tv:4000/api/pfSubtitles;
curl -X POST -d "{\"contentId\":${contentId},\"streams\":[{\"lang\":\"eng\",\"type\":\"video\",\"channel\":0},{\"lang\":\"eng\",\"type\":\"audio\",\"channel\":1}]}" http://p-afsmsch-001.afrostream.tv:4000/api/pfContentsStreams;
curl -X POST -d "{\"contentId\":${contentId},\"broadcaster\":\"afrostream\"}" http://p-afsmsch-001.afrostream.tv:4000/api/pfTranscode;
curl -X POST -d "{\"contentId\":${contentId},\"broadcaster\":\"bouyguesmiami\"}" http://p-afsmsch-001.afrostream.tv:4000/api/pfTranscode;
curl -X POST -d "{\"contentId\":${contentId},\"broadcaster\":\"bouygues\"}" http://p-afsmsch-001.afrostream.tv:4000/api/pfTranscode;
curl -X POST -d "{\"contentId\":${contentId},\"broadcaster\":\"orange\"}" http://p-afsmsch-001.afrostream.tv:4000/api/pfTranscode;
✗ ubuntu@p-afsmsch-001 /usr/local/scripts/sh $ curl -X POST -H 'Content-Type: application/json' -d '{"sharedSecret":"62b8557f248035275f6f8219fed7e9703d59509c","xml":"http://origin.cdn.afrostream.net/catchup/bet/The_New_Edition_Story-0001.xml","pfContentId": "13013", "captions":["http://sources-1.adm.afrostream.net/subtitles/The_New_Edition_Story-0001.vtt"]}' https://legacy-api.afrostream.tv/api/jobs/catchup-bet
{"message":"job created","id":10252}
problème : http://p-afsmsch-001.afrostream.tv:4000/api/assetsStreams?md5Hash=778f399d63509950506ec080c18e08e5&profileName=VIDEO0ENG_AUDIO0ENG&broadcaster=AFROSTREAM sort vide =>
✓ ubuntu@p-afsmsch-001 /usr/local/scripts/sh $ curl -X POST -d "{\"contentId\":${contentId},\"broadcaster\":\"afrostream\"}" http://p-afsmsch-001.afrostream.tv:4000/api/pfTranscode;
{"assetsId":[128507,128508,128509,128510,128511,128512,128513]}
probablement en attente => standby @see http://p-afsmsch-001.afrostream.tv:4000/api/contents/13013/assets
done
logs screen pf