vollbremsung 0.0.17 → 0.0.18
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.
- checksums.yaml +8 -8
- data/Rakefile +4 -0
- data/bin/vollbremsung +6 -6
- data/lib/vollbremsung.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGQxMWVlZmRhNzkxNjFhZTI0MDUzMDcxMjk2ZjE1ZjI4ZWUzYTFjMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWQ2OTFiY2UyNmMwNzM2NzJiYWNlM2E4ZWM4MWQ4MGJlYjkxMGUyNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWNkOGQ4MjgwMGQ0NDE1ZjE0NWRkYzY4NTJjMjRmY2Y0OWMwNDE5MWRiYzQw
|
10
|
+
NmZmZTljMmM0ODg1YjE0NWQ0MmQ5NjQ4YTFjNmNiNGM5ZjE4ZDcwYTE3MWFl
|
11
|
+
YWJiYWYwZGI3MmRlNjY0ODg3NGRmM2IwMzI2YzMyYTgxZGViMzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmNkZGY2MDliNDczYTJjM2I3NDc4ZGUyODY5Y2MzZTM0ZGNiMGU5OWUzYWEy
|
14
|
+
Yzg2ODQ0OTNkMDU3MzlmYjAwOTZiYTU0ODMzY2M5ZjU2ZThhNmM1NmViNjQ1
|
15
|
+
MWYyN2IyOTE3NjI0YjMyYWRmNzA5OGZiYmNiMDhjYTdhYzMxYzU=
|
data/Rakefile
CHANGED
data/bin/vollbremsung
CHANGED
@@ -157,21 +157,21 @@ ARGV.each do |target|
|
|
157
157
|
unless File.directory?(file)
|
158
158
|
if Vollbremsung::CONVERT_TYPES.include?(File.extname(file).downcase[1..-1])
|
159
159
|
puts "* " + File.absolute_path(file)[File.absolute_path(target).length+1..-1]
|
160
|
-
target_files << file
|
160
|
+
target_files << [file,target] # file and provided target_dir
|
161
161
|
end
|
162
162
|
end
|
163
163
|
end
|
164
164
|
|
165
165
|
else
|
166
166
|
puts "* " + target
|
167
|
-
target_files << File.absolute_path(target)
|
167
|
+
target_files << [File.absolute_path(target),File.absolute_path(target)]
|
168
168
|
end
|
169
169
|
|
170
170
|
end
|
171
171
|
|
172
172
|
exit if options[:list_only]
|
173
173
|
|
174
|
-
target_files.each do |infile|
|
174
|
+
target_files.each do |infile, target_dir|
|
175
175
|
|
176
176
|
metadata = ffprobe(infile)
|
177
177
|
if metadata.nil?
|
@@ -201,10 +201,10 @@ target_files.each do |infile|
|
|
201
201
|
infile_dirname = File.dirname(infile)
|
202
202
|
infile_path_noext = File.join(infile_dirname, infile_basename_noext)
|
203
203
|
infile_relative_path = #File.directory?(TARGET_PATH) ? infile[TARGET_PATH.length+1..-1] : File.basename(TARGET_PATH)
|
204
|
-
if File.directory?(
|
205
|
-
File.absolute_path(infile)[File.absolute_path(
|
204
|
+
if File.directory?(target_dir)
|
205
|
+
File.absolute_path(infile)[File.absolute_path(target_dir).length+1..-1]
|
206
206
|
else
|
207
|
-
File.basename(
|
207
|
+
File.basename(target_dir)
|
208
208
|
end
|
209
209
|
|
210
210
|
outfile = "#{infile_path_noext}.#{options[:extension]}"
|
data/lib/vollbremsung.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Vollbremsung
|
2
2
|
|
3
3
|
USAGE = "Usage: vollbremsung [options] target [target [...]]"
|
4
|
-
VERSION = '0.0.
|
4
|
+
VERSION = '0.0.18'
|
5
5
|
CONVERT_TYPES = ['mkv','avi','mov','flv','mpg','wmv','ogm']
|
6
6
|
FFMPEG_OPTIONS = "-map 0 -acodec copy -vcodec copy -scodec copy"
|
7
7
|
X264_DEFAULT_PRESET = "veryfast"
|