Open mithro opened 8 years ago
The YouTube Data API appears to have "thumbnail" functionality built in. At present, it appears to show the channel preview card which is configured when the camera ingestion is configured.
It's not clear why this doesn't have an actual preview image, but it may be something to follow up with YouTube if this behaviour is intentional.
Further info is in the API documentation.
GET https://www.googleapis.com/youtube/v3/liveBroadcasts?part=id%2C+status%2C+snippet&broadcastStatus=all&key={YOUR_API_KEY}
{
"kind": "youtube#liveBroadcastListResponse",
"etag": "\"DsOZ7qVJA4mxdTxZeNzis6uE6ck/jzM2cvxN3dj9X0sorkbEV9bVbmg\"",
"nextPageToken": "CAUQAA",
"pageInfo": {
"totalResults": 24,
"resultsPerPage": 5
},
"items": [
{
"kind": "youtube#liveBroadcast",
"etag": "\"DsOZ7qVJA4mxdTxZeNzis6uE6ck/YdkZcUzq50HonOm0oDBCmFf7kOA\"",
"id": "5X-sBHDlbbQ",
"snippet": {
"publishedAt": "2016-02-04T22:51:05.000Z",
"channelId": "UChQOJ44-9PPA7mZ16m3RcPA",
"title": "LCA 2016: Wool Museum (Fri 5th Feb)",
"description": "",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/s_vi/5X-sBHDlbbQ/default.jpg?sqp=CPSF17UF&rs=AOn4CLCMSueVNBbw96mq6tYfGly5o-FFGA",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ytimg.com/s_vi/5X-sBHDlbbQ/mqdefault.jpg?sqp=CPSF17UF&rs=AOn4CLC3O5gW_p0ZiYNHNvy16guGdxYEBQ",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ytimg.com/s_vi/5X-sBHDlbbQ/hqdefault.jpg?sqp=CPSF17UF&rs=AOn4CLCtox-4E3zsMe5suUrlG23d7w7c6A",
"width": 480,
"height": 360
},
"standard": {
"url": "https://i.ytimg.com/s_vi/5X-sBHDlbbQ/sddefault.jpg?sqp=CPSF17UF&rs=AOn4CLBOhvfsvHAPns4aAk9EIbD_2RtB9A",
"width": 640,
"height": 480
},
"maxres": {
"url": "https://i.ytimg.com/s_vi/5X-sBHDlbbQ/maxresdefault.jpg?sqp=CPSF17UF&rs=AOn4CLBeZjACyfJrWtuibvSxdf8JQsvnWw",
"width": 1280,
"height": 720
}
},
"scheduledStartTime": "2016-02-04T23:40:00.000Z",
"actualStartTime": "2016-02-04T23:38:01.603Z",
"actualEndTime": "2016-02-05T04:05:11.000Z",
"isDefaultBroadcast": false
},
"status": {
"lifeCycleStatus": "complete",
"privacyStatus": "private",
"recordingStatus": "recorded"
}
Preview images for YouTube streams can now be generated (8a0d381b). Might need to revisit that to allow generation of preview images for both YouTube and flumotion.
Might be good to document what gstreamer features are needed for that script I wrote. I think you need a recent libsoup and gstreamer....
hi @micolous, I was trying to get the Youtube thumbnails with the sqp information, and I did the Youtube Api on "liveBroadcasts" like yours。However, I can not get the same result as yours,Do you have any ideas?
I'd suggest following up on YouTube's GitHub repos if you're having trouble with the API... this isn't a YouTube support forum.
On 27 Nov. 2017 14:48, "Patrick" notifications@github.com wrote:
hi @micolous https://github.com/micolous, I was trying to get the Youtube thumbnails with the sqp information, and I did the Youtube Api on "liveBroadcasts" like yours。However, I can not get the same result as yours,Do you have any ideas?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/timvideos/streaming-system/issues/117#issuecomment-347072169, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPEPwMDRFvzCILkyfQDUpNP6f1VoLxlks5s6jEmgaJpZM4HREH8 .
GitHubmicolous has 84 repositories available. Follow their code on GitHub.
GitHubGitHub is where people build software. More than 26 million people use GitHub to discover, fork, and contribute to over 72 million projects.
Need a gstreamer / mplayer / something else to create preview images.