r7streamio_ffmpeg 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGExM2E0YjUxZjliMThlMmRmNTE1YWMyOGU1ZTRhZTQ0MjkwM2IwNQ==
4
+ ZWNjNTkwZWVmZDhjZGI2NmZkYWRkMjhjOGExOTcyZjU3ZjgyZDdjMg==
5
5
  data.tar.gz: !binary |-
6
- ZDhlNzY5ZWQ3YWUwMmRhNjFiYTA3ZjdjZDkzYmJmYmM3MmM4ZGFjNw==
6
+ OThjNWNkY2I5Y2M5OTgzMWU3M2IyYjRjMzI2MjI3MjViZGUzOGYzOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjEzYjAzOTNjNjg5N2EwMTUxZjFhNzllZTUyYTZlYzNiYzM1OGQzMzFlODM3
10
- MzhmOTU4OGFhNmQxZjJmMzY0NTQ4NTEyNDBhMzU3ODQ3OGU5MDNjZjY0MWFl
11
- ZjhkZGI4ODgwNDA1OTVkOTBlZDc4ZDk0ODFmMDA5ZTU2M2ZjZTE=
9
+ NzdiNGZlNWI3NTUwNWE3MzNjNzA1MjViZWM5NjJlNGZhMDM4ZjQwNTE3ZTk0
10
+ N2JmZjQ0NWI1NTRkY2MwYmExMThiNzYzMGNkZmY3OTZkMGU5N2ZhNzM2MDc1
11
+ MzAzNjBiYzMxY2Y5YTE2ODQ0YmUwZGUyY2Y0Y2E0YTNlMGI4YzI=
12
12
  data.tar.gz: !binary |-
13
- MmFlYmVhZWIxYTQ0MTQ4MjlkOTk4YzI3YzA0NmU4NzBmM2ZhY2I5MjA5YmE1
14
- MjFjNzIzNjg5OGM3Y2NkYWUyZmU4NmUzZmQ1ODM2NDc2MDcwYTUwYThhMDVh
15
- ZGVjOTY1MmMyZTFiM2RkMjI3YzA3OTgzMTljODJhYzMzNjM3YTk=
13
+ YzY3NGM5NzM0NzdlZTU5OWZlYTdiMGNiYTQxOGY2MGNiYTI0NGUwZmE1Zjdm
14
+ OThmNzlmNmM1ZTAyODkwMTAyY2E0ZDBkZDMwMWVlMTE0YzA1ZjZjYmZhNGRi
15
+ ZGQ2NTNlMDFjZTEzMTU3NzljODllMTBjMzFkNDQ3OTcwZWY2MjU=
@@ -31,6 +31,10 @@ module FFMPEG
31
31
  apply_transcoder_options
32
32
  end
33
33
 
34
+ def errors
35
+ @errors
36
+ end
37
+
34
38
  def run(&block)
35
39
  transcode_movie(&block)
36
40
  if @transcoder_options[:validate]
@@ -82,9 +86,12 @@ module FFMPEG
82
86
  end
83
87
 
84
88
  rescue Timeout::Error => e
85
- FFMPEG.logger.error "Process hung...\n@command\n#{@command}\nOutput\n#{@output}\n"
89
+ msg = "Process hung...\n@command\n#{@command}\nOutput\n#{@output}\n"
90
+ @errors << msg
91
+ FFMPEG.logger.error msg
86
92
  raise Error, "Process hung. Full output: #{@output}"
87
93
  end
94
+ @errors << @output unless /(error|invalid|fail)/i.match(@output).nil?
88
95
  end
89
96
  end
90
97
 
@@ -94,7 +101,9 @@ module FFMPEG
94
101
  FFMPEG.logger.info "Transcoding of #{@movie.path} to #{@output_file} succeeded\n"
95
102
  else
96
103
  errors = "Errors: #{@errors.join(", ")}. "
97
- FFMPEG.logger.error "Failed encoding...\n#{@command}\n\n#{@output}\n#{errors}\n"
104
+ msg = "Failed encoding...\n#{@command}\n\n#{@output}\n#{errors}\n"
105
+ @errors << msg
106
+ FFMPEG.logger.error msg
98
107
  raise Error, "Failed encoding.#{errors}Full output: #{@output}"
99
108
  end
100
109
  end
@@ -1,3 +1,3 @@
1
1
  module FFMPEG
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r7streamio_ffmpeg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Martins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-24 00:00:00.000000000 Z
11
+ date: 2014-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec