Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jan 7, 2025
1 parent 1b42aca commit 3dfdf09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/API/standAlone/ffmpeg.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ function addKeywordToFFmpegCommand(string $command, string $keyword): string

// Kill processes associated with the keyword
if (!empty($keyword)) {
$countCommand = "pgrep -f 'ffmpeg.*$keyword' | wc -l";
$processListCommand = "pgrep -f 'ffmpeg.*$keyword' | xargs -r ps -o pid,cmd -p";
$countCommand = "pgrep -f 'ffmpeg.*$keyword' | grep -v $$ | wc -l";
$processListCommand = "pgrep -f 'ffmpeg.*$keyword' | grep -v $$ | xargs -r ps -o pid,cmd -p";

$processCount = intval(exec($countCommand));
$processList = shell_exec($processListCommand);
Expand All @@ -414,6 +414,7 @@ function addKeywordToFFmpegCommand(string $command, string $keyword): string
exit;
}


// if I kill it it will infinite loop the VideoPlaylistScheduler because the on_publish done
//_error_log("Killing process with keyword: $keyword");
//killProcessFromKeyword($keyword, 60);
Expand Down

0 comments on commit 3dfdf09

Please sign in to comment.