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 CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.4.1 2009-02-10
2
+
3
+ * Forgot to change the transcoding shortcut from Movie
4
+
1
5
  == 0.4.0 2009-02-10
2
6
 
3
7
  * Transcoding API changed to make use of more humanly readable options (see README for examples)
data/README.rdoc CHANGED
@@ -1,12 +1,12 @@
1
1
  = Streamio FFMPEG
2
2
 
3
- Simplest possible wrapper around FFMPEG to get metadata from movie files and do transcoding. IN DEVELOPMENT - Current version only handles basic metadata parsing.
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
- (should add instructions for ffmpeg installation here as well)
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.0
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
@@ -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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{streamio-ffmpeg}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Backeus"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamio-ffmpeg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Backeus