Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

New API

94 replies [Last post]

Hey guys if you want a good API (like the one trapvid used to offer) here you go.

Example (but fully functional) usage:

<?php
$url='http://youtube.com/watch?v=-vgQ6WJ8zhQ';//Example link, replace with the link you want to play
$autostart=false;//Set this to true if you want the video to start automatically

$x=simplexml_load_file('http://av.freethepenguins.com/'.$url);echo'You are watching <b>',$x->title,'</b>, a ',$x->duration,' second long ',(empty($x->bitspersec)?'':round($x->bitspersec/1000).' kbps '),'video from <b>',$x->host,'</b> that was uploaded by <b>',$x->uploader,'</b>',(empty($x->uploaded)?'':' at '.date('Y-M-d h:i:s A',(int)$x->uploaded)),'.<br/>',$x->broken==1?'Sorry, this video is broken.':'<object type="application/x-shockwave-flash" data="http://freethepenguins.com/yt" width="450" height="359"><param name="allowFullScreen" value="true"/><param name="FlashVars" value="file='.$x->file.($autostart?'':'&autostart=false').'"/><param name="movie" value="http://freethepenguins.com/yt"/><a href="http://macromedia.com/go/getflashplayer" onclick="window.open(this.href);return false;">Install Flash</a></object>';
?>

Currently supported: 123video, crunchyroll(H264), Funny or Die, GoFish, Google Video, Guba, LiveLeak, LiveVideo, MySpaceTV, Putfile, TUBE8, Tudou, Veoh, Vimeo, YouPorn, YouTube(H264)

Up to date list of currently supported sites: http://freethepenguins.com/f=874

If you want any sites/features added please ask me.

Oh and if this topic gets spammed like the other one did, you can talk on my forum at http://freethepenguins.com/f=1880 instead

all I can say is wow.. :D thanks so much!

good work

*see reply in other topic*

@Azu
You made a nice solution and it works great.
BUT the movie depends on your api so if you decided to change anything or remove the api all the movies embedded with your solution will be stopped.
So I cannot recommended to anyone to use this API.
It would be nice if you give the users the option to download your API so they can use it on there own domain or server.

Don't worry I won't do anything that requires you to make changes on your end.

Added support for Yahoo! Video

hey azu if i wanted to play a playlist with your script could that be possible!

for example

my "playlist.xml"

<?xml version='1.0' encoding='UTF-8'?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
  <trackList>
    <track>
      <creator></creator>
      <title>Rihanna "Disturbia" 2008</title>
      <location>http://www.veoh.com/video/v15174748Ejt6qQwM</location>
    </track>
   <track>
      <creator></creator>
      <title>Chris Brown - Forever 2008</title>
      <location>http://www.veoh.com/video/v11842144bDeHJXJg</location>
    </track>
    <track>
      <creator></creator>
      <title>Kardinal Offishall "Dangerous" 2008</title>
      <location>http://www.youtube.com/?v=pbxvH-tBRwM</location>
    </track>
  <track>
      <creator></creator>
      <title>Katy Perry - I Kissed A Girl 2008</title>
      <location>http://www.youtube.com/?v=NoKPi8xtyjA</location>
    </track>
  <track>
      <creator></creator>
      <title>EminemFeat50c/Cashis/Lloyd Banks-You Don't Know 2006</title>
      <location>http://www.youtube.com/?v=ds1Sf5PpQuY</location>
    </track>
  </trackList>
</playlist>

Embed Code

<embed
src="http://freethepenguins.com/yt"
width="470"
height="320"
bgcolor="ffffff"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=http://sro110.freehostia.com/dix/playlist.xml&&autostart=true&fullscreen=true&repeat=false"
/>

its nt seem to be working any help

@hailo Your domain doesn't have a crossdomain.xml file set up, so my player is blocked from loading your xml

To solve this, make a file named crossdomain.xml in the base directory, and put
<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><allow-access-from domain="freethepenguins.com" /><allow-access-from domain="www.freethepenguins.com" /></cross-domain-policy>
in it.

