Forgot to actually use video size option
This commit is contained in:
parent
ca9b7cb419
commit
53553cb330
1 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,8 @@ class audio2imageCommand extends Command {
|
||||||
{
|
{
|
||||||
id: 'video_size',
|
id: 'video_size',
|
||||||
match: 'option',
|
match: 'option',
|
||||||
flag: '--size'
|
flag: '--size',
|
||||||
|
default: '640x480'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
description: {
|
description: {
|
||||||
|
@ -58,7 +59,7 @@ class audio2imageCommand extends Command {
|
||||||
.input(`${os.tmpdir()}/${message.id}1.sw`)
|
.input(`${os.tmpdir()}/${message.id}1.sw`)
|
||||||
//.size('1920x1080')
|
//.size('1920x1080')
|
||||||
.inputOption('-pixel_format rgb24')
|
.inputOption('-pixel_format rgb24')
|
||||||
.inputOption('-video_size 640x480')
|
.inputOption(`-video_size ${args.video_size}`)
|
||||||
.inputFormat('rawvideo')
|
.inputFormat('rawvideo')
|
||||||
.frames('1')
|
.frames('1')
|
||||||
.output(`${os.tmpdir()}/a2i${message.id}.png`)
|
.output(`${os.tmpdir()}/a2i${message.id}.png`)
|
||||||
|
|
Loading…
Reference in a new issue