How to install *latest* yt-dlp on Ubuntu Server 24.04.1 LTS?
Keith
keithw at caramail.com
Tue Feb 11 17:37:43 UTC 2025
On 2/11/25 3:22 AM, Bo Berglund wrote:
> On Tue, 11 Feb 2025 08:48:18 +0100, Bo Berglund <bo.berglund at gmail.com> wrote:
>
>> Notice that on my Windows 10 (which I don't want to use for these tasks) after a
>> lengthy installation process outlined in the link in my starting post I could in
>> fact download the instruction video to Windows.
>>
>> And I can copy it over to the video store on my Linux server.
>> But this is not useful because I have scripts using yt-dlp for getting videos in
>> general on my Ubuntu server so I need it to work there....
>>
>> Does it matter that my Windows 10 is a desktop machine whereas my Ubuntu Server
>> is just that, a server with no GUI in use ever, just command line via ssh?
>
> Just to be complete, here is the functioning download sequence on my Windows 10
> PC:
>
> D:\HP\ZBookG5>yt-dlp --version
> 2025.01.26
>
> D:\HP\ZBookG5>yt-dlp https://youtu.be/gYRDjLb41R8
This command-line is different from what you used with the linux version
(yt-dlp -o HP-keyboard.mp4 https://youtu.be/gYRDjLb41R8). If I use the
Windows 10 command-line with yt-dlp_linux, it successfully downloads the
video. But I'm not a regular yt-dlp user, so I can't really say why the
linux version failed with the "-o HP-keyboard.mp4" option added.
If you added "-o HP-keyboard.mp4" to the command-line for the Win10
version, does it also fail? If not, then there's probably a bug somewhere.
> [youtube] Extracting URL: https://youtu.be/gYRDjLb41R8
> [youtube] gYRDjLb41R8: Downloading webpage
> [youtube] gYRDjLb41R8: Downloading tv client config
> [youtube] gYRDjLb41R8: Downloading player 9c6dfc4a
> [youtube] gYRDjLb41R8: Downloading tv player API JSON
> [youtube] gYRDjLb41R8: Downloading ios player API JSON
> [youtube] gYRDjLb41R8: Downloading m3u8 information
> [info] gYRDjLb41R8: Downloading 1 format(s): 137+251
> [download] Destination: Replace the Keyboard | HP ZBook 15 G5, G6 Mobile
> Workstation | HP [gYRDjLb41R8].f137.mp4
> [download] 100% of 25.17MiB in 00:00:01 at 14.55MiB/s
> [download] Destination: Replace the Keyboard | HP ZBook 15 G5, G6 Mobile
> Workstation | HP [gYRDjLb41R8].f251.webm
> [download] 100% of 1.27MiB in 00:00:00 at 3.36MiB/s
> [Merger] Merging formats into "Replace the Keyboard | HP ZBook 15 G5, G6 Mobile
> Workstation | HP [gYRDjLb41R8].mkv"
> Deleting original file Replace the Keyboard | HP ZBook 15 G5, G6 Mobile
> Workstation | HP [gYRDjLb41R8].f251.webm (pass -k to keep)
> Deleting original file Replace the Keyboard | HP ZBook 15 G5, G6 Mobile
> Workstation | HP [gYRDjLb41R8].f137.mp4 (pass -k to keep)
>
> It resulted in a *.mkv file, which I then used ffmpeg to convert to mp4:
>
> D:\HP\ZBookG5>ffmpeg -i Replace_the_Keyboard_HP_ZBook_15_G5.mkv
> Replace_the_Keyboard_HP_ZBook_15_G5.mp4
This what I did with the linux version, though the actual filename was
'Replace the Keyboard | HP ZBook 15 G5, G6 Mobile Workstation | HP
[gYRDjLb41R8].mkv' and it successfully converted it to mp4.
--
Keith
More information about the ubuntu-users
mailing list