This should make it load.

Also I recommend replacinghttp://sro110.freehostia.com/dix/playlist.xml&&autostart=true&fullscreen=true&repeat=falsewithhttp:/... better compatibility.

bro currently veoh.com videos nt working with your playlist any suggestion? for example

http://www.veoh.com/video/v15174748Ejt6qQwM

@hailo

You made a typo in the URL, not my fault. For some reason Veoh auto detects and fixes it so it opens.

Replace /video/ with /videos/ like all of the links on Veoh are.

Fixed Veoh videos over half an hour long to play the whole thing instead of just the first 5 minutes.
Here's the longest working example on my site (2 hours and 20 minutes) from Veoh http://freethepenguins.com/v=http://www.veoh.com/videos/v6956778z46AXAdM
I can't guarantee longer videos will work, but they probably will.

(Veoh was the only site I didn't have full videos working with, so now they all are)

Great! Emre K. Had A Friend Inside MV , He May Have Leaked A Code Previously. Now His Friend Just Got Fired. , So No Decoding Avi.

Azu,

Is there any way to get you to release the api so we do not have to rely on your servers?

I am not "worried" about you taking it down I just do not want to rely on anyone elses servers.

A download link for the full api would be great. Best of all your server resources would not have
to be used by us.

Thanks,

Josh

Congratulations Azu, you rocks... everything seems to work.

1. Is there a way to have a neutral version of your yt, i mean not blue :)

2. Or a download version in .fla

Best regards,

FYI: anyone wondering how to watch full veoh.
Its the old p/ to f/ trick again.

Good fun!

@Saint Shaka
You can set the colors manually to whatever you want.
http://code.jeroenwijering.com/trac/wiki/FlashVars
If you really really really don't want to, tell me and I'll try to make it detect if it's in another domain and use the default colors if it is. I don't feel like coding this if it's not very strongly wanted though.

@NuWeb
Yes this supports full Veoh

1. You mean this kind of flashvars :

* backcolor (FFFFFF): background color of the controlbar and playlist.
* frontcolor (000000): color of all icons and texts in the controlbar and playlist.
* lightcolor (000000): color of an icon or text when you rollover it with the mouse.
* screencolor (000000): background color of the display.

I tried something like this but it doesn't work : flashvars="frontcolor=FFFFFF&screencolor=CCCCCC&....

2. it's seems that the tip "&fmt=6" doesn't work.

@Saint Shaka
1:
Could you post a link to an example page please and I'll try to figure out what I messed up to break it?

2:
You don't need to do any of those tricks with the URLs. It will be done automatically when it's available :)

Very slick. Hope your site stays up and doesn't get slammed since we have to link through it.

Anyways, the player works great for youtube and veoh. I can't get it to work for anything on Google Video using this url structure: http://video.google.com/videoplay?docid=494860270186758059

Can't get Megavideo either, but your site lists those as not working.

Working Examples using your script:
Youtube: http://www.thesmartass.info/watch/new+metallica
Veoh: http://www.thesmartass.info/ripofftheater/?channel=840&type=veoh&category=21

Not Working Examples using your script:
GoogleVideo: http://www.thesmartass.info/ripofftheater/?type=googlevideo

(this using: $url='http://video.google.com/videoplay?docid=494860270186758059'; )

@Saint Shaka
Sorry for the trouble
Could you try replacing it with this please and tell me if it works right then?
<object type="application/x-shockwave-flash" data="http://freethepenguins.com/yt" width="450" height="474"><param name="allowFullScreen" value="true"/><param name="FlashVars" value="file=http://mangavod.tv/animes-streaming-flux-xml/animes-streaming-kanokon.xml&amp;frontcolor=0x000000&amp;backcolor=0xffffff&amp;lightcolor=0x000000&amp;screencolor=0x000000"/><param name="movie" value="http://freethepenguins.com/yt"/><a href="http://macromedia.com/go/getflashplayer" onclick="window.open(this.href);return false;">Install Flash</a></object>

