transcode 1.0.3 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b226e860131744a93fe08350592d1ea68fe654bff97d29d16ecbc0a71120aed5
4
- data.tar.gz: 5e4e5db31ef304fbe5936cf9bc549d760ae0a43df5de0b7588a4cb7d4e5bf0ab
3
+ metadata.gz: d4db3c2397750b7490970b538deef35b83273aa18abf3cacb6317554d8699ff9
4
+ data.tar.gz: 424304c05b94a61ca4793286144ffb7fe346e7793b2901695930452c0c53143b
5
5
  SHA512:
6
- metadata.gz: aa1c762d5a4b78c11427376fb4d137609d2260ffc74ca34106d1f795fbb5d5baa837ce5eadbb620c532f138bd614e4f2e657ecc9ca843c62237e813ef2809887
7
- data.tar.gz: b259365085e5a20aa7f2544c46323f7f858b4a1604599493abf8b336cba1d697f977a7bc91d02fb8026c2021e443547588ae47bd5a57fc0c351cc1f55c33b22c
6
+ metadata.gz: 12de94cf64c1041f8f89b7bb6d07d0208c3a872ea6f24d013379e99c94589702c828eeac6790553995392a03b0897daa8fef7e78544ffd1cb36f4c83af2f1eff
7
+ data.tar.gz: c32c3e54669ca56f79a154caba49d51ad665819325d0e341515a51edbafcf29691d3750116e22bc846c949b5dd1015f1e8627ce3ac5102efba83990bcd635b67
data/Gemfile CHANGED
@@ -1,16 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # vi:ts=2 sw=2 tw=79 et lbr wrap
4
- # Copyright 2020-present David Rabkin
4
+ # Copyright 2020-2023 by David Rabkin
5
5
 
6
6
  source 'https://rubygems.org'
7
- ruby '~>2.6'
7
+ ruby '>2.6'
8
8
 
9
- gem 'minitest', '5.11.3'
9
+ gem 'minitest', '5.18.0'
10
10
  gem 'pidfile', '0.3.0'
11
- gem 'rake', '13.0.1'
12
- gem 'rubocop', '0.76.0'
13
- gem 'terminal-table', '1.8.0'
11
+ gem 'rake', '13.0.6'
12
+ gem 'rubocop', '1.50.2'
13
+ gem 'terminal-table', '3.0.2'
14
14
  gem 'video_transcoding', '0.25.3'
15
-
16
- # gemspec
data/LICENSE ADDED
@@ -0,0 +1,12 @@
1
+ Copyright 2020 by David Rabkin
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any
4
+ purpose with or without fee is hereby granted.
5
+
6
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
7
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
8
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
9
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
10
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
11
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
12
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
data/README.md CHANGED
@@ -1,17 +1,12 @@
1
1
  # Transcode
2
- Tool to transcode batch of video files.
3
2
 
