streamio-ffmpeg 0.7.6 → 0.7.7

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,8 @@
1
+ == 0.7.7 2011-02-01
2
+
3
+ * Movies with starttime are now considered as having uncertain duration as its behavior is not consistent across formats
4
+ * Upgrade development environment to RSpec 2.4
5
+
1
6
  == 0.7.6 2011-01-14
2
7
 
3
8
  * Another ruby 1.9 encoding fix
data/lib/ffmpeg/movie.rb CHANGED
@@ -20,8 +20,6 @@ module FFMPEG
20
20
  output[/start: (\d*\.\d*)/]
21
21
  @time = $1 ? $1.to_f : 0.0
22
22
 
23
- @duration -= @time
24
-
25
23
  output[/bitrate: (\d*)/]
26
24
  @bitrate = $1 ? $1.to_i : nil
27
25
 
@@ -31,7 +29,7 @@ module FFMPEG
31
29
  output[/Audio: (.*)/]
32
30
  @audio_stream = $1
33
31
 
34
- @uncertain_duration = output.include?("Estimating duration from bitrate, this may be inaccurate")
32
+ @uncertain_duration = output.include?("Estimating duration from bitrate, this may be inaccurate") || @time > 0
35
33
 
36
34
  if video_stream
37
35
  @video_codec, @colorspace, resolution, video_bitrate = video_stream.split(/\s?,\s?/)
@@ -1,3 +1,3 @@
1
1
  module FFMPEG
2
- VERSION = "0.7.6"
2
+ VERSION = "0.7.7"
3
3
  end
@@ -1,6 +1,7 @@
1
1
  $LOAD_PATH.unshift File.dirname(__FILE__)
2
2
 
3
3
  require 'logger'
4
+ require 'stringio'
4
5
 
5
6
  require 'ffmpeg/version'
6
7
  require 'ffmpeg/movie'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 6
9
- version: 0.7.6
8
+ - 7
9
+ version: 0.7.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Backeus
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-14 00:00:00 +01:00
17
+ date: 2011-02-01 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -23,13 +23,13 @@ dependencies:
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
- - - "="
26
+ - - ~>
27
27
  - !ruby/object:Gem::Version
28
28
  segments:
29
- - 1
30
- - 3
29
+ - 2
30
+ - 4
31
31
  - 0
32
- version: 1.3.0
32
+ version: 2.4.0
33
33
  type: :development
34
34
  version_requirements: *id001
35
35
  description: Simple yet powerful wrapper around ffmpeg to get metadata from movies and do transcoding.