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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/bin/vollbremsung +23 -3
  3. data/lib/vollbremsung.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWY1NjRkYzg4YzQ0MjA3MmQ3NmZkZDVhYWEwYWY4NTczODgwNDIzYw==
4
+ OWQxZTFhYjJlYzRmYjk4MDhiMTI5MDZiZDI1N2NkNmY3MGJiOWU2NQ==
5
5
  data.tar.gz: !binary |-
6
- NmU3ZjYzNDIyYjk4MGQ2NjhmYmQ5MWMyMWViZTM3YjZhZWM3MTkzNw==
6
+ MzdmZmExZTE1OWQ4YmMzNTQ5NDFiODNlMTJjNGRjZjZkODM1Y2ZkNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Yjg2MWViYzg0NGRhZjczZjQ4ZmY2ZGZhZjZhMjM4N2FkYmRlMDk5NjM2MTFi
10
- MjdjNDE0NWI3Mzg0MjhjYjhiMmY0Y2Y0MTZlODgwZDE0YWI3OWM4ZjcwZmU3
11
- NjYxYjZjMWM1YzBkNWZlYTE4OWU5M2NkY2M0MTY0NzIxYTFjZGM=
9
+ ZDQ0YmQ1ODZiZDA4NDk5ODJlOWJkYTM3NzU4MWViODhlMDEwMDAyNTg5YTNh
10
+ YWEzMDdlYTNiNmQ5MTMxM2YxYTJkNDY4MWQxOWVjNDUwODhhMDk5OGUyMjM4
11
+ NjMwMGQ5MGRjMDVlMWY1ZTNiZDk3MWQxNGE1ZWQ2MDhkOTAxOGY=
12
12
  data.tar.gz: !binary |-
13
- MzNlYjM0Y2E2ZGMxOTE1ZmNlOWExOTI0M2ZjNDhjMDE3YmUwYmEwNDUzMmRj
14
- NDNhZmQ2NzcyMmY5M2Y5YTQyNmYwMGZlYTAzYmIwYTM4ODBkZmViZDBjOTIz
15
- ZTdiNzdkMzljZDI5MWQwN2QxYjYyYTE3NzgzMzBmMmI4YjBjZTQ=
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 successful encoding") do |flag|
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 all file in subdirectories recursively as well") do |flag|
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 mp4 title to the filename") do |flag|
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.9'
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vollbremsung
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maximilian Irro