Youtube 동영상 썸네일 이미지
페이지 정보
본문
유튜브의 동영상 페이지 주소는 다음 처럼 생겼다.
https://www.youtube.com/watch?v=hLLEBzl4P8A
여기서 v= 다음의 값이 개별동영상의 ID 라고 한다.
이 ID 를 가지고 해당 동영상의 썸네일 이미지 주소를 알 수가 있다.
위 동영상의 썸네일 이미지 주소는 아래와 같다.
https://img.youtube.com/vi/hLLEBzl4P8A/default.jpg 기본 120x90
https://img.youtube.com/vi/hLLEBzl4P8A/mqdefault.jpg midquality 320x180
https://img.youtube.com/vi/hLLEBzl4P8A/hqdefault.jpg highquality 480x360
https://img.youtube.com/vi/hLLEBzl4P8A/sddefault.jpg 640x480
https://img.youtube.com/vi/hLLEBzl4P8A/maxresdefault.jpg 최대해상도?
그외
https://img.youtube.com/vi/hLLEBzl4P8A/0.jpg
https://img.youtube.com/vi/hLLEBzl4P8A/1.jpg
https://img.youtube.com/vi/hLLEBzl4P8A/2.jpg
https://img.youtube.com/vi/hLLEBzl4P8A/3.jpg
등도 있다.
사용자가 올린 이미지라고 하는데, 올리지 않아도 디폴드가 있는 모양이다.
ㅁ 최대해상도 이미지 가져오기
최대해상도의 이미지 이름은 maxresdefault.jpg 라고 되어 있으나,
동영상이 720p 이상이 되어야 maxresdefault.jpg 가 있다고 한다.
그래서 이때는 sddefault.jpg 를 가져와야 한다.
이것을 체크하는 여러가지 방법이 아래 참고 url 에 있다.
참고.
https://stackoverflow.com/questions/18029550/fetch-youtube-highest-thumbnail-resolution
위 내용중에 gdata.youtube.com 은 더이상 사용되지 않는 듯 하다.
https://www.youtube.com/watch?v=hLLEBzl4P8A
여기서 v= 다음의 값이 개별동영상의 ID 라고 한다.
이 ID 를 가지고 해당 동영상의 썸네일 이미지 주소를 알 수가 있다.
위 동영상의 썸네일 이미지 주소는 아래와 같다.
https://img.youtube.com/vi/hLLEBzl4P8A/default.jpg 기본 120x90
https://img.youtube.com/vi/hLLEBzl4P8A/mqdefault.jpg midquality 320x180
https://img.youtube.com/vi/hLLEBzl4P8A/hqdefault.jpg highquality 480x360
https://img.youtube.com/vi/hLLEBzl4P8A/sddefault.jpg 640x480
https://img.youtube.com/vi/hLLEBzl4P8A/maxresdefault.jpg 최대해상도?
그외
https://img.youtube.com/vi/hLLEBzl4P8A/0.jpg
https://img.youtube.com/vi/hLLEBzl4P8A/1.jpg
https://img.youtube.com/vi/hLLEBzl4P8A/2.jpg
https://img.youtube.com/vi/hLLEBzl4P8A/3.jpg
등도 있다.
사용자가 올린 이미지라고 하는데, 올리지 않아도 디폴드가 있는 모양이다.
ㅁ 최대해상도 이미지 가져오기
최대해상도의 이미지 이름은 maxresdefault.jpg 라고 되어 있으나,
동영상이 720p 이상이 되어야 maxresdefault.jpg 가 있다고 한다.
그래서 이때는 sddefault.jpg 를 가져와야 한다.
이것을 체크하는 여러가지 방법이 아래 참고 url 에 있다.
참고.
https://stackoverflow.com/questions/18029550/fetch-youtube-highest-thumbnail-resolution
위 내용중에 gdata.youtube.com 은 더이상 사용되지 않는 듯 하다.
추천0
댓글목록
등록된 댓글이 없습니다.