r7streamio_ffmpeg 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/ffmpeg/transcoder.rb +11 -2
- data/lib/ffmpeg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWNjNTkwZWVmZDhjZGI2NmZkYWRkMjhjOGExOTcyZjU3ZjgyZDdjMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OThjNWNkY2I5Y2M5OTgzMWU3M2IyYjRjMzI2MjI3MjViZGUzOGYzOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzdiNGZlNWI3NTUwNWE3MzNjNzA1MjViZWM5NjJlNGZhMDM4ZjQwNTE3ZTk0
|
10
|
+
N2JmZjQ0NWI1NTRkY2MwYmExMThiNzYzMGNkZmY3OTZkMGU5N2ZhNzM2MDc1
|
11
|
+
MzAzNjBiYzMxY2Y5YTE2ODQ0YmUwZGUyY2Y0Y2E0YTNlMGI4YzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzY3NGM5NzM0NzdlZTU5OWZlYTdiMGNiYTQxOGY2MGNiYTI0NGUwZmE1Zjdm
|
14
|
+
OThmNzlmNmM1ZTAyODkwMTAyY2E0ZDBkZDMwMWVlMTE0YzA1ZjZjYmZhNGRi
|
15
|
+
ZGQ2NTNlMDFjZTEzMTU3NzljODllMTBjMzFkNDQ3OTcwZWY2MjU=
|
data/lib/ffmpeg/transcoder.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
data/lib/ffmpeg/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|