# HeyWatch library released - Video encoding web service

**URL:** <https://www.ruby-forum.com/t/heywatch-library-released-video-encoding-web-service/111576>\
**Category:** Ruby\
**Created:** [August 8, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/heywatch-library-released-video-encoding-web-service/111576 "2007-08-08T18:58:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcardoso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c6cbf5/32.png) [@bcardoso](https://www.ruby-forum.com/u/bcardoso)\
**Post date:** [August 8, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/heywatch-library-released-video-encoding-web-service/111576/1 "2007-08-08T18:58:14Z")

</div>

Hi people,

I just released a library for the Hey!Watch web service.  
[http://heywatch.com](http://heywatch.com)

Hey!Watch provides a simple and robust video encoding plateform for  
both individuals (B2C) and companies (B2B).

The service allows developers to access a fast, scalable and  
inexpensive web service to encode videos easier. The API can be easily  
integrated in any web or desktop applications.

Here is an example:

require ‘heywatch’  
include HeyWatch

Base::establish\_connection! :login =\> ‘login’, :password =\> ‘password’

raw\_video = Download.create(:url =\> ‘[http://host.com/video.avi](http://host.com/video.avi)’,  
:download =\> true) do |percent, total\_size, received|  
puts “#{percent}%”  
end

ipod\_format = Format.find\_by\_name(‘iPod 4:3’)  
encoded\_video = Job.create(:video\_id =\> raw\_video.id, :format\_id =\>  
ipod\_format.id) do |percent|  
puts “#{percent}%”  
end

puts “downloading #{encoded\_video.title}”  
path = encoded\_video.download  
puts “video saved in #{path}”

Install: gem install heywatch  
Website: [http://heywatch.com](http://heywatch.com)  
RDoc: [http://heywatch.rubyforge.org](http://heywatch.rubyforge.org)  
API doc: [http://wiki.heywatch.com/API\_Documentation](http://wiki.heywatch.com/API_Documentation)

–  
Hey!Watch: [http://heywatch.com](http://heywatch.com)  
Hey!Spread: [http://heyspread.com](http://heyspread.com)  
Blog: [http://particle-s.com](http://particle-s.com)  
Twitter: [http://twitter.com/HeyWatch](http://twitter.com/HeyWatch)
