paperclip-ffmpeg 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/paperclip_processors/ffmpeg.rb +3 -3
- data/paperclip-ffmpeg.gemspec +1 -1
- metadata +9 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ed70895386bfb848e38e9676d7fc06be7036aa83
|
4
|
+
data.tar.gz: 50ce82bc678716a8fd8b57d27e5b6235cb43ea6c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7896ba9db89ba26ffc0a6176a0cbdc57bc0e2eda9d92abf733b06162fed99d0b50aaa50b7868974aabc863ff3400f21bf7057b4d39a8bb56a541e3bea12e9c37
|
7
|
+
data.tar.gz: c1282ab133998aade4fe109451eb3a2e994a60a2b0ff95b3b2edbf00c0929ecead7f706102a502eeda57d3823db601f127443aa7db8f08ee9e917d4c644f750d
|
@@ -165,10 +165,10 @@ module Paperclip
|
|
165
165
|
|
166
166
|
def identify
|
167
167
|
meta = {}
|
168
|
-
command = "
|
168
|
+
command = "ffprobe \"#{File.expand_path(@file.path)}\" 2>&1"
|
169
169
|
Paperclip.log("[ffmpeg] #{command}")
|
170
|
-
ffmpeg =
|
171
|
-
ffmpeg.
|
170
|
+
ffmpeg = Cocaine::CommandLine.new(command).run
|
171
|
+
ffmpeg.split("\n").each do |line|
|
172
172
|
if line =~ /(([\d\.]*)\s.?)fps,/
|
173
173
|
meta[:fps] = $1.to_i
|
174
174
|
end
|
data/paperclip-ffmpeg.gemspec
CHANGED
metadata
CHANGED
@@ -1,30 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip-ffmpeg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Omar Abdel-Wahab
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-10-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: paperclip
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 2.5.2
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 2.5.2
|
30
27
|
description: Process your attachments with FFMPEG
|
@@ -45,32 +42,25 @@ files:
|
|
45
42
|
homepage: http://github.com/owahab/paperclip-ffmpeg
|
46
43
|
licenses:
|
47
44
|
- MIT
|
45
|
+
metadata: {}
|
48
46
|
post_install_message:
|
49
47
|
rdoc_options: []
|
50
48
|
require_paths:
|
51
49
|
- lib
|
52
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
51
|
requirements:
|
55
|
-
- -
|
52
|
+
- - '>='
|
56
53
|
- !ruby/object:Gem::Version
|
57
54
|
version: '0'
|
58
|
-
segments:
|
59
|
-
- 0
|
60
|
-
hash: 788114700040462873
|
61
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
56
|
requirements:
|
64
|
-
- -
|
57
|
+
- - '>='
|
65
58
|
- !ruby/object:Gem::Version
|
66
59
|
version: '0'
|
67
|
-
segments:
|
68
|
-
- 0
|
69
|
-
hash: 788114700040462873
|
70
60
|
requirements: []
|
71
61
|
rubyforge_project: paperclip-ffmpeg
|
72
|
-
rubygems_version:
|
62
|
+
rubygems_version: 2.0.3
|
73
63
|
signing_key:
|
74
|
-
specification_version:
|
64
|
+
specification_version: 4
|
75
65
|
summary: Process your attachments with FFMPEG
|
76
66
|
test_files: []
|