Sunday, October 7, 2007
Import YouTube videos into PHPmotion
I took the code to import You Tube videos
posted on the PHPmotion forum sometime back and worked on the issues (database insert, thumb nail image generation etc.)
they mentioned and got it to work.
Here is the end result 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 you see on the home page, using ffmpeg utility .
Give it a try and let me know your thoughts.
Did this due to the huge demand for this feature. 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 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).
This can be enhanced to:
1) import videos to the members only area after login instead of importing to the public area without login or registration.
2) Import 10 top rated comedy videos from YT within the last 24 hrs (members only).
3)List video titles from YT and do selective import
4) Anything interesting ?
If there is sufficient demand, I will be more than happy to work on these features ....
Looking forward to the feedback from the pros.
posted on the PHPmotion forum sometime back and worked on the issues (database insert, thumb nail image generation etc.)
they mentioned and got it to work.
Here is the end result 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 you see on the home page, using ffmpeg utility .
Give it a try and let me know your thoughts.
Did this due to the huge demand for this feature. 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 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).
This can be enhanced to:
1) import videos to the members only area after login instead of importing to the public area without login or registration.
2) Import 10 top rated comedy videos from YT within the last 24 hrs (members only).
3)List video titles from YT and do selective import
4) Anything interesting ?
If there is sufficient demand, I will be more than happy to work on these features ....
Looking forward to the feedback from the pros.
Labels: PHPmotion YouTube videos
Subscribe to Posts [Atom]