streamio-ffmpeg 0.7.3 → 0.7.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 CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.7.4 2010-12-07
2
+
3
+ * Fixed broken duration on movies with start times over 0 by reducing duration with start-time
4
+
1
5
  == 0.7.3 2010-08-26
2
6
 
3
7
  * Replaced Jewler with simple dynamic gemspec file
data/lib/ffmpeg/movie.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module FFMPEG
2
2
  class Movie
3
- attr_reader :path, :duration, :bitrate
3
+ attr_reader :path, :duration, :time, :bitrate
4
4
  attr_reader :video_stream, :video_codec, :colorspace, :resolution, :dar
5
5
  attr_reader :audio_stream, :audio_codec, :audio_sample_rate
6
6
 
@@ -15,6 +15,11 @@ module FFMPEG
15
15
  output[/Duration: (\d{2}):(\d{2}):(\d{2}\.\d{1})/]
16
16
  @duration = ($1.to_i*60*60) + ($2.to_i*60) + $3.to_f
17
17
 
18
+ output[/start: (\d*\.\d*)/]
19
+ @time = $1 ? $1.to_f : 0.0
20
+
21
+ @duration -= @time
22
+
18
23
  output[/bitrate: (\d*)/]
19
24
  @bitrate = $1 ? $1.to_i : nil
20
25
 
@@ -1,3 +1,3 @@
1
1
  module FFMPEG
2
- VERSION = "0.7.3"
2
+ VERSION = "0.7.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamio-ffmpeg
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 3
10
- version: 0.7.3
9
+ - 4
10
+ version: 0.7.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Backeus
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-26 00:00:00 +02:00
18
+ date: 2010-12-07 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency