Browse Source

fix bug causing audio to be cut off too short

layer-manipulation
Mikael Finstad 6 years ago
parent
commit
b4869ce327
  1. 1
      examples/remote.json5
  2. 5
      index.js

1
examples/remote.json5

@ -1,6 +1,7 @@
{
outPath: './remote.mp4',
allowRemoteRequests: true,
audioFilePath: './assets/High [NCS Release] - JPB (No Copyright Music)-R8ZRCXy5vhA.m4a',
clips: [
{ layers: [{ type: 'image', path: 'https://picsum.photos/400/400' }] },
{ layers: [{ type: 'image', path: 'https://picsum.photos/200/400' }] },

5
index.js

@ -542,9 +542,10 @@ module.exports = async (config = {}) => {
} // End while loop
outProcess.stdin.end();
} finally {
} catch (err) {
outProcess.kill();
throw err;
} finally {
if (verbose) console.log('Cleanup');
if (frameSource1) await frameSource1.close();
if (frameSource2) await frameSource2.close();

Loading…
Cancel
Save