Posted by kbahey on March 16, 2008 at 12:05am
Moved to official ideas list at http://drupal.org/node/237646
Google announced that they will open up Youtube's API . This means sites can have the ability to upload video transparently. The API is here.
Sites can have a chromeless player (non Youtube branded) too.
Drupal can benefit from this integration by being THE platform of choice to implement this out of the box. All that is needed is an API key, and you have a video site up and running in no time, with all the added Drupal goodness.

Comments
Cross-posted to Video group
Hopefully they can help with speccing/input/offers to mentor this project.
Followup clarifications
Here is a clarification based on discussions in IRC.
The end result of this effort is a CCK field, module and/or install profile that makes Drupal an out of the box video site solution. Users will be able to upload videos and view videos without knowing that the videos are on Youtube at all. This is like Brightcove, which is under the hood and no one knows it exists.
This could be integrated with embedded media field, or just a CCK field.
The work on this is integrating Google's Youtube API with the new field.
Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.
Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.
Hi. I wondered if you
Hi. I wondered if you noticed Greg Hines' comments in Popsci.com case study about creating a module to upload to YouTube via Drupal.
The Video node enables posting of video to either YouTube or OnStream.
We developed a custom media module, which creates a custom Media Profile CCK
field that can be attached to any node, allowing editors and admins to restrict the
services used on a per-content-type basis.
The custom media module differs from the existing emfield module by offering greater flexibility
-- such as allowing users to upload videos to the services straight from Drupal."
-----Greg Hines http://drupal.org/node/233090
Has anyone followed up with Greg about using his code? Wouldn't that greatly accelerate this project or eliminate the need for it?
this would be absolutely
this would be absolutely fan-freakin-tastic!
-=- christopher
flvmediaplayer
I was planning on doing some of the display integration in flvmediaplayer, but the upload stuff will obviously need to be handled elsewhere. Would be nice to see a unified rich media field which has hooks for passing data off to things like youtube and display hooks so that different kinds of players can be utilized.
http://24b6.net
collaborte with media_mover and emfield
http://aaronwinborn.com/node/13
It would be so great if the task would be to speed up work to integrate emfield with media_mover and to implement the new YouTube API. Media_mover is a very powerful module and I believe it is the future of media processing for Drupal. With asset 2.0 working on integration with emfield, the media_mover/emfield/asset trio could do amazing stuff.
Media_mover is partially supported by CivicActions so perhaps Arthur or myself could mentor this if it is agreed to implement the new YouTube API like this.
Please write up a proposal!
If you can talk in more details about what this integration would entail, we could put this idea up on our SoC ideas list and potentially get some students working on it.
I was already planning to
I was already planning to work on this. I'd be glad to work with a SoC student on the project.
Aaron Winborn
AaronWinborn.com
Advomatic, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes
Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic
I would wanna work on it as well
I have applied for soc but I would wanna work on this even if its not accepted ..
Lets get started :)
Dipen Chaudhary
http://dipenchaudhary.com
http://playdrupal.com (under construction)
Dipen Chaudhary
Founder, QED42 http://www.qed42.com Drupal development
We could leave the "how" for now
Whether this goes thru embedded media field, media mover, or standalone CCK can be left to a later stage.
Let us not focus on the "how" for now.
For now, I think that a free service for uploading and managing unbranded videos is very valuable for Drupal.
Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.
Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.
File API, Rich Media field, etc
At the risk of starting a flame war, if we're interested in having "free service for uploading and managing unbranded videos is very valuable for Drupal" - we do have this! Media Mover, Video module and a few other solutions do offer users this functionality. There are a few problems: 1) transcoding requires ffmpeg which isn't simple for new users 2) there are lots of video modules to choose from with little information about what solution really works 3) serving video requires a good host. I've been working to make Media Mover and FLV Media Player offer much of the functionality that people want from youtube- embeding, recommended content, views controlled playlists, etc. While clearly it isn't the same solution, it's moving in that direction. I personally would like steer people away from youtube because it isn't free- you don't control your content. We have all of the in pieces in Drupal already- we just need to sew them together, which I think is perhaps part of your point.
I personally think some kind of field, whether em_field, video field, audio field where a user can dump in data, and the module hooks for appropriately storing, processing, and displaying the data that was submitted would be the way to go. I think the model of em_field, abstracted to handle more than urls, with additional hooks for the type of data in the field so that modules like a youtube api module could be implemented, or revver, or what have you...
The way I've been thinking about this is that there is a field that take either a file or a url which is a CCK type. This would be quite similar to how em_field currently works. We'd need to coordinate this with the File API discussions, but we'd have storage modules that function here. Process modules like Media Mover can then perform operations on the data in the field. Then display modules like asset would handle how the end user sees the file. For the end user, this looks like pasting in a URL or uploading a file. For the admin user, it means enabling some modules, and creating a configuration for the specific Rich Media field.
In regards to the YouTube API module (heh) I think this means writing a module which exposes the obvious parts of the API to Drupal functions- uploading content, setting user names, fetching feeds, etc. I also think that we need to pay close attention to the discussions on the File API. People dealing with rich media have some kinds of needs that normal files don't have, but my hunch is that they aren't that different- or at least, provided there is a good hook system, one solution may suffice.
http://24b6.net
Free offsite is the idea
Arthur
Up till now, you needed a lot of hosting resources or you needed to pay something like Brightcove to host video for you.
The idea here is that now you don't have to store nor serve the videos, which is where the pain is in creating and hosting video files.
With this API the pain of having gigabytes of storage and bandwidth go away. Moreover, there is no tying up of resources (Apache, network, memory) either. So a site can be hosted on an el cheapo shared hosting but is able to serve videos.
Again, the specifics can be hashed later, and part of the project would be evaluating the existing solutions and see which one to integrate with.
Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.
Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.
Well, /some/ specifics would be good...
A student needs a clear idea as to what their project's going to entail. Reading through the discussion here, I personally wouldn't have an idea of where to start, and would shy away from doing this project because there doesn't seem to be clear community consensus on what's needed. And if that's so, then maybe this is not a good project to offer as a SoC idea.
"How" not "why"
The problem is that we are jumping ahead and talking about how to implement it, rather than why it is important.
As I said, the why is clear (at least to me), we can now have video sites that don't worry about storage and bandwidth, nor performance, and are not branded with the Youtube logo. This is a big improvement over the existing video module or other video solutions available.
I can think of a use for this module right now on my web site. I have some nature video footage that I want to post, and this would be a great way to make the content integrated in my web site and upload from there.
As for the how, there are competing visions on media within Drupal, which I cannot claim to be up to date about. Each wants to be THE way for media within Drupal, and each has their pros and cons.
It can be implemented in various ways. The simplest is a standalone module like video.module, one step us is a CCK field, another step is embedded media field, another option is media mover, ...etc.
So, if we are to stay away from getting into inter-module politics, it can be a standalone or CCK, but that may limit its interoperability. If we chose embedded media field or media mover, then it will be more useful, but we have to navigate the pros and cons of each first.
Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.
Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.
politics...
I wouldn't worry too much about inter-module politics here. All of the developers involved in these modules (as well as alex_b who made the feedapi, which now works with emfield) met at DrupalCon, and all seem most interested in working together to solve these issues. The real key here is defining which module does what and under what circumstances, but it seems pretty obvious that the future holds cooperation, not competition, for media handling in Drupal.
Alex Urevick-Ackelsberg
ZivTech: Illuminating Technology
Another problem...
relates to the fact that this is, in fact, a very badly needed capability. I agree completely with what you're saying, but my other worry with having this as a SoC task is that it might (actually it should) get tackled before the summer. At the very least some of the bigger items here should be done before the summer, so I'd hate to see this offered up, only to discover a few weeks or a month later that it's already been done.
Alex Urevick-Ackelsberg
ZivTech: Illuminating Technology
Hi Arthur, I agree that this
Hi Arthur,
I agree that this module should integrate with file api, media mover and similar modules/efforts in the field.
I think using youtube as storage space is one use case for a Drupal integration of the youtube API. Another one that I think is interesting (not knowing the API) is creating more public exposure for your website's content by holding it on social networking sites - in the project's I am working on, this is actually a major reason why content is being stored off site (flickr, youtube, etc.).
Alex
http://www.twitter.com/lxbarth
Aaron Winborn on Youtube API
Now that I am trying to catch up with two weeks' worth of planet posts, I found that Aaron Winborn, author of Embedded Media Field, has posted on the Youtube API.
Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.
Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.
Lets talk specifics now
webchick is right. I'm a prospective student interested integrating the Youtube API into Drupal and some specifics would be nice. Should this be a core feature? A brand new module? Doesn't emfield already provide some Youtube support? Do they already utilize the old Youtube API and are they already planning on utilizing the new one? What about other existing modules?
Casey
Hey Casey!
Glad to hear your interested in working on Drupal for the GSoC! As to some of your questions:
Should this be a core feature?
This is just my opinion, but I don't think that it should be a part of core. It is a very specific function, and while it will likely be a popular one, I don't think it will be used by enough sites to warrant it getting included in core. There are definitely some core enhancements that could assist here (either a file or rich media api), but that's a question for another post.
A brand new module? Doesn't emfield already provide some Youtube support?
I don't think a new module is necessary, mostly because, yes, emfield already includes some YouTube support and there are plans to expand that using media mover and/or some other method, such as the Media Actions module, which currently uploads videos to BlipTV. At the moment emfield only supports pulling videos from YouTube and posting them on your site (it also now supports pulling rss feeds of YouTube videos via the FeedAPI/Feed Element Mapper module). It also supports grabbing thumbnails from YouTube. It does not allow you to upload videos to YouTube, and this is where we see Media Mover coming in, primarily because it could give you options to both upload it to YouTube and host it on your own site (for example, to serve up a format for cell phones, which YouTube doesn't support), and it could also help you to create custom playlists, custom thumbnails, etc. etc.
Do they already utilize the old Youtube API and are they already planning on utilizing the new one?
Yes and yes.
What about other existing modules?
The modules that I personally see working together to solve this are (these are on both the placing of the videos on youtube--as well as other sites--and various methods for pulling them back to your site): Media Mover, emfield, Media Actions, Asset, FeedAPI and the Feed Element Mapper. Obviously this also requires CCK.
Alex Urevick-Ackelsberg
ZivTech: Illuminating Technology
Hey Alex!
Thanks for answering those questions for me. I guess I already knew this wouldn't be part of the core, I was just wondering what kbahey meant by "out of the box." It also seems I was correct in my assumption that this proposal overlaps with existing work being done. I'll be sure to check out those modules for myself.
Casey
No problem!
I certainly don't want to discourage you, and there is definitely the possibility that the integrations/updates will not be done by the time the program starts.
The first module I'd suggest you take a look at is the Media Actions module, as it is already doing something similar with Blip.TV and it appears that it could be extended, or at least provide a map towards getting YouTube functionality.
One area that I've been talking with another developer about investigating is whether we have to use multiple CCK fields to handle media uploading and then harvesting/display, as Media Actions currently does (it uploads via a Media Field, then posts the result in emfield), or whether we could us some sort of "smart" CCK field to determine whether you were trying to upload a video or embed one, and have it automatically act accordingly.
Alex Urevick-Ackelsberg
ZivTech: Illuminating Technology
Alex Urevick-Ackelsberg
ZivTech: Illuminating Technology
API module to start with?
I think developing a module for common use which lays out the API first will help us solve some of the details as we as a group of video developers have been coming closer and closer together to how we think rich media should be dealt with. Particularly this idea of a "smart" field, or a cck field that can handle rich media of all different sorts with hooks for storage, processing and display is something I'd like us to strongly consider. I think we need a video module summit :)
http://24b6.net
+1 keep the internal API and
+1
keep the internal API and the UI separate, so that other modules can make full use of its functionality without duplicating code or carrying unnecessary weight.
http://www.twitter.com/lxbarth
Overlap between Google API integrations
I wonder what's the overlap between all those Google API integrations. What would they have in common? Could they share functionality?
http://groups.drupal.org/node/10026#comment-31750
http://www.twitter.com/lxbarth
I found a php class using previous version of YouTube API
I found a php class using previous version of YouTube API on http://lehardy.mirrors.phpclasses.org/browse/package/3966.html. Perhaps we could re-use some parts of it?
Interested on Project : YouTube API integration
Hi,
I'm a student from Sri Lanka and really interested on this project idea.
I have used several Google APIs (Including the new You Tube API) in my developments and looking forward to send my proposal on this topic.
(Currently I'm integrating YouTube API for PlexyDesk, [ http://plexydesk.org/blog/ ])
Does someone already applied for this topic..?
Thanks, :)
- Lahiru.
--
I BLOG HERE : [ http://blog.soundofcode.com ]
HOME : [ http://www.soundofcode.com ]
--
I BLOG HERE : [ http://blog.soundofcode.com ]
HOME : [ http://www.soundofcode.com ]
Oh sorry.. Just now noticed
Oh sorry..
Just now noticed spintriae's post...
I should apply for something else...
Thanks.
--
I BLOG HERE : [ http://blog.soundofcode.com ]
HOME : [ http://www.soundofcode.com ]
--
I BLOG HERE : [ http://blog.soundofcode.com ]
HOME : [ http://www.soundofcode.com ]
Lahiru, please don't be
Lahiru, please don't be discouraged from discussing the project just because one student came before you. :) I'm currently interested in quite a few projects and I certainly can't adopt them all. To be honest, I'm not likely to adopt this project because there seems to be a lack of community consensus and what should be implemented and how. If you're interested in this project, please feel free to jump in with some ideas because that's exactly what this project needs.
Video Portal Out of the box ..
A video Portal out of the box with drupal framework will just be icing on the cake, I think when we talk about "out of the box", we are trying to build something which causes minimum pain to a administrator to make it a video portal leveraging videos from youtube itself .. As kbahey talked about hosting and bandwidth issues, Youtube offering chromeless player will bring a boom in such video portals.
Emfield does job of displaying videos quite nicely but obviously there is lot's that can be done with new CRUD support from Youtube, like I have a very specific video portal and good traffic, my users can upload videos too and hence it becomes bi-directional ..
I am interested in doing this project, I think new API has whole lot of features which should be wrapped in a new module altogether and not extending embeddeed media field as it is already doing too much of getting images,video's. Youtube also have player specific JS and Flash API which warrants for a separation of functionality from emfield IMO, Also other reason to keep it in a separate module is because of massive changes new api has gone through in shifting to Google Data API . I also think Drupal should have skeleton framework to work with Google Data API in form of a module which exposes API to use product specific features on the same carrier (Google Data protocol), to work with Google Data protocol in general to speed up to bring in Google API's in drupal .
Feed API will allow us to invoke and work GDATA protocol untill we have a framework which helps us to work with GDATA protocol (in fact quick search shows another project description on GDATA API http://groups.drupal.org/node/10142). All those namespaces will have to be set up youtube specifically and basically we need to come to a point where we can talk GDATA protocol with google .. Once thats done video retrieval, uploading can be setup using our good old drupal hooks and callbacks .. They have already given Javascript API to do all that is done by Flash API, We can have cool callbacks like pausing the video when user navigates away from the page to view something else or give a quantitave feedback in terms of KB's as to how much is loaded and how much remains ..
I am interested in doing this project and have 5 months of extensive drupal experience now as I am building a social network on drupal as a trainee, I also have another project on drupal in semantic web domain .. To create a ontology of folksonomy (tagging) I have used Youtube tags for prototyping my project so I am well worsed with youtube old api, and very eager to work on the new one ...
I hope cool ideas come out of this discussion and feel that GDATA api project gets approved, And kind of disappointed that I didnt act earlier, I am filling my application right away now :)
ok I just realised ..
I just realized that GDATA API project idea was part of GSOC 2006 http://drupal.org/node/60490 ... Has this been done ? I couldnt find a link on google ..
Btw which module is this which is showing me a preview of my comment as I type ? Google type Loading label at right top .. Its pretty cool :)
Finally wrote my application ..
I wrote my application and is located here http://groups.drupal.org/node/10295
Why of the Project ..
Why this project should be done ? Quotes from my application ..
If developers can make domain specific portals without worrying about branding and managing media then I think that will be beneficial for both the developer and youtube as People want to hang out where they find like minded people. If I am trying to learn guitar and stumble upon a video portal which is only about guitars then I meet very domain specific gentry and I will have more community interaction. Ultimately everything is going to youtube but the developer who use this project can integrate nicely and earn lots of concentrated revenue. Its a rule of physics more density more collisions :) more chances of meeting like minded people ..
Dipen Chaudhary
http://dipenchaudhary.com
http://playdrupal.com (under construction)
Dipen Chaudhary
Founder, QED42 http://www.qed42.com Drupal development
Options for High Resolution in YouTube
As reported by Slashdot, YouTube is rolling out high resolution video. Despite the fact that this feature isn’t fully implemented, you can view the high-res versions simply by changing the URL like so:
Change This:
http://youtube.com/watch?v=CQzUsTFqtW0
Into:
http://youtube.com/watch?v=CQzUsTFqtW0&fmt=6
Just tack on &fmt=6 to the end of the YouTube video URLs and enjoy the high-res goodness. If you tack on fmt=18, YouTube will play the high-res version if available, or the regular version instead.
It would be nice to have this in whatever solution gets built.
Yes its on my mind
I had a interesting discussion at http://groups.drupal.org/node/10295 with Alex on how we can use MM's harvesting to find out what is the format of the video (like on blip.tv) I think API will have new tags for high resolution in the api ... I couldn't see the support in dev docs but I am sure there will be something ..
Dipen Chaudhary
http://dipenchaudhary.com
http://playdrupal.com (under construction)
Dipen Chaudhary
Founder, QED42 http://www.qed42.com Drupal development
Controlling Access
Videos hosted on YouTube wouldn't be able to respect the permissions of your own site. Say you had a members only video area and wanted to restrict videos to certain roles. You could do this on your site but videos would be viewable by all on YouTube. Could the Media Mover module also be used to optionally store the video locally? Would this be the only way to manage access?
Project nearly complete
beeradb has nearly completed the YouTube API wrapper module, and should release it in a few days. http://aaronwinborn.com/blogs/aaron/youtube-api-drupal-way
Aaron Winborn
AaronWinborn.com (my blog)
Advomatic, Web Design for Progressive Advocacy, Grassroots Movements, and Really Cool Causes
Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic
Wrap Up
Just to wrap up this discussion, in case anyone stumbles on this post, the YouTube API module has been released for some time now.
Aaron Winborn
Drupal Multimedia (my book, coming in September!)
AaronWinborn.com (my blog, all about Drupal)
Advomatic (my work)
Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic
Excellent! offloading video
Excellent! offloading video uploads would be fantastic, we have many clients that want UGC in regards to mainly videos but many are not ready to pay for hard disk space and bandwidth so this is great thanks for pointing that out!
Tj Holowaychuk
Vision Media - Victoria BC Web Design
Victoria British Columbia Web Design School
Tj Holowaychuk
Vision Media - Victoria BC Web Design
Victoria British Columbia Web Design School
Any updates on this?
Any updates on this? Youtube api only for 5.x ... and I'd suspect the API has been updated since then.
EmField is nice since it gives you some consistency, but what ever happened of the discussion of being able to upload on the spot via tha API, chromeless player, etc...
Did any modules ever leverage the 5.x API wrapper?
this thread seems pretty dead, but...
looks like video_upload might be a good candidate
That does look nice, but if
That does look nice, but if you have a community, and not a centralized site, having one account for the whole site could present some legal / copyright issues.
Hi, I have to develop a
Hi,
I have to develop a drupal module to connect a youtube channel. It will be available in Januari 2010. Anyone interested? Let me know.
Kind regards
have you developed this
have you developed this module?
good idea
Hi, I am interested. Can i help u in research or module development. Let me know?
I am Muhammad Iqbal .. a professional Web Developer in PHP and Drupal, working as Senior Drupal Developer at FIGOVER Web Development Team. Also I organized two Drupal Camps in Islamabad. First Drupal Camp Page is https://groups.drupal.org/node/357553 and
information
If you have any information, don't hesitate to send me. Have you done some research already? Feature list by priority?
I will send you pm with my contact details.
Nothing For now
I have not researched about. Please describe the working, which you want for module, so that i may do some research.
I am Muhammad Iqbal .. a professional Web Developer in PHP and Drupal, working as Senior Drupal Developer at FIGOVER Web Development Team. Also I organized two Drupal Camps in Islamabad. First Drupal Camp Page is https://groups.drupal.org/node/357553 and
Need Help with Youtube API/video_upload module
I have downloaded the video_upload module and inputted my Develeper key as well as my YouTube account username and password so that I might get videos uploaded to this site as well as put it up and host the video on YouTube like this application is supposed to do.
My problem is I cannot figure out how to get an upload video form to show up on my site so that users can upload content. Any suggestions on how to do this?
I want my users to contribute the content to the site so unless they have the ability to upload, it makes little difference that the admin can do it. I also don't want users to have to upload to other sites then come to mine to embed it or paste the URL. I want them to contribute the content on my site while YouTube actually stores the videos.
Also, when I went to upload a video manually via the admin, it keeps saying the video is processing forever and does not show up on the YouTube account I created for the website.
If anyone could please help me, I would be incredibly grateful.
Video_Upload
Basically, you need to create a field for your content type. There is an option called Video Upload. Once the fields is created & configured then anyone with the ability to upload should be able to contribute videos. I hope this helps.
Hi Community
Video Upload is really neat... THANKS! I got it working perfectly
questions:
how would one use video upload to place multiple videos into a single node?
is there currently any way to integrate thumbnails into nodes using Youtube API / video upload?
is there any way to have a flash, or jquery progress bar display in the video upload widget and NOT use PECL's uploadprogress (bluehost will not run mod_php OR APC thus uploadprogress will not work for me (not quite ready to buy a VPS))
Thank YOU!
P
Media YouTube foe emfield
i have problem with Media YouTube module when i install that module the out put is a totally blank white page.
is there any module conflict with this module which i have already install in any one have suggestion please tell me
easiest way to embed youtube in block with text
Hey,
Anyone have an idea of the simplest way to have a youtube enabled block on a sidebar that also allows you to write some text under the video and/or post links to further information (but within the same block).
Views w/ "Rewrite the output of this field" + CCK
If you need to do this progamatically for a bunch of videos, use Views with some custom formatting on the field. Store the youtube ID in a CCK field, and the text in a text field, and display them wrapped in Youtube's embed code.
If you need to do this just once, then just grab the embed code and paste it into a new block, and make sure your input format is set to Full HTML or PHP. You can add HTML below the embed, and you can make the embed any size you want by editing the markup. (You'll want to keep the aspect ratio proportional.)
Any youtube api for drupal 6?
I noticed youtube_api is not compatible with D6. Any idea why and when? Am I correct here?
Latest updates news on this project?!
Hi, I am interested to know how far did this project go? Or is it abandoned?