Saw some uploaders being mentioned and wanted to suggest Plupload, as it's good, it has Drupal, jqueryand HTML5 support, and also I've never seen an HTTP 0 or AHAH error with it. Also it's very drag and droppable which is nice, with a big area to drag things into.

http://drupal.org/project/plupload

http://www.plupload.com/example_queuewidget.php

Comments

Jorrit’s picture

Component: Code » Video Field
Status: Active » Postponed

Good idea, but it has to wait because there are still bugs present and other features are more important.

burgs’s picture

Version: 6.x-4.x-dev » 7.x-2.5
Status: Postponed » Fixed

This now actually works, with the following modules

http://drupal.org/project/plupload
http://drupal.org/project/filefield_sources
http://drupal.org/project/filefield_sources_plupload

Caveat: It only works for fields with multiple values, which is a bit of pain, since you can't get the chunking benefits for large files if they are single file fields.

Jorrit’s picture

That is good to know, thanks for sharing this information!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

aasarava’s picture

Status: Closed (fixed) » Active

Reopening this, as I'd be happy to help with the integration if Jorrit can point me in the right direction.

As I understand it, the plupload integration module (http://drupal.org/project/plupload) provides a field type of "plupload" that can be used instead of a standard file field. However, when I use hook_form_alter() to replace the video file field with plupload, something seems to break. Though the plupload widget shows up and a file can be uploaded, the usual video processing never gets triggered after.

It looks like part of the problem is that both the plupload and video modules have their own element_value() functions.

Jorrit, any thoughts on where to get started integrating these? Thanks!

Jorrit’s picture

The video transcoding part should be triggered when the field is of the type "video". You should check if video_field_insert and _video_field_file_autoconversion are hit when you submit the form.

osman’s picture

I am also interested in replacing video (upload) field with plupload.

I am trying to support large video file uploads (>750MB). Apparently Plupload is one of the best options utilizing the best available browser upload technologies.

I would love to help.

Cheers,

Osman

aasarava’s picture

Hi Osman, thanks for offering to help. I think it would be ideal if we could create a "plupload widget" that could be selected for video upload fields instead of the default video widget. (Actually the video module doesn't really implement a true video widget as I understand it, just a video field.)

The sandbox mupload module might be a good starting point for creating such a widget. The module implements a plupload widget for the standard image and file fields. Maybe it could be modified to also implement it for the video field.
http://drupal.org/sandbox/vingborg/1138512

I haven't had a chance to try it yet. If you have the time to take a look and see what's possible, that'd be great.

michael.k’s picture

I applaud any effort to get any mass file uploader to work with the Video module, Plupload or otherwise.

The jQuery File Upload module is new on the scene and a promising alternative to Plupload but, as is often the case, Drupal integration is lacking and the documentation is poor. I've only been able to get the block to appear but not the upload page after files are selected. I will assume that hooking into this Video module's transcoding features is additionally complicated to do. At least the stand-alone demo is functional in a non-Drupal site, so Video users can drool over the possibilities of this module, too:

Drupal project:
http://drupal.org/project/jquery_file_upload

Project on github:
https://github.com/blueimp/jQuery-File-Upload

Demo:
http://blueimp.github.com/jQuery-File-Upload/

I've experimented with a variety of upload modules, but with limited success. I'd like to add my 2 cents that it's essential to upload multiple files and have the option of creating individual nodes, eg Image FUpload on D6. There are some modules that do work for uploading multiple files into one node.

A good video uploader should allow a user to select a bunch of files and do other things, take a break, or get some sleep after a long video shoot. Baby-sitting individual uploads is just a bummer.

I pledge to buy anyone a beer who can get a multiple file uploader to work that creates individual nodes! :)

aasarava’s picture

michael.k, have you seen: http://drupal.org/project/bulk_media_upload ? You might owe axe312 a beer. :)

But that works by implementing a field type that can be used with forms API. Again, what we need for the video module is a widget.

michael.k’s picture

aasarava, I have indeed tried Bulk Media Upload, but with no success. I used an earlier dev, though, so it's worth trying again. If it works, I'll happily send axe312 a beer!

Agreed that it's essential to have a widget for a video field (that's what I meant). I'm guessing it wouldn't be too hard to re-purpose a Video field widget for one that works with images and files.

osman’s picture

