carrierwave-video 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +18 -0
- data/lib/carrierwave-video/version.rb +1 -1
- data/lib/carrierwave/video/ffmpeg_options.rb +1 -1
- metadata +81 -80
data/README.rdoc
CHANGED
@@ -118,7 +118,25 @@ You do not need to pass in the format to the encode_ogv method (as it is always
|
|
118
118
|
The only options that do work are logger and callbacks. Others will be ignored.
|
119
119
|
|
120
120
|
|
121
|
+
= ffmpeg installation notes:
|
122
|
+
|
123
|
+
Installing with homebrew on OSX will get a nice configuration that works with this gem (including libx264 and libfaac for mp4's and libvorbis and libvpx for webm).
|
124
|
+
The default quality of the libtheora and libvorbix ogv defaults is poor, but installed with the default homebrew. As mentioned above, you can use ffmpeg2theora.
|
125
|
+
|
126
|
+
The default custom params for mp4 encoding use presets.
|
127
|
+
You can change the custom params to use whatever you want, but the presets are supposed to give a better video quality.
|
128
|
+
The preset files are here: http://www.mediasoftpro.com/aspnet-x264-presets.html
|
129
|
+
Depending on how you installed ffmpeg, you need to put them in the correct directory: http://ffmpeg.org/ffmpeg.html#Preset-files
|
130
|
+
|
121
131
|
= Upcoming and notes
|
122
132
|
|
133
|
+
|
134
|
+
|
123
135
|
* ffmpeg gives a confusing error if watermark file does not exist, raise in ruby
|
124
136
|
* error handling/checking (extract from streamio-ffmpeg gem's transcoder) for encode_ogv
|
137
|
+
|
138
|
+
*NOTE:*
|
139
|
+
For older versions of ffmpeg, the +-preset+ flag was called +-vpre+. If you are using a version prior to 0.11, you must call carrierwave-video using the +custom+ option to change those flags. Something along the lines of:
|
140
|
+
|
141
|
+
encode_video(:mp4, :custom => '-qscale 0 -vpre slow -vpre baseline -g 30')
|
142
|
+
|
@@ -72,7 +72,7 @@ module CarrierWave
|
|
72
72
|
when 'mp4'
|
73
73
|
h[:video_codec] = 'libx264'
|
74
74
|
h[:audio_codec] = 'libfaac'
|
75
|
-
h[:custom] = '-qscale 0 -
|
75
|
+
h[:custom] = '-qscale 0 -preset slow -g 30'
|
76
76
|
when 'ogv'
|
77
77
|
h[:video_codec] = 'libtheora'
|
78
78
|
h[:audio_codec] = 'libvorbis'
|
metadata
CHANGED
@@ -1,86 +1,87 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-video
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 0
|
9
|
-
version: 0.3.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- rheaton
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-05-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rspec
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 2
|
30
|
-
- 10
|
31
|
-
- 0
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
32
21
|
version: 2.10.0
|
33
22
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rake
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
25
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
45
|
-
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.10.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
46
38
|
type: :development
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: streamio-ffmpeg
|
50
39
|
prerelease: false
|
51
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
41
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
|
58
|
-
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: streamio-ffmpeg
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
59
54
|
type: :runtime
|
60
|
-
version_requirements: *id003
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: carrierwave
|
63
55
|
prerelease: false
|
64
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
57
|
none: false
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
|
71
|
-
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: carrierwave
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
72
70
|
type: :runtime
|
73
|
-
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
74
78
|
description: Transcodes to html5-friendly videos.
|
75
|
-
email:
|
79
|
+
email:
|
76
80
|
- rachelmheaton@gmail.com
|
77
81
|
executables: []
|
78
|
-
|
79
82
|
extensions: []
|
80
|
-
|
81
83
|
extra_rdoc_files: []
|
82
|
-
|
83
|
-
files:
|
84
|
+
files:
|
84
85
|
- .gitignore
|
85
86
|
- .travis.yml
|
86
87
|
- Gemfile
|
@@ -94,40 +95,40 @@ files:
|
|
94
95
|
- spec/lib/carrierwave_video_spec.rb
|
95
96
|
- spec/lib/ffmpeg_theora_spec.rb
|
96
97
|
- spec/spec_helper.rb
|
97
|
-
|
98
|
-
homepage: ""
|
98
|
+
homepage: ''
|
99
99
|
licenses: []
|
100
|
-
|
101
100
|
post_install_message:
|
102
101
|
rdoc_options: []
|
103
|
-
|
104
|
-
require_paths:
|
102
|
+
require_paths:
|
105
103
|
- lib
|
106
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
105
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
segments:
|
112
111
|
- 0
|
113
|
-
|
114
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
+
hash: 2425759314384983104
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
114
|
none: false
|
116
|
-
requirements:
|
117
|
-
- -
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
segments:
|
120
120
|
- 0
|
121
|
-
|
122
|
-
requirements:
|
121
|
+
hash: 2425759314384983104
|
122
|
+
requirements:
|
123
123
|
- ruby, version 1.9 or greater
|
124
|
-
- ffmpeg, version 0.11.1 or greater with libx256, libfaac, libtheora, libvorbid, libvpx
|
124
|
+
- ffmpeg, version 0.11.1 or greater with libx256, libfaac, libtheora, libvorbid, libvpx
|
125
|
+
enabled
|
125
126
|
rubyforge_project: carrierwave-video
|
126
|
-
rubygems_version: 1.
|
127
|
+
rubygems_version: 1.8.25
|
127
128
|
signing_key:
|
128
129
|
specification_version: 3
|
129
130
|
summary: Carrierwave extension that uses ffmpeg to transcode videos.
|
130
|
-
test_files:
|
131
|
+
test_files:
|
131
132
|
- spec/lib/carrierwave_video_spec.rb
|
132
133
|
- spec/lib/ffmpeg_theora_spec.rb
|
133
134
|
- spec/spec_helper.rb
|