Author Topic: Youtube videos import  (Read 11684 times)

inmotion

  • Administrator
  • Hero Member
  • *****
  • Posts: 2788
  • PHPmotion Developer
    • PHPmotion Demo
Re: Youtube videos import
« Reply #30 on: October 01, 2007, 04:30:54 AM »
Guys this mod is now ready to go, it does everything from getting the video, to the description, tags etc...even creates a nice thumb....

for details see the "Mods and Addons" forums

murali

  • Guest
Re: Youtube videos import
« Reply #31 on: October 06, 2007, 07:34:59 PM »
I took the code posted here sometime back and worked on the issues they mentioned and got it to work.

Please check out my work at http://video.victorc21.com

This downloads the video (flv file) to your server, performs the DB insert into PHP motion database (makes think PHP motion that this was uploaded by a user) and creates a thumb nail image using ffmpeg utility you see on the home page.

All the videos on this site were grabbed from Youtube. Give it a try and let me know your wishlist.

I am already looking at the Youtube APIs to get various reports (like top rated videos, comedy videos, most recent videos etc.) which can be used to automatically download to your PHPmotion site. Possibilities are plenty I guess ? Not sure what makes sense (if at all).

If there is sufficient demand, I will be more than happy to work on these features ....

I am only a techy and by no means a video pro :( Just got introduced to the online video world !

Looking forward to the feedback from the pros.

cajunkyard

  • Guest
Re: Youtube videos import
« Reply #32 on: October 06, 2007, 07:45:11 PM »
I took the code posted here sometime back and worked on the issues they mentioned and got it to work.

Please check out my work at http://video.victorc21.com

This downloads the video (flv file) to your server, performs the DB insert into PHP motion database (makes think PHP motion that this was uploaded by a user) and creates a thumb nail image using ffmpeg utility you see on the home page.

All the videos on this site were grabbed from Youtube. Give it a try and let me know your wishlist.

I am already looking at the Youtube APIs to get various reports (like top rated videos, comedy videos, most recent videos etc.) which can be used to automatically download to your PHPmotion site. Possibilities are plenty I guess ? Not sure what makes sense (if at all).

If there is sufficient demand, I will be more than happy to work on these features ....

I am only a techy and by no means a video pro :( Just got introduced to the online video world !

Looking forward to the feedback from the pros.

Looks good.. You should help inmotion in fixing out things with the YouTube Grabber power tool.  I'm having problems uploading any video of youtube. Sometimes it works, sometimes it does not.

murali

  • Guest
Re: Youtube videos import
« Reply #33 on: October 07, 2007, 11:47:37 AM »
edhan and carAudioClips,

Thanks for your feedback.
I did this mainly to get my feet wet with the video conversion utility ffmpeg.
As you know, PHPmotion sells a mod for this and I haven't seen it yet.
Please let me know your feedback if you have used it. I don't want to re-invent the wheel.
I am also very concerned about the copy right issues and would appreciate your input in this area.

oac

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2342
Re: Youtube videos import
« Reply #34 on: October 07, 2007, 12:13:16 PM »
I was thinking if it is possible to do it as embedded code to display from youtube instead of downloading it like one of my video site running various video sources. That way, it will eliminate the copyright issue.

Are you able to do that?


Yes this is possible I've sorta done something similar where you can display photos instead of videos, just needs a bit of modding & it'll be good for embedding :)

murali

  • Guest
Re: Youtube videos import
« Reply #35 on: October 07, 2007, 12:33:19 PM »
If OAC is going to do it, I will wait to see the details. Don't want to re-invent the wheel.
Am relatively new to video streaming.

murali

  • Guest
Re: Youtube videos import
« Reply #36 on: October 08, 2007, 11:24:56 PM »
I can share the code provided you can customize it and make it work on your server without causing any problems.

I posted it on the public site so that members of this forum can easily try it.
I was hoping to see feedback from members who bought the MOD being sold by PHPmotion before deciding whether it is worth our time pursuing this option. In essence I would like to know whether this feature makes real business sense and adds any additional value compared to the MOD being sold by PHPmotion.

For a technician it is easy to take my code and make it work on their site. However to make it usable for a non techie, it needs work. I need some volunteers to work with me to test this out and document the details before we can distribute it as a MOD. I also may have to study the PHPmotion upload feature and
make this similar to that.

Here are some issues we need to work on.

1) The original code and the one running on my server requires PEAR package installed on the server which may not be a good assumption.

2) Exposing it to the public area may not be a good idea since it can potentially be misused by the public without registration or login.

3) We also may want to beef up the interface by adding other fields like the upload page (title, tags, description, channel etc).

Please let me know your thoughts.

issy

  • Newbie
  • *
  • Posts: 25
Re: Youtube videos import
« Reply #37 on: December 16, 2007, 03:01:20 PM »
What's the update on this mod?

Thanks

Dudditz

  • Newbie
  • *
  • Posts: 45
Re: Youtube videos import
« Reply #38 on: December 27, 2007, 02:36:26 AM »
It would be nice to continue this mod but I am inexperienced in php.
One thing I did notice in your code was that you were attempting the video thumbs.
Considering YouTube uses the same size thumbs as phpMotion (120x90)
couldnt they just be retrieved from the YouTube video jpg ?
All YouTube videos submit a thumbnail located at:
http://img.youtube.com/vi/THE_VIDEO_ID/default.jpg

For example,
the video:
http://www.youtube.com/watch?v=iaG1jeSvlpE
the thumbnail:
http://img.youtube.com/vi/iaG1jeSvlpE/default.jpg

Instead of creating one, couldnt you simply retrieve the one already existing at YouTube
with imagecreatefromjpeg()  ?
~like

$thumb
=str_replace("http://www.youtube.com/watch?v=","",$videoid);
$thumb_path="http://img.youtube.com/vi/"$videoid ."/default.jpg";
if (
file_exists($thumbnail)) {
   
imagecreatefromjpg($thumbnail);
}


Sorry - I dont know much php.
I have been looking through the code of a Joomla component called Seyret available
at http://www.joomlaholic.com/ but the php still evades me.
Maybe in time, I will be able to assist more.

« Last Edit: December 27, 2007, 04:25:14 PM by Dudditz »

jayjota

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1402
Re: Youtube videos import
« Reply #39 on: December 28, 2007, 02:25:36 PM »
This would be using up youtube's resources, Sooner or later, I can see an e-mail coming from youtube......  ????? what do u think ?????

Dudditz

  • Newbie
  • *
  • Posts: 45
Re: Youtube videos import
« Reply #40 on: December 29, 2007, 07:40:43 AM »
well, I suppose so...
but with all the traffic at YouTube packing their log files,
I doubt if they care about a 4kb image on a video submission.
Thats what I meant- pull the thumb on submission, then create locally.

Dudditz

  • Newbie
  • *
  • Posts: 45
Re: Youtube videos import
« Reply #41 on: December 30, 2007, 12:15:45 AM »
I wrote a gamercard/stats script which pulls gamertile jpg's from Xbox.com, then re-creates them locally
so that their resource is only used on the first display.Of course, I ran a timeout in the script in case their
resources changed any, mine would follow suit.
I did receive word that IT was down for some time.
When everything gets rolling, I offer any help- but again, I am limited to php basics.

riger99

  • Full Member
  • ***
  • Posts: 299
Re: Youtube videos import
« Reply #42 on: January 07, 2008, 10:08:39 AM »
This would be using up youtube's resources, Sooner or later, I can see an e-mail coming from youtube......  ????? what do u think ?????

http://phpmotion.com/forum/index.php?topic=2592.0