zencodable 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -8,7 +8,7 @@ class Video < ActiveRecord::Base
8
8
  has_video_encodings :video_files, :formats => [:ogg, :mp4, :webm, :flv],
9
9
  :output_dimensions => '852x480',
10
10
  :s3_config => "#{Rails.root}/config/amazon_s3.yml",
11
- :path => "videos/zc/:basename/",
11
+ :path => "videos/zc/:title_to_slug/",
12
12
  :thumbnails => { :number => 2, :aspect_mode => 'crop', 'size' => '290x160' },
13
13
  :options => { :device_profile => 'mobile/advanced' }
14
14
 
@@ -75,10 +75,19 @@ add something like the above `has_video_encodings` class method to your model (t
75
75
 
76
76
  The options should include a `:s3_config` key that gives a location of a YAML file containing your S3 credentials, which should contain a 'bucket' key (you already have one, right?) Actually, all we need from that is the bucket name, so you can instead use a `:bucket` key to give the name of the bucket where the output files should be placed.
77
77
 
78
- The `:path` option can be any path within that bucket. It can contain a `:basename` token, which will be replaced with a sanitized, URL-encoded version of the original filename as uploaded.
79
-
80
78
  `:formats` is a list of output formats you'd like. [Supported formats and codecs](https://app.zencoder.com/docs/api/encoding/format-and-codecs/format)
81
79
 
80
+ The `:path` is the path within the bucket where the output files should be placed. It can contain one or more `:some_method` tokens, which will be replaced with the (String) results of calling the given method on your record. _i.e._, given
81
+ ```ruby
82
+ class Video < ActiveRecord::Base
83
+ has_video_encodings :video_files, :path => 'some/path/on/s3/:project_id/:slug'
84
+
85
+ def project_id; project.id.to_s; end
86
+ def slug; title.to_slug; end
87
+ end
88
+ ```
89
+ the paths within your S3 bucket will look like `/some/path/on/s3/12493/lion-eats-kitteh/`. (the individual file/object names will be based on a sanitized version of the original file name)
90
+
82
91
  The other options are all those that can be handled by Zencoder. More info can be found on [:thumbnails](https://app.zencoder.com/docs/api/encoding/thumbnails), [:output_dimensions](https://app.zencoder.com/docs/api/encoding/resolution/size) and other output settings [:options](https://app.zencoder.com/docs/api/encoding)
83
92
 
84
93
  ### Give it a source URL
data/lib/zencodable.rb CHANGED
@@ -4,7 +4,7 @@ module Zencodable
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- class_attribute :encoder_definitions
7
+ class_attribute :encoding_options
8
8
  class_attribute :encoder_output_files_association
9
9
  class_attribute :encoder_thumbnails_association
10
10
  end
@@ -12,7 +12,7 @@ module Zencodable
12
12
  module ClassMethods
13
13
 
14
14
  def has_video_encodings target_association, options = {}
15
- self.encoder_definitions = options
15
+ self.encoding_options = options
16
16
  self.encoder_output_files_association = target_association
17
17
 
18
18
  has_many self.encoder_output_files_association, :dependent => :destroy
@@ -44,7 +44,7 @@ module Zencodable
44
44
  def create_job
45
45
  if self.origin_url_changed?
46
46
  logger.debug "Origin URL changed. Creating new ZenCoder job."
47
- if @job = Encoder::Job.create(origin_url, self.class.encoder_definitions)
47
+ if @job = Encoder::Job.create(self)
48
48
  logger.debug "ZenCoder job created, ID = #{@job.id}"
49
49
  self.zencoder_job_id = @job.id
50
50
  self.zencoder_job_status = 'new'
@@ -124,22 +124,22 @@ module Zencodable
124
124
 
125
125
  attr_accessor :mock_all_requests
126
126
 
127
- def create(origin, encoder_definitions)
128
- response = super(:input => origin,
129
- :outputs => build_encoder_output_options(origin, encoder_definitions))
127
+ def create origin_file
128
+ response = super(:input => origin_file.origin_url,
129
+ :outputs => build_encoder_output_options(origin_file))
130
130
  if response.code == 201
131
131
  job_id = response.body['id']
132
132
  self.new(job_id)
133
133
  end
134
134
  end
135
135
 
136
- def build_encoder_output_options(origin, settings)
136
+ def build_encoder_output_options origin_file
137
137
 
138
- formats = settings[:formats] || [:mp4]
138
+ settings = origin_file.class.encoding_options
139
139
 
140
- bucket_name = settings[:bucket] || s3_bucket_name(settings[:s3_config])
140
+ formats = settings[:formats] || [:mp4]
141
141
 
142
- s3_base_url = s3_url(origin, bucket_name, settings[:path])
142
+ s3_base_url = s3_url(origin_file, (settings[:bucket] || s3_bucket_name(settings[:s3_config])))
143
143
 
144
144
  defaults = { :public => true, :mock => self.mock_request? }
145
145
 
@@ -147,7 +147,10 @@ module Zencodable
147
147
 
148
148
  defaults = defaults.merge(settings[:options]) if settings[:options]
149
149
 
150
- output_settings = formats.collect{ |f| defaults.merge( :format => f.to_s, :label => f.to_s, :base_url => s3_base_url ) }
150
+ output_settings = formats.collect{ |f| defaults.merge( :format => f.to_s,
151
+ :label => f.to_s,
152
+ :filename => file_basename(origin_file.origin_url) + ".#{f}",
153
+ :base_url => s3_base_url ) }
151
154
 
152
155
  if settings[:thumbnails]
153
156
  output_settings[0][:thumbnails] = {:base_url => s3_base_url}.merge(settings[:thumbnails])
@@ -156,17 +159,23 @@ module Zencodable
156
159
 
157
160
  end
158
161
 
159
- def s3_url origin_url, bucket, path
162
+ def s3_url origin_file, bucket
163
+ path = origin_file.class.encoding_options[:path]
164
+ path.scan(%r|:[a-z]\w+\b|) do |match|
165
+ method = match.gsub(/^:/,'').to_sym
166
+ path = path.gsub(/#{match}/, origin_file.send(method)) if origin_file.respond_to?(method)
167
+ end
168
+ "s3://#{bucket}.s3.amazonaws.com/#{path.gsub(%r#/\z#, '')}/"
169
+ end
170
+
171
+ def file_basename origin_url
160
172
  basename = origin_url.match( %r|([^/][^/\?]+)[^/]*\.[^.]+\z| )[1] # matches filename without extension
161
- basename = basename.downcase.squish.gsub(/\s+/, '-').gsub(/[^\w\d_.-]/, '') # cheap/ugly to_url
162
- path = path.gsub(%r|:basename\b|, basename)
163
- "s3://#{bucket}.s3.amazonaws.com/#{path}/"
173
+ basename.downcase.squish.gsub(/\s+/, '-').gsub(/[^\w\d_.-]/, '') # cheap/ugly to_url
164
174
  end
165
175
 
166
176
  def s3_bucket_name s3_config_file
167
177
  s3_config_file ||= "#{Rails.root}/config/s3.yml"
168
178
  @s3_config ||= YAML.load_file(s3_config_file)[Rails.env].symbolize_keys
169
- puts @s3_config.inspect
170
179
  @s3_config[:bucket_name]
171
180
  end
172
181
 
@@ -1,3 +1,3 @@
1
1
  module Zencodable
2
- VERSION = "0.1.6"
2
+ VERSION = "0.2.0"
3
3
  end
data/test/debug.log CHANGED
@@ -3580,3 +3580,1127 @@ Unfinished job found. Updating details.
3580
3580
   (0.0ms) SAVEPOINT active_record_1
3581
3581
   (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-07 21:40:12.443698' WHERE "videos"."id" = 1
3582
3582
   (0.1ms) RELEASE SAVEPOINT active_record_1
3583
+  (0.1ms) SAVEPOINT active_record_1
3584
+ SQL (21.0ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3586
+  (0.1ms) SAVEPOINT active_record_1
3587
+ Origin URL changed. Creating new ZenCoder job.
3588
+ ZenCoder job created, ID = 123
3589
+  (0.3ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 19:44:53.749168', "updated_at" = '2011-12-08 19:44:53.749466' WHERE "videos"."id" = 1
3590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3591
+  (0.1ms) SAVEPOINT active_record_1
3592
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
3593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3594
+  (0.0ms) SAVEPOINT active_record_1
3595
+ SQL (1.0ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3597
+  (0.1ms) SAVEPOINT active_record_1
3598
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
3599
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3600
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
3601
+  (0.4ms) SAVEPOINT active_record_1
3602
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
3603
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3604
+ Unfinished job found. Updating details.
3605
+  (0.1ms) SAVEPOINT active_record_1
3606
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 19:44:53.970666' WHERE "videos"."id" = 1
3607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3608
+  (0.1ms) SAVEPOINT active_record_1
3609
+ SQL (1.1ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3611
+ Unfinished job found. Updating details.
3612
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
3613
+  (0.1ms) SAVEPOINT active_record_1
3614
+ SQL (1.4ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
3615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3616
+  (0.0ms) SAVEPOINT active_record_1
3617
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 19:44:53.983685' WHERE "videos"."id" = 1
3618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3619
+  (0.1ms) SAVEPOINT active_record_1
3620
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:44:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3622
+ Unfinished job found. Updating details.
3623
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
3624
+  (0.1ms) SAVEPOINT active_record_1
3625
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:44:54 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 19:44:54 UTC +00:00], ["video_id", 1]]
3626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3627
+  (0.0ms) SAVEPOINT active_record_1
3628
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 19:44:54.010867' WHERE "videos"."id" = 1
3629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3630
+  (0.1ms) SAVEPOINT active_record_1
3631
+ SQL (20.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3633
+  (0.1ms) SAVEPOINT active_record_1
3634
+ Origin URL changed. Creating new ZenCoder job.
3635
+ ZenCoder job created, ID = 123
3636
+  (0.3ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 19:45:21.221726', "updated_at" = '2011-12-08 19:45:21.222023' WHERE "videos"."id" = 1
3637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3638
+  (0.1ms) SAVEPOINT active_record_1
3639
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
3640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3641
+  (0.0ms) SAVEPOINT active_record_1
3642
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3644
+  (0.1ms) SAVEPOINT active_record_1
3645
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
3646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3647
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
3648
+  (0.1ms) SAVEPOINT active_record_1
3649
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
3650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3651
+ Unfinished job found. Updating details.
3652
+  (0.1ms) SAVEPOINT active_record_1
3653
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 19:45:21.436484' WHERE "videos"."id" = 1
3654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3655
+  (0.1ms) SAVEPOINT active_record_1
3656
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3657
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3658
+ Unfinished job found. Updating details.
3659
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
3660
+  (0.1ms) SAVEPOINT active_record_1
3661
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
3662
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3663
+  (0.0ms) SAVEPOINT active_record_1
3664
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 19:45:21.448676' WHERE "videos"."id" = 1
3665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3666
+  (0.1ms) SAVEPOINT active_record_1
3667
+ SQL (0.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3668
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3669
+ Unfinished job found. Updating details.
3670
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
3671
+  (0.1ms) SAVEPOINT active_record_1
3672
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 19:45:21 UTC +00:00], ["video_id", 1]]
3673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3674
+  (0.0ms) SAVEPOINT active_record_1
3675
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 19:45:21.473449' WHERE "videos"."id" = 1
3676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3677
+  (0.1ms) SAVEPOINT active_record_1
3678
+ SQL (21.0ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3680
+  (0.1ms) SAVEPOINT active_record_1
3681
+ Origin URL changed. Creating new ZenCoder job.
3682
+ ZenCoder job created, ID = 123
3683
+  (0.3ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 19:47:10.313582', "updated_at" = '2011-12-08 19:47:10.313886' WHERE "videos"."id" = 1
3684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3685
+  (0.1ms) SAVEPOINT active_record_1
3686
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
3687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3688
+  (0.0ms) SAVEPOINT active_record_1
3689
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3690
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3691
+  (0.1ms) SAVEPOINT active_record_1
3692
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
3693
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3694
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
3695
+  (0.1ms) SAVEPOINT active_record_1
3696
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
3697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3698
+ Unfinished job found. Updating details.
3699
+  (0.1ms) SAVEPOINT active_record_1
3700
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 19:47:10.529399' WHERE "videos"."id" = 1
3701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3702
+  (0.1ms) SAVEPOINT active_record_1
3703
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3705
+ Unfinished job found. Updating details.
3706
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
3707
+  (0.1ms) SAVEPOINT active_record_1
3708
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
3709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3710
+  (0.0ms) SAVEPOINT active_record_1
3711
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 19:47:10.541760' WHERE "videos"."id" = 1
3712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3713
+  (0.1ms) SAVEPOINT active_record_1
3714
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3716
+ Unfinished job found. Updating details.
3717
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
3718
+  (0.1ms) SAVEPOINT active_record_1
3719
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 19:47:10 UTC +00:00], ["video_id", 1]]
3720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3721
+  (0.0ms) SAVEPOINT active_record_1
3722
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 19:47:10.566360' WHERE "videos"."id" = 1
3723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3724
+  (0.1ms) SAVEPOINT active_record_1
3725
+ SQL (21.0ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3727
+  (0.1ms) SAVEPOINT active_record_1
3728
+ Origin URL changed. Creating new ZenCoder job.
3729
+ ZenCoder job created, ID = 123
3730
+  (0.3ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 19:47:49.633839', "updated_at" = '2011-12-08 19:47:49.634134' WHERE "videos"."id" = 1
3731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3732
+  (0.1ms) SAVEPOINT active_record_1
3733
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
3734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3735
+  (0.0ms) SAVEPOINT active_record_1
3736
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3738
+  (0.1ms) SAVEPOINT active_record_1
3739
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
3740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3741
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
3742
+  (0.1ms) SAVEPOINT active_record_1
3743
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
3744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3745
+ Unfinished job found. Updating details.
3746
+  (0.1ms) SAVEPOINT active_record_1
3747
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 19:47:49.850207' WHERE "videos"."id" = 1
3748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3749
+  (0.1ms) SAVEPOINT active_record_1
3750
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3751
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3752
+ Unfinished job found. Updating details.
3753
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
3754
+  (0.1ms) SAVEPOINT active_record_1
3755
+ SQL (1.4ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
3756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3757
+  (0.0ms) SAVEPOINT active_record_1
3758
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 19:47:49.862619' WHERE "videos"."id" = 1
3759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3760
+  (0.1ms) SAVEPOINT active_record_1
3761
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3763
+ Unfinished job found. Updating details.
3764
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
3765
+  (0.1ms) SAVEPOINT active_record_1
3766
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 19:47:49 UTC +00:00], ["video_id", 1]]
3767
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3768
+  (0.0ms) SAVEPOINT active_record_1
3769
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 19:47:49.887634' WHERE "videos"."id" = 1
3770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3771
+  (0.1ms) SAVEPOINT active_record_1
3772
+ SQL (21.0ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3774
+  (0.1ms) SAVEPOINT active_record_1
3775
+ Origin URL changed. Creating new ZenCoder job.
3776
+ ZenCoder job created, ID = 123
3777
+  (0.3ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 19:49:10.099616', "updated_at" = '2011-12-08 19:49:10.099913' WHERE "videos"."id" = 1
3778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3779
+  (0.1ms) SAVEPOINT active_record_1
3780
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
3781
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3782
+  (0.0ms) SAVEPOINT active_record_1
3783
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3785
+  (0.1ms) SAVEPOINT active_record_1
3786
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
3787
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3788
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
3789
+  (0.1ms) SAVEPOINT active_record_1
3790
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
3791
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3792
+ Unfinished job found. Updating details.
3793
+  (0.1ms) SAVEPOINT active_record_1
3794
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 19:49:10.315370' WHERE "videos"."id" = 1
3795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3796
+  (0.1ms) SAVEPOINT active_record_1
3797
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3799
+ Unfinished job found. Updating details.
3800
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
3801
+  (0.1ms) SAVEPOINT active_record_1
3802
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
3803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3804
+  (0.0ms) SAVEPOINT active_record_1
3805
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 19:49:10.327746' WHERE "videos"."id" = 1
3806
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3807
+  (0.1ms) SAVEPOINT active_record_1
3808
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3810
+ Unfinished job found. Updating details.
3811
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
3812
+  (0.1ms) SAVEPOINT active_record_1
3813
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 19:49:10 UTC +00:00], ["video_id", 1]]
3814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3815
+  (0.0ms) SAVEPOINT active_record_1
3816
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 19:49:10.352579' WHERE "videos"."id" = 1
3817
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3818
+  (0.1ms) SAVEPOINT active_record_1
3819
+ SQL (21.0ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3821
+  (0.1ms) SAVEPOINT active_record_1
3822
+ Origin URL changed. Creating new ZenCoder job.
3823
+ ZenCoder job created, ID = 123
3824
+  (0.3ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:18:00.215294', "updated_at" = '2011-12-08 20:18:00.215591' WHERE "videos"."id" = 1
3825
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3826
+  (0.1ms) SAVEPOINT active_record_1
3827
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
3828
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3829
+  (0.0ms) SAVEPOINT active_record_1
3830
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3832
+  (0.1ms) SAVEPOINT active_record_1
3833
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
3834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3835
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
3836
+  (0.1ms) SAVEPOINT active_record_1
3837
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
3838
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3839
+ Unfinished job found. Updating details.
3840
+  (0.1ms) SAVEPOINT active_record_1
3841
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:18:00.432374' WHERE "videos"."id" = 1
3842
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3843
+  (0.1ms) SAVEPOINT active_record_1
3844
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3845
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3846
+ Unfinished job found. Updating details.
3847
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
3848
+  (0.1ms) SAVEPOINT active_record_1
3849
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
3850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3851
+  (0.0ms) SAVEPOINT active_record_1
3852
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:18:00.444625' WHERE "videos"."id" = 1
3853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3854
+  (0.1ms) SAVEPOINT active_record_1
3855
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3857
+ Unfinished job found. Updating details.
3858
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
3859
+  (0.1ms) SAVEPOINT active_record_1
3860
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:18:00 UTC +00:00], ["video_id", 1]]
3861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3862
+  (0.0ms) SAVEPOINT active_record_1
3863
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:18:00.469511' WHERE "videos"."id" = 1
3864
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3865
+  (0.1ms) SAVEPOINT active_record_1
3866
+ SQL (20.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3868
+  (0.0ms) SAVEPOINT active_record_1
3869
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3870
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3871
+  (0.1ms) SAVEPOINT active_record_1
3872
+ Origin URL changed. Creating new ZenCoder job.
3873
+ ZenCoder job created, ID = 123
3874
+  (0.3ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:20:14.557664', "updated_at" = '2011-12-08 20:20:14.557943' WHERE "videos"."id" = 1
3875
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3876
+  (0.1ms) SAVEPOINT active_record_1
3877
+ SQL (0.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
3878
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3879
+  (0.0ms) SAVEPOINT active_record_1
3880
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3882
+  (0.1ms) SAVEPOINT active_record_1
3883
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
3884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3885
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
3886
+  (0.1ms) SAVEPOINT active_record_1
3887
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
3888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3889
+ Unfinished job found. Updating details.
3890
+  (0.1ms) SAVEPOINT active_record_1
3891
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:20:14.773468' WHERE "videos"."id" = 1
3892
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3893
+  (0.1ms) SAVEPOINT active_record_1
3894
+ SQL (0.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3895
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3896
+ Unfinished job found. Updating details.
3897
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
3898
+  (0.1ms) SAVEPOINT active_record_1
3899
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
3900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3901
+  (0.0ms) SAVEPOINT active_record_1
3902
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:20:14.785711' WHERE "videos"."id" = 1
3903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3904
+  (0.1ms) SAVEPOINT active_record_1
3905
+ SQL (0.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3907
+ Unfinished job found. Updating details.
3908
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
3909
+  (0.1ms) SAVEPOINT active_record_1
3910
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:20:14 UTC +00:00], ["video_id", 1]]
3911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3912
+  (0.0ms) SAVEPOINT active_record_1
3913
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:20:14.810277' WHERE "videos"."id" = 1
3914
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3915
+  (0.1ms) SAVEPOINT active_record_1
3916
+ Origin URL changed. Creating new ZenCoder job.
3917
+ SQL (41.3ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:55 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:21:55 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3918
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3919
+  (0.1ms) SAVEPOINT active_record_1
3920
+ Origin URL changed. Creating new ZenCoder job.
3921
+ SQL (1.0ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3923
+  (0.1ms) SAVEPOINT active_record_1
3924
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3926
+  (0.2ms) SAVEPOINT active_record_1
3927
+ Origin URL changed. Creating new ZenCoder job.
3928
+ ZenCoder job created, ID = 123
3929
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:21:57.588099', "updated_at" = '2011-12-08 20:21:57.588644' WHERE "videos"."id" = 1
3930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3931
+  (0.1ms) SAVEPOINT active_record_1
3932
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
3933
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3934
+  (0.1ms) SAVEPOINT active_record_1
3935
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3936
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3937
+  (0.1ms) SAVEPOINT active_record_1
3938
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
3939
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3940
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
3941
+  (0.1ms) SAVEPOINT active_record_1
3942
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
3943
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3944
+ Unfinished job found. Updating details.
3945
+  (0.1ms) SAVEPOINT active_record_1
3946
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:21:57.827164' WHERE "videos"."id" = 1
3947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3948
+  (0.1ms) SAVEPOINT active_record_1
3949
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3951
+ Unfinished job found. Updating details.
3952
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
3953
+  (0.1ms) SAVEPOINT active_record_1
3954
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
3955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3956
+  (0.0ms) SAVEPOINT active_record_1
3957
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:21:57.839218' WHERE "videos"."id" = 1
3958
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3959
+  (0.1ms) SAVEPOINT active_record_1
3960
+ SQL (0.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
3961
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3962
+ Unfinished job found. Updating details.
3963
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
3964
+  (0.1ms) SAVEPOINT active_record_1
3965
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:21:57 UTC +00:00], ["video_id", 1]]
3966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3967
+  (0.0ms) SAVEPOINT active_record_1
3968
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:21:57.863955' WHERE "videos"."id" = 1
3969
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3970
+  (0.1ms) SAVEPOINT active_record_1
3971
+ Origin URL changed. Creating new ZenCoder job.
3972
+ SQL (41.5ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:46 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:22:46 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3973
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3974
+  (0.1ms) SAVEPOINT active_record_1
3975
+ Origin URL changed. Creating new ZenCoder job.
3976
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3977
+  (0.3ms) RELEASE SAVEPOINT active_record_1
3978
+  (0.1ms) SAVEPOINT active_record_1
3979
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3980
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3981
+  (0.2ms) SAVEPOINT active_record_1
3982
+ Origin URL changed. Creating new ZenCoder job.
3983
+ ZenCoder job created, ID = 123
3984
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:22:48.328678', "updated_at" = '2011-12-08 20:22:48.329269' WHERE "videos"."id" = 1
3985
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3986
+  (0.2ms) SAVEPOINT active_record_1
3987
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
3988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3989
+  (0.1ms) SAVEPOINT active_record_1
3990
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
3991
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3992
+  (0.1ms) SAVEPOINT active_record_1
3993
+ SQL (0.9ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
3994
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3995
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
3996
+  (0.1ms) SAVEPOINT active_record_1
3997
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
3998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3999
+ Unfinished job found. Updating details.
4000
+  (0.1ms) SAVEPOINT active_record_1
4001
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:22:48.618360' WHERE "videos"."id" = 1
4002
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4003
+  (0.1ms) SAVEPOINT active_record_1
4004
+ SQL (0.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4006
+ Unfinished job found. Updating details.
4007
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4008
+  (0.1ms) SAVEPOINT active_record_1
4009
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4010
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4011
+  (0.0ms) SAVEPOINT active_record_1
4012
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:22:48.630549' WHERE "videos"."id" = 1
4013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4014
+  (0.1ms) SAVEPOINT active_record_1
4015
+ SQL (0.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4016
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4017
+ Unfinished job found. Updating details.
4018
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4019
+  (0.1ms) SAVEPOINT active_record_1
4020
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:22:48 UTC +00:00], ["video_id", 1]]
4021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4022
+  (0.0ms) SAVEPOINT active_record_1
4023
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:22:48.655695' WHERE "videos"."id" = 1
4024
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4025
+  (0.1ms) SAVEPOINT active_record_1
4026
+ Origin URL changed. Creating new ZenCoder job.
4027
+ SQL (21.2ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:28 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:24:28 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4029
+  (0.0ms) SAVEPOINT active_record_1
4030
+ Origin URL changed. Creating new ZenCoder job.
4031
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:30 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:24:30 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4032
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4033
+  (0.1ms) SAVEPOINT active_record_1
4034
+ Origin URL changed. Creating new ZenCoder job.
4035
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:31 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:24:31 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4036
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4037
+  (0.1ms) SAVEPOINT active_record_1
4038
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:31 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:24:31 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4040
+  (0.2ms) SAVEPOINT active_record_1
4041
+ Origin URL changed. Creating new ZenCoder job.
4042
+ ZenCoder job created, ID = 123
4043
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:24:31.872717', "updated_at" = '2011-12-08 20:24:31.873337' WHERE "videos"."id" = 1
4044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4045
+  (0.2ms) SAVEPOINT active_record_1
4046
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:31 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:24:31 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4048
+  (0.1ms) SAVEPOINT active_record_1
4049
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:31 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:24:31 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4050
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4051
+  (0.1ms) SAVEPOINT active_record_1
4052
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4053
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4054
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4055
+  (0.1ms) SAVEPOINT active_record_1
4056
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4058
+ Unfinished job found. Updating details.
4059
+  (0.1ms) SAVEPOINT active_record_1
4060
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:24:32.138123' WHERE "videos"."id" = 1
4061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4062
+  (0.1ms) SAVEPOINT active_record_1
4063
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4064
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4065
+ Unfinished job found. Updating details.
4066
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4067
+  (0.1ms) SAVEPOINT active_record_1
4068
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4070
+  (0.0ms) SAVEPOINT active_record_1
4071
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:24:32.150241' WHERE "videos"."id" = 1
4072
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4073
+  (0.1ms) SAVEPOINT active_record_1
4074
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4076
+ Unfinished job found. Updating details.
4077
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4078
+  (0.1ms) SAVEPOINT active_record_1
4079
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:24:32 UTC +00:00], ["video_id", 1]]
4080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4081
+  (0.0ms) SAVEPOINT active_record_1
4082
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:24:32.175261' WHERE "videos"."id" = 1
4083
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4084
+  (0.1ms) SAVEPOINT active_record_1
4085
+ Origin URL changed. Creating new ZenCoder job.
4086
+ SQL (42.1ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:21 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:27:21 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4087
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4088
+  (0.1ms) SAVEPOINT active_record_1
4089
+ Origin URL changed. Creating new ZenCoder job.
4090
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:23 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:27:23 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4091
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4092
+  (0.2ms) SAVEPOINT active_record_1
4093
+ Origin URL changed. Creating new ZenCoder job.
4094
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:25 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:27:25 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4095
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4096
+  (0.1ms) SAVEPOINT active_record_1
4097
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:25 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:27:25 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4098
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4099
+  (0.2ms) SAVEPOINT active_record_1
4100
+ Origin URL changed. Creating new ZenCoder job.
4101
+ ZenCoder job created, ID = 123
4102
+  (0.7ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:27:25.794877', "updated_at" = '2011-12-08 20:27:25.795431' WHERE "videos"."id" = 1
4103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4104
+  (0.2ms) SAVEPOINT active_record_1
4105
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:25 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:27:25 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4107
+  (0.1ms) SAVEPOINT active_record_1
4108
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:25 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:27:25 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4110
+  (0.2ms) SAVEPOINT active_record_1
4111
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:25 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:27:25 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4113
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4114
+  (0.1ms) SAVEPOINT active_record_1
4115
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:26 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:27:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4117
+ Unfinished job found. Updating details.
4118
+  (0.1ms) SAVEPOINT active_record_1
4119
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:27:26.106280' WHERE "videos"."id" = 1
4120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4121
+  (0.1ms) SAVEPOINT active_record_1
4122
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:26 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:27:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4124
+ Unfinished job found. Updating details.
4125
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4126
+  (0.1ms) SAVEPOINT active_record_1
4127
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:26 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:27:26 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4129
+  (0.0ms) SAVEPOINT active_record_1
4130
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:27:26.118452' WHERE "videos"."id" = 1
4131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4132
+  (0.1ms) SAVEPOINT active_record_1
4133
+ SQL (0.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:26 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:27:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4135
+ Unfinished job found. Updating details.
4136
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4137
+  (0.1ms) SAVEPOINT active_record_1
4138
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:27:26 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:27:26 UTC +00:00], ["video_id", 1]]
4139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4140
+  (0.0ms) SAVEPOINT active_record_1
4141
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:27:26.143027' WHERE "videos"."id" = 1
4142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4143
+  (0.1ms) SAVEPOINT active_record_1
4144
+ Origin URL changed. Creating new ZenCoder job.
4145
+ SQL (42.3ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:26 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4146
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4147
+  (0.1ms) SAVEPOINT active_record_1
4148
+ Origin URL changed. Creating new ZenCoder job.
4149
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:28 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:28 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4150
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4151
+  (0.1ms) SAVEPOINT active_record_1
4152
+ Origin URL changed. Creating new ZenCoder job.
4153
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4154
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4155
+  (0.1ms) SAVEPOINT active_record_1
4156
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4158
+  (0.2ms) SAVEPOINT active_record_1
4159
+ Origin URL changed. Creating new ZenCoder job.
4160
+ ZenCoder job created, ID = 123
4161
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:32:30.324496', "updated_at" = '2011-12-08 20:32:30.325080' WHERE "videos"."id" = 1
4162
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4163
+  (0.2ms) SAVEPOINT active_record_1
4164
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4166
+  (0.1ms) SAVEPOINT active_record_1
4167
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4169
+  (0.1ms) SAVEPOINT active_record_1
4170
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4172
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4173
+  (0.1ms) SAVEPOINT active_record_1
4174
+ SQL (1.0ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["origin_url", nil], ["title", "Last of the Mohecans"], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4176
+  (0.1ms) SAVEPOINT active_record_1
4177
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4179
+ Unfinished job found. Updating details.
4180
+  (0.1ms) SAVEPOINT active_record_1
4181
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:32:30.608201' WHERE "videos"."id" = 1
4182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4183
+  (0.1ms) SAVEPOINT active_record_1
4184
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4185
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4186
+ Unfinished job found. Updating details.
4187
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4188
+  (0.1ms) SAVEPOINT active_record_1
4189
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4190
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4191
+  (0.0ms) SAVEPOINT active_record_1
4192
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:32:30.620262' WHERE "videos"."id" = 1
4193
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4194
+  (0.1ms) SAVEPOINT active_record_1
4195
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4196
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4197
+ Unfinished job found. Updating details.
4198
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4199
+  (0.1ms) SAVEPOINT active_record_1
4200
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:32:30 UTC +00:00], ["video_id", 1]]
4201
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4202
+  (0.0ms) SAVEPOINT active_record_1
4203
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:32:30.645432' WHERE "videos"."id" = 1
4204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4205
+  (0.1ms) SAVEPOINT active_record_1
4206
+ Origin URL changed. Creating new ZenCoder job.
4207
+ SQL (41.5ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:49 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:49 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4208
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4209
+  (0.1ms) SAVEPOINT active_record_1
4210
+ Origin URL changed. Creating new ZenCoder job.
4211
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:51 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:51 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4212
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4213
+  (0.1ms) SAVEPOINT active_record_1
4214
+ Origin URL changed. Creating new ZenCoder job.
4215
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:52 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:52 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4216
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4217
+  (0.1ms) SAVEPOINT active_record_1
4218
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:52 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:52 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4220
+  (0.2ms) SAVEPOINT active_record_1
4221
+ Origin URL changed. Creating new ZenCoder job.
4222
+ ZenCoder job created, ID = 123
4223
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:32:52.971458', "updated_at" = '2011-12-08 20:32:52.972015' WHERE "videos"."id" = 1
4224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4225
+  (0.1ms) SAVEPOINT active_record_1
4226
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:52 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:52 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4227
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4228
+  (0.1ms) SAVEPOINT active_record_1
4229
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:52 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:52 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4230
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4231
+  (0.1ms) SAVEPOINT active_record_1
4232
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4233
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4234
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4235
+  (0.1ms) SAVEPOINT active_record_1
4236
+ SQL (1.0ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["origin_url", nil], ["title", "Last of the Mohecans"], ["updated_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4237
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4238
+  (0.1ms) SAVEPOINT active_record_1
4239
+ SQL (0.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4240
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4241
+ Unfinished job found. Updating details.
4242
+  (0.1ms) SAVEPOINT active_record_1
4243
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:32:53.255740' WHERE "videos"."id" = 1
4244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4245
+  (0.1ms) SAVEPOINT active_record_1
4246
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4248
+ Unfinished job found. Updating details.
4249
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4250
+  (0.1ms) SAVEPOINT active_record_1
4251
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4252
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4253
+  (0.0ms) SAVEPOINT active_record_1
4254
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:32:53.267859' WHERE "videos"."id" = 1
4255
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4256
+  (0.1ms) SAVEPOINT active_record_1
4257
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4258
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4259
+ Unfinished job found. Updating details.
4260
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4261
+  (0.1ms) SAVEPOINT active_record_1
4262
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:32:53 UTC +00:00], ["video_id", 1]]
4263
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4264
+  (0.0ms) SAVEPOINT active_record_1
4265
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:32:53.292991' WHERE "videos"."id" = 1
4266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4267
+  (0.1ms) SAVEPOINT active_record_1
4268
+ Origin URL changed. Creating new ZenCoder job.
4269
+ SQL (41.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:22 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:34:22 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4270
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4271
+  (0.1ms) SAVEPOINT active_record_1
4272
+ Origin URL changed. Creating new ZenCoder job.
4273
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:24 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:34:24 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4274
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4275
+  (0.1ms) SAVEPOINT active_record_1
4276
+ Origin URL changed. Creating new ZenCoder job.
4277
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:26 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:34:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4278
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4279
+  (0.1ms) SAVEPOINT active_record_1
4280
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:26 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:34:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4281
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4282
+  (0.2ms) SAVEPOINT active_record_1
4283
+ Origin URL changed. Creating new ZenCoder job.
4284
+ ZenCoder job created, ID = 123
4285
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:34:26.416543', "updated_at" = '2011-12-08 20:34:26.417147' WHERE "videos"."id" = 1
4286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4287
+  (0.2ms) SAVEPOINT active_record_1
4288
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:26 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:34:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4290
+  (0.1ms) SAVEPOINT active_record_1
4291
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:26 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:34:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4293
+  (0.1ms) SAVEPOINT active_record_1
4294
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:26 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:34:26 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4296
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4297
+  (0.1ms) SAVEPOINT active_record_1
4298
+ Origin URL changed. Creating new ZenCoder job.
4299
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["origin_url", "http://foo.com/somepath/sample.mov"], ["title", "Last of the Mohecans"], ["updated_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4300
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4301
+  (0.1ms) SAVEPOINT active_record_1
4302
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4303
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4304
+ Unfinished job found. Updating details.
4305
+  (0.1ms) SAVEPOINT active_record_1
4306
+  (0.5ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:34:28.489355' WHERE "videos"."id" = 1
4307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4308
+  (0.1ms) SAVEPOINT active_record_1
4309
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4310
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4311
+ Unfinished job found. Updating details.
4312
+ VideoFile Load (0.4ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4313
+  (0.1ms) SAVEPOINT active_record_1
4314
+ SQL (2.6ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4315
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4316
+  (0.1ms) SAVEPOINT active_record_1
4317
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:34:28.513405' WHERE "videos"."id" = 1
4318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4319
+  (0.2ms) SAVEPOINT active_record_1
4320
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4322
+ Unfinished job found. Updating details.
4323
+ VideoFileThumbnail Load (0.4ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4324
+  (0.1ms) SAVEPOINT active_record_1
4325
+ SQL (1.7ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:34:28 UTC +00:00], ["video_id", 1]]
4326
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4327
+  (0.1ms) SAVEPOINT active_record_1
4328
+  (0.4ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:34:28.562853' WHERE "videos"."id" = 1
4329
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4330
+  (0.1ms) SAVEPOINT active_record_1
4331
+ Origin URL changed. Creating new ZenCoder job.
4332
+ SQL (41.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:26 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:35:26 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4333
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4334
+  (0.1ms) SAVEPOINT active_record_1
4335
+ Origin URL changed. Creating new ZenCoder job.
4336
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:28 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:35:28 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4337
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4338
+  (0.1ms) SAVEPOINT active_record_1
4339
+ Origin URL changed. Creating new ZenCoder job.
4340
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:29 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:35:29 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4341
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4342
+  (0.1ms) SAVEPOINT active_record_1
4343
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:29 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:35:29 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4345
+  (0.2ms) SAVEPOINT active_record_1
4346
+ Origin URL changed. Creating new ZenCoder job.
4347
+ ZenCoder job created, ID = 123
4348
+  (0.9ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:35:29.926769', "updated_at" = '2011-12-08 20:35:29.927322' WHERE "videos"."id" = 1
4349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4350
+  (0.1ms) SAVEPOINT active_record_1
4351
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:29 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:35:29 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4353
+  (0.1ms) SAVEPOINT active_record_1
4354
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:29 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:35:29 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4356
+  (0.1ms) SAVEPOINT active_record_1
4357
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:30 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:35:30 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4359
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4360
+  (0.1ms) SAVEPOINT active_record_1
4361
+ Origin URL changed. Creating new ZenCoder job.
4362
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:31 UTC +00:00], ["origin_url", "http://foo.com/somepath/sample.mov"], ["title", "Last of the Mohecans"], ["updated_at", Thu, 08 Dec 2011 20:35:31 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4363
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4364
+  (0.1ms) SAVEPOINT active_record_1
4365
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:31 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:35:31 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4367
+ Unfinished job found. Updating details.
4368
+  (0.1ms) SAVEPOINT active_record_1
4369
+  (0.6ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:35:32.004428' WHERE "videos"."id" = 1
4370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4371
+  (0.2ms) SAVEPOINT active_record_1
4372
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:32 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:35:32 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4374
+ Unfinished job found. Updating details.
4375
+ VideoFile Load (0.4ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4376
+  (0.1ms) SAVEPOINT active_record_1
4377
+ SQL (2.5ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:32 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:35:32 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4378
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4379
+  (0.1ms) SAVEPOINT active_record_1
4380
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:35:32.029102' WHERE "videos"."id" = 1
4381
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4382
+  (0.2ms) SAVEPOINT active_record_1
4383
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:32 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:35:32 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4384
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4385
+ Unfinished job found. Updating details.
4386
+ VideoFileThumbnail Load (0.4ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4387
+  (0.1ms) SAVEPOINT active_record_1
4388
+ SQL (1.7ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:35:32 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:35:32 UTC +00:00], ["video_id", 1]]
4389
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4390
+  (0.1ms) SAVEPOINT active_record_1
4391
+  (0.4ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:35:32.078228' WHERE "videos"."id" = 1
4392
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4393
+  (0.1ms) SAVEPOINT active_record_1
4394
+ Origin URL changed. Creating new ZenCoder job.
4395
+ SQL (41.4ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:01 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:37:01 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4396
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4397
+  (0.1ms) SAVEPOINT active_record_1
4398
+ Origin URL changed. Creating new ZenCoder job.
4399
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:03 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:37:03 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4400
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4401
+  (0.1ms) SAVEPOINT active_record_1
4402
+ Origin URL changed. Creating new ZenCoder job.
4403
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4404
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4405
+  (0.1ms) SAVEPOINT active_record_1
4406
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4407
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4408
+  (0.2ms) SAVEPOINT active_record_1
4409
+ Origin URL changed. Creating new ZenCoder job.
4410
+ ZenCoder job created, ID = 123
4411
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:37:05.513921', "updated_at" = '2011-12-08 20:37:05.514472' WHERE "videos"."id" = 1
4412
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4413
+  (0.2ms) SAVEPOINT active_record_1
4414
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4416
+  (0.1ms) SAVEPOINT active_record_1
4417
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4418
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4419
+  (0.1ms) SAVEPOINT active_record_1
4420
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4421
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4422
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4423
+  (0.1ms) SAVEPOINT active_record_1
4424
+ Origin URL changed. Creating new ZenCoder job.
4425
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
4426
+  (0.1ms) SAVEPOINT active_record_1
4427
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4429
+ Unfinished job found. Updating details.
4430
+  (0.1ms) SAVEPOINT active_record_1
4431
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:37:05.800991' WHERE "videos"."id" = 1
4432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4433
+  (0.1ms) SAVEPOINT active_record_1
4434
+ SQL (0.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4435
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4436
+ Unfinished job found. Updating details.
4437
+ VideoFile Load (0.2ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4438
+  (0.1ms) SAVEPOINT active_record_1
4439
+ SQL (1.3ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4441
+  (0.0ms) SAVEPOINT active_record_1
4442
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:37:05.813074' WHERE "videos"."id" = 1
4443
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4444
+  (0.1ms) SAVEPOINT active_record_1
4445
+ SQL (0.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4447
+ Unfinished job found. Updating details.
4448
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4449
+  (0.1ms) SAVEPOINT active_record_1
4450
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:37:05 UTC +00:00], ["video_id", 1]]
4451
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4452
+  (0.0ms) SAVEPOINT active_record_1
4453
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:37:05.837411' WHERE "videos"."id" = 1
4454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4455
+  (0.1ms) SAVEPOINT active_record_1
4456
+ Origin URL changed. Creating new ZenCoder job.
4457
+ SQL (42.3ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:06 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:06 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4458
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4459
+  (0.1ms) SAVEPOINT active_record_1
4460
+ Origin URL changed. Creating new ZenCoder job.
4461
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:08 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:08 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4462
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4463
+  (0.1ms) SAVEPOINT active_record_1
4464
+ Origin URL changed. Creating new ZenCoder job.
4465
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:10 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4466
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4467
+  (0.1ms) SAVEPOINT active_record_1
4468
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4470
+  (0.2ms) SAVEPOINT active_record_1
4471
+ Origin URL changed. Creating new ZenCoder job.
4472
+ ZenCoder job created, ID = 123
4473
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:38:10.288970', "updated_at" = '2011-12-08 20:38:10.289538' WHERE "videos"."id" = 1
4474
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4475
+  (0.2ms) SAVEPOINT active_record_1
4476
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4478
+  (0.1ms) SAVEPOINT active_record_1
4479
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:10 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:10 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4481
+  (0.1ms) SAVEPOINT active_record_1
4482
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:10 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:38:10 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4483
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4484
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4485
+  (0.1ms) SAVEPOINT active_record_1
4486
+ Origin URL changed. Creating new ZenCoder job.
4487
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["origin_url", "http://foo.com/somepath/sample.mov"], ["title", "Last of the Mohecans"], ["updated_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4488
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4489
+  (0.2ms) SAVEPOINT active_record_1
4490
+ SQL (2.1ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4492
+ Unfinished job found. Updating details.
4493
+  (0.1ms) SAVEPOINT active_record_1
4494
+  (0.5ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:38:12.416293' WHERE "videos"."id" = 1
4495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4496
+  (0.2ms) SAVEPOINT active_record_1
4497
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4498
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4499
+ Unfinished job found. Updating details.
4500
+ VideoFile Load (0.4ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4501
+  (0.2ms) SAVEPOINT active_record_1
4502
+ SQL (2.6ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4504
+  (0.1ms) SAVEPOINT active_record_1
4505
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:38:12.440579' WHERE "videos"."id" = 1
4506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4507
+  (0.2ms) SAVEPOINT active_record_1
4508
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4510
+ Unfinished job found. Updating details.
4511
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4512
+  (0.1ms) SAVEPOINT active_record_1
4513
+ SQL (0.9ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:38:12 UTC +00:00], ["video_id", 1]]
4514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4515
+  (0.0ms) SAVEPOINT active_record_1
4516
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:38:12.482173' WHERE "videos"."id" = 1
4517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4518
+  (0.1ms) SAVEPOINT active_record_1
4519
+ Origin URL changed. Creating new ZenCoder job.
4520
+ SQL (41.5ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:40 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:40 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4521
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4522
+  (0.1ms) SAVEPOINT active_record_1
4523
+ Origin URL changed. Creating new ZenCoder job.
4524
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:42 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:42 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4525
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4526
+  (0.1ms) SAVEPOINT active_record_1
4527
+ Origin URL changed. Creating new ZenCoder job.
4528
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:44 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:44 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4529
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4530
+  (0.1ms) SAVEPOINT active_record_1
4531
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:44 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:44 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4533
+  (0.2ms) SAVEPOINT active_record_1
4534
+ Origin URL changed. Creating new ZenCoder job.
4535
+ ZenCoder job created, ID = 123
4536
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:38:44.098920', "updated_at" = '2011-12-08 20:38:44.099471' WHERE "videos"."id" = 1
4537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4538
+  (0.1ms) SAVEPOINT active_record_1
4539
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:44 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:44 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4541
+  (0.1ms) SAVEPOINT active_record_1
4542
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:44 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:44 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4543
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4544
+  (0.1ms) SAVEPOINT active_record_1
4545
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:44 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:38:44 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4547
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4548
+  (0.1ms) SAVEPOINT active_record_1
4549
+ Origin URL changed. Creating new ZenCoder job.
4550
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["origin_url", "http://foo.com/somepath/sample.mov"], ["title", "Last of the Mohecans"], ["updated_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4551
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4552
+  (0.2ms) SAVEPOINT active_record_1
4553
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4555
+ Unfinished job found. Updating details.
4556
+  (0.1ms) SAVEPOINT active_record_1
4557
+  (0.5ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:38:46.207885' WHERE "videos"."id" = 1
4558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4559
+  (0.2ms) SAVEPOINT active_record_1
4560
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4561
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4562
+ Unfinished job found. Updating details.
4563
+ VideoFile Load (0.4ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4564
+  (0.1ms) SAVEPOINT active_record_1
4565
+ SQL (2.5ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4567
+  (0.1ms) SAVEPOINT active_record_1
4568
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:38:46.231729' WHERE "videos"."id" = 1
4569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4570
+  (0.2ms) SAVEPOINT active_record_1
4571
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4573
+ Unfinished job found. Updating details.
4574
+ VideoFileThumbnail Load (0.4ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4575
+  (0.1ms) SAVEPOINT active_record_1
4576
+ SQL (1.7ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:38:46 UTC +00:00], ["video_id", 1]]
4577
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4578
+  (0.1ms) SAVEPOINT active_record_1
4579
+  (0.4ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:38:46.280740' WHERE "videos"."id" = 1
4580
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4581
+  (0.1ms) SAVEPOINT active_record_1
4582
+ Origin URL changed. Creating new ZenCoder job.
4583
+ SQL (41.5ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:05 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:41:05 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4584
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4585
+  (0.1ms) SAVEPOINT active_record_1
4586
+ Origin URL changed. Creating new ZenCoder job.
4587
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:07 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:41:07 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4588
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4589
+  (0.1ms) SAVEPOINT active_record_1
4590
+ Origin URL changed. Creating new ZenCoder job.
4591
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:09 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:41:09 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4592
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4593
+  (0.1ms) SAVEPOINT active_record_1
4594
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:09 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:41:09 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4595
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4596
+  (0.2ms) SAVEPOINT active_record_1
4597
+ Origin URL changed. Creating new ZenCoder job.
4598
+ ZenCoder job created, ID = 123
4599
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:41:09.236291', "updated_at" = '2011-12-08 20:41:09.236920' WHERE "videos"."id" = 1
4600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4601
+  (0.2ms) SAVEPOINT active_record_1
4602
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:09 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:41:09 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4603
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4604
+  (0.1ms) SAVEPOINT active_record_1
4605
+ SQL (1.9ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:09 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:41:09 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4607
+  (0.1ms) SAVEPOINT active_record_1
4608
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:09 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:41:09 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4609
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4610
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4611
+  (0.1ms) SAVEPOINT active_record_1
4612
+ Origin URL changed. Creating new ZenCoder job.
4613
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["origin_url", "http://foo.com/somepath/super kittehs!.mov"], ["title", "Last of the Mohecans"], ["updated_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4614
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4615
+  (0.2ms) SAVEPOINT active_record_1
4616
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4617
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4618
+ Unfinished job found. Updating details.
4619
+  (0.1ms) SAVEPOINT active_record_1
4620
+  (0.5ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:41:11.247309' WHERE "videos"."id" = 1
4621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4622
+  (0.2ms) SAVEPOINT active_record_1
4623
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4624
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4625
+ Unfinished job found. Updating details.
4626
+ VideoFile Load (0.4ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4627
+  (0.1ms) SAVEPOINT active_record_1
4628
+ SQL (2.6ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4630
+  (0.1ms) SAVEPOINT active_record_1
4631
+  (0.4ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:41:11.271213' WHERE "videos"."id" = 1
4632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4633
+  (0.2ms) SAVEPOINT active_record_1
4634
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4636
+ Unfinished job found. Updating details.
4637
+ VideoFileThumbnail Load (0.4ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4638
+  (0.1ms) SAVEPOINT active_record_1
4639
+ SQL (1.7ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:41:11 UTC +00:00], ["video_id", 1]]
4640
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4641
+  (0.1ms) SAVEPOINT active_record_1
4642
+  (0.4ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:41:11.320359' WHERE "videos"."id" = 1
4643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4644
+  (0.1ms) SAVEPOINT active_record_1
4645
+ Origin URL changed. Creating new ZenCoder job.
4646
+ SQL (41.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:34 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/super_tricks.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:44:34 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4647
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4648
+  (0.1ms) SAVEPOINT active_record_1
4649
+ Origin URL changed. Creating new ZenCoder job.
4650
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:36 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:44:36 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4651
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4652
+  (0.1ms) SAVEPOINT active_record_1
4653
+ Origin URL changed. Creating new ZenCoder job.
4654
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:38 UTC +00:00], ["origin_url", "http://foo.com/somepath/2/4/Rainbows and puppies [HD].with unicorns.mov"], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:44:38 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4655
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4656
+  (0.1ms) SAVEPOINT active_record_1
4657
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:38 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:44:38 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4659
+  (0.2ms) SAVEPOINT active_record_1
4660
+ Origin URL changed. Creating new ZenCoder job.
4661
+ ZenCoder job created, ID = 123
4662
+  (0.6ms) UPDATE "videos" SET "origin_url" = 'http://foo.com/1/2/4', "zencoder_job_id" = '123', "zencoder_job_status" = 'new', "zencoder_job_created" = '2011-12-08 20:44:38.384602', "updated_at" = '2011-12-08 20:44:38.385251' WHERE "videos"."id" = 1
4663
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4664
+  (0.2ms) SAVEPOINT active_record_1
4665
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:38 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:44:38 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "finished"]]
4666
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4667
+  (0.1ms) SAVEPOINT active_record_1
4668
+ SQL (1.8ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:38 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:44:38 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4669
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4670
+  (0.1ms) SAVEPOINT active_record_1
4671
+ SQL (0.8ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:38 UTC +00:00], ["duration_sec", 120], ["error_message", nil], ["file_size", 19293819], ["format", "webm"], ["height", 600], ["state", "finished"], ["updated_at", Thu, 08 Dec 2011 20:44:38 UTC +00:00], ["url", "http://parallaxp.s3.amazonaws.com/videos/zc/video-title/file.1.off"], ["video_id", 1], ["width", 800], ["zencoder_file_id", 12345329]]
4672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4673
+ VideoFile Load (0.3ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1 AND "video_files"."format" = 'webm' LIMIT 1
4674
+  (0.1ms) SAVEPOINT active_record_1
4675
+ Origin URL changed. Creating new ZenCoder job.
4676
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["origin_url", "http://foo.com/somepath/super kittehs!.mov"], ["title", "Last of the Mohecans"], ["updated_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", nil]]
4677
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4678
+  (0.2ms) SAVEPOINT active_record_1
4679
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "new"]]
4680
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4681
+ Unfinished job found. Updating details.
4682
+  (0.1ms) SAVEPOINT active_record_1
4683
+  (0.5ms) UPDATE "videos" SET "zencoder_job_status" = 'makin progress', "updated_at" = '2011-12-08 20:44:40.499839' WHERE "videos"."id" = 1
4684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4685
+  (0.2ms) SAVEPOINT active_record_1
4686
+ SQL (1.7ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4688
+ Unfinished job found. Updating details.
4689
+ VideoFile Load (0.4ms) SELECT "video_files".* FROM "video_files" WHERE "video_files"."video_id" = 1
4690
+  (0.1ms) SAVEPOINT active_record_1
4691
+ SQL (2.6ms) INSERT INTO "video_files" ("created_at", "duration_sec", "error_message", "file_size", "format", "height", "state", "updated_at", "url", "video_id", "width", "zencoder_file_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["duration_sec", nil], ["error_message", nil], ["file_size", nil], ["format", "flv"], ["height", nil], ["state", nil], ["updated_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["url", "http://s3.com/6/7/8.flv"], ["video_id", 1], ["width", nil], ["zencoder_file_id", nil]]
4692
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4693
+  (0.1ms) SAVEPOINT active_record_1
4694
+  (0.3ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:44:40.523806' WHERE "videos"."id" = 1
4695
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4696
+  (0.2ms) SAVEPOINT active_record_1
4697
+ SQL (1.6ms) INSERT INTO "videos" ("created_at", "origin_url", "title", "updated_at", "zencoder_job_created", "zencoder_job_finished", "zencoder_job_id", "zencoder_job_status") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["origin_url", nil], ["title", "At the Foo Bar"], ["updated_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["zencoder_job_created", nil], ["zencoder_job_finished", nil], ["zencoder_job_id", nil], ["zencoder_job_status", "processing"]]
4698
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4699
+ Unfinished job found. Updating details.
4700
+ VideoFileThumbnail Load (0.2ms) SELECT "video_file_thumbnails".* FROM "video_file_thumbnails" WHERE "video_file_thumbnails"."video_id" = 1
4701
+  (0.1ms) SAVEPOINT active_record_1
4702
+ SQL (0.8ms) INSERT INTO "video_file_thumbnails" ("created_at", "thumbnail_content_type", "thumbnail_file_name", "thumbnail_file_size", "thumbnail_updated_at", "updated_at", "video_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["thumbnail_content_type", "png"], ["thumbnail_file_name", "http://s3.com/1/2/3.png"], ["thumbnail_file_size", nil], ["thumbnail_updated_at", nil], ["updated_at", Thu, 08 Dec 2011 20:44:40 UTC +00:00], ["video_id", 1]]
4703
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4704
+  (0.0ms) SAVEPOINT active_record_1
4705
+  (0.2ms) UPDATE "videos" SET "zencoder_job_status" = 'finished', "updated_at" = '2011-12-08 20:44:40.563681' WHERE "videos"."id" = 1
4706
+  (0.1ms) RELEASE SAVEPOINT active_record_1