Prepare:
- tubefork.zip – check with virustotal.com OR yt-dlp.zip – check with virustotal.com
- VLC: https://www.videolan.org
- If you get MSVCR100 DLL is missing from your computer:
- Download and install Microsoft Visual C++ 2010 Service Pack 1
- If using a 32bit (x86) install the 32bit (x86)
- If using a 64bit (x64) install both the 32bit (x86), and the 64bit (x64)
- Available for download from Microsoft Download Center
- Or download and install from here:
- vcredist_x64.exe – check with virustotal.com
- vcredist_x86.exe – check with virustotal.com
- Download and install Microsoft Visual C++ 2010 Service Pack 1
yt-dlp:
Open CMD and change to tubefork directory
Make sure you have the latest updated version
yt-dlp -U
Download video or playlist
Single Video: yt-dlp youtube-url All Playlist: yt-dlp https://www.youtube.com/user/PUT USER HERE/playlists Multiple Videos: Multi_YouTube_URLS.zip - check with virustotal.com
Check different format
yt-dlp -F youtube-url
Download the format you want
yt-dlp -f 136 youtube-url
Download and extract audio
yt-dlp -x --audio-format mp3 youtube-url yt-dlp -f bestaudio youtube-url
Extract thumbnail
yt-dlp --write-thumbnail --skip-download youtube-url
Download Comments
Single Video: yt-dlp --write-comments --no-download youtube-url Then: 1. Upload JSON file here: Convert to CSV 2. Download CSV file 3. Copy Comments in text file 4. Upload to analyze text in Voyant-Tools Multiple Videos: Combine_Comments.zip - check with virustotal.com Then: 1. Update Youtube.txt with your own YouTube URL's 2. Click: Multi_Comments.bat 3. Click: Combine_Comments.bat Then repeat 1-4 above.
Extract metadata
yt-dlp --add-metadata youtube-url yt-dlp --write-info-json youtube-url
Download multiple videos
yt-dlp youtube-url1 youtube-url2 youtube-url3 yt-dlp -a url.txt
Download videos by date
yt-dlp --date 20231207 youtube-url yt-dlp --datebefore 20231207 youtube-url yt-dlp --dateafter 20231207 youtube-url yt-dlp --dateafter now-6months youtube-url yt-dlp --dateafter 20180501 --datebefore 20231207
Download specific videos from playlist
yt-dlp --playlist-items 10 playlist_url yt-dlp --playlist-items 2,3,7,10 playlist_url yt-dlp --playlist-start 10 playlist_url yt-dlp --playlist-start 2 --playlist-end 5 playlist_url
Help
yt-dlp --help
ffmpeg:
Capture all frames from a video – 25 frames per second
ffmpeg -i input.mp4 img%06d.png -hide_banner
Capture all Frames from a video – 1 frame per second
ffmpeg -i input.mp4 -r 1 img%06d.png -hide_banner
Get Video File Information
ffmpeg -i input.mp4 -hide_banner
Extract audio from video file
ffmpeg -i input.mp4 -vn -ar 44100 -ac 2 -ab 192 -f mp3 audio.mp3
Extract small segment in the middle of a video – Uncompressed
ffmpeg -i FILENAME.mp4 -ss 00:00:03 -t 00:00:08 -async 1 cut.mp4
Remove audio from video file
ffmpeg -i cut.mp4 -c copy -an output.mp4
References:
Updated: February 22, 2024