r2mp3 0.2.0 → 0.2.1
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.
- data/lib/README.txt +50 -0
- metadata +4 -3
data/lib/README.txt
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
R2mp3 is a ruby library that makes audio converting to mp3 fairly easy.
|
|
2
|
+
|
|
3
|
+
Currently, support formats are following:
|
|
4
|
+
- wma
|
|
5
|
+
- aac
|
|
6
|
+
- aif
|
|
7
|
+
- au
|
|
8
|
+
- flac
|
|
9
|
+
- ogg
|
|
10
|
+
- ra
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
INSTALLATION
|
|
14
|
+
#Software requirement
|
|
15
|
+
|
|
16
|
+
1. install lame and mplayer in the box.
|
|
17
|
+
(OSX)
|
|
18
|
+
sudo port intall lame
|
|
19
|
+
sudo port install mplayer
|
|
20
|
+
|
|
21
|
+
(Debian, Ubuntu, etc.)
|
|
22
|
+
sudo apt-get install lame
|
|
23
|
+
sudo apt-get install mplayer
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
2. install gem
|
|
27
|
+
sudo gem install r2mp3
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
HOW TO USE
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
#Converter
|
|
35
|
+
|
|
36
|
+
#handle all objects which is convertable to mp3
|
|
37
|
+
converter = R2mp3::Converter.new(:in => "/path/to/file", :out => "/path/to/file")
|
|
38
|
+
|
|
39
|
+
#options :mode => "stereo", :bitrate => ""
|
|
40
|
+
converter.to_mp3 # true or false
|
|
41
|
+
converter.to_mp3! # true if sucess, otherwise raise Exception
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
#Inspector
|
|
45
|
+
file = R2mp3::Inspector.new(:file => "/path/to/mp3_file")
|
|
46
|
+
file.type
|
|
47
|
+
file.bitrate
|
|
48
|
+
file.samplerate
|
|
49
|
+
|
|
50
|
+
#for more detail, see in spec/
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: r2mp3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Warachet Samtalee
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-09-
|
|
12
|
+
date: 2008-09-11 00:00:00 +07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -23,7 +23,7 @@ dependencies:
|
|
|
23
23
|
version: 0.6.7
|
|
24
24
|
version:
|
|
25
25
|
description: This library intends to add ability to convert all audio files on the earth to mp3
|
|
26
|
-
email:
|
|
26
|
+
email: zdk@codegent.com
|
|
27
27
|
executables: []
|
|
28
28
|
|
|
29
29
|
extensions: []
|
|
@@ -44,6 +44,7 @@ files:
|
|
|
44
44
|
- lib/r2mp3/tools/mplayer.rb
|
|
45
45
|
- lib/r2mp3/version.rb
|
|
46
46
|
- lib/r2mp3.rb
|
|
47
|
+
- lib/README.txt
|
|
47
48
|
has_rdoc: false
|
|
48
49
|
homepage: http://ziddik.blogspot.com
|
|
49
50
|
post_install_message:
|