@Xevor
Many apologies!
I didn't test one of my recent changes enough, and it broke about half of them (google video included) x_x
Damn typo.
I'll be more careful in the future.

If any of them ever stop working again please let me know though. :)

P.S. Megavideo should be working again to now. I have a line through it because it can take a long time to load, and there is a high chance of it getting broken. If can't get one of them to work at all then I will just delete it from the list, to avoid confusion.

P.P.S. if you don't want to use any of my API functions, and instead just want to show the video and don't care about the link being known, use the
<object type="application/x-shockwave-flash" data="http://freethepenguins.com/yt" width="450" height="474"><param name="allowFullScreen" value="true"/><param name="FlashVars" value="file=LINK GOES HERE"/><param name="movie" value="http://freethepenguins.com/yt"/><a href="http://macromedia.com/go/getflashplayer" onclick="window.open(this.href);return false;">Install Flash</a></object>
method instead. It will save resources for both of our servers, and it will make the page open faster. The API code posted at the top is just an example, and isn't really meant to be used without some kind of caching mechanism.

@Azu

Thanks for taking the time to check this page and respond/fix issue the same day. Always appreciated.

@Azu.

You're the Master. It's work !

humm, Megavideo doesn't seem to work :(

It seems to be specific videos it doesn't like and others it does.

Working MegaVideo Links:
http://www.thesmartass.info/mv/DCDMYJEU
http://www.thesmartass.info/mv/XOMFLGBG
http://www.thesmartass.info/ripofftheater/?channel=9943&type=mv&category=4

Not Working MegaVideo Links:
http://www.thesmartass.info/ripofftheater/?channel=15665&type=mv&category=4
http://www.thesmartass.info/mv/PIY0KH6M

Azu said it had issues with speed but I think it just doesn't like some videos. Perhaps he could look at the not working ones to determine why not.

@Saint Shaka
Sorry about that
Could you tell me the megavideo link that isn't working?

@Xevor
They should both be working now. Some of the file size strings were being parsed wrong and this was crashing it.

@Azu

1. Here is the sample link : http://www.megavideo.com/?v=2APDWLAO

2. Is it possible to add <image>http://www.mydomain.com/myimage.jpg</image> in the xml's playlist ? It seems not working.

there are some problems with the veoh videos.Last night and today.

@Saint Shaka
Sorry about that.. for some reason Megavideo is disabling embedding for some of it's videos, so my optimized approach of using their little XML file won't work anymore. Changed it to just use the normal video page and it's working again now.

@Dumi
Weird.. I can't find any that aren't working. Link please?

Here the first version of the movie:
http://watch-movies.ro/index.php?m=movie&g=ultraviolet_(2006)

<object type="application/x-shockwave-flash" data="http://freethepenguins.com/yt" width="700" height="500"><param name="allowFullScreen" value="true"/><param name="FlashVars" value="file='.$adresa.'&autostart=true"/><param name="movie" value="http://freethepenguins.com/yt"/><a href="http://macromedia.com/go/getflashplayer" onclick="window.open(this.href);return false;">Install Flash</a></object>

here is the code i'm using

All sorts of megavideos no longer working :( the below ones should be allowed to be embeded.

http://thesmartass.info/mv/N1M05SAI
http://thesmartass.info/mv/HHQYVQNH
http://thesmartass.info/mv/9D4A21KX
http://thesmartass.info/mv/B0EJT76Q

UPDATE: I just added a link below my videos that says Alternate Player. I used this to load my old megavideo player on the videos i said don't load here. Seems those videos say "temporarily unavailable" when loaded through an embed player. yet they work properly when you load megavideo.com's site.

So though it appears it's not your API causing issues, however I would like to know how to avoid this message which I seem to get a lot. Is this something they do to non-premium members to save bandwidth? I mean it's embedded at their own site and playing fine.

Any ideas? Anyone?

@Dumi
Post 1. Sorry that isn't a Veoh link, and it's also not a page that has my player on it. I'm not sure what you posted it for.

Post 2. What is $adresa set to? If you could post a link to the page this is on it could help me help you better.

@Xevor
I'm not sure what they are doing anymore, sorry. Everyone (me included) is having a lot of problems with Megavideo recently.
I thought I had it fixed though.
Definitely fixed now. I checked the links you posted and they all play :)
Hopefully they won't change anything more anytime soon.

