Skip to content

Commit

Permalink
Fixed resources path in install script. Fixed beginning of the video …
Browse files Browse the repository at this point in the history
…truncated.
  • Loading branch information
Kenshin9977 committed Jun 29, 2021
1 parent 6b30ba2 commit f319439
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions resources/Video_dl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,19 @@ function PSVideo-DL($ASIC, $Ini){
$Date_time = Get-Date -Format "-yyyy-MM-dd-HH-mm-ss"

if ($Video_codec -eq "h264" -and $Audio_codec -eq "aac") {
..\bin\ffmpeg.exe -hide_banner -loglevel warning -analyzeduration 2147483647 -probesize 2147483647 -i "$DownPath\$Filename" -ss $Start -to $End -c copy -y "$DownPath\$Filebase$Date_time$File_ext"
..\bin\ffmpeg.exe -hide_banner -loglevel warning -analyzeduration 2147483647 -probesize 2147483647 -ss $Start -i "$DownPath\$Filename" -to $End -c copy -y "$DownPath\$Filebase$Date_time$File_ext"
Write-Host "Download and remux completed."
}
}
elseif ($Video_codec -eq "h264") {
..\bin\ffmpeg.exe -hide_banner -loglevel warning -analyzeduration 2147483647 -probesize 2147483647 -i "$DownPath\$Filename" -ss $Start -to $End -c:v copy -c:a aac -y "$DownPath\$Filebase$Date_time$File_ext"
..\bin\ffmpeg.exe -hide_banner -loglevel warning -analyzeduration 2147483647 -probesize 2147483647 -ss $Start -i "$DownPath\$Filename" -to $End -c:v copy -c:a aac -y "$DownPath\$Filebase$Date_time$File_ext"
Write-Host "Download, remux an reencoding completed."
}
else {
..\bin\ffmpeg.exe -hide_banner -loglevel warning -analyzeduration 2147483647 -probesize 2147483647 -i "$DownPath\$Filename" -ss $Start -to $End -c:v $Encoder -b:v 12M -c:a aac -y "$DownPath\$Filebase$Date_time$File_ext"
..\bin\ffmpeg.exe -hide_banner -loglevel warning -analyzeduration 2147483647 -probesize 2147483647 -ss $Start -i "$DownPath\$Filename" -to $End -c:v $Encoder -b:v 12M -c:a aac -y "$DownPath\$Filebase$Date_time$File_ext"
Write-Host "Download and reencoding completed."
}
Write-Host "Deleting the downloaded unprocessed file."
Remove-Item $File.fullname
Remove-Item $File.fullname
return
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/install_update_binaries.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ curl -L --url https://yt-dl.org/latest/youtube-dl.exe --output "..\bin\youtube-d
echo %NL%Downloading the latest version of ffmpeg.exe by gyan.dev.
curl -L --url https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-essentials.7z --output ".\ffmpeg-essentials_build.7z"
if exist ".\ffmpeg-essentials_build.7z" (
..\ressources\7za.exe e ".\ffmpeg-essentials_build.7z" "ffmpeg.exe" -aoa -o"..\bin\" -r
..\ressources\7za.exe e ".\ffmpeg-essentials_build.7z" "ffprobe.exe" -aoa -o"..\bin\" -r
..\resources\7za.exe e ".\ffmpeg-essentials_build.7z" "ffmpeg.exe" -aoa -o"..\bin\" -r
..\resources\7za.exe e ".\ffmpeg-essentials_build.7z" "ffprobe.exe" -aoa -o"..\bin\" -r
del ".\ffmpeg-essentials_build.7z"
exit /b
)

0 comments on commit f319439

Please sign in to comment.