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

Video in API data feed #270

Open
MikeCraig418 opened this issue Jun 5, 2020 · 0 comments
Open

Video in API data feed #270

MikeCraig418 opened this issue Jun 5, 2020 · 0 comments
Labels
Engineering Changes our tools and data pipeline

Comments

@MikeCraig418
Copy link
Collaborator

It would be terrific if the main data feed had video attached to each incident. Is this possible?

In the meantime, I do have video supported independently here:

https://api.846policebrutality.com/api/incidents?include=evidence

Here's an example of the video information:

{
  "video": [
    {
      "id": "07c275c0-a691-11ea-a4a9-adc292a917c1",
      "evidence_id": "1f7d0c60-a68b-11ea-84e0-17c87c5f9cf2",
      "title": "Neon - I was lucky enough to catch this on camera earlier. Police spray what appears to be an unarmed protestor in #Madison. #icantbreathe #BlackLivesMatter #madisonprotest",
      "description": "I was lucky enough to catch this on camera earlier. Police spray what appears to be an unarmed protestor in #Madison. #icantbreathe #BlackLivesMatter #madisonprotest https://t.co/Qkd2RzVibT",
      "site": "Twitter",
      "url": "https://twitter.com/NeonMarionette/status/1266962885957292032?s=20",
      "duration": "17.07",
      "tags": [
        "Madison",
        "icantbreathe",
        "BlackLivesMatter",
        "madisonprotest"
      ],
      "thumbnail": "https://pbs.twimg.com/ext_tw_video_thumb/1266961247259557888/pu/img/tUPJKWDXkn1z4YsN.jpg?name=orig",
      "streams": [
        {
          "url": "https://video.twimg.com/ext_tw_video/1266961247259557888/pu/vid/1280x720/tyiF2rkI6KsiJyyL.mp4?tag=10",
          "format": "http-2176 - 1280x720",
          "format_note": "",
          "extension": "mp4",
          "height": 720,
          "width": 1280,
          "fmt_id": "http-2176",
          "filesize": null,
          "filesize_pretty": "-",
          "has_audio": true,
          "has_video": true,
          "is_hd": false
        },
        {
          "url": "https://video.twimg.com/ext_tw_video/1266961247259557888/pu/vid/640x360/D38WYtbsQPYCognl.mp4?tag=10",
          "format": "http-832 - 640x360",
          "format_note": "",
          "extension": "mp4",
          "height": 360,
          "width": 640,
          "fmt_id": "http-832",
          "filesize": null,
          "filesize_pretty": "-",
          "has_audio": true,
          "has_video": true,
          "is_hd": false
        },
        {
          "url": "https://video.twimg.com/ext_tw_video/1266961247259557888/pu/vid/480x270/aYW_j52_x88eKZ9F.mp4?tag=10",
          "format": "http-256 - 480x270",
          "format_note": "",
          "extension": "mp4",
          "height": 270,
          "width": 480,
          "fmt_id": "http-256",
          "filesize": null,
          "filesize_pretty": "-",
          "has_audio": true,
          "has_video": true,
          "is_hd": false
        }
      ]
    }
  ]
}

My API lags a bit when pulling the latest data from your feed, but it's mostly all there. I'm also working a little more to clean up the video. Additionally, my API doesn't pull from YouTube.

I'm just throwing this out there. The community as a whole would definitely appreciate ease-of-access to video details for front-end development and analysis.

I also have a few other pieces of video detail, such as the uploader, duration, etc. that can be provided if requested.

If you have any ideas to get this wrapped back into your repo, let me know. If you are going to stick with .md, maybe you can determine a structure to incorporate some of this?

It would also be terrific to get the videos mirrored somehow. I know there's a lot of IPSF talk involved -- but the key is getting all of the information associated to parent objects.

Any thoughts on how video can be further streamlined and included in the main repo feed?

@ubershmekel ubershmekel added the Engineering Changes our tools and data pipeline label Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Changes our tools and data pipeline
Projects
None yet
Development

No branches or pull requests

2 participants