@michael.k, I have successfully accomplished that task while back, in Drupal 6. :-)

Check out Multi Submit and SWFupload Widget modules, and the patch at #1316590: Enable Multi Submit for all available content types

It is a Drupal 6 solution. Let me know if you like me to send the details.

michael.k’s picture

Thanks for the tips! But isn't SWFupload Widget meant for a single node?

I do appreciate the interest in free beer ;-) and I'm happy to supply it, but I am looking for a D7 solution. I had Image FUpload working great in D6 for uploading hundreds of pictures and creating individual nodes for each of them in a step before node submit.

osman’s picture

:-) no worries. beer has no importance.

Multi Submit is the key module here actually. In your content type, create two file/image fields:

  • Image: file_image (configure as 1 field)
  • Images: file_images (configure as unlimited field)

Configure the fields in the module settings page. Then, when you add a new node of this content type, it will hide the Image (1 file) field, and only display Images (multiple files).

Here SWFUpload or similar modules are optional, as far as I remember.

When the node is saved, multi_submit module creates individual nodes per each upload file. And when you edit one of those new nodes, you would only see the Image field (and the Images field would be hidden).

All other node features would be applied to each node as well, which could be changed during node edit.

I had to write a patch to make it work in multiple content types, thus the link for the patch.

It is a fairly simple module, but I am not sure how easy would be porting it to D7.

michael.k’s picture

osman, thanks for the recipe. The Multi Submit cloning method is basically a bait-and-switch for Drupal, right? It's good that the cloned nodes appear to have full node features. On the down side, it appears that there is no way to see a preview during the initial naming process, which could in the end become quite inefficient. I don't quite understand how that would work with the Video module since the thumbnails are created from FFmpeg at the end of file upload process and before node submit. With photos, previews after upload are important because users are likely to have a long and/or abstract list of files.

osman’s picture

michael.k I am not sure integrating multi submit with video module would cause any issues with encoding process.

It is triggered after validation, and saves each node separately. I have to check video module and see when it calls encoding hooks. My guess is after the node is saved. That case there should not be problem. But, again, not 100% sure yet.
http://drupalcode.org/project/multi_submit.git/blob/28f86962517d082f6c98...

aasarava’s picture

Do you mind starting a new issue to continue the discussion of multisubmit for generating multiple nodes? I think we're starting to get away from the original goal of this issue, which is to use plupload to upload a single, large video.

michael.k’s picture

Yes, I agree that we should move an extended discussion about the Multi Submit module to a separate issue, sorry. But it's still relevant to discuss whether that or Plupload or something else is the best tool for the Video module.

Plupload looks nice and offers support for a variety of technologies like multi- and chunked uploads, but how many of those things are worth pursuing beyond the current upload widget with the PECL uploadprogress extension? Is it truly more common for users to load multiple videos into a single node than multiple nodes? So if a fancy new widget only supports multi uploads into a single node, then I don't see how it's worth the effort for the maintainer and other developers to dedicate the time required to make it work.

Jorrit is the expert here, and he is well-aware of these issues. My argument is simply that any next-generation widget for the Video module should be able to support creating multiple nodes because *everything* involved with producing video is expensive, not the least of which is time. Uploading and configuring one video at a time is prohibitively expensive, whereas uploading a bunch of heavy files with a stable tool that creates nodes while you sleep saves time. At least it should. :)

burgs’s picture

I'm currently using a bunch of modules, together with a little bit of css, and some tiny module alterations to have plupload working for the video module. The alterations are about having only one file upload per field, which the drupal plupload module doesn't allow the way I'm doing it otherwise.
I think plupload is great, because it doesn't require any server installations for less savvy users, and is powerful to just work for everything else.
As with all other content modules, let's make plupload work with either a fixed number of video uploads, or unlimited. I don't think we have to pick one or the other here.
Sound ok?

osman’s picture

I was working on a module to extend Video module's widget to support Plupload.
After a several different approaches, I realized enabling Filefield Sources Plupload module for single file uploads would be much easier.

Please find the patch at #1549848: Plupload for single file fields #3

Any follow up issues and feedback should continue at that queue.

Thanks

videodoll’s picture

I would love to see this implemented. Has anyone been able to get this working with the video module?

hypertext200’s picture

Component: Video Field » General
Issue summary: View changes
Status: Active » Postponed