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:
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:
Try to avoid URLs with time points, like
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]".
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]".

