-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwebdlwin.ps1
27 lines (27 loc) · 1.44 KB
/
webdlwin.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$title = "Web-DL Script for Windows"
$host.UI.RawUI.WindowTitle = $Title
$mpd = Read-Host -Prompt 'Masukkan link MPD yang ingin digunakan:'
Write-Output 'Parsing mpd menggunakan yt-dlp dijalankan'
yt-dlp --no-warnings --allow-u -F $mpd
$videoID = Read-Host -Prompt 'Masukkan Video ID:'
$audioID = Read-Host -Prompt 'Masukkan Audio ID:'
$videoOut = Read-Host -Prompt 'Video File Output:'
$audioOut = Read-Host -Prompt 'Audio File Output:'
Write-Output 'Memulakan muat turun audio dan video menggunakan yt-dlp'
yt-dlp --no-warnings --allow-u -f $videoID $mpd -o $videoOut -N 32
yt-dlp --no-warnings --allow-u -f $audioID $mpd -o $audioOut -N 32
Write-Output 'Muat turun video dan audio selesai'
Write-Output 'Mula untuk proses decrypt'
$key = Read-Host -Prompt 'Masukkan KID:KEY anda:'
$videoFinal = Read-Host -Prompt 'Nama file video yang anda ingin selepas decrypt:'
$audioFinal = Read-Host -Prompt 'Nama file audio yang anda ingin selepas decrypt:'
Write-Output 'Decrypt Video Dimulakan'
mp4decrypt --show-progress --key $key $videoOut $videoFinal
Write-Output 'Decrypt Video Selesai'
Write-Output 'Decrypt Audio Dimulakan'
mp4decrypt --show-progress --key $key $audioOut $audioFinal
Write-Output 'Decrypt Audio Selesai'
Write-Host 'Memulakan Penggabungan video dan audio'
$done = Read-Host -Prompt 'Masukkan nama file complete yang anda inginkan beserta format:'
ffmpeg -v quiet -stats -i $videofinal -i $audiofinal -c copy $done
Write-Host 'Selesai!, Selamat merilis'