NCDownloader: Aria2 and youtube-dl not working

You can copy the script to test.php on your webserver and execute it.
You get the username of your webserver user or an error.

<?php
// outputs the username that owns the running php/httpd process
// (on a system with the "whoami" executable in the path)
$output=null;
$retval=null;
exec('whoami', $output, $retval);
echo "Returned with status $retval and output:\n";
print_r($output);
?>

https://www.php.net/manual/en/function.exec.php

Hi, the latest 0.7.5 version has both youtube-dl and aria2c shipped in the app. Now it should work right after you install it from the store. No further installations and configuration needed

Was there any version working so far? For me not… Did not try anymore

my firewall blocked? but nothing happen in ncdownloader, still could download in nextcloud

root@host:~# sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/download/2022.05.18/yt-dlp 4 -o /usr/local/bin/youtube-dl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:02 --:–:-- 0
100 2397k 100 2397k 0 0 354k 0 0:00:06 0:00:06 --:–:-- 679k
curl: (28) Failed to connect to 0.0.0.4 port 80 after 130732 ms: Connection timed out


root@host:~# /usr/local/bin/youtube-dl COLOSSUS / Unreal Engine 4 Architectural Visualization / UE4 Archvis - YouTube
[1] 187608
root@Khadas:~# [youtube] aJTjslgSe-c: Downloading webpage
[youtube] aJTjslgSe-c: Downloading android player API JSON
[youtube] aJTjslgSe-c: Downloading MPD manifest
[youtube] aJTjslgSe-c: Downloading MPD manifest
[info] aJTjslgSe-c: Downloading 1 format(s): 303+251
[dashsegments] Total fragments: 21
[download] Destination: COLOSSUS _ Unreal Engine 4 Architectural Visualization _ UE4 Archvis [aJTjslgSe-c].f303.webm
[download] 63.2% of ~18.84MiB at 50.66KiB/s ETA 00:45 (frag 12/21)

You can manually download the software with your browser here (latest version) of yt-dlp. Use the correct file for linux (hopefully this file). Then copy the file to your server in /usr/local/bin with name youtube-dl.

Then set the correct rights
chmod 755 /usr/local/bin/youtube-dl

sudo for root makes no sense.

I think option -L, --location for curl makes also no sense.

The downloader works. Maybe you use another old version. Test it with a single video. Does it work?

Appreciated for your helps, it gave the the ideas how to fix it