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.
trigerring youtube-dl by PHP exec() works but with some issues #7278
Comments
|
Make sure you are redirecting stderr and post its output. Additionally as explained in the bug reporting instructions, you must use the |
|
I added
Full output:
|
|
The above was when I forced the path to ffmpeg in the command, without it, output is like this:
|
|
Can you run |
|
With both
|
|
As I said, can you run them from PHP (using |
|
Sorry, I missed the
says
And without full path it says |
|
After many tests, I was only able to make it work after I copied Strange that now it works even without specifying |
|
I'm not sure what's the cause. Here's my guess: usually the HTTP server is run under unprivileged user |
I tried to trigger the youtube-dl from browser with this PHP code
It seems to work for the most part, but the output file for that command is an m4a file and no mp3 file.
Full output is this:
And from ssh I trieggered same command and it generated an mp3 file:
I notice now that from ssh output contains [ffmpeg] lines that are not present in PHP output, so I tried this in PHP code:
But output was the same, .m4a but no .mp3 file.