Wrappers for Youtube-dl (and FFmpeg) to download audio and trim clips at specified timestamp.
- Download Youtube.Trimmer.rar.
- Create a shortcut to
youtube-downloader.exe. - Run
youtube-downloader.exeor the shortcut. Start Time&End Timein format ofHHMMSS, eg.013430for1 Hour 34 Minutes 30 Seconds.- Trimmed clip will be placed in
\Clip\.
Starts at 1 Minute 30 Seconds and ends at 2 Minutes 45 Seconds for this URL
If no Start Time was entered, will start from 00:00:00, if no End Time was entered, will end at the end.
The program will exit after finishing operation.
To modify output directory, modify /Clip/ in
'outtmpl': '/Clip/%(title)s.%(ext)s'
Stores trimmed audio files into /Clip of current directory by default.
- Download both setup.py and youtube-downloader.py.
- Download Py2exe.
- Run
python setup.py py2exe - Rename
Distto any of your liking and create a shortcut toyoutube-downloader.exeto use it any where.
- Download youtube-downloader.py.
- Enter the directory and do
pyinstaller --onefile youtube-downloader.py - The distribution is in
~\dist\youtube-downloader. - Create a shortcut to
youtube-downloader.exeto use it any where. Read more on PyInstaller.
- Download yt.ps1.
- Edit yt.ps1 with any text editor. Recommends Notepad++ or Visual Studio Code
- Change
D:\Youtube-DLG\youtube-dl.exeto the directory where your youtube-dl.exe is installed. - Change
D:\Music\%(title)s.%(ext)sto the directory where you want the final .mp3 audio file is placed. Alternatively, removing-o 'D:\Music\%(title)s.%(ext)s'will place the trimmed .mp3 audio file in the same directory. - Run yt.ps1, input
Start Time&End Timein format ofHHMMSS, eg.013430for1 Hour 34 Minutes 30 Seconds.
Lexes Jan - https://github.com/lexesjan