eyevinn / codem-client Goto Github PK
View Code? Open in Web Editor NEWSimple clients to codem-transcoder
Simple clients to codem-transcoder
The error generated by the manager:
TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.join (path.js:1236:7)
at Object.writeSMIL (/srv/manager/lib/smil.js:31:25)
at model.tcd_jobSchema.methods.update_tcd (/srv/manager/lib/job.js:167:14)
at Function.tcd_jobSchema.statics.update_tcd (/srv/manager/lib/job.js:150:17)
at Object.getCodemNotification (/srv/manager/lib/manager.js:46:9)
at /srv/manager/routes/codem.js:7:9
at Layer.handle [as handle_request] (/srv/manager/node_modules/express/lib/router/layer.js:82:5)
at next (/srv/manager/node_modules/express/lib/router/route.js:100:13)
at Route.dispatch (/srv/manager/node_modules/express/lib/router/route.js:81:3)
at Layer.handle [as handle_request] (/srv/manager/node_modules/express/lib/router/layer.js:82:5)
at /srv/manager/node_modules/express/lib/router/index.js:234:24
at Function.proto.process_params (/srv/manager/node_modules/express/lib/router/index.js:312:12)
at /srv/manager/node_modules/express/lib/router/index.js:228:12
at Function.match_layer (/srv/manager/node_modules/express/lib/router/index.js:295:3)
at next (/srv/manager/node_modules/express/lib/router/index.js:189:10)
Adding some code to check from the console what happens from the logs to the route/codem:
const util = require('util')
router.route('/').put( function(req, res) {
console.log("NOTIFY -> Body: " + util.inspect(req.body, false, null));
...
The body received from route/codem:
Answer on job post {"message":"The transcoder accepted your job.","job_id":"fbeaa3b48d3b4013d14b16a8565b618a4c50fa84"}
Started codem job fbeaa3b48d3b4013d14b16a8565b618a4c50fa84 belonging to job 5af95d393ce5193453a8cd56
NOTIFY -> Body: { id: 'fbeaa3b48d3b4013d14b16a8565b618a4c50fa84',
status: 'processing',
progress: 0,
duration: 15,
filesize: 2498125,
message: null }
PUT /codem_notify 200 3.644 ms - 22
NOTIFY -> Body: { id: 'fbeaa3b48d3b4013d14b16a8565b618a4c50fa84',
status: 'success',
progress: 1,
duration: 15,
filesize: 2498125,
message: 'ffmpeg finished succesfully.' }
UPDATE TCD -> BasePath: /srv/manager/public/serve/
UPDATE TCD -> BaseName: undefined
WRITE SMIL -> BasePath: /srv/manager/public/serve/
WRITE SMIL -> BaseName: undefined
PUT /codem_notify 500 5.177 ms - 1420
I receive two different notifications at the same time, at the success the manager tries to write the SMIL, but does not find the BaseName value in the job.
If no slots are available it should park the transcode jobs and enqueue once slots are available
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.