Using latest dev versions of Media 2.x and related modules.

I'm using a "video" content type for both Vimeo and YouTube videos - the respective players work for both, but image preview generation for Vimeo fails.

YouTube works fine and the settings are identical. For Vimeo, the URL to the image seems to be generated properly, but the image file itself doesn't exist.

For example, the YouTube video preview image path is:

http://[site]/sites/default/files/styles/scale_240/public/media-youtube/LIi_ttZpK7k.jpg and it works fine.

The Vimeo preview image path is http://[site]/sites/default/files/styles/scale_240/public/media-vimeo/46028552.jpg - the file in question doesn't exist.

The only difference I can think of (aside from the fact that these are two different modules) is that the Vimeo videos are private, but I do have private streams enabled in allowed streams at /admin/structure/file-types/manage/video/edit. And besides, as I mentioned, the videos themselves play fine - it's the preview generation that doesn't work.

I've tried with and without the Styles module (it's currently disabled) and with and without the Media Field submodule, which indicates as deprecated and is also currently disabled.

Am I missing something? Dead in the water here until and unless I can display preview images - any guidance very much appreciated... yikes!

Comments

bcobin’s picture

Update: If video is set to public in Vimeo, the thumbnail generation does seem to work. So I suppose a workaround would be to create the Drupal node with the Vimeo video set to public, and then make it private after the node is saved.

However - there's another issue:

There doesn't seem to be any way to link the thumbnail to the node in Views. Neither outputting the image as a link to node/[nid] nor rewriting it to <a href="/node[nid]/">[field_video]</a> works; in fact, it looks like the output fails to be rewritten - there's only the thumbnail image in the HTML output and no tag.

The view is coming from a nodequeue, BTW - don't know if this makes any difference.

Perhaps I'm getting closer here - I don't know. Again, any guidance, etc... thanks!

bcobin’s picture

Answering my own question as to thumbnail links:

http://drupal.org/project/file_entity_link

The whole video thing is pretty Byzantine, but it works!

Leaving this active in case somebody else runs into the private/public thumbnail issue; if the issue itself is not addressed, the workaround in #1 should be documented, I would think.

Thanks for the module... now it's back to work... woo hoo!

ebren’s picture

I am having the same issue, though I can confirm this is not due to privacy settings. The videos are set to public on Vimeo, and are using the public schema on my site. The src for the thumbnail is being generated properly. In fact as a temporary solution I am manually uploading the thumbnails over FTP to the directory.

I have an clone of the site running on a different server where the thumbnails are being generated successfully every time. Both sites are under the same hosting company & as far as I can tell there are no discrepancies between PHP settings between the servers, EXCEPT the working site is running PHP v5.3.2 while the broken site is running PHP v5.3.19

allow_url_fopen is set to ON

Is there a known issue with that version of PHP? I've looked into the similar issues in this queue, but most are very old and I believe the suggested patches have already been committed to Media Vimeo 7.x-1.x dev which I am using.

This module was absolutely perfect when it was working properly, would love to get it back up and running.

--EDIT: Changed PHP to version 5.4.1 and all is working properly.

johnpitcairn’s picture

Title: Vimeo thumbnail generation fails » Vimeo thumbnail generation fails for private videos

Same problem. Videos are set to private, and only allow embedding on specified sites. The thumbnail image is not generated in the (public) media-vimeo files directory.

mikepvd’s picture

This is how Vimeo's API works. It will not return information like thumbnails for private videos when you use non-authenticated API calls. Although it will embed the video on your site when you use the embed URL, go figure.

To fully support Private videos, this module would need to add authenticated API calls and store your apikey and pw.

dwkitchen’s picture

Status: Active » Closed (duplicate)