diff --git a/examples/browser/concatDemux.html b/examples/browser/concatDemux.html new file mode 100644 index 0000000..9cb3586 --- /dev/null +++ b/examples/browser/concatDemux.html @@ -0,0 +1,53 @@ + + + + + + + +

Upload a Video File

+
+ +

+ + + diff --git a/src/createWorker.js b/src/createWorker.js index d04a724..b9be297 100644 --- a/src/createWorker.js +++ b/src/createWorker.js @@ -122,6 +122,12 @@ module.exports = (_options = {}) => { ) ); + const concatDemux = (texFilePath, outputPath, opts = '', del = false, jobId) => { + run(`${opts} -f concat -safe 0 -i /data/${texFilePath} -c copy ${outputPath}`, + { del }, + jobId); + }; + const ls = (path, jobId) => ( startJob(createJob({ id: jobId, action: 'ls', payload: { path }, @@ -175,6 +181,7 @@ module.exports = (_options = {}) => { run, transcode, trim, + concatDemux, ls, terminate, };