Cannot download YouTube videos in Aramo

13 replies [Last post]
Ignacio.Agullo
Online
Joined: 09/29/2009

Let's say I want to watch in Aramo a YouTube video with audio out of sync. If I could watch this video from a media player that allowed for sync correction, such as VLC, I could easily enjoy the video. However, there is no known way for me to watch a YouTube video from a media player. So, as a last resort I could try to download the video first and then play it in VLC or other media player that allows for sync correction. I am not doing anything wrong, am I? I just want to watch this video with the audio in sync, and then delete it. So, these are the solutions that I have been trying:

YouTube Downloader: Graphical app provided by Trisquel repository, can be installed from the App/Remove Apps menu. Fails.

youtube-dl: Command-line tool provided by Trisquel repository in the package youtube-dl. Even though the package is installed, the command youtube-dl is not found.

yt-dlp: Command-line tool provided by Trisquel repository in the package yt-dlp. Trying to use it just produces the error "Unable to extract uploader id". In the thread "Cannot play YouTube videos on VLC" https://trisquel.info/es/forum/cannot-play-youtube-videos-vlc , user Kiki_the_Cyber_Squarrel (squarrel?) recommends using the yt-dlp package from GNU Guix instead: Comment #4, https://trisquel.info/es/forum/cannot-play-youtube-videos-vlc#comment-178540 .

Abrowser extensions: If I open Abrowser's Extension Manager and I search for "Video Download", I get a Mozzarrella page with 74 extensions: https://gnuzilla.gnu.org/search.php?q=Video%20Download". 39 of these extensions are unrelated to YouTube video download. Of the remaining 35, I find:

7 Extensions that do not even download:
-FetchV:Video Downloader (HLS/m3u8/mp4)
-Video Downloader
-OFFMP4 - Online Video Download Helper
-Video Downloader VeeVee
-Video Downloader Professional/Plus - MPMux
-M3u8 hls video downloader-fetchV
-VDE - Video Download Engine

9 Extensions that get downloaded and installed but then do nothing at all:
-Video Download
-HD Youtube Downloader
-YouTube to MP4 Downloader
-All in One Video Downloader
-YTMp3 YouTube To MP3 Converter YTMp4 Downloader
-YouTube Video Downloader Audio Converter
-1qvid - Free Video Downloader
-TubeLink
-PTL Video Downloader

8 Extensions that get downloaded and installed but then do nothing at all while pretending to do something:
-Right-click YouTube Video Downloader
-YouTube Video Downloader - For Context Menu
-All Video Downloader Pro
-YouTube Video Downloader (YouTube icon)
-YouTube Video Downloader And More
-Youtube Video Downloader (Extension icon)
-YouTube Downloader Pro 2023
-All-in-One Video Downloader Pro 2023

6 Extensions that get downloaded and installed but then fail to find the video on YouTube's page:
-Download Video and Flash - HD Download
-Video Downloader Pro
-Video Downloader Prime
-Free Video Downloader
-Good Video Downloader
-Video Master

5 Extensions that get downloaded and installed, identify the video on YouTube's page but then fail to download it:
-Easy Youtube Video Downloader Express
-YouTube Doenloader
-Easy Video Downloader (Flash and Video)
-Private Video Downloader
-Y2mate Video Downloader

...and that's it. Not a single successful extension.

I could have missed something, but not 35 times. There is no doubt that many of these 35 extensions are obsolete.

It seems that the only hope that remains for me to enjoy this video with audio out of sync is to GNU Guix's version of yt-dlp. But that is a task for another day.

Avron

I am a translator!

Offline
Joined: 08/18/2020

> yt-dlp: Command-line tool provided by Trisquel repository in the package yt-dlp. Trying to use it just produces the error "Unable to extract uploader id"

I just tried on aramo with https://www.youtube.com/watch?v=s7L7ZNYNTdw, it worked. Are you using aramo?

knife

I am a member!

Offline
Joined: 01/02/2019

It doesn't work here (Aramo). I also got "Unable to extract uploader id"

regards

Avron

I am a translator!

Offline
Joined: 08/18/2020

> I also got "Unable to extract uploader id"

With the same URL? I tried again using my mobile phone for internet access, instead of my home connection, it also works fine (slower though).

Could it be that there is some kind of special filtering based on IP address or something like that?

Ignacio.Agullo
Online
Joined: 09/29/2009

Well, I will copy here the full output:

