streamio-ffmpeg 0.6.4 → 0.6.5

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.6.5 2010-05-19
2
+
3
+ * Movie#size method to get file size.
4
+
1
5
  == 0.6.4 2010-05-12
2
6
 
3
7
  * Ruby 1.9 compatibility fix for EncodingOptions (thanks michalf!)
@@ -21,6 +21,7 @@ This version is written against an ffmpeg build from april 2010 (tested against
21
21
 
22
22
  movie.duration # 7.5 (duration of the movie in seconds)
23
23
  movie.bitrate # 481 (bitrate in kb/s)
24
+ movie.size # 455546 (filesize in bytes)
24
25
 
25
26
  movie.video_stream # "h264, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 371 kb/s, 16.75 fps, 15 tbr, 600 tbn, 1200 tbc" (raw video stream info)
26
27
  movie.video_codec # "h264"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.4
1
+ 0.6.5
@@ -66,6 +66,10 @@ module FFMPEG
66
66
  end
67
67
  end
68
68
 
69
+ def size
70
+ File.size(@path)
71
+ end
72
+
69
73
  def audio_channels
70
74
  return @audio_channels[/\d*/].to_i if @audio_channels["channels"]
71
75
  return 1 if @audio_channels["mono"]
@@ -127,6 +127,10 @@ module FFMPEG
127
127
  it "should calculate the aspect ratio" do
128
128
  @movie.calculated_aspect_ratio.to_s[0..15].should == "1.33333333333333" # substringed to be 1.9 compatible
129
129
  end
130
+
131
+ it "should know the file size" do
132
+ @movie.size.should == 455546
133
+ end
130
134
  end
131
135
  end
132
136
 
@@ -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.4"
8
+ s.version = "0.6.5"
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}
12
+ s.date = %q{2010-05-19}
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.1}
47
+ s.rubygems_version = %q{1.3.7}
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",
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamio-ffmpeg
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 13
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 6
8
- - 4
9
- version: 0.6.4
9
+ - 5
10
+ version: 0.6.5
10
11
  platform: ruby
11
12
  authors:
12
13
  - David Backeus
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-12 00:00:00 +02:00
18
+ date: 2010-05-19 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 13
28
30
  segments:
29
31
  - 1
30
32
  - 2
@@ -79,6 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
81
  requirements:
80
82
  - - ">="
81
83
  - !ruby/object:Gem::Version
84
+ hash: 3
82
85
  segments:
83
86
  - 0
84
87
  version: "0"
@@ -87,13 +90,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
90
  requirements:
88
91
  - - ">="
89
92
  - !ruby/object:Gem::Version
93
+ hash: 3
90
94
  segments:
91
95
  - 0
92
96
  version: "0"
93
97
  requirements: []
94
98
 
95
99
  rubyforge_project:
96
- rubygems_version: 1.3.6.1
100
+ rubygems_version: 1.3.7
97
101
  signing_key:
98
102
  specification_version: 3
99
103
  summary: Simple wrapper around ffmpeg to get metadata from movies and do transcoding