Not sure if this is BDV or Storage API...

Storage API is failing to generate the video thumbnails; it looks like a permissions issue - I can see the browser grinding away in Firebug trying to load the image.

I've tried changing permissions on everything that seems relevant (e.g., the storage folder and everything in it) and still no go. To make things more confusing, I have other installations that seem to be OK and a 6.13 deployed site that's exhibiting the same problem. I'm stumped... any ideas? Thanks!

Comments

bcobin’s picture

I'm bumping this - I'm seeing similar behavior on several sites now.

Thumbnails fail to be generated for anonymous users; when I visit a site as an anonymous user for the first time that day, thumbnails are often missing. Logging in causes the thumbnails to be regenerated.

I'm also getting a fair amount of "cron stuck" errors, which may or may not be related.

Basically, this means that I currently need to watch the sites like a hawk. Haven't noticed this behavior prior to 1.2, which is what I'm using now.

Otherwise love the module - any ideas here? Thanks!

matt2000’s picture

I'm seeing the same thing, or at least something similar. Here's what I'm finding:

- A video will have a perfectly valid preview image, having it's file id stored in bd_video.start_image_file_id or bd_video.third_image_file_id.

- When the same video_id is selected in the bd_video_image_cache table, four results can be found.

- However, selecting these file_ids in storage_file shows that these cached preview image files have a NULL value in storage_files.object_id, where as the original preview image, or any other valid file, has an integer value for object_id.

-At some later time, this object_id may be populated, hence providing valid preview images, but I have not yet determined what triggers this. Running cron does not seem to cause it. I'm not certain, but it may be that requesting the original preview image may be what does it. Unfortunately, on my site, this never happens under normal circumstances; only the scaled images are intended to be served to users.

matt2000’s picture

I should also add to the last point above that logging in does not guarantee that the missing object_id will be populated, which makes my situation slightly different that the OP.

Pierre Nel’s picture

Similar issue here - something is triggering the bd_video_flush_image_cache() function, and emptying the bd_video_image_cache table of all references to the generated thumbnails. Maybe it's function _bd_video_preview_image_flush_all() which seems to be called in preview_image.inc around line 212 after a specific number of seconds, stored in bd_video_scaled_image_cache_flush_interval (set to 12 hours by default).

Go to /admin/settings/bd_video and increase the interval to 16 weeks - would be nice to set this to forever so the thumbnails don't get wiped :(

dlumberg’s picture

subscribe

jcarnett’s picture

I was seeing a similar issue where there would be no preview image in the node teaser, but I could see it on the edit form. Going to the CCK admin and resaving the field settings fixed the issue for me.

jcarnett’s picture

I was seeing a similar issue where there would be no preview image in the node teaser, but I could see it on the edit form. Going to the CCK admin and resaving the field settings fixed the issue for me.

bangkpow’s picture

Similar issues here, with the difference that thumbnails only get generated for big video files, or small files with "Preview image" Option checked at "Start of video".

Also I'm getting this weird output for a video with 250 frames:
ffmpeg -v 0 -y -i 'sites/default/files/videostorage/files/1_0.avi' -ss 53097.94
As you can see the log says, thumbnail gets generated at frame 53097.94, which clearly doesn't exist in a video with 250 frames. Although in reality, the thumbnail is an image at frame 1

bangkpow’s picture

Ok above isn't actually bd video module related -- i've split these small videos with avidemux, and probably haven't set it up correctly. Frame count is all wrong on those vids - thats why i'm not getting thumbs with bdvideo.