streamio-ffmpeg 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/ffmpeg/movie.rb +1 -1
- data/lib/streamio-ffmpeg.rb +1 -1
- data/streamio-ffmpeg.gemspec +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -6,7 +6,7 @@ Simple yet powerful wrapper around the ffmpeg command for reading metadata and t
|
|
6
6
|
|
7
7
|
(sudo) gem install streamio-ffmpeg
|
8
8
|
|
9
|
-
This version is written against an ffmpeg build from
|
9
|
+
This version is written against an ffmpeg build from april 2010 (tested against r22811). So no guarantees with earlier (or much later) versions. Output and input standards have inconveniently changed rather a lot between versions of ffmpeg. My goal is to keep this library in sync with new versions of ffmpeg as they come along.
|
10
10
|
|
11
11
|
== Usage
|
12
12
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/lib/ffmpeg/movie.rb
CHANGED
@@ -12,7 +12,7 @@ module FFMPEG
|
|
12
12
|
stdin, stdout, stderr = Open3.popen3("ffmpeg -i '#{path}'") # Output will land in stderr
|
13
13
|
output = stderr.read
|
14
14
|
|
15
|
-
@valid = output[
|
15
|
+
@valid = output["Unknown format"].nil? && output["Invalid data found when processing input"].nil?
|
16
16
|
|
17
17
|
output[/Duration: (\d{2}):(\d{2}):(\d{2}\.\d{1})/]
|
18
18
|
@duration = ($1.to_i*60*60) + ($2.to_i*60) + $3.to_f
|
data/lib/streamio-ffmpeg.rb
CHANGED
data/streamio-ffmpeg.gemspec
CHANGED