Youtube-DL Download DashStream
Description:
If you want to download a stream .m4s but cannot seem to find the mpd file, use this combination.
To Resolve:
-
Download “The Stream Detector” addon (I use Firefox, not sure if available in Chrome) and the youtube-dl executable.
- Run:
1
.\youtube-dl.exe "URL from the Stream detector" -o c:\scripts\myfile.mp4 -c
-o
is the output file you choose-c
keeps the connection alive- If you run into any issues, just run the same command again and it will pick up where it left off
-
After downloading videos, I often have to shrink them. You can do this with “handbrake-cli”. Shrink MP4 Files:
-
Open the application and right click “Fast 1080p 30” and choose “Export json”
- Run:
1
c:\scripts\HandBrakeCLI.exe --preset-import-gui "c:\scripts\preset.json" -i "c:\scripts\aquaman.mp4" -o "c:\scripts\aquaman2.mp4"
-
If you want handbrake to run in batch mode, just pass it a bunch of paths and have it convert them one by one:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
$files = @( 'G:\temp\du.mp4', 'G:\temp\id.mp4', 'G:\temp\jum.mp4', 'G:\temp\jw.mp4', 'G:\temp\ma.mp4', 'G:\temp\nm.mp4', 'G:\temp\sm.mp4', 'G:\temp\water.mp4') foreach ($file in $files) { Write-Output "Converting file: $file" $file2 = $file.replace(".mp4", "-enhanced.mp4") & C:\scripts\HandBrakeCLI.exe --preset-import-gui "c:\scripts\preset.json" -i $file -o $file2 Write-Output "Removing original file: $file" Remove-Item $file -Force Write-Output "Writing file: $file2" }
Comments