streamio-ffmpeg 0.6.3 → 0.6.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.
- data/CHANGELOG +5 -1
- data/README.rdoc +5 -0
- data/VERSION +1 -1
- data/lib/ffmpeg/encoding_options.rb +2 -1
- data/spec/ffmpeg/encoding_options_spec.rb +1 -1
- data/spec/ffmpeg/movie_spec.rb +2 -2
- data/streamio-ffmpeg.gemspec +4 -4
- metadata +7 -4
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -10,6 +10,11 @@ This version is written against an ffmpeg build from april 2010 (tested against
|
|
10
10
|
|
11
11
|
== Usage
|
12
12
|
|
13
|
+
=== Require the gem
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'streamio-ffmpeg'
|
17
|
+
|
13
18
|
=== Reading Metadata
|
14
19
|
|
15
20
|
movie = FFMPEG::Movie.new("path/to/movie.mov")
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.4
|
@@ -24,7 +24,8 @@ module FFMPEG
|
|
24
24
|
|
25
25
|
private
|
26
26
|
def supports_option?(option)
|
27
|
-
|
27
|
+
option = RUBY_VERSION < "1.9" ? "convert_#{option}" : "convert_#{option}".to_sym
|
28
|
+
private_methods.include?(option)
|
28
29
|
end
|
29
30
|
|
30
31
|
def convert_aspect(value)
|
@@ -34,7 +34,7 @@ module FFMPEG
|
|
34
34
|
|
35
35
|
it "should add calculated aspect ratio" do
|
36
36
|
EncodingOptions.new(:resolution => "640x480").to_s.should include("-aspect 1.3333333")
|
37
|
-
EncodingOptions.new(:resolution => "640x360").to_s.should include("-aspect 1.
|
37
|
+
EncodingOptions.new(:resolution => "640x360").to_s.should include("-aspect 1.7777777777777")
|
38
38
|
end
|
39
39
|
|
40
40
|
it "should use specified aspect ratio if given" do
|
data/spec/ffmpeg/movie_spec.rb
CHANGED
@@ -54,7 +54,7 @@ module FFMPEG
|
|
54
54
|
end
|
55
55
|
|
56
56
|
it "should have correct calculated_aspect_ratio" do
|
57
|
-
@movie.calculated_aspect_ratio.to_s.should == "1.73827160493827"
|
57
|
+
@movie.calculated_aspect_ratio.to_s[0..15].should == "1.73827160493827" # substringed to be 1.9 compatible
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -125,7 +125,7 @@ module FFMPEG
|
|
125
125
|
end
|
126
126
|
|
127
127
|
it "should calculate the aspect ratio" do
|
128
|
-
@movie.calculated_aspect_ratio.to_s.should == "1.33333333333333"
|
128
|
+
@movie.calculated_aspect_ratio.to_s[0..15].should == "1.33333333333333" # substringed to be 1.9 compatible
|
129
129
|
end
|
130
130
|
end
|
131
131
|
end
|
data/streamio-ffmpeg.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{streamio-ffmpeg}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.4"
|
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"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-12}
|
13
13
|
s.description = %q{Simple wrapper around ffmpeg to get metadata from movies and do transcoding}
|
14
14
|
s.email = %q{duztdruid@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
|
|
44
44
|
s.homepage = %q{http://github.com/streamio/streamio-ffmpeg}
|
45
45
|
s.rdoc_options = ["--charset=UTF-8"]
|
46
46
|
s.require_paths = ["lib"]
|
47
|
-
s.rubygems_version = %q{1.3.6}
|
47
|
+
s.rubygems_version = %q{1.3.6.1}
|
48
48
|
s.summary = %q{Simple wrapper around ffmpeg to get metadata from movies and do transcoding}
|
49
49
|
s.test_files = [
|
50
50
|
"spec/ffmpeg/encoding_options_spec.rb",
|
@@ -58,7 +58,7 @@ Gem::Specification.new do |s|
|
|
58
58
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
59
59
|
s.specification_version = 3
|
60
60
|
|
61
|
-
if Gem::Version.new(Gem::
|
61
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
62
62
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
63
63
|
else
|
64
64
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 4
|
9
|
+
version: 0.6.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- David Backeus
|
@@ -14,13 +14,14 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-12 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rspec
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
26
27
|
- !ruby/object:Gem::Version
|
@@ -74,6 +75,7 @@ rdoc_options:
|
|
74
75
|
require_paths:
|
75
76
|
- lib
|
76
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
77
79
|
requirements:
|
78
80
|
- - ">="
|
79
81
|
- !ruby/object:Gem::Version
|
@@ -81,6 +83,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
83
|
- 0
|
82
84
|
version: "0"
|
83
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
84
87
|
requirements:
|
85
88
|
- - ">="
|
86
89
|
- !ruby/object:Gem::Version
|
@@ -90,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
93
|
requirements: []
|
91
94
|
|
92
95
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.3.6
|
96
|
+
rubygems_version: 1.3.6.1
|
94
97
|
signing_key:
|
95
98
|
specification_version: 3
|
96
99
|
summary: Simple wrapper around ffmpeg to get metadata from movies and do transcoding
|