4
- [![Build
5
- Status](https://travis-ci.org/rdavid/transcode.svg)](https://travis-ci.org/rdavid/transcode)
6
- [![Build
7
- status](https://ci.appveyor.com/api/projects/status/yqxb43ltxrjj776a?svg=true)](https://ci.appveyor.com/project/rdavid/transcode)
8
- ![Ruby](https://github.com/rdavid/transcode/workflows/Ruby/badge.svg)
9
- [![Gem
10
- Version](https://badge.fury.io/rb/transcode.svg)](https://badge.fury.io/rb/transcode)
11
-
12
- [![Maintainability](https://api.codeclimate.com/v1/badges/5e21a1c1f8a3923584e3/maintainability)](https://codeclimate.com/github/rdavid/transcode/maintainability)
13
- [![Hits-of-Code](https://hitsofcode.com/github/rdavid/transcode)](https://hitsofcode.com/view/github/rdavid/transcode)
14
- [![License](https://img.shields.io/github/license/rdavid/transcode)](https://github.com/rdavid/transcode/blob/master/LICENSE.txt)
3
+ [![build](https://ci.appveyor.com/api/projects/status/yqxb43ltxrjj776a?svg=true)](https://ci.appveyor.com/project/rdavid/transcode)
4
+ [![linters](https://github.com/rdavid/transcode/actions/workflows/lint.yml/badge.svg)](https://github.com/rdavid/transcode/actions/workflows/lint.yml)
5
+ [![ruby](https://github.com/rdavid/transcode/actions/workflows/ruby.yml/badge.svg)](https://github.com/rdavid/transcode/actions/workflows/ruby.yml)
6
+ [![gem version](https://badge.fury.io/rb/transcode.svg)](https://badge.fury.io/rb/transcode)
7
+ [![maintainability](https://api.codeclimate.com/v1/badges/5e21a1c1f8a3923584e3/maintainability)](https://codeclimate.com/github/rdavid/transcode/maintainability)
8
+ [![hits of code](https://hitsofcode.com/github/rdavid/transcode?branch=master&label=hits%20of%20code)](https://hitsofcode.com/view/github/rdavid/transcode)
9
+ [![license](https://img.shields.io/github/license/rdavid/transcode?color=blue&labelColor=gray&logo=freebsd&logoColor=lightgray&style=flat)](https://github.com/rdavid/transcode/blob/master/LICENSE)
15
10
 
16
11
  * [About](#about)
17
12
  * [Installation](#installation)
@@ -19,48 +14,63 @@ Version](https://badge.fury.io/rb/transcode.svg)](https://badge.fury.io/rb/trans
19
14
  * [License](#license)
20
15
 
21
16
  ## About
22
- Hi, I'm [David Rabkin](http://davi.drabk.in). I created this tool to
23
- enhance [Don Melton](http://donmelton.com/)'s [Video
17
+
18
+ `transcode` is a tool to transcode multiple video files. It enhances
19
+ [Don Melton](http://donmelton.com/)'s [Video
24
20
  Transcoding](https://github.com/donmelton/video_transcoding/). It applies
25
21
  Video Trascoding to each video file in a directory.
26
22
 
27
23
  ## Installation
24
+
28
25
  The tool is designed to work on macOS, GNU/Linux, Windows, Unix-like OS. It is
29
- packaged as a Gem and require Ruby version 2.6 or later. See «[Installing
30
- Ruby](https://www.ruby-lang.org/en/documentation/installation/)» if you don't
26
+ packaged as a Gem and require Ruby version 2.6 or later. See [Installing
27
+ Ruby](https://www.ruby-lang.org/en/documentation/installation/) if you don't
31
28
  have the proper version on your platform.
32
29
 
33
30
  Use this command to install:
34
31
 
35
- gem install transcode
32
+ ```sh
33
+ gem install transcode
34
+ ```
36
35
 
37
36
  ### Updating
37
+
38
38
  Use this command to update the package:
39
39
 
40
- gem update transcode
40
+ ```sh
41
+ gem update transcode
42
+ ```
41
43
 
42
44
  ### Requirements
45
+
43
46
  See Video Transcoding's [requirements](https://github.com/donmelton/video_transcoding/blob/master/README.md?ts=2#requirements).
44
47
 
45
- ## Usage
46
- transcode [options]
47
- -a, --act Real encoding.
48
- -s, --sca Scans files at the directory.
49
- -m, --mp3 Converts files to mp3.
50
- -d, --dir dir Directory to transcode.
51
- -i, --tit tit Specific title by number.
52
- -o, --out out Directory to output.
53
- -u, --aud aud Audio stream numbers.
54
- -t, --sub sub Subtitle stream numbers.
55
- -w, --wid wid Width of the table.
56
- -v, --version Show version.
48
+ ### Usage
49
+
50
+ ```sh
51
+ transcode [options]
52
+ -a, --act Real encoding.
53
+ -s, --sca Scans files at the directory.
54
+ -m, --mp3 Converts files to mp3.
55
+ -d, --dir dir Directory to transcode.
56
+ -i, --tit tit Specific title by number.
57
+ -o, --out out Directory to output.
58
+ -u, --aud aud Audio stream numbers.
59
+ -t, --sub sub Subtitle stream numbers.
60
+ -w, --wid wid Width of the table.
61
+ -v, --version Shows version.
62
+ ```
57
63
 
58
64
  ### Example
59
- transcode -d <source> -o <destination> -u 1,3,1 -t 2,1,3
65
+
66
+ ```sh
67
+ transcode -d <source> -o <destination> -u 1,3,1 -t 2,1,3
68
+ ```
60
69
 
61
70
  It converts three files from source with certain audio and subtitle streams.
62
71
  Inspect first with `-s` option to see audio and subtitle streams.
63
72
 
64
73
  ## License
65
- Transcode is copyright [David Rabkin](http://davi.drabk.in) and
66
- available under a [2-Claus BSD license](https://github.com/rdavid/transcode/blob/master/LICENSE).
74
+
75
+ `transcode` is copyright [David Rabkin](http://cv.rabkin.co.il) and
76
+ available under a [Zero-Claus BSD license](https://github.com/rdavid/transcode/blob/master/LICENSE).
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # vi:ts=2 sw=2 tw=79 et lbr wrap
4
- # Copyright 2020-present David Rabkin
4
+ # Copyright 2020 by David Rabkin
5
5
 
6
6
  task default: %w[test]
7
7
 
data/bin/transcode CHANGED
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  # vi:ts=2 sw=2 tw=79 et lbr wrap
5
- # Copyright 2018-present David Rabkin
5
+ # Copyright 2018-2023 by David Rabkin
6
6
 
7
7
  require 'pidfile'
8
8
  require_relative '../lib/transcode'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # vi:ts=2 sw=2 tw=79 et lbr wrap
4
- # Copyright 2018-present David Rabkin
4
+ # Copyright 2018-2023 by David Rabkin
5
5
 
6
6
  require 'optparse'
7
7
 
@@ -9,6 +9,7 @@ module Transcode
9
9
  # Handles input parameters.
10
10
  class Configurator # rubocop:disable Metrics/ClassLength
11
11
  attr_reader :files
12
+
12
13
  DIC = [
13
14
  ['-a', '--act', 'Real encoding.', nil, :act],
14
15
  ['-s', '--sca', 'Scans files at the directory.', nil, :sca],
@@ -21,7 +22,7 @@ module Transcode
21
22
  ['-w', '--wid wid', 'Width of the table.', Integer, :wid]
22
23
  ].freeze
23
24
  EXT = %i[
24
- avi flv m4v mkv mp4 mpg mpeg mov ts webm vob wmv
25
+ avi flv m2ts m4v mkv mp4 mpg mpeg mov ts webm vob wmv
25
26
  ].map(&:to_s).join(',').freeze
26
27
 
27
28
  def add(opt)
@@ -79,7 +80,7 @@ module Transcode
79
80
  raise "#{bad.join(',')}: Permission denied." unless bad.empty?
80
81
  end
81
82
 
82
- def validate_tit # rubocop:disable Metrics/AbcSize
83
+ def validate_tit
83
84
  if tit.nil?
84
85
  @options[:tit] = Array.new(files.size, '0')
85
86
  return
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # vi:ts=2 sw=2 tw=79 et lbr wrap
4
- # Copyright 2018-present David Rabkin
4
+ # Copyright 2018-2023 by David Rabkin
5
5
 
6
6
  require 'terminal-table'
7
7
  require_relative 'utils'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # vi:ts=2 sw=2 tw=79 et lbr wrap
4
- # Copyright 2018-present David Rabkin
4
+ # Copyright 2018-2023 by David Rabkin
5
5
 
6
6
  require 'English'
7
7
  require 'shellwords'
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # vi:ts=2 sw=2 tw=79 et lbr wrap
4
- # Copyright 2018-present David Rabkin
4
+ # Copyright 2018-2023 by David Rabkin
5
5
 
6
6
  # All methods are static.
7
7
  class Utils
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # vi:ts=2 sw=2 tw=79 et lbr wrap
4
- # Copyright 2020-present David Rabkin
4
+ # Copyright 2020-2023 by David Rabkin
5
5
 
6
6
  module Transcode
7
- VERSION = '1.0.3'
8
- DATE = '2020-11-04'
7
+ VERSION = '1.0.4'
8
+ DATE = '2023-04-22'
9
9
  end
data/lib/transcode.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # vi:ts=2 sw=2 tw=79 et lbr wrap
4
- # Copyright 2018-present David Rabkin
4
+ # Copyright 2018-2023 by David Rabkin
5
5
 
6
6
  require_relative 'transcode/transcoder'
7
7
  require_relative 'transcode/version'
data/transcode.gemspec CHANGED
@@ -8,23 +8,23 @@ Gem::Specification.new do |s|
8
8
  s.name = 'transcode'
9
9
  s.version = Transcode::VERSION
10
10
  s.date = Transcode::DATE
11
- s.required_ruby_version = '~> 2.6'
11
+ s.required_ruby_version = '>2.6'
12
12
  s.summary = 'Tools to transcode batch of video files.'
13
13
  s.description = <<-HERE
14
14
  Transcode is a wraper on Video Transcoding.
15
15
  HERE
16
- s.license = 'BSD-2-Clause'
16
+ s.license = '0BSD'
17
17
  s.author = 'David Rabkin'
18
- s.email = 'pub@rabkin.co.il'
18
+ s.email = 'david@rabkin.co.il'
19
19
  s.homepage = 'https://github.com/rdavid/transcode'
20
20
  s.files = Dir['{bin,lib}/**/*'] + Dir['[A-Z]*'] + ['transcode.gemspec']
21
21
  s.executables = ['transcode']
22
- s.extra_rdoc_files = ['LICENSE.txt', 'README.md']
22
+ s.extra_rdoc_files = ['LICENSE', 'README.md']
23
23
  s.require_paths = ['lib']
24
24
  s.add_runtime_dependency 'pidfile', '0.3.0'
25
- s.add_runtime_dependency 'terminal-table', '1.8.0'
25
+ s.add_runtime_dependency 'terminal-table', '3.0.2'
26
26
  s.add_runtime_dependency 'video_transcoding', '0.25.3'
27
- s.add_development_dependency 'minitest', '5.11.3'
28
- s.add_development_dependency 'rake', '13.0.1'
29
- s.add_development_dependency 'rubocop', '0.76.0'
27
+ s.add_development_dependency 'minitest', '5.18.0'
28
+ s.add_development_dependency 'rake', '13.0.6'
29
+ s.add_development_dependency 'rubocop', '1.50.2'
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Rabkin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-04 00:00:00.000000000 Z
11
+ date: 2023-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pidfile
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.8.0
33
+ version: 3.0.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.8.0
40
+ version: 3.0.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: video_transcoding
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,53 +58,53 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 5.11.3
61
+ version: 5.18.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 5.11.3
68
+ version: 5.18.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 13.0.1
75
+ version: 13.0.6
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 13.0.1
82
+ version: 13.0.6
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.76.0
89
+ version: 1.50.2
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.76.0
96
+ version: 1.50.2
97
97
  description: " Transcode is a wraper on Video Transcoding.\n"
98
- email: pub@rabkin.co.il
98
+ email: david@rabkin.co.il
99
99
  executables:
100
100
  - transcode
101
101
  extensions: []
102
102
  extra_rdoc_files:
103
- - LICENSE.txt
103
+ - LICENSE
104
104
  - README.md
105
105
  files:
106
106
  - Gemfile
107
- - LICENSE.txt
107
+ - LICENSE
108
108
  - README.md
109
109
  - Rakefile
110
110
  - appveyor.yml
@@ -118,15 +118,15 @@ files:
118
118
  - transcode.gemspec
119
119
  homepage: https://github.com/rdavid/transcode
120
120
  licenses:
121
- - BSD-2-Clause
121
+ - 0BSD
122
122
  metadata: {}
123
- post_install_message:
123
+ post_install_message:
124
124
  rdoc_options: []
125
125
  require_paths:
126
126
  - lib
127
127
  required_ruby_version: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">"
130
130
  - !ruby/object:Gem::Version
131
131
  version: '2.6'
132
132
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -135,8 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.1.4
139
- signing_key:
138
+ rubygems_version: 3.4.8
139
+ signing_key:
140
140
  specification_version: 4
141
141
  summary: Tools to transcode batch of video files.
142
142
  test_files: []
data/LICENSE.txt DELETED
@@ -1,25 +0,0 @@
1
- BSD 2-Clause License
2
-
3
- Copyright (c) 2020, David Rabkin
4
- All rights reserved.
5
-
6
- Redistribution and use in source and binary forms, with or without
7
- modification, are permitted provided that the following conditions are met:
8
-
9
- 1. Redistributions of source code must retain the above copyright notice, this
10
- list of conditions and the following disclaimer.
11
-
12
- 2. Redistributions in binary form must reproduce the above copyright notice,
13
- this list of conditions and the following disclaimer in the documentation
14
- and/or other materials provided with the distribution.
15
-
16
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.