R
R
Romi2021-11-09 09:46:53
YouTube
Romi, 2021-11-09 09:46:53

How to make youtube-dl on a remote server (Ubuntu) download files to the end?

I start download like this:

nohup youtube-dl -f 140 https://www.youtube.com/watch?v=zV3k9OlQTqs &


I close the terminal and go to sleep :)

In the morning in the nohup.out file I see that 20%, or 30%, or 10% has downloaded, but never 100% (as I need). And the download is not progressing.

I added the option:

--skip-unavailable-fragments

didn't help.

What to do?

Server running Ubuntu 20.04

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Saboteur, 2021-11-09
@saboteur_kiev

I will join.
The developers abandoned support for youtube-dl and Google quite quickly blocked the normal speed of its work (intentionally, or YouTube just "develops" and at the same time broke the work of the utility). Now the yt-dlp
fork is actively developing , which has a download speed at the level, and in the future it has not yet been abandoned. Since it's a fork, it's backwards compatible. Change youtube-dl to yt-dlp and everything works.

X
xotkot, 2021-11-09
@xotkot

yt-dlp

C
calculator212, 2021-11-09
@calculator212

MB you have problems with the Internet, for example, it is slow and the download is interrupted , a possible fix ,
You can try using the download script

import youtube_dl


def download_(link):
    ydl_opts = {'outtmpl': 'video/%(title)s.%(ext)s'}
    with youtube_dl.YoutubeDL(ydl_opts) as ydl:
        ydl.download([link])


download_("https://www.youtube.com/watch?v=zV3k9OlQTqs")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question