Software Endorsements

Did you like the App?

  • yes

  • no

  • Stop waisting our time


Results are only viewable after voting.
If someone can confirm this is safe and or link to a better one it would be very appreciated. Having Youtube videos while in an area without internet would be very nice.
 
It's just a bat file that uses youtube-dl. Just use youtube-dl and you don't need this. It's pretty much the same level of difficult.

Code:
@echo off && pushd "%~dp0" && setlocal && set BR=^&echo/ && chcp 65001 >NUL 2>&1

if exist youtube-dl.exe echo/Note: youtube-dl updates frequently; you can remove the exe to have this script download the latest version. %BR%

::Downloads youtube-dl
if not exist youtube-dl.exe (
echo|set /p="youtube-dl not detected, launching download..." %BR%
start "" /wait powershell -command "& {Write-Host "Downloading required executable..."; bitsadmin /transfer dl /dynamic /download /priority FOREGROUND https://yt-dl.org/latest/youtube-dl.exe "%CD%\youtube-dl.exe"}"
if not exist youtube-dl.exe (echo|set /p="Download failed! Try running the script again or obtaining youtube-dl.exe by other means." & pause >NUL 2>&1 & exit /b 1)
echo|set /p="Download complete!" %BR%%BR%
)

::Downloads ffmpeg
set "TMPDIR=%temp%\%RANDOM%%RANDOM%\"
if not exist ffmpeg.exe (
mkdir "%TMPDIR%"
echo|set /p="ffmpeg.exe not detected, launching download..." %BR%
start "" /wait powershell -command "& {Write-Host "Downloading required executable..."; bitsadmin /transfer dl /dynamic /download /priority FOREGROUND https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-latest-win64-static.zip "%TMPDIR%\ffmpeg.zip"; Expand-Archive '%TMPDIR%\ffmpeg.zip' '%TMPDIR%'; Move-Item -Path '%TMPDIR%\ffmpeg-latest-win64-static\bin\ffmpeg.exe' -Destination '.\'}"
rmdir /Q /sneed "%TMPDIR%" >NUL 2>&1
if not exist ffmpeg.exe (echo|set /p="Download failed! Try running the script again or obtaining ffmpeg.exe by other means." & pause >NUL 2>&1 & exit /b 1)
echo|set /p="Download complete!" %BR%%BR%
)

::Prompts user for input
set /p "INPUT=Paste a video URL here (you might have to use right click in the command prompt) and press Enter: "

::The other parameters used for youtube-dl
set "YTDLARGS=--retries infinite --fragment-retries infinite --socket-timeout 5 -c -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4 --merge-output-format mp4 -o "%%(title)s (%%(uploader)s) %%(id)s.%%(ext)s""

::Launches youtube-dl and loops it if it fucks up.
:YTDL
youtube-dl.exe %YTDLARGS% %INPUT%
if %ERRORLEVEL% GTR 0 (
    echo/%BR%youtube-dl.exe threw an error, reattempting in 5 seconds...
    waitfor /T 5 pause 2>NUL
    call :ResetErrorLevel
    goto :YTDL
)
echo/Download complete.

pause

exit /b 0


::Sub-routine to set exit code back to 0
:ResetErrorLevel
exit /b 0
 
  • Agree
Reactions: DDBCAE CBAADCBE
It's just a bat file that uses youtube-dl. Just use youtube-dl and you don't need this. It's pretty much the same level of difficult.

Code:
@echo off && pushd "%~dp0" && setlocal && set BR=^&echo/ && chcp 65001 >NUL 2>&1

if exist youtube-dl.exe echo/Note: youtube-dl updates frequently; you can remove the exe to have this script download the latest version. %BR%

::Downloads youtube-dl
if not exist youtube-dl.exe (
echo|set /p="youtube-dl not detected, launching download..." %BR%
start "" /wait powershell -command "& {Write-Host "Downloading required executable..."; bitsadmin /transfer dl /dynamic /download /priority FOREGROUND https://yt-dl.org/latest/youtube-dl.exe "%CD%\youtube-dl.exe"}"
if not exist youtube-dl.exe (echo|set /p="Download failed! Try running the script again or obtaining youtube-dl.exe by other means." & pause >NUL 2>&1 & exit /b 1)
echo|set /p="Download complete!" %BR%%BR%
)

::Downloads ffmpeg
set "TMPDIR=%temp%\%RANDOM%%RANDOM%\"
if not exist ffmpeg.exe (
mkdir "%TMPDIR%"
echo|set /p="ffmpeg.exe not detected, launching download..." %BR%
start "" /wait powershell -command "& {Write-Host "Downloading required executable..."; bitsadmin /transfer dl /dynamic /download /priority FOREGROUND https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-latest-win64-static.zip "%TMPDIR%\ffmpeg.zip"; Expand-Archive '%TMPDIR%\ffmpeg.zip' '%TMPDIR%'; Move-Item -Path '%TMPDIR%\ffmpeg-latest-win64-static\bin\ffmpeg.exe' -Destination '.\'}"
rmdir /Q /sneed "%TMPDIR%" >NUL 2>&1
if not exist ffmpeg.exe (echo|set /p="Download failed! Try running the script again or obtaining ffmpeg.exe by other means." & pause >NUL 2>&1 & exit /b 1)
echo|set /p="Download complete!" %BR%%BR%
)

::Prompts user for input
set /p "INPUT=Paste a video URL here (you might have to use right click in the command prompt) and press Enter: "

::The other parameters used for youtube-dl
set "YTDLARGS=--retries infinite --fragment-retries infinite --socket-timeout 5 -c -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4 --merge-output-format mp4 -o "%%(title)s (%%(uploader)s) %%(id)s.%%(ext)s""

