Skip to content

Commit

Permalink
add temp-dir to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Jun 21, 2018
1 parent fffdd3c commit 2c0223f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = async (argv) => {
.option('-f, --frame-format <format>', 'format to use for temp frame images', /^(raw|png|jpg)$/i, 'raw')
.option('-c, --concurrency <number>', 'number of videos to process in parallel', (v) => parseInt(v), 4)
.option('-C, --no-cleanup-frames', 'disables cleaning up temp frame images')
.option('-O, --temp-dir <dir>', 'temporary working directory to store frame data')
.parse(argv)

let transitions
Expand Down Expand Up @@ -47,7 +48,8 @@ module.exports = async (argv) => {
transitions,

frameFormat: program.frameFormat,
cleanupFrames: program.cleanupFerames
cleanupFrames: program.cleanupFrames,
tempDir: program.tempDir
})

console.log(program.output)
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ npm install -g ffmpeg-concat
-f, --frame-format <format> format to use for temp frame images (default: raw)
-c, --concurrency <number> number of videos to process in parallel (default: 4)
-C, --no-cleanup-frames disables cleaning up temp frame images
-O, --temp-dir <dir> temporary working directory to store frame data
-h, --help output usage information

Example:
Expand Down

0 comments on commit 2c0223f

Please sign in to comment.