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 +4 -4
- data/Gemfile +6 -8
- data/LICENSE +12 -0
- data/README.md +43 -33
- data/Rakefile +1 -1
- data/bin/transcode +1 -1
- data/lib/transcode/configurator.rb +4 -3
- data/lib/transcode/reporter.rb +1 -1
- data/lib/transcode/transcoder.rb +1 -1
- data/lib/transcode/utils.rb +1 -1
- data/lib/transcode/version.rb +3 -3
- data/lib/transcode.rb +1 -1
- data/transcode.gemspec +8 -8
- metadata +19 -19
- data/LICENSE.txt +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4db3c2397750b7490970b538deef35b83273aa18abf3cacb6317554d8699ff9
|
4
|
+
data.tar.gz: 424304c05b94a61ca4793286144ffb7fe346e7793b2901695930452c0c53143b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
4
|
+
# Copyright 2020-2023 by David Rabkin
|
5
5
|
|
6
6
|
source 'https://rubygems.org'
|
7
|
-
ruby '
|
7
|
+
ruby '>2.6'
|
8
8
|
|
9
|
-
gem 'minitest', '5.
|
9
|
+
gem 'minitest', '5.18.0'
|
10
10
|
gem 'pidfile', '0.3.0'
|
11
|
-
gem 'rake', '13.0.
|
12
|
-
gem 'rubocop', '
|
13
|
-
gem 'terminal-table', '
|
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
|
-
[](https://codeclimate.com/github/rdavid/transcode/maintainability)
|
13
|
-
[](https://hitsofcode.com/view/github/rdavid/transcode)
|
14
|
-
[](https://github.com/rdavid/transcode/blob/master/LICENSE.txt)
|
3
|
+
[](https://ci.appveyor.com/project/rdavid/transcode)
|
4
|
+
[](https://github.com/rdavid/transcode/actions/workflows/lint.yml)
|
5
|
+
[](https://github.com/rdavid/transcode/actions/workflows/ruby.yml)
|
6
|
+
[](https://badge.fury.io/rb/transcode)
|
7
|
+
[](https://codeclimate.com/github/rdavid/transcode/maintainability)
|
8
|
+
[](https://hitsofcode.com/view/github/rdavid/transcode)
|
9
|
+
[](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
|
-
|
23
|
-
|
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.
|
30
|
-
Ruby](https://www.ruby-lang.org/en/documentation/installation/)
|
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
|
-
|
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
|
-
|
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
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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
|
-
|
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
|
-
|
66
|
-
|
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
data/bin/transcode
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-
|
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
|
83
|
+
def validate_tit
|
83
84
|
if tit.nil?
|
84
85
|
@options[:tit] = Array.new(files.size, '0')
|
85
86
|
return
|
data/lib/transcode/reporter.rb
CHANGED
data/lib/transcode/transcoder.rb
CHANGED
data/lib/transcode/utils.rb
CHANGED
data/lib/transcode/version.rb
CHANGED
data/lib/transcode.rb
CHANGED
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 = '
|
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 = '
|
16
|
+
s.license = '0BSD'
|
17
17
|
s.author = 'David Rabkin'
|
18
|
-
s.email = '
|
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
|
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', '
|
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.
|
28
|
-
s.add_development_dependency 'rake', '13.0.
|
29
|
-
s.add_development_dependency 'rubocop', '
|
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.
|
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:
|
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:
|
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:
|
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.
|
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.
|
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.
|
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.
|
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:
|
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:
|
96
|
+
version: 1.50.2
|
97
97
|
description: " Transcode is a wraper on Video Transcoding.\n"
|
98
|
-
email:
|
98
|
+
email: david@rabkin.co.il
|
99
99
|
executables:
|
100
100
|
- transcode
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files:
|
103
|
-
- LICENSE
|
103
|
+
- LICENSE
|
104
104
|
- README.md
|
105
105
|
files:
|
106
106
|
- Gemfile
|
107
|
-
- LICENSE
|
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
|
-
-
|
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.
|
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.
|