Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't generate preview images from a YouTube stream #117

Open
mithro opened this issue Feb 2, 2016 · 5 comments
Open

Can't generate preview images from a YouTube stream #117

mithro opened this issue Feb 2, 2016 · 5 comments

Comments

@mithro
Copy link
Member

mithro commented Feb 2, 2016

Need a gstreamer / mplayer / something else to create preview images.

@mithro mithro self-assigned this Feb 2, 2016
@mithro mithro added the Frontend label Feb 2, 2016
@micolous
Copy link
Contributor

micolous commented Feb 6, 2016

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"
   }

@joeladdison
Copy link
Member

Preview images for YouTube streams can now be generated (8a0d381). Might need to revisit that to allow generation of preview images for both YouTube and flumotion.

@mithro
Copy link
Member Author

mithro commented Mar 4, 2017

Might be good to document what gstreamer features are needed for that script I wrote. I think you need a recent libsoup and gstreamer....

@vuittonatehsn
Copy link

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?

@micolous
Copy link
Contributor

micolous commented Nov 28, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants