[info] If you have problems with yt-dlp frontends

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
1,083
Reaction score
921
Credits
8,303
Due to the recent ffmpeg update many frontend programs for yt-dlp stopped working, along with a few others that have nothing to do with yt-dlp, so I decided to share with you my workaround that. With terminal, ofc.
You can either enter this command every time you wanna download something which can quickly become tedious, or simply make an alias with a shell script, like I did. In my case the alias is "yt URL" but behind it there's this .sh script:
Code:
cd /B/123 && yt-dlp -S res:1080 --merge-output-format mkv $1

By default yt-dlp downloads in the dir you have opened terminal and since all terminals usually open in /home by default, it will download it there. If you want the video downloaded to another directory, you need to cd to it, like in the code tag above. The rest of the code is as follows: "-S res:1080" will download the video with resolution 1920x1080 and "--merge-output-format mkv" will make the output in mkv format. If you DON'T specify a format, usually the output is webm, which personally I don't like very much. "$1" is user input which in yt-dlp's case is the video full URL starting with https till the last letter of it:
Code:
https://www.youtube.com/watch?v=iH4iQwGzO0U

Try to avoid URLs with time points, like

Code:
https://www.youtube.com/watch?v=iH4iQwGzO0U&t=25s

because I'm not sure what you will get at the end and whether the video will be the whole of it. If you wanna trim it, you can do that yourself. It's better that way. Also, remove the Google's spy string from the URL. The spy string starts with "&pp=[random numbers and letters]".
 



The part behind ?v is the video. The &list is the playlist. Then, the &index is a marker for which video will be played next.

You can check this. Delete everything to the right, starting at &list. It'll play the video you're on, without a playlist. Then, change the index=2 to index=7 and it'll hopefully play that video next, after the first video has ended.
 
t'll hopefully play that video next, after the first video has ended.
lol....it actually played No. 3... but cool none the less.

It'll play the video you're on, without a playlist.
Thats cool. Some of the 'playlists' are a thousand miles long.
I tend to download just one mp3 at a time. I pick the eyes out of what is available. I am particular about what I listen to
 
I am particular about what I listen to

I'm usually extremely picky about what music I listen to. Then, there are times (usually when driving) that I want to listen to a specific genre of music. To do that, I have a variety of MP3 players that I can take with me when I go for a drive, and a variety of ways to connect them to the sound system inside the vehicles. Some MP3 players will have a genre, others may have curated tracks made up one by one. I have a bunch of music downloaded and can just pick from that supply.

I go for a drive almost every day. I am surrounded by all manner of twisty mountain roads and roads that aren't maintained at all. The route I drive varies depending on what I'm driving, what I'm feeling like, etc... There are roads with lots of corners and some fairly long straight sections. We have roads that are barely roads that will take you through the woods and to the tops of mountains. Plus, we have a large variety of weather conditions. What many people don't ever learn is that you can have a lot of fun while driving in the snow -- assuming you're not an idiot about it.

I like driving, and I've done a lot of it. I'm an automobile enthusiast, you could say. Somewhat amusingly, I can find something nice to say about most automobiles -- even the Lada and Isetta. Heck, I can enjoy myself while driving a golf cart.
 


Follow Linux.org


Top