eyecatchup / php-yt_downloader Goto Github PK
View Code? Open in Web Editor NEWPHP Class to download videos from YouTube.
Home Page: http://eyecatchup.github.com/php-yt_downloader/
PHP Class to download videos from YouTube.
Home Page: http://eyecatchup.github.com/php-yt_downloader/
Youtube now provides a 144p version of videos. Please support download of this low resolution video.
Note: You can find the source code of this demo in the gh-pages branch ??
Where is the gh-pages branch files ?
Thanks
hi,
i see on the download source the message ->
Since we cannot run PHP code here, the download functionality is disabled for this demo version.
Note: You can find the source code of this demo in the gh-pages branch.
Can you help me to remove the message and convert with your script - i have downloadet the version but i see only this shit :(
Hello, i'm updating the script but i encountered some problems.
First of all, I got some code from a more updated repository (I watched in the "network" section of github).
This is the final class: https://gist.github.com/LuigiElleBalotta/d5f30cbed74e808d67ad44d3f9506d31
The problem is that the video is without the audio. Example: LINK
This is a problem for ffmpeg that outputs "Output file #0 does not contain any stream".
This is the json response from youtube: LINK
Any help?
Any way to just offer a download link to the user instead of saving the video on my server first? Seems like an unnecessary step, plus can get pretty bandwidth-heavy.
This is a great script! just think this suggestion will make it better :)
Hello There,
On installing, I am getting the following error:
Warning: require(/home/mp3globe/public_html/../bootstrap/autoload.php): failed to open stream: No such file or directory in /home/mp3globe/public_html/index.php on line 21
Fatal error: require(): Failed opening required '/home/mp3globe/public_html/../bootstrap/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mp3globe/public_html/index.php on line 21
Hey, I also get an error: "Notice: Undefined variable: videos in var/www/youtube_graph/youtube-dl.class.php on line 534
Grabbing original file location(s) failed."
Can you tell whats wrong there?
Grabbing original file location(s) failed..This content contain uncell...
Why i have this error ?
Any video i try i get this error,any fix?
i have installed youtube-dl ,ffmpeg ,enabled curl and json but the video which is downloaded showing 0 KB however the thumbnail of the video is created .plz fix it
Ive got no clue how to use this crapware...
Reading code is not helpful either.
public function download_video($c=NULL)
{
$c = ($c !== NULL) ? $c : 0;
FUCK YOU!!!!
I have installed ffmpeg, php5, php5-curl from repo on Debian 6 but still it does not work. It downloads the image-thumbnail just fine but the video is always size 0. Please fix
Seems that this issue is back.
"Grabbing original file location(s) failed."
I just installed this for the first time on my vps (Centos 5.9) and that is all i get. I also see that 10 months ago this issue was fixed once so it must have came back again recently. If you need any more info on this issue let me know
I have this error :
"This video contains content from VEVO. It is restricted from playback on certain sites".
Anyone ?
I have installed ffmpeg, php5, php5-curl from repo on Debian 6 but still it does not work. It downloads the image-thumbnail just fine but the video is always size 0. Please fix
Hi,
I'm having an issue using "example-audio-2.php" from the examples. I have installed 'ffmpeg' on my Linux/CentOS server.
When I type 'ffmpeg -version' in SSH it returns with the version
Also when I type 'which ffmpeg' it returns with the path "/usr/local/bin/ffmpeg/"
But for some reason I'm getting the error shown in the title when trying to use the example files.
Is there something else I must do? Is this in the correct path?
Thanks
Hi,
I'm trying the script, but the generated video file is empty (instead the thumb is right).
SSD_vs_HDD_Performance_Comparison_-240p-youtubeid-j84eEjP-RL4.jpg -> 16751 bytes
SSD_vs_HDD_Performance_Comparison-240p-_youtubeid-j84eEjP-RL4.3gp -> 0 bytes
I also tried the HQ parameter, also getting an empty mp4 file.
I'm echoing the URL, is this:
Can you please confirm if the youtube URL has changed, or just my installation is failing?
Thanks & Regards!
hi I am using clipbucket for q video website, it has option to sujjest a embed video by adding the youtube link ( url) if video and it embeds the video into database, users can also upload videos and ffmpeg will convert the video and add it to database.
my question is how can I utilize this script - so when a user adds a youtube video - instead of embedding it into my database it will use this script to upload a .mp4 to the database
is anyone able to make this ? or familiar with clipbucket.com script
hope this is not to much to ask
Spiro
I downloaded this after crawling the web for hours and it seems all other solutions you need to pay for so maybe its too good to be true. 9 times out of 10 i get the same error as Adzster where videos is undefined. And the one time it does seem to work i get... "Something went wrong while converting the video into mp3 format, sorry!" and it manages to download the thumbnail but no video file. I would really love to get this working do you have any tips how to make it work?
hi,
i see on the download source the message ->
Since we cannot run PHP code here, the download functionality is disabled for this demo version.
Note: You can find the source code of this demo in the gh-pages branch.
Can you help me to remove the message and convert with your script - i have downloadet the version but i see only this shit :(
i have downloaded youtube-dl and ffmpeg in my computer bt yet after invoking class it gives error!!
I'm facing the Problem that I always getting the Error
Grabbing original file location(s) failed
.
It seems that the youtube-dl.class.php
file cant finde the videos
direction to store the Video and Images.
It seems that this error get caused by this line in the php file:
self::set_downloads_dir(cnfg::Download_Folder);
I think that "Download_Folder" isnt set in the cnfg.
So I added this line of code in the first line of the PHP File:
const Download_Folder = APPATH.'./videos/';
So after that, the PHP File always works 1 TIME. ONLY 1.
After the first time it downloads the Video, but then after that it throws the error again and again.
It could be that this dont have to do anything with the error, but I wanted to mention that.
So does someone know how to fix this Error on Apache Server in 2017?
Cheers
It seems that this fixes the issue at least:
Change this lines of Code in the class.php file:
if(preg_match('/itag=([0-9]+)&url=(.*?)&.*?/si',$url,$um))
{
$u = urldecode($um[2]);
$tmp[$um[1]] = $u;
}
with this lines of code:
if(preg_match('/url=(.*?)&.*?itag=([0-9]+)/si',$url,$um))
{
$u = urldecode($um[1]);
$tmp[$um[2]] = $u;
}
else if (preg_match('/itag=([0-9]+)&.*url=(.*)/si',$url, $um))
{
$u = urldecode($um[2]);
$tmp[$um[1]] = $u;
}
I need some help with the UI. Whenever I enter the URL and click "Audio" or "Video", I get this message:
"Since we cannot run PHP code here, the download functionality is disabled for this demo version.
Note: You can find the source code of this demo in the gh-pages branch”
I downloaded both of the files (UI and the PHP thing) and put them in the same folder on my website file manager.
I've got ffmpeg, curl, etc, installed however when I go to use the example scripts I get the issue of:
'Notice: Undefined variable: videos in /var/www/yt/examples/youtube-dl.class.php on line 534 Grabbing original file location(s) failed.'
Any help would be appreciated
Object {readyState: 4, responseText: "
↵Grabbing original file location(s) failed. ", status: 200, statusText: "OK"}
I keep getting this error, not sure why sometimes and other times just doing the request repeatedly solves it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.