streamio-ffmpeg 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.4.3 20010-04-06
2
+
3
+ * Correctly identify invalid movies on latest ffmpeg build (r22811)
4
+
1
5
  == 0.4.2 20010-04-06
2
6
 
3
7
  * Escape the path to handle spaces in filenames and avoid CLI injection attacks (thanks J. Weir!)
data/README.rdoc CHANGED
@@ -6,7 +6,7 @@ Simple yet powerful wrapper around the ffmpeg command for reading metadata and t
6
6
 
7
7
  (sudo) gem install streamio-ffmpeg
8
8
 
9
- This version is written against an ffmpeg build from january 2010. So expect things to fail if you're using an earlier (or much later) version. Output and input standards have inconveniently changed rather a lot between versions of ffmpeg. My goal is to keep this library in sync with new versions of ffmpeg as they come along.
9
+ This version is written against an ffmpeg build from april 2010 (tested against r22811). So no guarantees with earlier (or much later) versions. Output and input standards have inconveniently changed rather a lot between versions of ffmpeg. My goal is to keep this library in sync with new versions of ffmpeg as they come along.
10
10
 
11
11
  == Usage
12
12
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/lib/ffmpeg/movie.rb CHANGED
@@ -12,7 +12,7 @@ module FFMPEG
12
12
  stdin, stdout, stderr = Open3.popen3("ffmpeg -i '#{path}'") # Output will land in stderr
13
13
  output = stderr.read
14
14
 
15
- @valid = output[/Unknown format/].nil?
15
+ @valid = output["Unknown format"].nil? && output["Invalid data found when processing input"].nil?
16
16
 
17
17
  output[/Duration: (\d{2}):(\d{2}):(\d{2}\.\d{1})/]
18
18
  @duration = ($1.to_i*60*60) + ($2.to_i*60) + $3.to_f
@@ -5,5 +5,5 @@ require 'ffmpeg/transcoder'
5
5
  require 'ffmpeg/encoding_options'
6
6
 
7
7
  module FFMPEG
8
- VERSION = '0.4.2'
8
+ VERSION = '0.4.3'
9
9
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{streamio-ffmpeg}
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Backeus"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 2
9
- version: 0.4.2
8
+ - 3
9
+ version: 0.4.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Backeus