From f93ae84794dc65b3fb418f727272c62c8ccdc915 Mon Sep 17 00:00:00 2001 From: santosh898 Date: Thu, 5 Dec 2019 16:11:15 +0530 Subject: [PATCH] concat demux bug --- examples/browser/concatDemux.html | 53 +++++++++++++++++++++++++++++++ src/createWorker.js | 7 ++++ 2 files changed, 60 insertions(+) create mode 100644 examples/browser/concatDemux.html 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, };