streamio-ffmpeg 0.7.5 → 0.7.6

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.7.6 2011-01-14
2
+
3
+ * Another ruby 1.9 encoding fix
4
+
1
5
  == 0.7.5 2011-01-14
2
6
 
3
7
  * Fixed some ruby 1.9 issues
@@ -27,6 +27,7 @@ module FFMPEG
27
27
  last_output = nil
28
28
  Open3.popen3(command) do |stdin, stdout, stderr|
29
29
  stderr.each("r") do |line|
30
+ fix_encoding(line)
30
31
  output << line
31
32
  if line =~ /time=(\d+.\d+)/
32
33
  time = $1.to_f
@@ -41,8 +42,8 @@ module FFMPEG
41
42
  end
42
43
 
43
44
  if encoding_succeeded?
44
- FFMPEG.logger.info "Transcoding of #{@movie.path} to #{@output_file} succeeded\n"
45
45
  yield(1.0) if block_given?
46
+ FFMPEG.logger.info "Transcoding of #{@movie.path} to #{@output_file} succeeded\n"
46
47
  else
47
48
  errors = @errors.empty? ? "" : " Errors: #{@errors.join(", ")}. "
48
49
  FFMPEG.logger.error "Failed encoding...\n#{command}\n\n#{output}\n#{errors}\n"
@@ -102,5 +103,11 @@ module FFMPEG
102
103
  return false if @raw_options.is_a?(String)
103
104
  true
104
105
  end
106
+
107
+ def fix_encoding(output)
108
+ output[/test/]
109
+ rescue ArgumentError
110
+ output.force_encoding("ISO-8859-1")
111
+ end
105
112
  end
106
113
  end
@@ -1,3 +1,3 @@
1
1
  module FFMPEG
2
- VERSION = "0.7.5"
2
+ VERSION = "0.7.6"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 5
9
- version: 0.7.5
8
+ - 6
9
+ version: 0.7.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Backeus