wav-mp3 0.0.1 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,96 @@
1
+ =WAV - MP3 Paperclip-processor
2
+
3
+ Uploads WAV files and converts them to MP3.
4
+
5
+ ==Requirements
6
+ 1. {Rails 3 }[http://rubyonrails.org/]
7
+ 2. {Paperclip}[https://github.com/thoughtbot/paperclip]
8
+ 3. {Lame}[http://lame.sourceforge.net/]
9
+
10
+
11
+ ==Install
12
+
13
+ Follow instructions on {Lame}[http://lame.sourceforge.net/]
14
+
15
+ Include:
16
+
17
+ gem 'wav-mp3'
18
+
19
+ & run:
20
+
21
+ bundle install
22
+
23
+ Or:
24
+ gem install wav-mp3
25
+
26
+ ==Usage
27
+
28
+ Inside Model include:
29
+
30
+ has_attached_file :wav,
31
+ :styles => {
32
+ :mp3 => {
33
+ :params => "-q1 -b 320",
34
+ :format => "mp3" }
35
+ },
36
+ :processors => [:wav_mp3]
37
+
38
+ Plugin will upload and save song.wav file & convert and save song.mp3 file...
39
+ === be carefull
40
+ it wont work with files that have special characters. Keep file-names simple an web friendly... or fork the GEM
41
+
42
+ =Params
43
+
44
+ ===Quality related:
45
+
46
+ -m m/s/j/f/a mode selection
47
+ -q n Internal algorithm quality setting 0..9.
48
+ 0 = slowest algorithms, but potentially highest quality
49
+ 9 = faster algorithms, very poor quality
50
+ -h same as -q2
51
+ -f same as -q7
52
+
53
+
54
+ ===Constant Bit Rate (CBR)
55
+
56
+ -b n set bitrate (8, 16, 24, ..., 320)
57
+ --freeformat produce a free format bitstream. User must also specify
58
+ a bitrate with -b, between 8 and 640 kbps.
59
+
60
+ ===Variable Bit Rate (VBR)
61
+
62
+ -v VBR
63
+ --vbr-old use old variable bitrate (VBR) routine
64
+ --vbr-new use new variable bitrate (VBR) routine (default)
65
+ -V n VBR quality setting (0=highest quality, 9=lowest)
66
+ -b n specify a minimum allowed bitrate (8,16,24,...,320)
67
+ -B n specify a maximum allowed bitrate (8,16,24,...,320)
68
+ -F strictly enforce minimum bitrate
69
+ -t disable VBR informational tag
70
+ --nohist disable display of VBR bitrate histogram
71
+
72
+ --abr n specify average bitrate desired
73
+
74
+ ===ID3 tagging:
75
+
76
+ --tt <title> audio/song title (max 30 chars for version 1 tag)
77
+ --ta <artist> audio/song artist (max 30 chars for version 1 tag)
78
+ --tl <album> audio/song album (max 30 chars for version 1 tag)
79
+ --ty <year> audio/song year of issue (1 to 9999)
80
+ --tc <comment> user-defined text (max 30 chars for v1 tag, 28 for v1.1)
81
+ --tn <track> audio/song track number (1 to 255, creates v1.1 tag)
82
+ --tg <genre> audio/song genre (name or number in list)
83
+ --add-id3v2 force addition of version 2 tag
84
+ --id3v1-only add only a version 1 tag
85
+ --id3v2-only add only a version 2 tag
86
+ --space-id3v1 pad version 1 tag with spaces instead of nulls
87
+ --pad-id3v2 same as '--pad-id3v2-size 128'
88
+ --pad-id3v2-size <num> adds version 2 tag, pad with extra <num> bytes
89
+ --genre-list print alphabetically sorted ID3 genre list and exit
90
+
91
+ For more details about Lame parameters visit: http://lame.cvs.sourceforge.net/viewvc/lame/lame/USAGE
92
+
93
+ === Gem info
94
+
95
+ created by: moonFlash
96
+ twitter: {moonflash}[https://twitter.com/moonflash]
@@ -1,7 +1,7 @@
1
- module WavMp3
1
+ module Wavmp3
2
2
  module Paperclip
3
3
  module Processor
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.4"
5
5
  end
6
6
  end
7
7
  end
@@ -4,11 +4,11 @@ require "wav-mp3/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "wav-mp3"
7
- s.version = WavMp3::Paperclip::Processor::VERSION
7
+ s.version = Wavmp3::Paperclip::Processor::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["moonFlash, Mojmir Novakovic"]
10
10
  s.email = ["moonflash.as3@gmail.com"]
11
- s.homepage = "https://github.com/moonflash"
11
+ s.homepage = "https://github.com/moonflash/WAV-MP3---paperclip-processor"
12
12
  s.summary = %q{Wav to MP3 paperclip-processor}
13
13
  s.description = %q{Easy Wav to MP3 conversion using lame}
14
14
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wav-mp3
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - moonFlash, Mojmir Novakovic
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-04 00:00:00 +02:00
18
+ date: 2011-05-05 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -60,12 +60,13 @@ extra_rdoc_files: []
60
60
  files:
61
61
  - .gitignore
62
62
  - Gemfile
63
+ - README.rdoc
63
64
  - Rakefile
64
65
  - lib/wav-mp3.rb
65
66
  - lib/wav-mp3/version.rb
66
67
  - wav-mp3.gemspec
67
68
  has_rdoc: true
68
- homepage: https://github.com/moonflash
69
+ homepage: https://github.com/moonflash/WAV-MP3---paperclip-processor
69
70
  licenses: []
70
71
 
71
72
  post_install_message: