Skip to content

Commit

Permalink
fix bug causing audio to be cut off too short
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Sep 23, 2020
1 parent 73f7be8 commit b4869ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/remote.json5
Original file line number Diff line number Diff line change
@@ -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' }] },
Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b4869ce

Please sign in to comment.