@Azu
Can't test... your server is down. Been down for at least 10 mins. Either that or my ip has been blocked. Though I suppose I have been sending a lot of requests to it while testing.

I'm sure you will fix it but I need to leave, I am leaving for a few hours so I will just leave my site "broken" since it's now dependent on yours, hoping you fix it soon.

You have some kind of instant messenger act? If you don't want to list it here you can contact me at "iam at thesmartassDOTinfo"

Working now. wasn't when I left. Couldn't ping your site or load videos. No matter.

Is there any way to return the full video flv path in the XML? So I can use my own video player instead the one you provide? Thanks for the great work!

@azu

1) here is the exact link http://watch-movies.ro/open.php?cale=17132&id=752&v=1.I think that the script fails when the link is broken, in my case it's crashing my browser.

2) $adresa=url from the veoh video (ex. http://www.veoh.com/videos/v15880162cQbWbJk3)

Thank you very much for your help.

Hi Azu,

1. Did you think about the solution of Longtailvideo with your solution ? I don't know the version of your player but the implement code doesn't work. It would be great if your solution could deliver longtail's ads too :)

Best regards and thanks for your support

@Azu
Don't change it from 3.16, 3.16 works with longtail...

Oh and Azu. I am impressed, i was thinking of making videos that people load on my site through a search auto-populate my database, but it seems you are already doing that. My site is one of the top submitters for your site according to the IP address and the specific videos I have loaded.

I mean good for you to use us all like that. Hope you can handle the massive database that it will create. Understand why you don't want to give the source now.

Can you do one thing though that will make us all still love and appreciate your service? Can you make it catch the referral or do reverse DNS and write the actual website address it came from so that we can all be linked back to? Or at least have a way where we can claim our own IP's and have them link back to our sites...

@ Azu.

It still have some pbs with megavideo. The video try to load, waiting your data transfer from your site, then finished but nothing on the screen. Sometimes my ( firefox) browser freezes and i have to closed it. Here is the link for a example : http://www.mangavod.tv/animes-streaming-series-monochrome-factor.php

Any idea ?

Thanks Azu!

Any chance for support for Blip.tv?

@Azu

The links removed my profile names. I assume it updates my ip address and sees i am not my server and removes itself. could you please set my ip to be either my website or at minimum the "trimidium" profile.

Thx.

i have the FULL php script that that website uses :) if you want a script just ask me then i will post it :D

@PS3ubo(.)co(.)nr

Ofcourse you do. If you had it you would have posted it by now.

hate having my site be dependent on somebody elses server.

Oh good grief. You can't run a service without criticism. When your site or your script is not working, neither are ours if we are using your API. However since this service you are giving us is helping YOU to populate your database with our videos, I think you can handle a few complaints or concerns.

@Azu

Yes, I am the guy you helped to make a way to prevent dead links or invalid syntax from trying to load a video player wasting both of our time. also I have given some good suggestions for your own site and have offered future potential income when my site expands.

So I don't care if you give the code away, but if you don't and we have to run through your server then it is very frustrating when it is down, or say you go to sleep and the script is broken because some new change wasn't tested. Because then I need to swap out 6 or 7 different include files to put the old type of players in, which I did the other night, only to put them back today to then see them go down a few minutes after I put your players back up (though in your defense this time you did put a notice on here saying it would be down).

2 way street amigo, you help us / we help you.

But I have appreciated your help and your support with your script, and do not wish you to discontinue that.

@ @PS3ubo(.)co(.)nr

Could you post this - amazing - script ? Azu seems to be agree.

@Azu
Ok, use the thread to support the script. Your script thinks this veoh link: e176310rFSNrzKF is invalid syntax, yet it's totally valid and embeds in the veoh player just fine. I have seen many other videos that use an e instead of a v. Can you please fix that?

