streamio-ffmpeg 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.rdoc +3 -3
- data/VERSION +1 -1
- data/lib/ffmpeg/movie.rb +2 -2
- data/spec/ffmpeg/movie_spec.rb +2 -2
- data/streamio-ffmpeg.gemspec +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
= Streamio FFMPEG
|
2
2
|
|
3
|
-
|
3
|
+
Simple yet powerful wrapper around the ffmpeg command for reading metadata and transcoding movies.
|
4
4
|
|
5
5
|
== Installation
|
6
6
|
|
7
|
-
sudo gem install streamio-ffmpeg
|
7
|
+
(sudo) gem install streamio-ffmpeg
|
8
8
|
|
9
|
-
(
|
9
|
+
This version is written against an ffmpeg build from january 2010. So expect things to fail if you're using an earlier (or much later) version. 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.1
|
data/lib/ffmpeg/movie.rb
CHANGED
@@ -59,8 +59,8 @@ module FFMPEG
|
|
59
59
|
video_stream[/(\d*\.?\d*)\s?fps/] ? $1.to_f : nil
|
60
60
|
end
|
61
61
|
|
62
|
-
def transcode(options, &block)
|
63
|
-
Transcoder.new(self, options).run &block
|
62
|
+
def transcode(output_file, options, &block)
|
63
|
+
Transcoder.new(self, output_file, options).run &block
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
data/spec/ffmpeg/movie_spec.rb
CHANGED
@@ -89,10 +89,10 @@ module FFMPEG
|
|
89
89
|
movie = Movie.new("#{fixture_path}/movies/awesome.mov")
|
90
90
|
|
91
91
|
mockery = mock(Transcoder)
|
92
|
-
Transcoder.should_receive(:new).with(movie, "#{tmp_path}/awesome.flv").and_return(mockery)
|
92
|
+
Transcoder.should_receive(:new).with(movie, "#{tmp_path}/awesome.flv", :custom => "-vcodec libx264").and_return(mockery)
|
93
93
|
mockery.should_receive(:run)
|
94
94
|
|
95
|
-
movie.transcode("#{tmp_path}/awesome.flv")
|
95
|
+
movie.transcode("#{tmp_path}/awesome.flv", :custom => "-vcodec libx264")
|
96
96
|
end
|
97
97
|
end
|
98
98
|
end
|
data/streamio-ffmpeg.gemspec
CHANGED