Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl in php not working(extract audio) #5752
Comments
|
Post the output of running this in php: |
|
Seems to be a permission issue....how to fix that |
|
Set output template to the location that is writable by the user account php is running under. |
$url=exec("youtube-dl -g https://www.youtube.com/watch?v=mk48xRzuNvA");works perfectly but the following doesn't seems to execute on the serverexec("youtube-dl -x --audio-format mp3 -f 18 -o \"%(title)s.%(ext)s\" https://www.youtube.com/watch?v=mk48xRzuNvA");However if i load the equivalent command in commandline it works just fine
youtube-dl -x --audio-format mp3 -f 18 -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=mk48xRzuNvAIs there something wrong with the way i escape the command in php or something