vollbremsung 0.0.9 → 0.0.10
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/bin/vollbremsung +23 -3
- 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
|
+
OWQxZTFhYjJlYzRmYjk4MDhiMTI5MDZiZDI1N2NkNmY3MGJiOWU2NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzdmZmExZTE1OWQ4YmMzNTQ5NDFiODNlMTJjNGRjZjZkODM1Y2ZkNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDQ0YmQ1ODZiZDA4NDk5ODJlOWJkYTM3NzU4MWViODhlMDEwMDAyNTg5YTNh
|
10
|
+
YWEzMDdlYTNiNmQ5MTMxM2YxYTJkNDY4MWQxOWVjNDUwODhhMDk5OGUyMjM4
|
11
|
+
NjMwMGQ5MGRjMDVlMWY1ZTNiZDk3MWQxNGE1ZWQ2MDhkOTAxOGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzBlNjhmYzYxMjdiMTYzNDhlNDBiNDkwYWRhNzk0NDc3NjgyNTBmODcwNDY0
|
14
|
+
MjRjNWZkZTg3YmExNWNjNTg1NzI3YjAzMzkzMGRiODBmYjVkNjFjNzQwNWRh
|
15
|
+
YjFmOTcxYmY4ZmQyMmViYzBkZjkzMjdkNDk0ODRhZDJjYTEwZTU=
|
data/bin/vollbremsung
CHANGED
@@ -27,6 +27,16 @@ options = {}
|
|
27
27
|
OptionParser.new do |opts|
|
28
28
|
opts.banner = Vollbremsung::USAGE
|
29
29
|
opts.separator ""
|
30
|
+
opts.separator "vollbremsung is a HandbrakeCLI bulk encoding tool."
|
31
|
+
opts.separator "If <target> is a file, it will be processed by Handbrake"
|
32
|
+
opts.separator "using a modified version of the default preset which will"
|
33
|
+
opts.separator "take all audio and subtitle tracks in their order of appearence"
|
34
|
+
opts.separator "(Handbrake default takes only the first)"
|
35
|
+
opts.separator ""
|
36
|
+
opts.separator "If <target> is a directory, all files with one of the file"
|
37
|
+
opts.separator "extensions [ #{Vollbremsung::CONVERT_TYPES.join(' | ')} ] will be"
|
38
|
+
opts.separator "be processed. See the following options for additional actions."
|
39
|
+
opts.separator ""
|
30
40
|
|
31
41
|
opts.on("-d", "--delete", "Delete source files after successful encoding") do |flag|
|
32
42
|
options[:delete] = true
|
@@ -36,21 +46,25 @@ OptionParser.new do |opts|
|
|
36
46
|
options[:list_only] = true
|
37
47
|
end
|
38
48
|
|
39
|
-
opts.on("-m", "--move", "Move source files to <FILENAME>.old after
|
49
|
+
opts.on("-m", "--move", "Move source files to <FILENAME>.old after encoding") do |flag|
|
40
50
|
options[:move] = true
|
41
51
|
end
|
42
52
|
|
43
|
-
opts.on("-r", "--recursive", "Process
|
53
|
+
opts.on("-r", "--recursive", "Process subdirectories recursively as well") do |flag|
|
44
54
|
options[:recursive] = true
|
45
55
|
end
|
46
56
|
|
47
|
-
opts.on("-t", "--title", "Set the
|
57
|
+
opts.on("-t", "--title", "Set the MP4 title to the filename") do |flag|
|
48
58
|
options[:title] = true
|
49
59
|
end
|
50
60
|
|
51
61
|
opts.on("--x264-preset [PRESET]", "Set the x264-preset. Default is: #{Vollbremsung::X264_DEFAULT_PRESET}") do |preset|
|
52
62
|
options[:x264_preset] = preset
|
53
63
|
end
|
64
|
+
|
65
|
+
opts.on("--version", "Show program version information") do
|
66
|
+
options[:version] = true
|
67
|
+
end
|
54
68
|
|
55
69
|
opts.on_tail("-h", "--help", "Show this message") do
|
56
70
|
puts opts
|
@@ -59,6 +73,12 @@ OptionParser.new do |opts|
|
|
59
73
|
end.parse! # do the parsing. do it now!
|
60
74
|
|
61
75
|
|
76
|
+
if options[:version]
|
77
|
+
puts "vollbremsung version #{Vollbremsung::VERSION}"
|
78
|
+
exit
|
79
|
+
end
|
80
|
+
|
81
|
+
|
62
82
|
options[:x264_preset] = Vollbremsung::X264_DEFAULT_PRESET if options[:x264_preset].nil?
|
63
83
|
|
64
84
|
|
data/lib/vollbremsung.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Vollbremsung
|
2
2
|
|
3
3
|
USAGE = "Usage: vollbremsung [options] <target>"
|
4
|
-
VERSION = '0.0.
|
4
|
+
VERSION = '0.0.10'
|
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"
|