Replace ffmpeg-static and ffprobe-static with ffmpeg-static-electron and ffprobe-static-electron. These will allow for packaging ffmpeg and ffprobe binaries that can be accessed from within the build. The path replace string hacks weren't cutting it.

This commit is contained in:
mmcwilliams 2020-04-24 16:01:09 -04:00
parent da00c62db3
commit d4987ed3a3
7 changed files with 24 additions and 30 deletions

View File

@ -15,13 +15,13 @@ const exec_1 = require("exec");
**/
async function dependencies(platform) {
let obj = {};
let ffmpeg = require('ffmpeg-static');
let ffprobe = require('ffprobe-static');
let ffmpeg = require('ffmpeg-static-electron');
let ffprobe = require('ffprobe-static-electron');
let ffoutput;
//let imoutput : ExecOutput;
let eogoutput;
obj.ffmpeg = ffmpeg.replace('app.asar', 'app.asar.unpacked');
obj.ffprobe = ffprobe.path.replace('app.asar', 'app.asar.unpacked');
obj.ffmpeg = ffmpeg.path;
obj.ffprobe = ffprobe.path;
try {
//imoutput = await exec('which convert');
}

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAOb,2BAAkC;AAClC,uCAAkC;AAClC,SAAS;AACT,+BAA4B;AAC5B;;;;;;;;IAQI;AAGJ,KAAK,UAAU,YAAY,CAAE,QAAiB;IAC7C,IAAI,GAAG,GAAS,EAAE,CAAC;IACnB,IAAI,MAAM,GAAS,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5C,IAAI,OAAO,GAAS,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC9C,IAAI,QAAqB,CAAC;IAC1B,4BAA4B;IAC5B,IAAI,SAAsB,CAAC;IAE3B,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;IAC7D,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;IAEpE,IAAI;QACH,yCAAyC;KACzC;IAAC,OAAO,GAAG,EA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AI;QACH,GAAG,CAAC,GAAG,GAAG,WAAM,EAAE,CAAC;KACnB;IAAC,OAAO,GAAG,EAAE;QACb,GAAG,CAAC,GAAG,GAAG,MAAM,CAAA;KAChB;IAED,QAAQ,GAAG,SAAI,EAAE,CAAC;IAElB,IAAI,QAAQ,KAAK,QAAQ,EAAE;QAC1B,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;SAAM,IAAI,QAAQ,KAAK,YAAY,EAAE;QACrC,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;SAAM;QACN,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;IAED,GAAG,CAAC,QAAQ,GAAG,MAAM,QAAQ,EAAE,CAAA;IAC/B,GAAG,CAAC,IAAI,GAAG,MAAM,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE5C,UAAU,CAAC,GAAG,EAAE;QACf,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,EAAE,IAAI,CAAC,CAAC;IAET,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"}

16
app/package-lock.json generated
View File

@ -2928,18 +2928,18 @@
"ffmpeg": {
"version": "file:lib/ffmpeg"
},
"ffmpeg-static": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/ffmpeg-static/-/ffmpeg-static-3.0.0.tgz",
"integrity": "sha512-LCBAB1J10ku7+SWbFTLJ4zjDtrniwYDMIyRmg1Vxvzst5TyCrsrfKHg1YPrvvsUhrzknTXxL6NoUG6s2xftbcg=="
"ffmpeg-static-electron": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/ffmpeg-static-electron/-/ffmpeg-static-electron-2.0.1.tgz",
"integrity": "sha512-tLOZJu2PJbDT7oMPhaAmmTZEZZms9R9D2FyhqsBrGlVhfqMi/ipuwNdogwk0+QEnDKaPhXwIgdnkd5Gn5tDXjw=="
},
"ffprobe": {
"version": "file:lib/ffprobe"
},
"ffprobe-static": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/ffprobe-static/-/ffprobe-static-3.0.0.tgz",
"integrity": "sha512-LZ1Sj4RHS95t/ReZtRbCmMEWDDl7cfIMwmhNgCZcdtOgRlAHaGGOupoc166Q9AV+T7lXnUvu5HYczcsn69c6fw=="
"ffprobe-static-electron": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ffprobe-static-electron/-/ffprobe-static-electron-2.0.0.tgz",
"integrity": "sha512-Lhi0coa0FfJljn91J2ASv7mmAiIWpiF42VWUUxnJh+pgA2P2Ym4JYt9tlz2wJSBddaN0Cmr+C5fTc1vR2fKXRA=="
},
"file-type": {
"version": "9.0.0",

View File

@ -21,12 +21,6 @@
"printer",
"gui"
],
"build": {
"asarUnpack": [
"./node_modules/ffmpeg-static/*",
"./node_modules/ffprobe-static/*"
]
},
"author": "mmcwilliams",
"license": "MIT",
"bugs": {
@ -61,9 +55,9 @@
"exec": "file:lib/exec",
"exit": "file:lib/exit",
"ffmpeg": "file:lib/ffmpeg",
"ffmpeg-static": "^3.0.0",
"ffmpeg-static-electron": "^2.0.1",
"ffprobe": "file:lib/ffprobe",
"ffprobe-static": "^3.0.0",
"ffprobe-static-electron": "^2.0.0",
"filmout": "file:lib/filmout",
"frame": "file:lib/frame",
"fs-extra": "^8.1.0",

View File

@ -15,13 +15,13 @@ const exec_1 = require("exec");
**/
async function dependencies(platform) {
let obj = {};
let ffmpeg = require('ffmpeg-static');
let ffprobe = require('ffprobe-static');
let ffmpeg = require('ffmpeg-static-electron');
let ffprobe = require('ffprobe-static-electron');
let ffoutput;
//let imoutput : ExecOutput;
let eogoutput;
obj.ffmpeg = ffmpeg.replace('app.asar', 'app.asar.unpacked');
obj.ffprobe = ffprobe.path.replace('app.asar', 'app.asar.unpacked');
obj.ffmpeg = ffmpeg.path;
obj.ffprobe = ffprobe.path;
try {
//imoutput = await exec('which convert');
}

View File

@ -1 +1 @@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AAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,EAAE,IAAI,CAAC,CAAC;IAET,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"}

View File

@ -22,14 +22,14 @@ import { exec } from 'exec';
async function dependencies (platform : string ) {
let obj : any = {};
let ffmpeg : any = require('ffmpeg-static');
let ffprobe : any = require('ffprobe-static');
let ffmpeg : any = require('ffmpeg-static-electron');
let ffprobe : any = require('ffprobe-static-electron');
let ffoutput : ExecOutput;
//let imoutput : ExecOutput;
let eogoutput : ExecOutput;
obj.ffmpeg = ffmpeg.replace('app.asar', 'app.asar.unpacked');
obj.ffprobe = ffprobe.path.replace('app.asar', 'app.asar.unpacked');
obj.ffmpeg = ffmpeg.path;
obj.ffprobe = ffprobe.path;
try {
//imoutput = await exec('which convert');