You can test it here: http://www.thesmartass.info/ripofftheater/?channel=1192&t=veoh

Thanks in advance!

seeing as valid and loading now, thx

@Azu is the megavideo flash broken ?

best regards

@whwi
the problem with megavideo is that 50% of all videos (at least the ones i have) say "this video is temporarily unavailable", and when they are unavailable you don't get a video. if you were using the official megavideo player it would say unavailable but it might as well say screw you, since you can still watch the video at their website.

Here's what I did because of that:

$x=simplexml_load_file('http://av.freethepenguins.com/'.$url);
if(empty($x->title)) echo 'MegaVideo often says videos are "Temporarily Unavailable" to people who embed the videos.  <br />When this happens you will see this message on my site and then you will need to view the movie directly at <a style="text-decoration: underline;" href="'.$url.'" target="_blank">MegaVideo</a>.<br /><br /> If it is broken at their site please '.$report.''; else {
echo 'replace this with the above code for api'; }

@forgot name lol
i have posted one of the scripts, the youtube downloader/ flv link finder go to forum number "13017" i will add the other scripts like blip.tv and veoh and so on soon :)

@FO
yer i do dont be sarkastic lol, i have added the youtube one already, the forum number is "13017"

@Azu
I know you will view this as just another "complaint", but I thought it worth mentioning that your server was down for at least a couple hours.

How much $$$?

Hello , @Xevor, I know You Are Smart, Enough To Figure Out Your Self. I Don't mean to put down or bad mouth,

But Azu's script I am sure its great, But Compare to My Scripts, Azu scripts for beginners!~ Even a Beggar like "Xevor"

Can Figure it out! Just De-compile the flash. You Can See The Action Script Source Its So Easy, That I Even Made one

With the Brand New JW Player.! and Put A SSL Secure Encrypt on Top. its just too easy!, But, still Azu, put A lot Effort On

His Script. i am Sure He Will Not Just Handed to Anyway, Props for Azu.

Its Just TOO Easy Man !!! Azu You Need To Put Encrypt SSL On Flash.! Its So Easy!!!!

Very strange what's happen with megavideos.... seems like a bug of the script.

Each videos of the playlist is read, and because nothing is loaded, another title is read and so on : here is an example :http://www.mangavod.tv/animes-streaming-series-kanon-2006.php

Humm, it's right ... i simply don't understand... thank you for all you done.

@ Azu

Is it possible to play the videos from www.wat.tv ?
It would be coool :)

@Azu

..oups, the http://freethepenguins.com is down...very bad news :(

Someone got a yt.swf to solve this probleme ? hosted on my website, it would be more confortable.

It is Possible, if you download yt. but the YT will going to execute the grab php script from free penguins just de compile and see the action script.

I am having some serious issues...

