mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-13 01:10:27 -07:00
FFmpeg path change
This commit is contained in:
parent
3d71c47c55
commit
e2cc0aaa7f
1 changed files with 2 additions and 2 deletions
|
|
@ -149,8 +149,8 @@ function create_crop_values(file) {
|
||||||
//create crop value
|
//create crop value
|
||||||
if (!fs.existsSync(`${cropfile}`)) {
|
if (!fs.existsSync(`${cropfile}`)) {
|
||||||
returns.log += `Creating crop values...\n`;
|
returns.log += `Creating crop values...\n`;
|
||||||
execSync(`ffmpeg -ss 300 -i \"${source}\" -frames:v 240 -vf cropdetect -f null - 2>&1 | awk \'/crop/ { print $NF }\' | tail -240 > \"${cropfile}\"`);
|
execSync(otherArguments.ffmpegPath + ` -ss 300 -i \"${source}\" -frames:v 240 -vf cropdetect -f null - 2>&1 | awk \'/crop/ { print $NF }\' | tail -240 > \"${cropfile}\"`);
|
||||||
execSync(`ffmpeg -ss 1200 -i \"${source}\" -frames:v 240 -vf cropdetect -f null - 2>&1 | awk \'/crop/ { print $NF }\' | tail -240 >> \"${cropfile}\"`);
|
execSync(otherArguments.ffmpegPath + ` -ss 1200 -i \"${source}\" -frames:v 240 -vf cropdetect -f null - 2>&1 | awk \'/crop/ { print $NF }\' | tail -240 >> \"${cropfile}\"`);
|
||||||
//get data from copvalue.txt
|
//get data from copvalue.txt
|
||||||
var data = fs.readFileSync(`${cropfile}`).toString().split("\n"); //full data from cropvalue.txt
|
var data = fs.readFileSync(`${cropfile}`).toString().split("\n"); //full data from cropvalue.txt
|
||||||
//get height of the supposed cropped video
|
//get height of the supposed cropped video
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue