paperclip-ffmpeg 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/lib/paperclip_processors/qtfaststart.rb +2 -2
- data/paperclip-ffmpeg.gemspec +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -13,7 +13,7 @@ that it does, on your command line, run `which ffmpeg`.
|
|
13
13
|
This will give you the path where ffmpeg is installed. For
|
14
14
|
example, it might return `/usr/local/bin/ffmpeg`.
|
15
15
|
|
16
|
-
Then, in your environment config file, let Paperclip know to look there by adding that
|
16
|
+
Then, in your environment config file, let Paperclip know to look there by adding that
|
17
17
|
directory to its path.
|
18
18
|
|
19
19
|
In development mode, you might add this line to `config/environments/development.rb)`:
|
@@ -38,8 +38,8 @@ In your model:
|
|
38
38
|
|
39
39
|
```ruby
|
40
40
|
class User < ActiveRecord::Base
|
41
|
-
has_attached_file :avatar, :styles => {
|
42
|
-
:medium => { :geometry => "640x480", :format => 'flv' }
|
41
|
+
has_attached_file :avatar, :styles => {
|
42
|
+
:medium => { :geometry => "640x480", :format => 'flv' },
|
43
43
|
:thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
|
44
44
|
}, :processors => [:ffmpeg]
|
45
45
|
end
|
@@ -35,7 +35,7 @@ module Paperclip
|
|
35
35
|
|
36
36
|
Paperclip.log("[qtfaststart] #{parameters}")
|
37
37
|
begin
|
38
|
-
success = Paperclip.run("
|
38
|
+
success = Paperclip.run("qt-faststart", parameters, :source => "#{File.expand_path(src.path)}", :dest => File.expand_path(dst.path))
|
39
39
|
rescue Cocaine::ExitStatusError => e
|
40
40
|
raise PaperclipError, "error while processing video for #{@basename}: #{e}" if @whiny
|
41
41
|
end
|
@@ -43,4 +43,4 @@ module Paperclip
|
|
43
43
|
dst
|
44
44
|
end
|
45
45
|
end
|
46
|
-
end
|
46
|
+
end
|
data/paperclip-ffmpeg.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip-ffmpeg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: paperclip
|
@@ -56,7 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
segments:
|
58
58
|
- 0
|
59
|
-
hash:
|
59
|
+
hash: -2442852603242548850
|
60
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
segments:
|
67
67
|
- 0
|
68
|
-
hash:
|
68
|
+
hash: -2442852603242548850
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project: paperclip-ffmpeg
|
71
71
|
rubygems_version: 1.8.24
|