Video to markdown!

sample image
 

Why?

How often did you find yourself googling How to embed a video in markdown?

While its not possible to embed a video in markdown, the best and easiest way is to extract a frame from the video, add a layer with a play icon and link the video url on the image.
Speaking HTMLese, this is what you would do:

<a href="{video-url}" title="Link Title"><img src="{image-url}" alt="Alternate Text" /></a>
that translates into markdown as:
[![Alternate Text]({image-url})]({video-url} "Link Title")
To speed up the process I developped this tool that will do it for you.
You just need to paste the video url in the field above and you will get the markdown you need.

Features

List of supported video providers:

Youtube
Facebook (low-quality)
Dailymotion
Vimeo
Asciinema

API

[GET] https://video-to-markdown.netlify.com/.netlify/functions/image-json?url={video-url}

{
  "provider": "youtube",
  "url": "https://youtu.be/aqz-KE-bpKQ",
  "mime": "image/jpeg",
  "base64": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAlgCWAAD/2wBDAAYEBQYFBA..."
}

The image-json API accept only one url parameter.
The value {video-url} is a video url (e.g. https://youtu.be/aqz-KE-bpKQ)

[GET] https://video-to-markdown.netlify.com/.netlify/functions/image?url={video-url}

output:     image

The image API accept only one url parameter.
The value {video-url} is a video url (e.g. https://youtu.be/aqz-KE-bpKQ)