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.
Now PHP support is broken?? #2490
Comments
|
Could you post some log or at least the command you are using? |
|
In the PHP head I am assigning a variable to When outputting the PHP command to a txt file it shows that it stops on "Downloading JS Player": [youtube] Setting language |
|
Could you post what you get if you add to the command the |
|
The above at the end of my comment is the verbose output of what I get before it stops |
|
There's some missing output, it should start with:
(you may need to also capture the standard error output, I don't know how to do that in php) |
|
Ah the output to txt file doesn't give the full verbose info.. this is copied out of the terminal:
Stops here |
|
I get the correct result if I run the same command directly in the command line by the way. So it all works fine on the machine but not when using PHP. PHP can run commands in the terminal from a webpage fine as long as the command doesn't go off somewhere else or not send back info to say it's still going. |
|
If it helps you understand it: |
|
Seems like a PHP question more than youtube-dl. I think you just need to select a different way of running the command in PHP. The link below might help. |
If have had Youtube-DL implemented on a website of mine for a while now, using PHP to back-end run the youtube-dl with a POST'd youtube link and then embed the resulting downloaded MP4 inside an HTML5 video tag. To bypass youtube filtering among other things. The problem I have is that the most recent youtube-dl.exe, possibly due to Youtube changing the way their videos work, no longer uses one command line process to finish. Therefore PHP assumes the command has completed before the video has downloaded and quits out of the command.
This only happens for links that have encrypted videos (like Vevo). All other normal videos work fine. I presume this is due to Youtube-dl being able to capture these in one command.
Any ideas or possibility of a fix?? Thanks in advance