::Launches youtube-dl and loops it if it fucks up.
:YTDL
youtube-dl.exe %YTDLARGS% %INPUT%
if %ERRORLEVEL% GTR 0 (
    echo/%BR%youtube-dl.exe threw an error, reattempting in 5 seconds...
    waitfor /T 5 pause 2>NUL
    call :ResetErrorLevel
    goto :YTDL
)
echo/Download complete.

pause

exit /b 0


::Sub-routine to set exit code back to 0
:ResetErrorLevel
exit /b 0
again, this is for people who are bad at computer. essentially makes it so all you need to do is run the script and paste a link.

plus I tossed in some useful parameters and made youtube-dl automatically restart and continue where it left off if it hits an error.
 
Code:
 -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4 --merge-output-format mp4

This is actually the default for versions of youtube-dl built in the last few years

https://github.com/ytdl-org/youtube-dl/blob/master/README.md#readme

Since the end of April 2015 and version 2015.04.26, youtube-dl uses -f bestvideo+bestaudio/best as the default format selection (see #5447, #5456). If ffmpeg or avconv are installed this results in downloading bestvideo and bestaudio separately and muxing them together into a single file giving the best overall quality available. Otherwise it falls back to best and results in downloading the best available quality served as a single file. best is also needed for videos that don't come from YouTube because they don't provide the audio and video in two different files. If you want to only download some DASH formats (for example if you are not interested in getting videos with a resolution higher than 1080p), you can add -f bestvideo[height<=?1080]+bestaudio/best to your configuration file. Note that if you use youtube-dl to stream to stdout (and most likely to pipe it to your media player then), i.e. you explicitly specify output template as -o -, youtube-dl still uses -f best format selection in order to start content delivery immediately to your player and not to wait until bestvideo and bestaudio are downloaded and muxed.

Also you probably don't want the bestvideo, because the file will be huge. In my experience even the 360p mp4 file may be too big so you might need to just upload audio.
 
This is actually the default for versions of youtube-dl built in the last few years
you might want to double check what you just pasted.


Also you probably don't want the bestvideo, because the file will be huge. In my experience even the 360p mp4 file may be too big so you might need to just upload audio.
I disagree, disk space is cheap as hell. If you're downloading something that you think is going to disappear, you should want the "original", not a substandard copy

you can always just downscale it later.
 
you might want to double check what you just pasted.

What I posted

Since the end of April 2015 and version 2015.04.26, youtube-dl uses -f bestvideo+bestaudio/best as the default format selection (see #5447, #5456). If ffmpeg or avconv are installed this results in downloading bestvideo and bestaudio separately and muxing them together into a single file giving the best overall quality available. Otherwise it falls back to best and results in downloading the best available quality served as a single file.

I.e. you'll get bestvideo+bestaudio downloaded separately by default and muxed into a single file, or alternatively you'll get the best single muxed file. Which is what you're telling youtube-dl to do with this

Code:
-f bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4 --merge-output-format mp4

I disagree, disk space is cheap as hell. If you're downloading something that you think is going to disappear, you should want the "original", not a substandard copy

When I tried to do it, Kiwi Farms rejected the 360p file as too big, and the other low resolution files as 'not video'. It also rejected .m4a. So I ended up transcoding m4a to mp3. It's not like there was much of interest in the video anyway.
 
If someone can confirm this is safe and or link to a better one it would be very appreciated. Having Youtube videos while in an area without internet would be very nice.
it's safe

What I posted



I.e. you'll get bestvideo+bestaudio downloaded separately by default and muxed into a single file, or alternatively you'll get the best single muxed file. Which is what you're telling youtube-dl to do with this

Code:
-f bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4 --merge-output-format mp4



When I tried to do it, Kiwi Farms rejected the 360p file as too big, and the other low resolution files as 'not video'. It also rejected .m4a. So I ended up transcoding m4a to mp3. It's not like there was much of interest in the video anyway.
youtube, as well as some other video sites, often use the Opus audio format, and sometimes that is the best quality audio the video has. But Opus audio will not go into a mp4 file, so it creates a mkv file. This is a less compatible, less understood format not suited for the boomer mind, which is why I have set it to download the best mp4-compatible formats. This is not youtube-dl's default behavior.
 
If someone can confirm this is safe and or link to a better one it would be very appreciated. Having Youtube videos while in an area without internet would be very nice.
You can use the GUI version of youtube-dl if you don't want to use the batch file or use the command line:
 
youtube, as well as some other video sites, often use the Opus audio format, and sometimes that is the best quality audio the video has. But Opus audio will not go into a mp4 file, so it creates a mkv file. This is a less compatible, less understood format not suited for the boomer mind, which is why I have set it to download the best mp4-compatible formats.

Fair enough. Mp4 seems to be pretty well supported out of the box on non freetard OSs. Probably GPU accelerated decode too.

This post was sponsored by the MPEG Licensing Authority.
 
Last edited:
Fair enough. Mp4 seems to be pretty well supported out of the box on non freetard OSs. Probably GPU accelerated decode too.

This post was sponsored by the MPEG Licensing Authority.
more importantly, you can upload it as an embedded video attachment

1564187567169.png


xenforo2 doesn't know what to do with mkv
 
I've spent like 100 hours coding Javascript puzzles but I wont take the time to learn Google Apps Script to make spreadsheets at work 10x easier.

Does anyone know google apps script?

Jdownloader. /thread

The mega desktop app puts Jdownloader to complete shame
 
  • Feels
Reactions: Y2K Baby
Back