Hey everyone. I was wondering if their was a way to get the flv file from youtube in php. Example: If i give it a youtube url or the video id and it returns the URL where I can download it to my server. Please and thanks
Its very simple. you must install ant toolbar in firefox. It downloads any video which the current website shows, incuding youtube, metacafe or any other video website. Hope it helps : )
DownloadHelper is a very good firefox plugin for downloading flash video from youtube / similar site.
This program works well for what you need you can download it here: youtubedownload.altavista.org I have no association with this site, it is just the tool I use.
Oh im sorry my post was not clear. I am trying to get the flv file from youtube in php. Like i need help trying to make a script that will get the flv file of a youtube video. Please and thanks.
<embed type="application/x-shockwave-flash" src="http://s.ytimg.com/yt/swfbin/watch_as3-vflvORKLE.swf" width="640" id="movie_player" height="390" flashvars="rv.2.thumbnailUrl=http%3A%2F%2Fi2.ytimg.com%2Fvi%2Fyb8om0wO1aU%2Fdefault.jpg&fexp=905500%2C907605&rv.0.view_count=68621&enablecsi=1&rv.2.title=10+%D0%B3%D0%B0%D0%B4%D0%BE%D1%9E+%22%D0%9D%D0%B0%D1%80%D0%BE%D0%B4%D0%BD%D0%B0%D0%BC%D1%83+%D0%90%D0%BB%D1%8C%D0%B1%D0%BE%D0%BC%D1%83%22%2C+17.12.2007&length_seconds=38&allow_embed=1&fmt_stream_map=34%7Chttp%3A%2F%2Fv17.lscache7.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPR1ZTU19FSkNOOV9OTVdD%26fexp%3D905500%252C907605%26algorithm%3Dthrottle-factor%26itag%3D34%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3D9736206DFC852257F9709BF86048485AC5463E91.130AF9023AA73891AFB6F4530C1C4164A59C14CF%26expire%3D1302685200%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D1811be298dcc77b9%7C%7Ctc.v17.cache7.c.youtube.com%2C18%7Chttp%3A%2F%2Fv5.lscache6.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPR1ZTU19FSkNOOV9OTVdD%26fexp%3D905500%252C907605%26algorithm%3Dthrottle-factor%26itag%3D18%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3DAA301FF313CFF31E88D4D99FE29B624B53C35F4E.6443047CB0FCAE438DBE42613F6EA7A0D7998FF2%26expire%3D1302685200%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D1811be298dcc77b9%7C%7Ctc.v5.cache6.c.youtube.com%2C5%7Chttp%3A%2F%2Fv16.lscache3.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPR1ZTU19FSkNOOV9OTVdD%26fexp%3D905500%252C907605%26algorithm%3Dthrottle-factor%26itag%3D5%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3D87FA75376C8F378243EA985ECBD324CDB1DB1BC4.1F547114E3245D735FD23CF30C04880CD858F8CA%26expire%3D1302685200%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D1811be298dcc77b9%7C%7Ctc.v16.cache3.c.youtube.com&rv.2.rating=&fmt_url_map=34%7Chttp%3A%2F%2Fv17.lscache7.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPR1ZTU19FSkNOOV9OTVdD%26fexp%3D905500%252C907605%26algorithm%3Dthrottle-factor%26itag%3D34%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3D9736206DFC852257F9709BF86048485AC5463E91.130AF9023AA73891AFB6F4530C1C4164A59C14CF%26expire%3D1302685200%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D1811be298dcc77b9%2C18%7Chttp%3A%2F%2Fv5.lscache6.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPR1ZTU19FSkNOOV9OTVdD%26fexp%3D905500%252C907605%26algorithm%3Dthrottle-factor%26itag%3D18%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3DAA301FF313CFF31E88D4D99FE29B624B53C35F4E.6443047CB0FCAE438DBE42613F6EA7A0D7998FF2%26expire%3D1302685200%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D1811be298dcc77b9%2C5%7Chttp%3A%2F%2Fv16.lscache3.c.youtube.com%2Fvideoplayback%3Fsparams%3Did%252Cexpire%252Cip%252Cipbits%252Citag%252Calgorithm%252Cburst%252Cfactor%252Coc%253AU0hPR1ZTU19FSkNOOV9OTVdD%26fexp%3D905500%252C907605%26algorithm%3Dthrottle-factor%26itag%3D5%26ipbits%3D0%26burst%3D40%26sver%3D3%26signature%3D87FA75376C8F378243EA985ECBD324CDB1DB1BC4.1F547114E3245D735FD23CF30C04880CD858F8CA%26expire%3D1302685200%26key%3Dyt1%26ip%3D0.0.0.0%26factor%3D1.25%26id%3D1811be298dcc77b9&csi_page_type=watch&keywords=VIDEO0013&cr=US&rv.1.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuIVyZkFbqJo&rv.1.id=uIVyZkFbqJo&sk=WJUbgFwtX2l27HpwsVRjDoUqicbZdb6QC&fmt_list=34%2F320x240%2F9%2F0%2F115%2C18%2F320x240%2F9%2F0%2F115%2C5%2F320x240%2F7%2F0%2F0&rv.1.thumbnailUrl=http%3A%2F%2Fi2.ytimg.com%2Fvi%2FuIVyZkFbqJo%2Fdefault.jpg&rv.0.rating=&feature=topvideos&enablejsapi=1&sourceid=y&plid=AASgw6RZVIWCOEGR&rv.0.id=Yw0GA7Vfv2c&tmi=1&sdetail=f%3Atopvideos%2Cp%3A%2F&rv.1.author=abrykos&rv.1.rating=&watermark=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswf%2Flogo-vfl_bP6ud.swf%2Chttp%3A%2F%2Fs.ytimg.com%2Fyt%2Fswf%2Fhdlogo-vfloR6wva.swf&rv.0.title=VIDEO0011&timestamp=1302662043&rv.0.author=abrykos&rv.2.author=abrykos&fmt_map=34%2F320x240%2F9%2F0%2F115%2C18%2F320x240%2F9%2F0%2F115%2C5%2F320x240%2F7%2F0%2F0&showpopout=1&leanback_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fleanback_module-vfl4O-JMu.swf&hl=en_US&rv.0.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYw0GA7Vfv2c&rv.2.view_count=306&endscreen_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fendscreen-vflGafUOF.swf&rv.0.thumbnailUrl=http%3A%2F%2Fi2.ytimg.com%2Fvi%2FYw0GA7Vfv2c%2Fdefault.jpg&rv.0.length_seconds=157&referrer=http%3A%2F%2Fwww.youtube.com%2F&rv.1.view_count=69477&rv.1.length_seconds=46&vq=auto&rv.1.title=VIDEO0010&rv.2.id=yb8om0wO1aU&rv.2.length_seconds=297&t=vjVQa1PpcFPJ-MtLHmmQ4FakBZIDxE4TtJnAVzEsgwo%3D&video_id=GBG-KY3Md7k&rv.2.url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dyb8om0wO1aU" allowscriptaccess="always" allowfullscreen="true" bgcolor="#000000"> <noembed> Code (markup): Check this above, i got from the source. you can filter the URL... and URL encode the code, after that you get the link.
JackYouTube.com is one of the Best sites for downloading YouTube videos directly to your PC for FREE without the need of software being installed. It's all web based! You can download HD Videos to High Quality MP4, FLV and Also extract Audio from any YouTube video to AAC & MP3. Check out the site and post your feedback or questions! **NO TOOLBAR OR SOFTWARE NEEDED!!!*** Link to site: JackYouTube.com
Watch a video on YouTube and log your network traffic. You'll be able to find a way to determine where the actual flv or mp4 comes from by analyzing http headers.