video_to_mp3 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -1
- data/lib/video_to_mp3.rb +5 -1
- data/video_to_mp3.gemspec +2 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -13,7 +13,7 @@ Installation
|
|
13
13
|
------------
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
gem "video_to_mp3", "~> 0.0.
|
16
|
+
gem "video_to_mp3", "~> 0.0.4"
|
17
17
|
```
|
18
18
|
|
19
19
|
|
@@ -31,6 +31,11 @@ outfile name and mp3_files directory get created if you donot provide the destin
|
|
31
31
|
you can find the converted file at destination\path\outputfile_name.mp3
|
32
32
|
|
33
33
|
|
34
|
+
Issue Report
|
35
|
+
------------
|
36
|
+
For any query or bug send me an email to naveenagarwal287@gmail.com
|
37
|
+
Also let me know if any one wish to write the test suite for it.
|
38
|
+
|
34
39
|
License
|
35
40
|
-------
|
36
41
|
|
data/lib/video_to_mp3.rb
CHANGED
@@ -8,7 +8,7 @@ class VideoToMp3
|
|
8
8
|
|
9
9
|
#set the output filename sames as input filename if it is not supplied
|
10
10
|
output_filename = input_filename.split("/")[-1] if output_filename.nil? or input_filename.empty?
|
11
|
-
ffmpeg = `which ffmpeg
|
11
|
+
ffmpeg = `which ffmpeg`.chomp
|
12
12
|
|
13
13
|
raise VideoToMp3Error, "Please install ffmpeg on your system. \n
|
14
14
|
Chackout the installation guide at http://ffmpeg.org/download.html
|
@@ -24,6 +24,10 @@ class VideoToMp3
|
|
24
24
|
path = "#{destination_path}/#{output_filename}.mp3"
|
25
25
|
ffmpeg_command = "#{ffmpeg} -i #{input_filename} -q 1 #{path}"
|
26
26
|
|
27
|
+
puts "*********************************"
|
28
|
+
puts ffmpeg_command
|
29
|
+
puts "*********************************"
|
30
|
+
|
27
31
|
#system method runs the command and return the true or false
|
28
32
|
command_status = system(ffmpeg_command)
|
29
33
|
|
data/video_to_mp3.gemspec
CHANGED
@@ -2,7 +2,7 @@ $LOAD_PATH.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "video_to_mp3"
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.4"
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.author = "Naveen Agarwal"
|
8
8
|
s.email = ["naveenagarwal287@gmail.com"]
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
end
|
18
18
|
|
19
19
|
s.requirements << "ffmpeg"
|
20
|
-
s.required_ruby_version = ">= 1.
|
20
|
+
s.required_ruby_version = ">= 1.8.7"
|
21
21
|
|
22
22
|
s.files = [
|
23
23
|
"lib/video_to_mp3.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: video_to_mp3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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: 2013-01-
|
12
|
+
date: 2013-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: audio/video media convertor
|
15
15
|
email:
|
@@ -34,7 +34,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
34
34
|
requirements:
|
35
35
|
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 1.
|
37
|
+
version: 1.8.7
|
38
38
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|