sign in

API Documentation Encoded Video

Home | RecentChanges | All Pages | Help

URL: http://heywatch.com/encoded_video

Actions

There are other exceptional formats for this resource:

  • bin: get the encoded video in binary format (download)
  • jpg: get the encoded video thumbnail
  • rss: get the RSS feed of your encoded videos (Podcast client compliant)

Example response in XML: http://heywatch.com/encoded_video/508.xml [GET]

<encoded-video>
  <title>YouTube - Mel Gibson on Grey's Anatomy</title>
  <job-id>20960</job-id>
  <specs>
    <format-name>Mobile MP4</format-name>
    <audio channels="" sample_rate="24000" codec="aac" stream="" bitrate="0"/>
    <format-id>15</format-id>
    <video height="144" aspect="1.22" length="77" container="mov" width="176" codec="mpeg4" fps="15.0" stream="" bitrate="216"/>
    <size>2037</size>
    <mime-type>video/mp4</mime-type>
    <thumb>http: //static-1.heywatch.com/thumb/623207/MNmQyOlDZ4/NMZMG.jpg</thumb>
  </specs>
  <link>http: //static-1.heywatch.com/683072/zYWzTZB3kD/YouTube_-_Mel_Gibson_on_Grey_s_Anatomy.mp4</link>
  <id>508</id>
  <created-at>Fri Oct 27 01:08:17 CEST 2006</created-at>
</encoded-video>

Valid parameters for PUT

  • title: title of the encoded video

Thumbnail generation

You can generate a thumbnail with a GET request. Here are the parameters:

  • start: offset in second
  • width: width of the image
  • height: height of the image

“start” must be specified, and “width” and “height” are optionals. “width” and “height” values must be a multiple of 2.

Example

http:// heywatch.com/encoded_video/105477.jpg?start=54&width=640&height=480

This will generate an image at the 54th second with a size of 640×480.

Note that this request returns the binary data directly.


Powered by JunebugWiki v0.0.18 Last edited by heybrian on January 23, 2008 07:23 AM (diff)
Version 7 (current) «olderversions