carrierwave-video 0.0.1.pre → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/lib/carrierwave-video/version.rb +1 -1
- data/lib/carrierwave/video.rb +2 -2
- metadata +71 -55
data/README.rdoc
CHANGED
data/lib/carrierwave/video.rb
CHANGED
@@ -19,7 +19,7 @@ module CarrierWave
|
|
19
19
|
tmp_path = File.join( File.dirname(current_path), "tmpfile.#{format}" )
|
20
20
|
|
21
21
|
|
22
|
-
|
22
|
+
with_trancoding_callbacks(opts) do
|
23
23
|
file = ::FFMPEG::Movie.new(current_path)
|
24
24
|
file.transcode(tmp_path, options.format_options, options.encoder_options)
|
25
25
|
File.rename tmp_path, current_path
|
@@ -27,7 +27,7 @@ module CarrierWave
|
|
27
27
|
end
|
28
28
|
|
29
29
|
private
|
30
|
-
def
|
30
|
+
def with_trancoding_callbacks(opts, &block)
|
31
31
|
callbacks = opts[:callbacks] || {}
|
32
32
|
logger_opt = opts[:logger]
|
33
33
|
begin
|
metadata
CHANGED
@@ -1,56 +1,68 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-video
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 0.0.1
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- rheaton
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
|
17
|
+
date: 2012-04-11 00:00:00 -04:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rspec
|
16
|
-
requirement: &70335404267560 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
22
|
prerelease: false
|
24
|
-
|
25
|
-
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
version: "0"
|
30
|
+
type: :development
|
31
|
+
version_requirements: *id001
|
32
|
+
- !ruby/object:Gem::Dependency
|
26
33
|
name: streamio-ffmpeg
|
27
|
-
requirement: &70335404266960 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
|
-
requirements:
|
30
|
-
- - ! '>='
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
33
|
-
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '0'
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 0
|
41
|
+
version: "0"
|
44
42
|
type: :runtime
|
43
|
+
version_requirements: *id002
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: carrierwave
|
45
46
|
prerelease: false
|
46
|
-
|
47
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
segments:
|
52
|
+
- 0
|
53
|
+
version: "0"
|
54
|
+
type: :runtime
|
55
|
+
version_requirements: *id003
|
47
56
|
description: Transcodes to html5-friendly videos.
|
48
|
-
email:
|
57
|
+
email:
|
49
58
|
- rachelmheaton@gmail.com
|
50
59
|
executables: []
|
60
|
+
|
51
61
|
extensions: []
|
62
|
+
|
52
63
|
extra_rdoc_files: []
|
53
|
-
|
64
|
+
|
65
|
+
files:
|
54
66
|
- .gitignore
|
55
67
|
- Gemfile
|
56
68
|
- README.rdoc
|
@@ -61,33 +73,37 @@ files:
|
|
61
73
|
- lib/carrierwave/video/ffmpeg_options.rb
|
62
74
|
- spec/lib/carrierwave_video_spec.rb
|
63
75
|
- spec/spec_helper.rb
|
64
|
-
|
76
|
+
has_rdoc: true
|
77
|
+
homepage: ""
|
65
78
|
licenses: []
|
79
|
+
|
66
80
|
post_install_message:
|
67
81
|
rdoc_options: []
|
68
|
-
|
82
|
+
|
83
|
+
require_paths:
|
69
84
|
- lib
|
70
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
requirements:
|
79
|
-
- -
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
|
82
|
-
|
85
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
segments:
|
90
|
+
- 0
|
91
|
+
version: "0"
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
segments:
|
97
|
+
- 0
|
98
|
+
version: "0"
|
99
|
+
requirements:
|
83
100
|
- ruby, version 1.9 or greater
|
84
|
-
- ffmpeg, version 0.10 or greater with libx256, libfaac, libtheora, libvorbid, libvpx
|
85
|
-
enabled
|
101
|
+
- ffmpeg, version 0.10 or greater with libx256, libfaac, libtheora, libvorbid, libvpx enabled
|
86
102
|
rubyforge_project: carrierwave-video
|
87
|
-
rubygems_version: 1.
|
103
|
+
rubygems_version: 1.3.6
|
88
104
|
signing_key:
|
89
105
|
specification_version: 3
|
90
106
|
summary: Carrierwave extension that uses ffmpeg to transcode videos.
|
91
|
-
test_files:
|
107
|
+
test_files:
|
92
108
|
- spec/lib/carrierwave_video_spec.rb
|
93
109
|
- spec/spec_helper.rb
|