Hi Devs and anyone with this problem...
I ran into a problem originally brought up by Worldfallz in http://drupal.org/node/213062 .... I managed to get the filefield cck module to work with flashvideo (5.x-2.7) with a plugin i wrote... I stole some code from your flashvideo.module to inject jobs into the flashvideo table when this module detects a filefield is uploaded..... To use it, install this into your flashvideo/plugins directory as flashvideo_filefield and enable the module.
You'll need to modify a line or two in the main flashvideo.module to help this code out..
On line ~1899, after "_flashvideo_update_files($node);" in the 'update' case section you'll need to add the module_invoke_all....
<?php
case 'update':
_flashvideo_update_files($node);
module_invoke_all('flashvideo_update', $node, flashvideo_get_convert_params($node->type)); /***ADDED FOR FILEFIELD PLUGIN ***/
break;
?>
I needed a callback hook that didn't exist so you'll need to change your flashvideo.module for this to work. Also, ffmpeg needs to have "Output Directories reference from Drupal Root" enabled. And finally goto the 'admin/settings/flashvideo_filefield' and check off the appropriate fields to enable this for your filefield's and nodes.....
I'm still debugging this but I think it might help add functionality to the main flashvideo project. I'm not a drupal expert or pretend to be, so there is likely a better solution to this problem... But please let me know if this helps at all.
-hagan
Comments
Comment #1
haganf commentedLooks like i can't attach files, so here is the code a la cut/paste.
Comment #2
travist commentedThis is great stuff! I will look into this for a future release.
Thanks,
Travis.
Comment #3
haganf commentedHey Travis, No problem... Great module and I'm glad I could help a little. One other thing, I'm thinking of making another plugin to add 'flvtool2' as an encoding option.... I find it really helps if you run that on flv files after ffmpeg encodes them. If you've already planed this i'll skip it.
-hagan
Comment #4
Delta Bridges commentedThis is wonderful... there is only one thing I can say: long live the Drupal community!
Travis, do you have an idea when you might inplement this useful feature?
many many thanks!
Expat9
Comment #5
zmove commentedHi,
Is there a way to see that for Drupal 6 version ?
Comment #6
attheshow commentedFileField integration has been added in the Drupal 6 version of the module. This functionality will not be backported to Drupal 5.
Comment #8
Pirch commentedThe story continues there :D
http://drupal.org/node/501834