Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
aaron CreditAttribution: aaron commentedYou 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?
Comment #2
jdblank CreditAttribution: jdblank commentedAaron,
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/
Comment #3
Alex UA CreditAttribution: Alex UA commentedThis should be easy to accomplish with Emthumb and ImageCache. Can you try those out and see if you still have problems?
Comment #4
Alex UA CreditAttribution: Alex UA commentedMoving to the Media: YouTube issue queue, where this should be dealt with, if it's still a problem.
Comment #5
flutedrumr CreditAttribution: flutedrumr commentedEmthumb + ImageCache worked perfectly for me. Thanks!
Comment #6
nasi CreditAttribution: nasi commentedI 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?
Comment #7
devagaurahari CreditAttribution: devagaurahari commentedCould 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.
Comment #8
devagaurahari CreditAttribution: devagaurahari commentedIf 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?
Comment #9
mattcasey CreditAttribution: mattcasey commentedI'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'
Comment #10
marcvangendI'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
ormqdefault.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.
Comment #11
Devin Carlson CreditAttribution: Devin Carlson commentedThis is a duplicate of #1893388: Use high-resolution thumbnails.
Comment #12
marcvangendThanks Devin. Although it's not a true duplicate, but that patch will fix this problem as well.