Recent Posts by Francisco Trindade

Subscribe to Recent Posts by Francisco Trindade 4 posts found

Oct 14, 2008
Avatar Francisco Tr... 4 posts

Topic: Issues / Invalid File Upload

Hi,

We’re doing some tests with uploading videos to HeyWatch, and whenever we try to upload an invalid file (0 bytes/invalid format), the HeyWatch library blows up. Here’s some code to reproduce it:

begin File.open(‘zero-byte-file.mpg’) do |f| HeyWatch::Video.create(:file => f, :title => ‘zero-byte file’) end rescue puts “shouldn’t get here” end

We’re using version 0.0.1 of the gem, and here’s the stacktrace we’re getting

~ Started request handling: Tue Oct 14 03:34:25 -0700 2008 ~ Params: {“format”=>nil, “action”=>”create”, “controller”=>”performance_uploads”, “performance_upload”=>{“category”=>”7”, “raw_filename”=>{“size”=>”0”, “filename”=>”/tmp/0001358048”}, “title”=>”ads”, “terms_and_conditions”=>”1”, “description”=>”fads”}} ~ Uploading video: moved to /data/1c2f/releases/20081014102840/tmp/uploads/performances/177 ~ undefined method `content’ for Hash – (NoMethodError) /data/1c2f/releases/20081014102840/gems/gems/heywatch-0.0.1/lib/heywatch/ext.rb:46:in `method_missing’ /data/1c2f/releases/20081014102840/gems/gems/heywatch-0.0.1/lib/heywatch/browser.rb:18:in `raise_if_response_error’ /data/1c2f/releases/20081014102840/gems/gems/heywatch-0.0.1/lib/heywatch/browser.rb:79:in `post_multipart’ /data/1c2f/releases/20081014102840/gems/gems/heywatch-0.0.1/lib/heywatch/video.rb:20:in `create’

 
Sep 4, 2008
Avatar Francisco Tr... 4 posts

Topic: Issues / HeyWatch::Video.create not returning an id?

We are using the HeyWatch::Video.create method to upload a file from a local filesystem to heywatch, using the following segment of code:

raw_video = HeyWatch::Video.create(
  :file => #some filename,
  :title => #some title
  )

this was working fine before, and we could then call raw_video.id without problem. Now however, without any changes in the code this no longer seems to work. When we check our heywatch dashboard, we can clearly see that the video is making its way there, which leads us to believe the creation is successful.

Any help would be appreciated,

Thanks in advance,

Francisco

 
Aug 20, 2008
Avatar Francisco Tr... 4 posts

Topic: Issues / Ping after transfer not working when using Video.create

Our aim, as mentioned in another issue is to upload the raw video to S3 as well as the encoded one. It seems we can only do this by first uploaded the video to our own servers, and then manually uploading to heywatch (and at the same time sending the raw video to S3 ourselves)

At the moment we are successfully uploading the video to our servers and then using the Video.create method to then send it to HeyWatch for encoding, using the following segmant of code:

raw_video = HeyWatch::Video.create(
     :file => file, 
     :title => title
     )

this is working, and the video is getting to HeyWatch, however the ping_after_transfer is not being called. When we upload manually (through the HW interface) we are getting pinged so there are no problems with the URL. Any ideas why the ping is not happening when we use the Video.create route to upload a video?

Many Thanks,

Francisco

 
Aug 13, 2008
Avatar Francisco Tr... 4 posts

Topic: Issues / Moving Unencoded Videos to S3

Hi,

We are currently using HW to encode videos and send them to S3. However, as part of our application, we also want to be able to store the raw videos in S3.

Is there a way to use a credit just to transfer the raw video from HW to S3? Or is there any other way to fulfill this requirement?

Regards, Francisco