Is there a way to get a high definition YouTube video without a brochure?

I don't understand at all why the YouTube API thumbnails seem to include a letterbox for the video. If I want a thumbnail image of this video and use the methods shown here I can get a version mqdefault

that is a little too small (but fortunately has no mailbox), but if I jump in to say sddefault

which is a good size, I get:

enter image description here ( http://img.youtube.com/vi/12fR9neVnS8/sddefault.jpg )

I just want it without the booklet. Do I need to fool myself programmatically? Is there a way to get decent sized YouTube thumbnails without letterboxing?

+3


source to share


2 answers


Downloaded videos create three 4: 3 thumbnails (standard, medium and standard).

High definition videos also create two more miniatures in 16: 9 aspect ratio (high and maximum), as well as 4: 3 thumbs that give the axle box the box.

For this video, these are the available thumbnails:



"thumbnails": {
 "default": {
  "url": "https://i.ytimg.com/vi/12fR9neVnS8/default.jpg",
  "width": 120,
  "height": 90
 },
 "medium": {
  "url": "https://i.ytimg.com/vi/12fR9neVnS8/mqdefault.jpg",
  "width": 320,
  "height": 180
 },
 "high": {
  "url": "https://i.ytimg.com/vi/12fR9neVnS8/hqdefault.jpg",
  "width": 480,
  "height": 360
 },
 "standard": {
  "url": "https://i.ytimg.com/vi/12fR9neVnS8/sddefault.jpg",
  "width": 640,
  "height": 480
 },
 "maxres": {
  "url": "https://i.ytimg.com/vi/12fR9neVnS8/maxresdefault.jpg",
  "width": 1280,
  "height": 720
 }

      

It looks like you want https://i.ytimg.com/vi/12fR9neVnS8/maxresdefault.jpg

+3


source


Doug ... I have to do it programmatically (in my case, in C #).

Instead of styling with CSS, I automatically create a sketch. I couldn't find a good way to determine if I needed a style for the full screen versions of thumbnails and widescreen versions (most of the solutions I found involved style the image as a background to get the browser cropping effect). My tool allows users to enter whatever Youtube keys they want, so I have no control over what they choose.

I'll start by calling:



https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=VIDEOKEY&format=xml

and then I use the thumbnail property it returns to populate my video clip (usually hqdefault.jpg). The C # function I found is linked below.

How do I automatically crop an image?

-1


source







All Articles