Lately youtube-dl has not been working so I went looking.
yt-dlp is an aur program and it is fast. Use the same switchers as youtube-dl
bashrc
alias ytv=“yt-dlp -f bestvideo+bestaudio”
Lately youtube-dl has not been working so I went looking.
yt-dlp is an aur program and it is fast. Use the same switchers as youtube-dl
bashrc
alias ytv=“yt-dlp -f bestvideo+bestaudio”
yt-dlp is certainly faster than youtube-dl, been using it for sometime.
Great call !
Hi guys, I have made mpm, it’s whritten in bash and you use it through your terminal. youtube-dl/yt-dlp are part of the main dependencies. (Please first read the github page).
As you were talking about those I suggest you to give it try and give me some feedback to improuve the code. You will need both of them because all the command lines in mpm.
sudo pacman -S yt-dlp youtube-dl
ln -s /usr/bin/yt-dlp ~/.local/bin/youtube-dl (if ~/.local/bin is in your $PATH)
I prefer ut-dlp. It seems much faster.
Do you mean yt-dlp ?
Yes, sorry, too many beers last night.
Well, the U s not far from the Y, so it s not that off !
about 2 beers apart.
Or more ! lol
Not sure if anyone will find this handy, but I usually use something like this to watch videos.
Change the settings to suit your needs.
@archus has a very nice setup as well.
MPV create a .config/mpv/mpv.conf if it do not exist and edit or add a few lines and save.
ytdl-format="bestvideo[height=?1080][fps<=?60][vcodec!=?vp9]+bestaudio/best"
osd-fractions
some people set theirs to 720 and 30, play with the settings and enjoy.
mpv https://www.youtube.com/watch?v=GLnpxW-i6KA
Yes in the script I use:
mpv \
–input-ipc-server=‘/tmp/mpvsocket’ \
–cache \
–no-config \
–term-playing-msg=‘Title: ${media-title}’ \
–ytdl-format=‘299+251/298+251/137+251/136+251/best’ \
https://www.youtube.com/watch?v=GLnpxW-i6KA
So first mpv will try to find the very best video/audio (299+251) quality then if not it will try other qualities (298+251) and so on 137+251/136+251/best
Still testing
###################
# video settings #
###################
vo=gpu
hwdec=auto
video-aspect-override="16:9" ## "16:9" "4:3" "2.35:1" "-1"
#gpu-api=vulkan
##video-pan-y=1.0
ytdl-format="bestvideo[height=?1080][fps<=?60][vcodec!=?vp9]+bestaudio/best"
osd-fractions
##################
# other settings #
##################
cache=yes
cache-pause=no
osc=no
screenshot-directory="~/pictures/mpvscreenshots"
screenshot-template="%F-%P"
save-position-on-quit=yes
quiet=yes
##################
# audio settings #
##################
ao=alsa
volume=100
############
# Profiles #
############
[extension.mkv]
keep-open
volume-max=150