Tiny Core Base > Corepure64
youtube downloader discussion
aus9:
Ok it looks like old youtube movies were mp4, while newer ones are webm format YMMV
and I have rebooted to test no certificates so in $HOME/.local/bin I do
--- Code: ---python3 yt-dlp --no-check-certificate https://youtu.be/V-oquRLcmAM
# result is mp4 but
python3 yt-dlp --no-check-certificate https://youtu.be/L51wnCLOd4g
# result webm
# found on net converter command, ffmepg4 is a dep of qmplay2
ffmpeg -i aaron.webm -c copy aaron.mp4
--- End code ---
also the help needs python prefixed
--- Code: ---python3 yt-dlp -h
--- End code ---
online help
https://github.com/yt-dlp/yt-dlp#readme
so this is interesting to me...find formats that you could download
--- Code: ---python3 yt-dlp --no-check-certificate --list-formats https://youtu.be/V-oquRLcmAM
SNIP
ID EXT RESOLUTION FPS CH ��� FILESIZE TBR PROTO ��� VCODEC VBR ACODEC ABR ASR MORE INFO
250 webm audio only 2 ��� 2.79MiB 71k dash ��� audio only opus 71k 48k low, webm_dash
140 m4a audio only 2 ��� 4.99MiB 127k dash ��� audio only mp4a.40.2 127k 44k medium, m4a_dash
SNIP to show only 2 audio
--- End code ---
and then I do
--- Code: ---python3 yt-dlp --no-check-certificate -f 140 https://youtu.be/V-oquRLcmAM
--- End code ---
result is m4a format rather than choosing -f 250 to have opus....as TBR is higher for 140
CNK:
--- Quote from: aus9 on May 02, 2023, 09:11:31 PM ---so this is interesting to me...find formats that you could download
--- Code: ---python3 yt-dlp --no-check-certificate --list-formats https://youtu.be/V-oquRLcmAM
SNIP
ID EXT RESOLUTION FPS CH ��� FILESIZE TBR PROTO ��� VCODEC VBR ACODEC ABR ASR MORE INFO
250 webm audio only 2 ��� 2.79MiB 71k dash ��� audio only opus 71k 48k low, webm_dash
140 m4a audio only 2 ��� 4.99MiB 127k dash ��� audio only mp4a.40.2 127k 44k medium, m4a_dash
SNIP to show only 2 audio
--- End code ---
--- End quote ---
Those are available from youtube-dl as well (this is the "-F" option that I mentioned before).
Anyway, I'm not sure what you think is better (I'm sticking with youtube-dl myself, and I'll think about submitting an updated TC extension for it if you're no longer maintaining that), but I guess that if you like GUIs then pipe-viewer might be better for you. It has GTK3 GUI and terminal interfaces, and the YouTube downloader is built in. It's written in Perl instead of Python.
aus9:
playing further with formats be aware of mp4_dash format. This does not play natively in vlc or qmplay2
so if you found a high TBR but shows mp4_dash on right hand side eg
--- Quote --- TBR
137 mp4 1920x1080 25 ��� 135.27MiB 3508k dash ��� avc1.640028 3508k video only 1080p, mp4_dash
--- End quote ---
so you are better off IMHO just download it as a webm and convert it if your player does not know how to play that format.
Hi CNK
I will check it pipe-viewer
Yes please update youtube-dl if you are happy to.
vinceASPECT:
HEllo,
it seems that even the free "youtube-dl" tool on MSoft is a 2021 version Latest.....2 years old and it does not seem to work
hmmm
thx
C
aus9:
Hi CNK
I started on the perl module make dependencies showing up
pipe-viewer
and even tho I have not finished I have made up my mind after reading various build.logs on the actual run dependences,
that a perl based youtube downloader is not for me.
Actually the web site does not describe it as a downloader...rather it claims for searching and playing videos from YouTube.
so far I have successfully used cpanm to get modules as per
--- Quote ---# instmodsh -> input l for list gives
# Installed modules are:
# B::COW # Clone # Data::Dump # Date::Parse # Encode::Locale # File::Listing
# HTML::Parser # HTML::Tagset # HTTP::Cookies # HTTP::Daemon # HTTP::Date # HTTP::Message
# HTTP::Negotiate # IO::HTML # IO::Socket::SSL # JSON. # LWP # LWP::MediaTypes # LWP::Protocol::https
# Mozilla::CA # Net::HTTP # Net::SSLeay # Perl # Test::Fatal # Test::Needs # Test::RequiresInternet
# Test::Warnings # Try::Tiny # URI # WWW::RobotRules
--- End quote ---
at my skill level....and patience ...I think yt-dlp is much simpler to build and good enough for me.
2) I am not sure if I made myself clear in last post....movies that are mp4_dash -> output as file.mp4
but in qmplay2 or vlc....the video image displays but not audio out
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version