streamio-ffmpeg 0.7.8 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ == 0.8.0 2011-05-26
2
+
3
+ * Duration is now ALWAYS considered uncertain (we've noticed that ffmpeg is not always correct)
4
+ * This means that the duration check will normally never run (unless you manually hack @uncertain_duration to false)
5
+ * Movie#audio_channels now returns nil if there is no audio stream (instead of crashing)
6
+ * Development: Use Bundler
7
+ * Development: Update RSpec to 2.6
8
+
1
9
  == 0.7.8 2011-04-04
2
10
 
3
11
  * Fixed number of audio channels on files with 5.1 audio
data/lib/ffmpeg/movie.rb CHANGED
@@ -29,7 +29,7 @@ module FFMPEG
29
29
  output[/Audio: (.*)/]
30
30
  @audio_stream = $1
31
31
 
32
- @uncertain_duration = output.include?("Estimating duration from bitrate, this may be inaccurate") || @time > 0
32
+ @uncertain_duration = true #output.include?("Estimating duration from bitrate, this may be inaccurate") || @time > 0
33
33
 
34
34
  if video_stream
35
35
  @video_codec, @colorspace, resolution, video_bitrate = video_stream.split(/\s?,\s?/)
@@ -78,6 +78,7 @@ module FFMPEG
78
78
  end
79
79
 
80
80
  def audio_channels
81
+ return nil unless @audio_channels
81
82
  return @audio_channels[/\d*/].to_i if @audio_channels["channels"]
82
83
  return 1 if @audio_channels["mono"]
83
84
  return 2 if @audio_channels["stereo"]
@@ -1,3 +1,3 @@
1
1
  module FFMPEG
2
- VERSION = "0.7.8"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: streamio-ffmpeg
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.8
5
+ version: 0.8.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Backeus
@@ -10,18 +10,18 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-04 00:00:00 Z
13
+ date: 2011-05-26 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- prerelease: false
18
17
  requirement: &id001 !ruby/object:Gem::Requirement
19
18
  none: false
20
19
  requirements:
21
20
  - - ~>
22
21
  - !ruby/object:Gem::Version
23
- version: 2.4.0
22
+ version: 2.6.0
24
23
  type: :development
24
+ prerelease: false
25
25
  version_requirements: *id001
26
26
  description: Simple yet powerful wrapper around ffmpeg to get metadata from movies and do transcoding.
27
27
  email:
@@ -54,6 +54,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
+ hash: -4354055556747967075
58
+ segments:
59
+ - 0
57
60
  version: "0"
58
61
  required_rubygems_version: !ruby/object:Gem::Requirement
59
62
  none: false
@@ -64,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
67
  requirements: []
65
68
 
66
69
  rubyforge_project:
67
- rubygems_version: 1.7.1
70
+ rubygems_version: 1.7.2
68
71
  signing_key:
69
72
  specification_version: 3
70
73
  summary: Reads metadata and transcodes movies.