Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirRezaM75 committed Nov 6, 2022
1 parent c405983 commit 0f4e465
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions App/Vimeo/VimeoDownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ private function mergeSources($videoPath, $audioPath, $outputPath)
$output = [];

if (PHP_OS=='WINNT'){
$exec_string = "ffmpeg -i \"$videoPath\" -i \"$audioPath\" -vcodec copy -acodec copy -strict -2 \"$outputPath\" 2> nul";
$command = "ffmpeg -i \"$videoPath\" -i \"$audioPath\" -vcodec copy -acodec copy -strict -2 \"$outputPath\" 2> nul";
} else {
$exec_string = "ffmpeg -i '$videoPath' -i '$audioPath' -vcodec copy -acodec copy -strict -2 '$outputPath' >/dev/null 2>&1";
$command = "ffmpeg -i '$videoPath' -i '$audioPath' -vcodec copy -acodec copy -strict -2 '$outputPath' >/dev/null 2>&1";
}

exec($exec_string, $output, $code);
exec($command, $output, $code);

if ($code == 0) {
unlink($videoPath);
Expand Down

0 comments on commit 0f4e465

Please sign in to comment.