Change args[0] to using video variable

This commit is contained in:
Arkadiusz Wieczorek 2021-09-20 18:25:05 +02:00
parent 3fc5101e89
commit 91357cba80

View File

@ -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