Filmout needs to receive the whole state, not just the frame. Still broken.
This commit is contained in:
parent
32f70be614
commit
a2af605d37
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "1.6.7",
|
"version": "1.6.8",
|
||||||
"ext_port": 1111,
|
"ext_port": 1111,
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"mcopy": {
|
"mcopy": {
|
||||||
|
|
|
@ -370,12 +370,12 @@ class FilmOut {
|
||||||
const state = JSON.parse(JSON.stringify(this.state));
|
const state = JSON.parse(JSON.stringify(this.state));
|
||||||
let path;
|
let path;
|
||||||
state.frame = arg.frame;
|
state.frame = arg.frame;
|
||||||
|
console.dir(state);
|
||||||
try {
|
try {
|
||||||
path = await this.ffmpeg.frame(state, { color: [255, 255, 255] });
|
path = await this.ffmpeg.frame(state, { color: [255, 255, 255] });
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
this.log.error(err, 'FILMOUT', true, true);
|
this.log.error(err, 'FILMOUT', true, true);
|
||||||
;
|
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
this.ui.send('preview_frame', { path, frame: arg.frame });
|
this.ui.send('preview_frame', { path, frame: arg.frame });
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -310,7 +310,7 @@ class FilmOut {
|
||||||
const frameStr = $('#filmout_position').val();
|
const frameStr = $('#filmout_position').val();
|
||||||
const frame = parseInt(frameStr, 10);
|
const frame = parseInt(frameStr, 10);
|
||||||
this.state.frame = frame;
|
this.state.frame = frame;
|
||||||
ipcRenderer.send('preview_frame', { frame });
|
ipcRenderer.send('preview_frame', { state: this.state });
|
||||||
}
|
}
|
||||||
onFrame(evt, args) {
|
onFrame(evt, args) {
|
||||||
const elem = $('#filmout');
|
const elem = $('#filmout');
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -317,7 +317,7 @@ class FilmOut {
|
||||||
const frameStr : string = $('#filmout_position').val() as string;
|
const frameStr : string = $('#filmout_position').val() as string;
|
||||||
const frame : number = parseInt(frameStr, 10);
|
const frame : number = parseInt(frameStr, 10);
|
||||||
this.state.frame = frame;
|
this.state.frame = frame;
|
||||||
ipcRenderer.send('preview_frame', { frame });
|
ipcRenderer.send('preview_frame', { state : this.state });
|
||||||
}
|
}
|
||||||
onFrame (evt : any, args : any) {
|
onFrame (evt : any, args : any) {
|
||||||
const elem : any = $('#filmout');
|
const elem : any = $('#filmout');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "1.6.7",
|
"version": "1.6.8",
|
||||||
"ext_port": 1111,
|
"ext_port": 1111,
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"mcopy": {
|
"mcopy": {
|
||||||
|
|
|
@ -385,11 +385,12 @@ class FilmOut {
|
||||||
let path : string;
|
let path : string;
|
||||||
|
|
||||||
state.frame = arg.frame;
|
state.frame = arg.frame;
|
||||||
|
console.dir(state);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
path = await this.ffmpeg.frame(state, { color : [255, 255, 255] });
|
path = await this.ffmpeg.frame(state, { color : [255, 255, 255] });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.log.error(err, 'FILMOUT', true, true);;
|
this.log.error(err, 'FILMOUT', true, true);
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue