Change args[0] to using video
variable
This commit is contained in:
parent
3fc5101e89
commit
91357cba80
@ -127,7 +127,7 @@ const ns = range(pieces.length);
|
||||
|
||||
const sample_rate = parseInt(
|
||||
(
|
||||
await $`ffprobe ${args[0]} 2>&1 | grep 'Audio:' | grep --only-matching --extended-regexp '[0-9]+ Hz' | sed 's/ Hz//'`
|
||||
await $`ffprobe ${video} 2>&1 | grep 'Audio:' | grep --only-matching --extended-regexp '[0-9]+ Hz' | sed 's/ Hz//'`
|
||||
).stdout
|
||||
); // in Hz
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user