Out videos are all 16x9. Is there anyway to have the embeded player follow that aspect ration? Right now we have black bars on top and bottom and in the thumbnail as well.

Comments

aaron’s picture

Status: Active » Postponed (maintainer needs more info)

You should just be able to modify the width & height parameters when setting up the field. However, this should have no effect one way or another on the thumbnail, as YouTube thumbnails are retrieved only from a single size, and resized on display. Can you post a video where you see this behavior?

jdblank’s picture

Aaron,

I found the setting on the CCK field to set the size. I had not read carefully and thought default was default size of the video as opposed to the prepopulated pixels.

Is there anyway to re-run the preview images as they contain the distorted image.

You can see what i am talking about here (see second blog post):

http://www.coachsark.com/

Alex UA’s picture

Title: YouTube Widescreen player » YouTube Widescreen Thumbnail

This should be easy to accomplish with Emthumb and ImageCache. Can you try those out and see if you still have problems?

Alex UA’s picture

Project: Embedded Media Field » Media: YouTube
Component: Embedded Video Field » Code
Category: support » feature

Moving to the Media: YouTube issue queue, where this should be dealt with, if it's still a problem.

flutedrumr’s picture

Emthumb + ImageCache worked perfectly for me. Thanks!

nasi’s picture

Status: Postponed (maintainer needs more info) » Active

I have this issue with black bars (top and bottom) on my 16:9 video thumbnails.

The issue seems to be that the thumbnails returned from youtube are always in a 4:3 ratio, so with 16:9 content the add black bars. Setting the Emfield thumbnail size to something that is 16:9 results in a squashed image still with bars (i.e. it scales without cropping or preserving aspect ratio).

Youtube itself displays 16:9 thumbs, so I don't know if there is a way of getting those, or if we have no choice but to scale and crop the images with Emthumb/ImageCache?

devagaurahari’s picture

Could you (or anyone) pls post a little description of how you did it. I can't work out how to link the imagecache preset to the emvideo thumbnail.

Thanks.

devagaurahari’s picture

If you use firebug to look at the thumbnails of 16:9 images on You Tubes site, you see that the first entry seems to be a 9 pixel cut from the top with the css.

Perhaps this is another way to achieve this end without using imagecache?

mattcasey’s picture

I'm having the same problem. I used the CSS fix suggested in #8 but that doesn't fix the placeholder thumbnail when I use a custom player like JW FLV Player. Because of the widescreen dimensions, the placeholder thumbnail has empty space on the left and right as well as the black bars on top and bottom of the image.

[Update]
If you're using JW FLV, you can set the flashvar 'stetching' to 'fill'

marcvangend’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev

I'd like to revive this issue...

Perhaps this wasn't the case in 2011, but nowadays you can simply get a thumbnail without black bars from Youtube. Currently, the module always retrieves the 0.jpg thumbnail in the getOriginalThumbnailPath() method. This will return an image like this one: http://img.youtube.com/vi/D8S5Mv3beLc/0.jpg.

If we request maxresdefault.jpg or mqdefault.jpg, we get an image without the black bars, eg. http://img.youtube.com/vi/D8S5Mv3beLc/maxresdefault.jpg or http://img.youtube.com/vi/D8S5Mv3beLc/mqdefault.jpg.

I think the way forward is to change the default thumbnail file name and/or make the file name configurable.

Devin Carlson’s picture

Status: Active » Closed (duplicate)
marcvangend’s picture

Thanks Devin. Although it's not a true duplicate, but that patch will fix this problem as well.