concat demux bug

This commit is contained in:
santosh898
2019-12-05 16:11:15 +05:30
parent aa39f0f1c6
commit f93ae84794
2 changed files with 60 additions and 0 deletions

View File

@@ -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,
};