streamio-ffmpeg 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/lib/ffmpeg/movie.rb +6 -1
- data/lib/ffmpeg/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
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
|
|
data/lib/ffmpeg/version.rb
CHANGED
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
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-
|
18
|
+
date: 2010-12-07 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|