One of the features I LOVED about Acidfree was that it could do automatic video thumbnailing for me. I have modified the video_image module to include an option for this. In the settings menu, it has the following options now:
1) promote thumbnail images to front page
2) auto thumbnail videos using mplayer
3) use auto thumbnail exclusively (no user supplied images)
4) set the path to mplayer
Try out the patch and let me know what you think. It is on my list of things that video must do in order for me to make Acidfree use Video instead of its own node types.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | video_image_auto_thumbnail.patch_1.txt | 12.91 KB | vhmauery |
| #5 | video_image_auto_thumbnail.patch_0.txt | 12.24 KB | vhmauery |
| #4 | video_image_auto_thumbnail.patch.txt | 10.03 KB | vhmauery |
| auto-thumbnail.patch.txt | 10.96 KB | vhmauery |
Comments
Comment #1
vhmauery commentedOne thing I noticed while playing with this patch was that I had to set the weight of the video_image module in the system table so that it would execute its hooks AFTER the video_upload module. So I did something like this:
That ensures that this module will see the video_upload module's file so it can thumbnail it.
Comment #2
seaneffel commentedI would love it if this patch could get some attention and added to the video_image module. Steps for us at CCTV to post a video require us to screenshot the video manually for each movie we upload, and I'll tell you we have tons of videos to manage.
Is it possible to supply a patched module file for me to test? Our macs at our station don't have a patching utility, one of the short comings of apple...
Thanks very much!
Comment #3
fax8 commented@seanjuan
you need to be able in patching apply and creating if you want to help with development.
I'm sure you will find lot of documentation on the web on using patch/diff on mac machines.
Fabio
Comment #4
vhmauery commentedFabio,
Here is an updated version of this patch that applies on CVS on top of the udpates to head patch found in http://drupal.org/node/82224
--Vernon
Comment #5
vhmauery commentedHere is a new and improved patch. There are a couple of key improvements:
This has been tested on my machine and works great. Please review and apply.
Comment #6
jake28 commentedI was really looking forward to testing this, but realized cvs is now version 5.0. Any pointers on getting this to work with 4.7? I'm running 4.72 and would love this feature. I'll test your other patches done for 4.7 in the meantime.
Comment #7
fax8 commentedI;m now trying this patch.. however I was not successful in it..
It seems to doing nothing.
I'm just using video core with patched video_image. I active the auto thumb in settings.
Any hints?
Fabio
Comment #8
vhmauery commentedJust to make sure things are working how I intended, could you make sure that the video_image module's weight in the {system} table was updated to be greater that the weight of the video_upload module? The reasoning is this: the video_upload module sets the stage by putting the file information in the session. The video_image module checks to see if there is an uploaded file in the session that it can thumbnail. By default, the modules get their hooks done in alphabetical order, so the video_image module would go first and not see the uploaded file. So by changing the weight, we make sure that it runs its hooks AFTER the video_upload module so it will always see the file.
I have tested this patch over and over. :) Some days I have considered throwing it out. Do you have mplayer set up at the right path? Does mplayer have all the necessary codecs?
Would it be useful to have an option to turn on that would allow for some debugging information to help determine the problem? Maybe I will work on that and post it.
Comment #9
fax8 commentedmmm... I tried this morning without changing anything and started working.
Images are now generated correctly. Really a good work.
Would it will be possible to use also ffmpeg to generate the thumbnails?
I'm asking because I think that it will be the backend we will use for automatic
conversion to other formats (flv like youtube) so we can support both ffmpeg and mplayer.
Is it possible to generate thumbs also on not uploaded videos?
Is it possible just not get the first frame of the video?
Imagine a website of movies.. usually the first frame is just black!
Maybe the user could specify the frame to get the thumbnail or
the script can set it to 2/3 of the lenght..
Fabio
Comment #10
fax8 commentedin the settings page admin/content/video/image you are talking about Acidfree...
If user does not have acidfree installed he should not see that note.
Fabio
Comment #11
vhmauery commentedOkay, I removed the Acidfree reference. :) But really, people should use Acidfree because it r0x. Their loss if they don't I guess.
I updated it to have a nicer settings form (added a fieldset for the auto thumbnail stuff) and added some new features -- a debugging option and seek offset option for where to grab the image.
I also updated it to use ffmpeg rather than mplayer. It turns out that ffmpeg is faster and easier to script. Good idea.
Comment #12
fax8 commentedReally a good work, Vernon.
Committed to CVS.
Thanks.
Fabio
p.s.: don't worry.. as soon as we will have released video and acidfree for drupal 5 we
will advise the cool things that it can do together.
Comment #13
fax8 commentedComment #14
(not verified) commentedComment #15
spooky69 commentedI wanted to get auto-thumbnailing working for 4.7 and saw a patch on this site for the video_image.module that indicated it would allow auto-thumbnailing, but it does not work (no thumbnails are created). Does anyone know how to incorporate auto-thumbnailing into the 4.7 version? Subsequent to applying the above patch, I now get the following when I click on administer/video_image:
warning: Missing argument 2 for drupal_get_form() in /hsphere/local/home/accountName/domainName.com/includes/form.inc on line 61.
Did anyone actually get auto-thumbnailing working with 4.7 and, if so.... help !
Comment #16
spooky69 commentedAny help on this issue guys? Again, I was under the impression that the above patch would introduce auto-thumbnailing but I still get the above error when trying to access video_image. Help would be appreciated.
Comment #17
doc2@drupalfr.org commentedMac users: Mac OS X ffmpeg installation for Video:
http://drupal.org/node/151449