h265ize
h265ize copied to clipboard
error running from cron
[h265ize]: [verbose] Handling keypresses...
[h265ize]:
- message: process.stdin.setRawMode is not a function
- stack: TypeError: process.stdin.setRawMode is not a function
at /usr/local/lib/node_modules/h265ize/h265ize:485:23
at h265ize.handleKeypress (/usr/local/lib/node_modules/h265ize/h265ize:453:12)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
From previous event:
at Object.h265ize.runCli (/usr/local/lib/node_modules/h265ize/h265ize:47:10)
at Object.
I put this in line 485 fixes it
if (process.stdin.isTTY) { process.stdin.setRawMode(true); }