user tip Removing Black Bars from Youtube Thumbnails

derrickhand300
@derrickhand300
9 years ago
1,353 posts
I have a bunch of videos uploaded to youtube in 1920 X 1080 resolution but when I add them to my Jamroom site the thumbnails all have black bars at top and bottom

Tonight I stumbled on a way to remove them - but have only tested on my 1920x1080's

Download the free "Template Injection" module from the marketplace then add this to the "Template Injection" text box and save
hqdefault.jpg|mqdefault.jpg

Really all this seems to be doing is changing the "h" in hqdefault.jpg to an "m" in mqdefault.jpg

If you look at a YT video in the datastore if its like mine you will see:

youtube_aretwork_url: https://i.ytimg.com/vi/AdttvLChEkw/hqdefault.jpg

but what you WANT it to say is

youtube_aretwork_url: https://i.ytimg.com/vi/AdttvLChEkw/mqdefault.jpg

If you click either of those image links you should see the difference

Anyways- if you have the black bars in thumbnails and its REALLY messing up your combined video templates like it was mine-just download the template Injection module and add the
hqdefault.jpg|mqdefault.jpg
and they should be gone
Hope this helps someone_ Thanks Michael for helping me with this!
Capture.JPG.jpg
Capture.JPG.jpg  •  36KB


updated by @derrickhand300: 03/12/16 04:30:31AM
brian
@brian
9 years ago
10,148 posts
Nice tip - and great use of the Template Injection module!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michaelcawood
@michaelcawood
9 years ago
77 posts
Perhaps I'm missing something, but I tried that on my site and it didn't work.
http://animatedfilmmakers.com/devilsangelsanddating/videos

Any thoughts?
michael
@michael
9 years ago
7,714 posts
right click and see what URL the image is using, on your site its set to:
http://img.youtube.com/vi/AklEEuRKpnc/0.jpg

so the replace that tries to replace any hqdefault.jpg with mqdefault.jpg wont be found in that url, so wont be replaced.

So for you the code would be:
0.jpg|mqdefault.jpg

There are many ways to do the same thing. The better solution for you is the one I posted in the other thread:
https://www.jamroom.net/the-jamroom-network/forum/new_posts/36009/grid-of-videos#p36132
michaelcawood
@michaelcawood
9 years ago
77 posts
Thank you. That worked. I guess I use the same deductive reasoning to fix the Vimeo thumbnails that now seem to be broken.
michael
@michael
9 years ago
7,714 posts
Yep, that introduced a new bug, go with the other option:
michael:...The better solution for you is the one I posted in the other thread:
https://www.jamroom.net/the-jamroom-network/forum/new_posts/36009/grid-of-videos#p36132
michaelcawood
@michaelcawood
9 years ago
77 posts
Thanks Michael... videos borders fixed.

Tags