I need a chromeless player... without color (the blue won't work) black would be better.... size 305px wide 172px high .... with stretching the screen to fit capabilities .... using Uq_XMXzYaZ8 from youtube as the final video. It must have a start stop ability without starting automatically (I am going crazy listening to it repeatedly!) Need help please. Site is www.TheMountain.org

thanks so much!

Danny

just change the options.. it's just the flv player from here.. add this to end of the flashvars after the file line.... and change the colors ff0000 = red redredgreengreenblueblue so blue is 0000ff

&amp;repeat=false&amp;frontcolor=0xff0000&amp;backcolor=0x000000&amp;lightcolor=0xffffff&amp;shuffle=false&amp;showicons=false

@ Bush

I see but i have to buy a flash decompiler ( like trillix for 80 bugs ) ! Any else solution ?

@Azu

It's ok for me for the customisation of the player :)

The problem is about the freethepenguins/yt ... for the moment, this adress is down ( 14h06 GMT)... and so are pages from my webiste. To be honest, i would like to host this file on my server...

it was what i meant ( http://freethepenguins.com/yt) ... yesterday and this afternoon, the link was down

Okay... I'm clueless... still don't know how to do the following: can someone just give me the actual code I need to do it!

I need a chromeless player... without color (the blue won't work) black would be better.... size 305px wide 172px high .... with stretching the screen to fit capabilities .... using Uq_XMXzYaZ8 from youtube as the final video. It must have a start stop ability without starting automatically (I am going crazy listening to it repeatedly!) Need help please. Site is www.TheMountain.org

Search Googles Got Lots Of Free Flash De-Compiler out their .

@ Bush :

humm... http://answers.google.com/answers/threadview/id/408635.html

"Sorry to be the bringer of bad news, but I don't believe there is a
free product to export swf to a a full .fla file; only a for-pay
product" .. any idea ?

It is bad mojo that the site or the script keeps going down, but even worse to be asking for support to disassemble it in a thread he started for a script he doesn't want to give away.

yeah... no kidding. the second part of the message after the comma was telling people not to use this thread to try to decompile your script.

bad mojo = your site/script going down
worse mojo = using your thread 2 steal your script

wow. read the messages before you react.

@ Azu :

19h46 GMT, the yt is down.

back again at 19h58.. thanx 4 your support

@ Azu.

I'm sorry to annoying you but if you website is online, the adresse http://freethepenguins.com/yt links to nowhere.
No more Yt to play ? no more freethepenguins.com ?

Very bad news indeed :(

azu plz reply fast how can i download yor code????????????????? i want it bad
hurry

Why do the videos I embed keep accessing external sites like orkuch.com, anonimowosc.org, vadoid.com, 123.129.241.5, and etc.?

The videos that accesses orkuch.com do not work. (01:15 GMT)

All the videos don't work now....I found out that it was loading from my cache.

http://freethepenguins.com does not work.

Maybe you should move the API and SWF to somewhere else, like GooglePages.
Free, and has very good uptime.

http://pages.google.com

Wow no wonder he quit monitoring this thread.. idiots.

What?

@Azu
Site has been down for long enough that people have started calling and emailing me to ask what is wrong with my website.

So I looked into it and your site is hosted off your home computer or else hosting provided by your ISP... I mean it's a Road Runner IP in Hawaii.

Road Runner is not known to be a very reliable ISP, so the people who are suggesting hosting it somewhere else are very right. Hell, you registered it at GoDaddy, I used to work there. They have cheap hosting with 99% uptime guarantee that will do fine for what you do.

@ Xevor

Welcome to the real world.
Azu did a so great job with his player that i don't understand why he doesn't want to keep it alive.. i don't think that it's a matter of money... my website is like yours... down..

Fine I'll just have to use another API then...
Or I can try decompileing the SWF and see where the API is located...

I converted the swf to a fla the day Javawaki suggested it, but my computer has issues running adobe flash cs3 or cs4 and I don't really feel like learning where everything is in the program.

I seriously would have just been ok to use Azu's script without ripping it off from him if his site was up all the time and fast, but it's not so I have just said screw it and gone back to normal players.

Companies like megavideo need to just stop shafting their players to prevent full screen. that's the only reason to try to pull the flv out and shove it in another player.

Who posted that?

I DID NOT POST THAT!!!

wtf is wrong with you...

cool...sorta

CHeck your email about tudou Azu thanks

or check this link http://nopaste.com/p/ahCvZMTDG

Sorry haven't checked this thread in a while.

I'm not sure why my API isn't working for you.

If you copy/paste the code you're trying to use for it, and a link to the video that isn't loading, I'll try to fix it for you.

Anyway to get this working in wordpress

This works great but for some odd reason I cant prevent it from autostarting can someone give a tag? im using the flash <object> tag

Just add &autostart=false after the file=LINK

Azu I have a quick job for you, contact me at animec@animecrazy.net Thanks

I love this. Thankyou Azu.

I added the &autostart=false after the file=LINK to stop it autostarting. Do I just add &repeat=false to stop it repeating too?

Also is there a way of inserting the song name into the player please?

Thanks in advance. :)