ignacio@Ignacio-P35-DS3L:~$ yt-dlp https://www.youtube.com/watch?v=s7L7ZNYNTdw
[youtube] s7L7ZNYNTdw: Downloading webpage
[youtube] s7L7ZNYNTdw: Downloading android player API JSON
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying ...
[youtube] s7L7ZNYNTdw: Downloading android player API JSON (retry #1)
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying ...
[youtube] s7L7ZNYNTdw: Downloading android player API JSON (retry #2)
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] HTTP Error 400: Bad Request. Retrying ...
[youtube] s7L7ZNYNTdw: Downloading android player API JSON (retry #3)
WARNING: [youtube] YouTube said: ERROR - Precondition check failed.
WARNING: [youtube] Unable to download API page: HTTP Error 400: Bad Request (caused by ); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
[youtube] s7L7ZNYNTdw: Downloading player 6e1dd460
WARNING: [youtube] nsig extraction failed: You may experience throttling for some formats
n = pU3jXEPntaGkqWBm- ; player = https://www.youtube.com/s/player/6e1dd460/player_ias.vflset/en_US/base.js
s7L7ZNYNTdw: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2517, in _decrypt_nsig
    self._player_cache[player_id] = self._extract_n_function(video_id, player_url)
  File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2543, in _extract_n_function
    funcname = self._extract_n_function_name(jscode)
  File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2526, in _extract_n_function_name
    nfunc, idx = self._search_regex(
  File "/usr/lib/python3/dist-packages/yt_dlp/extractor/common.py", line 1229, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
yt_dlp.utils.RegexNotFoundError: Unable to extract Initial JS player n function name; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
 (caused by RegexNotFoundError('Unable to extract \x1b[0;94mInitial JS player n function name\x1b[0m; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
WARNING: [youtube] nsig extraction failed: You may experience throttling for some formats
n = tLM8r3U3uVNXZj-vX ; player = https://www.youtube.com/s/player/6e1dd460/player_ias.vflset/en_US/base.js
s7L7ZNYNTdw: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2517, in _decrypt_nsig
    self._player_cache[player_id] = self._extract_n_function(video_id, player_url)
  File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2543, in _extract_n_function
    funcname = self._extract_n_function_name(jscode)
  File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2526, in _extract_n_function_name
    nfunc, idx = self._search_regex(
  File "/usr/lib/python3/dist-packages/yt_dlp/extractor/common.py", line 1229, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
yt_dlp.utils.RegexNotFoundError: Unable to extract Initial JS player n function name; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
 (caused by RegexNotFoundError('Unable to extract \x1b[0;94mInitial JS player n function name\x1b[0m; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
ERROR: [youtube] s7L7ZNYNTdw: Unable to extract uploader id; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
andyprough
Offline
Joined: 02/12/2015

As I said, using mpv with a nightly version of yt-dlp is the solution you are looking for: https://trisquel.info/en/forum/cannot-play-youtube-videos-vlc#comment-178545

Ark74

I am a member!

I am a translator!

Offline
Joined: 07/15/2009

I'll try to track latest release, but don't hold your breath on it.

YouTube will continue to shake off any consumer who can't extract value from, and at some point the thread will break

andyprough
Offline
Joined: 02/12/2015

yt-dlp is saying on their github page that at this point latest release is not good enough for regular use, that youtube is changing so fast that users need to be on nightly and do an update daily. Users will have to do that manually I would imagine, or just give up on youtube. Giving up on the site may be the best option.

Ark74

I am a member!

I am a translator!

Offline
Joined: 07/15/2009

A latest version is on the build repos already, but there is an issue with the repo update, so you can grab it from here while it arrives:

Cheers!

iShareFreedom
Offline
Joined: 12/20/2021

The issue is easy to solve.

Just install the new version of yt-dlp available in the backports repository of Trisquel.

Avron

I am a translator!

Offline
Joined: 08/18/2020

Ignacio.Agullo, do you have backports activated?

Indeed, I am using yt-dlp from backports and it works for me, so maybe it would work for you too.

Ignacio.Agullo
Online
Joined: 09/29/2009

No, backports is not activated; my Trisquel installation is pretty much out-of-the-box. Well, now it is out-of-the-box with Guix.

All, right, I am removing yt-dlp from Guix: guix package -r yt-dlp

Now I activate backports at sources list, perform an apt-update and then install yt-dlp.

Trying again:

ignacio@Ignacio-P35-DS3L:~$ yt-dlp https://inv.nadeko.net/watch?v=s7L7ZNYNTdw
[generic] Extracting URL: https://inv.nadeko.net/watch?v=s7L7ZNYNTdw
[generic] watch?v=s7L7ZNYNTdw: Downloading webpage
ERROR: [generic] Unable to download webpage: HTTP Error 500: Internal Server Error (caused by )
Avron

I am a translator!

Offline
Joined: 08/18/2020

If I do

yt-dlp https://inv.nadeko.net/watch?v=s7L7ZNYNTdw

like you, I have exactly the same failure but

yt-dlp https://www.youtube.com/watch?v=s7L7ZNYNTdw

works fine.

eric23
Offline
Joined: 06/30/2017

What version is apt showing for yt-dlp? I see 2024.09.27-1~bpo22.04.1 . In the archive, I see

"yt-dlp_2024.11.18-1~bpo24.04.1_all.deb"

which should be earlier than guix has in "2024.12.23." From this page (https://packages.trisquel.info/aramo-backports/yt-dlp) I see (2024.08.06-1~bpo22.04.1).

Nothing seems current.