paperclip_video_processor 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +19 -0
- data/lib/paperclip_video_processor.rb +2 -2
- data/lib/paperclip_video_processor/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -3,6 +3,25 @@ paperclip_video_processor
|
|
3
3
|
|
4
4
|
Installation
|
5
5
|
===========
|
6
|
+
First of all install ffmpeg on your computer. This is the whole point to get the video processor to work.
|
7
|
+
|
8
|
+
If you are using MAC, and with brew installed.
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
brew install ffmpeg
|
12
|
+
```
|
13
|
+
Ubuntu Precise Pangolin 12.04 LTS and Ubuntu Oneiric Ocelot 11.10
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
sudo apt-get install ffmpeg libavcodec-extra-53
|
17
|
+
```
|
18
|
+
Ubuntu Natty Narwhal 11.04 and Ubuntu Lucid Lynx 10.04 LTS
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
sudo apt-get install ffmpeg libavcodec-extra-52
|
22
|
+
```
|
23
|
+
|
24
|
+
In order to make video converting to work as many cases as it can, I make audio_codec and codec as copy.
|
6
25
|
|
7
26
|
Add this line to your Gemfile
|
8
27
|
|
@@ -6,9 +6,9 @@ module Paperclip
|
|
6
6
|
super
|
7
7
|
# Set options
|
8
8
|
@audio_bitrate = options[:audio_bitrate] || '64k'
|
9
|
-
@audio_codec = options[:audio_codec] || '
|
9
|
+
@audio_codec = options[:audio_codec] || 'copy'
|
10
10
|
@bitrate = options[:bitrate] || '256k'
|
11
|
-
@codec = options[:codec] || '
|
11
|
+
@codec = options[:codec] || 'copy'
|
12
12
|
@current_format = File.extname(@file.path)
|
13
13
|
@basename = File.basename(@file.path, @current_format)
|
14
14
|
@file = file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip_video_processor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.3'
|
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: 2012-06-
|
12
|
+
date: 2012-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Video Converter
|
15
15
|
email:
|