I get the youtube ...I get the youtube link for hd movies white a php script and gives me this url: http://youtube.com/get_video?video_id=t7w5Jj4Xmt8&t=vjVQa1PpcFPy4lrvGrDifDcP24sT1vHKZ27RT6ip8Aw=&fmt=22
but i dont works anymore youtube hase blocked the get_video page so you wil now get a 403 page forbidden warn.
dunno what they did, pretty clever , they must be limitng the token to the ip that got the token is my guess
because if you go to a youtube video and view source then find the &t= token and manually make the url as done before it works fine.. because the token was given to that ip , wheras when you use php its your servers ip getting the token and a diff ip trying to get the video
you can get the token just fine, the problem is the token is only valid for the ip that gets the token not for everyone else.
i just tested this theory by saving the movie on the server instead of forwarding the header and it works just fine, so the token is perfecly valid , its just only useable for the ip that grabbed it.
is possible to use your code to get flv format instead of mp4? i already tried to change fmt=18 to fmt=6 but without luck, any idea how this can be done. also how can use mp4 with JW player.
To Asim, same thing happened here, it turns out in the response I'm getting, the url is in position 18 not 19 so
$url = trim($file[19],"Location: ");
should be
$url = trim($file[18],"Location: ");
in my case
anyhow, this url gives you an mp4 which I don't see how to use from flash (what I need is a flv)
also, this solution doesn't seem very secure to me (a slight change in the response and it will fail) for example, http://funbun.nl/aaa/yt_test.php gives the location on position 19, so it could be a server thing.
could it be solved somehow with api & client keys? any ideas?
This is just a simple script i made so there can be some errors in it.
Because the location position in the array some times change, you can make a function that search in the array and returns the location key from the array.
but it does not work as it is, even though the link itself works fine to get the flv file but because there is no extension of flv, jw does not recognize it.
i am not able to get the video as it only returns me 14 array elements. kindly can you check it at <a href="http://www.paktubevideos.com/download-youtube-videos.html">Download Youtube Videos</a>. it simply gives me the url of my page no youtube get video url :( please help
$headers = get_headers("http://youtube.com/get_video?video_id=".$id."&t=".$token); $array_search = array_ereg_search("location: http://v", $headers); $array_search[0] this gives the array element id.
Hi, Visit http://cclworld.co.cc to download videos in MP4, FLV, 3GP and High Quality 3GP format. This site is using YouTube API 2.0 and download service is still working
Anyone knows how to do the same in java?? I can't find anything like the get_headers in java. I can get the header using an URLConnection but there is not field Location... so I can't find the real URL..
I would like to try using the proxy thru php page calls to be able to retrieve fmt=18 and fmt=22 versions of the YouTube videos.
I guess I need the latest version of your php file, and i am trying to figure out how to use that in conjunction with the player. I have been previously just handing the player the URIs from the Youtube EMBED maker bit on their site.
This is my current code for the object/embed on the page (with lots of extra flashvars removed for clarity):
<div name="mediaspace" id="mediaspace"></div> <script type="text/javascript"> var so = new SWFObject('/jw/player.swf','mpl','640','385','9'); so.addParam('allowscriptaccess','always'); so.addParam("wmode","transparent"); so.addParam('allowfullscreen','true'); so.addParam('flashvars','<as.mediaid=1234&title=somename&description=somedesc&plugins=ltas&channel=11886&type=youtube&file=<WHATGOESHERE?>'); so.write('mediaspace'); </script>
So, do I put a reference to the php page in the <WHATGOESHERE?> and pass the reference to it?
OR do i need to just manually go to the php page with a browser and pass it the Youtube URL and then do a View Source on the <a href=""> tag on the php page, and then load THAT url into my <WHATGOESHERE?> location?
I just noticed my video gallery quit working. Youtube must have made the changes in the past couple of months. Here's my php "get video" code, can anyone tell me what needs changed?
/** normally, you would view the video in a browser at a url like : http://video.google.com/videohosted?docid=XXXXXXXX, but that is actually a frameset, and you need to grab the source of the 'videohosted' frame and parse that. */
Got it to work again. Per the example above by Joey, the preg_match line, the /token needs to be changed to a /&token. There's now a ftoken in there and the script is picking up on that.
Still can't get the hd to work but at least the rest is working fine.
Hi!. Every one.I need a help from.I am not Best php coder. I need to attached you tube videos without logo. here's the code I have use for build the player
Player.html <div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript"> var so = new SWFObject('player.swf','single','420','265','0'); so.addVariable('fullscreen','true'); so.addParam("allowfullscreen","true"); so.addParam("wmode","opaque"); so.addVariable('width','420'); so.addVariable('height','265'); so.addVariable('displayclick','play'); so.addVariable('plugins', 'd-sharing');
so.addVariable('dsharing.sharetoolbar', false); so.addVariable('dsharing.thumb', 'thumbs/video1.jpg'); so.addVariable('dsharing.dskin', 'DSharingSample.swf'); //link to the XML containing related clips so.addVariable('dsharing.mailaction', 'http://www.delfi.ee'); // Address to submit the ShareForm data (eg. http://www.yoursite.com/sendmail.php). Variables posted are: email, name, friend so.addVariable('dsharing.embedvalue','Test');
Can any one view the Php & xml codes for Playing videos Display without logo. Please! give some examples... @joy can your code use for make play list(I mean you tube Play list using .xml file)
This unique script [CCL World YouTube] is not for sale. You can get YouTube search and download for free from here : http://m1net.online.fr/ . Check out CCL World YouTube : http://cclworld.uni.cc for new Embed system. Now it has guaranteed uptime of 99.9%.
You can do it. But for it you have to grab video directly from YouTube server and have to pass that in your personal flash player. You can view the example of it from CCL World YouTube : http://cclworld.uni.cc . They are showing videos without any YouTube Logo. They can place a watermark of them like YouTube but they do not like interruption when running a video.
Can anyone plz tell where to put this php code as a file in our website's control panel. I m totally new to php scripting. plz mail me at suhail141@ymail.com i really need this script.
Anyone needing a highly customized HD playlist solution, i can make one to suit your needs for $20.
Here is some code for those who know php It will simply check the fmt 22 , then check the headers to see if it gets a ok 200 responce so it knows its a valid video, else it will use the normal fmt 18 video.
Very simple and suprisingly faster that i thought it was going to be,
CODE bc.. <?php
/*|================================================= |*| YOUTUBE GRABBER UTIL by Centreonet Solutions |*| Support :: greenscripts@gmail.com |*| Donate from paypal to same address. |*|================================================= |*/
Not sure if this helps you in jw player, i dont know how they take the yt stuff and pass to api, but if it dont mind the google url it might nypass the api and hotlink for you
Oh ya, this will generate a fresh token each time page is loaded, so those with problem with token should not have with this,
hulax q tal tengo 15 aos de edad y bueno m encanta la seccion de alex xq habla mucho de chicos y quisiera que m ayudaras xq la ex d mi novio anda tras de el y nc q hacer AYUDENME PLEASE
OK I note that when you click HD on a video-the address stays the same;
as for .flv>.mpg4
what a waste its like-going back to 56k dialup
I dunno-maybe there are players that can only play .flv
but i am having problems http://www.youtube.com/watch?v=om-QPaETiic as example if I go to view and click viewsource, I get the html page but theyve gone to great lengths to disguise the <img src url..........> that really works; so now what?
Why dont try using firebug for firefox. There you can see all get calls. Then just open the one with higher weight in another tab . finally firefox will ask you whether to save the flv, mp4 file or not.
Im trying to create a php downloader file that download the video in fmt=22 if available and if fmt=18 in case the first one it's not available. I have the following script, but I dont have a clue about how to call it. <> <?php
/*|================================================= |*| YOUTUBE GRABBER UTIL by Centreonet Solutions |*| Support :: greenscripts@gmail.com |*| Donate from paypal to same address. |*|================================================= |*/
if($domain == 'youtube'){ $hotlink = youtubeData($_GET['url']); echo $hotlink; } exit(); ?> </> Im trying with the following but it doesnt work so I guess Im doing something wrong: mywebsite.com/nameofphpfile.php?v=NG2zyeVRcbs