Electron mp4box access via exec?


#1

Wondering if anyone has done work with accessing mp4box from electron. I’ve folded in mp4box.js but it lacks many of the command line Dash options. I’m trying to use child_process to access the command line version with parameters but it tends to choke, especially on quoted within the parameter strings.


#2

Found answer:

Used full library as a exec

var exec = require(‘child_process’).exec
exec('MP4Box ’ + commands, function (error, stdout, stderr) {
console.log('stdout: ’ + stdout)
console.log('stderr: ’ + stderr)