Hello,
Just upgraded to FlashVideo 2.3 to try out FlashVideo CCK.

After installing & enabling both modules (and running upgrade script), I added two fields to my Video content type:
flashvideo_regen_thumb (integer, checkbox widget)
flashvideo_thumbsecs (integer, textfield widget)

Tried editing an existing Video node, checked the regen_thumb box and entered 55 in the thumbsecs field. Clicked Submit, and my thumbnail file was no longer displaying. Waited a few seconds, hit refresh and still no thumbnail. Tried running cron just in case, and still no thumbnail.

I checked my /files/videos folder and the thumbnail file is indeed missing.

Clearly I'm halfway there if I was able to delete the thumbnail file using these CCK fields, but what do I have to do to get it back?

Thanks for any help (and for an increasingly cool module!)

Comments

travist’s picture

Try using the flashvideo_thumbtime parameter instead, and then just use the format 00:00:55. I think that there might be a bug in the flashvideo_thumbsecs parameter, but I have personally been using the flashvideo_thumbtime parameter with no issues. Let me know if this works.

thedrake’s picture

Hi,
I've added the field flashvideo_thumbtime and removed flashvideo_thumbsecs.
Now when I edit the node and check the flashvideo_regen_thumb box, it doesn't even delete the old thumbnail.
I've tried several different offset times, with the regen_thumb checked and unchecked, with the fields in & out of a CCK fieldgroup... Any more ideas? Is there anything I can be doing to troubleshoot this in more detail?

travist’s picture

I had some problems with the CCK checkboxes. I am not sure that they even work. What I had to do to get around the bug with CCK is just create a select list with the entries as "Yes" and "No". Just make sure you assign the values as so that "Yes" is equal to 1 and "No" is equal to 0.

return array(1 => "Yes", 0 => "No");

Let me know if this helps any.

Thanks,

Travis.

thedrake’s picture

Afraid not.

I even tried using a textfield for the flashvideo_regen_thumb field and entering "1" in it, but still no go.

Stranger still, I (just for kicks) went back to my initial flashvideo_thumbsecs setup and now the thumbnail doesn't even get deleted on node edit. Have I broken the module somehow?

If I uninstall & reinstall the FlashVideo CCK module, should it recognize the flashvideo_ fields that already exist, or would I have to remove & re-add the fields?

FYI, I usually have success with CCK checkboxes by setting the minimum value to 0, maximum value to 1, and entering the following in "Allowed Values":
0|No
1|Yes

travist’s picture

This is very strange... I will try to find some time to look into this (although, I have been very busy lately).

mattomatica’s picture

I am experiencing the exact same problem, have you had any luck with fixing this?

mattomatica’s picture

Ok I got mine working, firstly, to get the cck fields working again you need to disable and then re-enable the module, not entirely sure why but it worked.

Next I had to use flashvideo_thumbtime as travist mentioned above.

Lastly the reason the thumbnails weren't being generated in the first place was because I didn't have everything I needed in the "[FileType, MimeType, DefaultPlayer] configuration:".

Also, you have to clear your cache otherwise you still see the old thumbnails even though they've been successfully regenerated.

Hope this helps.

www.ch9.co.nz

jorisx’s picture

I don't understand,
where do you put the "flashvideo_thumbtime" or the "flashvideo_regen_thumb"

I've created a widget CheckBox
but where do you put these parameters I found on
http://www.travistidwell.com/flashvideo_cck

I really would like to be able to regenarete the thumbs :)
and set a new thumb time :)

jorisx’s picture

Kind of fixed it...

I had to create two fields

one:
checkbox (Check boxes/radio buttons) "flashvideo_regen_thumb"
with the options (allowed value list)
0|no|selected
1|yes

and two:
a textfield "flashvideo_thumbtime"
where you can put the amount of seconds where you want to get the thumbnail from

Is this the correct way ?
I don't know if it works with just one of the fields ... but I don't dare to touch it now anymore :-)

travist’s picture

Status: Active » Closed (fixed)
piotrsmykaj’s picture

Status: Closed (fixed) » Active

it still doesn't work.

I tested two ways:

1)
I installed FlashVideo 1.4 and creating two fields:
flashvideo_regen_thumb / Checkbox / Integer
flashvideo_thumbtime / textfield / Text OR flashvideo_thumbsecs / textfield / Integer

2)
I installed FlashVideo 6.x-1.x-dev from 2009-Jan-26, and I createing two fields again:
flashvideo_regen_thumb / Checkbox / Integer
flashvideo_thumbtime / textfield / Text OR flashvideo_thumbsecs / textfield / Integer

In first way if I edit my flash node that it do nothing with thumbnail.

In second way if I edit my flash node that it remove my thumbnail file.

I enabling/disabling FlashVideo CCK module, but not working.

Anybody can help?

piotrsmykaj’s picture

Version: 5.x-2.3 » 6.x-1.4

it still doesn't work.

I tested two ways:

1)
I installed FlashVideo 1.4 and creating two fields:
sorry for duplicate, i forgot to change version.

flashvideo_regen_thumb / Checkbox / Integer
flashvideo_thumbtime / textfield / Text OR flashvideo_thumbsecs / textfield / Integer

2)
I installed FlashVideo 6.x-1.x-dev from 2009-Jan-26, and I createing two fields again:
flashvideo_regen_thumb / Checkbox / Integer
flashvideo_thumbtime / textfield / Text OR flashvideo_thumbsecs / textfield / Integer

In first way if I edit my flash node that it do nothing with thumbnail.

In second way if I edit my flash node that it remove my thumbnail file.

I enabling/disabling FlashVideo CCK module, but not working.

Anybody can help?

attheshow’s picture

Version: 6.x-1.4 » 6.x-1.5-beta2
Status: Active » Fixed

Travis and I did some pretty significant troubleshooting and fixing of the CCK plugin at the D.C. code sprint yesterday. These issues should be fixed in the latest 1.5-beta2 release.

alex72rm’s picture

Version: 6.x-1.5-beta2 » 5.x-2.8-rc3
Status: Fixed » Closed (works as designed)

Regardless of what said before, I noticed that the problem shows only by a cron issue.

So, just after set up a new thumbnail time (with checked thumbnail refresh checkbox), the original thumbnail is erased from the server and the new one isn't visible. But, after cron runs again, the new thumbnail appears.

Maybe it would be necessary to write down some notes into readme regarding cron impact on this module.

jorisx’s picture

Are thumbnails only regenerated at cron run? or is it also possible to regenerate a thumbnail straightaway ?

alex72rm’s picture

Thumbnails can be regenerated whenever you want. It's necessary to install FlashVideo CCK support and configure it properly.

jorisx’s picture

Strange it just seems to delete the original thumbnails and won't make new,
using: flashvideo-6.x-1.5-beta2

alex72rm’s picture

You must wait for the time arranged in crontab...

jorisx’s picture

That's what I thought, and asked at #15
So it's not possible to create thumbnails straight away, Like the option "Convert videos immediately." ?

I'm using Quicktime .mov h264 encoded files which are not converted but are used straight away in the flash player.
When uploading files flashvideo creates thumbnails but after the cck option flashvideo_thumbtime options old thumbnails seem to disappear and new ones are not generated, even not when forcing the crontab via the cron.php ?

and when editing/regenerating a thumb it says that Table testdrupal.upload doesn't exist
query: DELETE FROM upload WHERE (fid = 39) in
path to: /sites/default/modules/flashvideo/plugins/flashvideo_cck/flashvideo_cck.module on line 145. ??