transcode 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0375af3ce6a6249106ace1b6bf411e0b7bc268463b290162e8db0a4c2e3a4daf
4
- data.tar.gz: fa721d63eea507a241bdc1a37ca096dffb3077d0c69d06610a1cff7a03284c0e
3
+ metadata.gz: ae3f7763cf145e6b4351e665a1f324e1a324060c9117cbe739a44f5c51619e32
4
+ data.tar.gz: 3534289d109e82b54f5f9d259348737c606edafb56e304890bb9c4a17da5fdbd
5
5
  SHA512:
6
- metadata.gz: 7a5453ee0956ab79fba302cbdccde7029a26d09a5327039dfd65c50ab4f62a9c0f496e09618ae3688b2eb582bcfbe4b22be988dff3f40c9cbee060a58a9319d7
7
- data.tar.gz: 11bb4241bd5f2e39afa15f3581308e7ec10f0a34b43e945f3bd65cdf79c76f21e3360efe0dad33c887ef905ba27144eb8af9190d5334eedd9f23e9ed0683ad0a
6
+ metadata.gz: 2090ebf12e25dfcec5e1986a824847ca8ba9641f2ebb947db148e3552410303fbc9504d4fa35399a833aa73a697bbe5e245fe00a21bc661d9e7a96d56dfe592a
7
+ data.tar.gz: 780b74d991767203c1a3fc56566390aae8bc23260ab069f169ac925155ad19b05a3d3aa5a0fc0c7ec9a90d1c7ee5e4a16a5234f807a641f8f3c5d19d79aacb6e
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ # vi:ts=2 sw=2 tw=79 et lbr wrap
4
+ # Copyright 2020-present David Rabkin
5
+
6
+ source 'https://rubygems.org'
7
+ ruby '~>2.6'
8
+
9
+ gem 'pidfile', '0.3.0'
10
+ gem 'rake', '13.0.1'
11
+ gem 'rubocop', '0.76.0'
12
+ gem 'terminal-table', '1.8.0'
13
+ gem 'video_transcoding', '0.25.3'
@@ -0,0 +1,39 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ ast (2.4.0)
5
+ jaro_winkler (1.5.4)
6
+ parallel (1.19.1)
7
+ parser (2.7.1.3)
8
+ ast (~> 2.4.0)
9
+ pidfile (0.3.0)
10
+ rainbow (3.0.0)
11
+ rake (13.0.1)
12
+ rubocop (0.76.0)
13
+ jaro_winkler (~> 1.5.1)
14
+ parallel (~> 1.10)
15
+ parser (>= 2.6)
16
+ rainbow (>= 2.2.2, < 4.0)
17
+ ruby-progressbar (~> 1.7)
18
+ unicode-display_width (>= 1.4.0, < 1.7)
19
+ ruby-progressbar (1.10.1)
20
+ terminal-table (1.8.0)
21
+ unicode-display_width (~> 1.1, >= 1.1.1)
22
+ unicode-display_width (1.6.1)
23
+ video_transcoding (0.25.3)
24
+
25
+ PLATFORMS
26
+ ruby
27
+
28
+ DEPENDENCIES
29
+ pidfile (= 0.3.0)
30
+ rake (= 13.0.1)
31
+ rubocop (= 0.76.0)
32
+ terminal-table (= 1.8.0)
33
+ video_transcoding (= 0.25.3)
34
+
35
+ RUBY VERSION
36
+ ruby 2.6.3p62
37
+
38
+ BUNDLED WITH
39
+ 2.1.4
data/README.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Transcode
2
+ Tool to transcode batch of video files
2
3
 
3
- Tool to transcode batch of video files.
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
+ [![Gem
9
+ Version](https://badge.fury.io/rb/transcode.svg)](https://badge.fury.io/rb/transcode)
10
+ [![License](https://img.shields.io/github/license/rdavid/transcode)](https://github.com/rdavid/transcode/blob/master/LICENSE.txt)
4
11
 
5
12
  * [About](#about)
6
13
  * [Installation](#installation)
@@ -8,15 +15,14 @@ Tool to transcode batch of video files.
8
15
  * [License](#license)
9
16
 
10
17
  ## About
11
-
12
18
  Hi, I'm [David Rabkin](https://www.rabkin.co.il). I created this tool to
13
19
  enhance [Don Melton](http://donmelton.com/)'s [Video
14
- Transcoding](https://github.com/donmelton/video_transcoding/).
20
+ Transcoding](https://github.com/donmelton/video_transcoding/). It applies
21
+ Video Trascoding to each video file in a directory.
15
22
 
16
23
  ## Installation
17
-
18
24
  The tool is designed to work on macOS, GNU/Linux, Windows, Unix-like OS. It is
19
- packaged as a Gem and require Ruby version 2.3 or later. See «[Installing
25
+ packaged as a Gem and require Ruby version 2.6 or later. See «[Installing
20
26
  Ruby](https://www.ruby-lang.org/en/documentation/installation/)» if you don't
21
27
  have the proper version on your platform.
22
28
 
@@ -25,28 +31,31 @@ Use this command to install:
25
31
  gem install transcode
26
32
 
27
33
  ### Updating
28
-
29
34
  Use this command to update the package:
30
35
 
31
36
  gem update transcode
32
37
 
33
38
  ### Requirements
34
-
35
39
  See [Video Transcoding requirements](https://github.com/donmelton/video_transcoding/blob/master/README.md?ts=2#requirements).
36
40
 
37
41
  ## Usage
38
- Usage: transcode [options].
39
- -a, --act Real encoding.
40
- -s, --sca Scans files at the directory.
41
- -m, --mp3 Converts files to mp3.
42
- -d, --dir dir Directory to transcode.
43
- -i, --tit tit Specific title by number.
44
- -o, --out out Directory to output.
45
- -u, --aud aud Audio stream numbers.
46
- -t, --sub sub Subtitle stream numbers.
47
- -w, --wid wid Width of the table.
42
+ transcode [options]
43
+ -a, --act Real encoding.
44
+ -s, --sca Scans files at the directory.
45
+ -m, --mp3 Converts files to mp3.
46
+ -d, --dir dir Directory to transcode.
47
+ -i, --tit tit Specific title by number.
48
+ -o, --out out Directory to output.
49
+ -u, --aud aud Audio stream numbers.
50
+ -t, --sub sub Subtitle stream numbers.
51
+ -w, --wid wid Width of the table.
52
+
53
+ ### Example
54
+ transcode -d <source> -o <destination> -u 1,3,1 -t 2,1,3
55
+
56
+ It converts three files from source with certain audio and subtitle streams.
57
+ Inspect first with `-s` option to see audio and subtitle streams.
48
58
 
49
59
  ## License
50
-
51
60
  Transcode is copyright [David Rabkin](http://www.rabkin.co.il/) and
52
61
  available under a [2-Claus BSD license](https://github.com/rdavid/transcode/blob/master/LICENSE).
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # vi:ts=2 sw=2 tw=79 et lbr wrap
4
+ # Copyright 2020-present David Rabkin
5
+
6
+ task default: %w[test]
7
+
8
+ task :test do
9
+ # ruby 'test/unittest.rb'
10
+ end
@@ -0,0 +1,26 @@
1
+ ---
2
+ version: '{build}'
3
+ skip_tags: true
4
+ clone_depth: 10
5
+ branches:
6
+ only:
7
+ - master
8
+ except:
9
+ - gh-pages
10
+ os: Windows Server 2012
11
+ environment:
12
+ matrix:
13
+ - ruby_version: "26-x64"
14
+ install:
15
+ - ps: |
16
+ $Env:PATH = "C:\Ruby${Env:ruby_version}\bin;${Env:PATH}"
17
+ - bundle config --local path vendor/bundle
18
+ - ruby -v
19
+ - bundle -v
20
+ build_script:
21
+ - bundle update
22
+ - bundle install
23
+ test_script:
24
+ - bundle exec rake --quiet
25
+ cache:
26
+ - vendor/bundle
@@ -7,7 +7,7 @@ require 'optparse'
7
7
 
8
8
  module Transcode
9
9
  # Handles input parameters.
10
- class Configuration # rubocop:disable Metrics/ClassLength
10
+ class Configurator # rubocop:disable Metrics/ClassLength
11
11
  attr_reader :files
12
12
  DIC = [
13
13
  ['-a', '--act', 'Real encoding.', nil, :act],
@@ -12,7 +12,7 @@ module Transcode
12
12
  # Transcodes any video file to m4v format.
13
13
  class Transcoder
14
14
  def initialize
15
- @cfg = Configuration.new
15
+ @cfg = Configurator.new
16
16
  @rep = Reporter.new(@cfg.act?, "#{@cfg.dir} -> #{@cfg.out}", @cfg.wid)
17
17
  end
18
18
 
@@ -4,5 +4,5 @@
4
4
  # Copyright 2018-present David Rabkin
5
5
 
6
6
  module Transcode
7
- VERSION = '1.0.1'
7
+ VERSION = '1.0.2'
8
8
  end
@@ -7,7 +7,7 @@ require 'transcode'
7
7
  Gem::Specification.new do |s|
8
8
  s.name = 'transcode'
9
9
  s.version = Transcode::VERSION
10
- s.required_ruby_version = '>= 2.3'
10
+ s.required_ruby_version = '~> 2.6'
11
11
  s.summary = 'Tools to transcode batch of video files.'
12
12
  s.description = <<-HERE
13
13
  Transcode is a wraper on Video Transcoding.
@@ -23,5 +23,6 @@ Gem::Specification.new do |s|
23
23
  s.add_runtime_dependency 'pidfile', '0.3.0'
24
24
  s.add_runtime_dependency 'terminal-table', '1.8.0'
25
25
  s.add_runtime_dependency 'video_transcoding', '0.25.3'
26
+ s.add_development_dependency 'rake', '13.0.1'
26
27
  s.add_development_dependency 'rubocop', '0.76.0'
27
28
  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.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Rabkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-08 00:00:00.000000000 Z
11
+ date: 2020-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pidfile
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.25.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 13.0.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 13.0.1
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rubocop
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -75,8 +89,12 @@ extra_rdoc_files:
75
89
  - LICENSE
76
90
  - README.md
77
91
  files:
92
+ - Gemfile
93
+ - Gemfile.lock
78
94
  - LICENSE
79
95
  - README.md
96
+ - Rakefile
97
+ - appveyor.yml
80
98
  - bin/transcode
81
99
  - lib/transcode.rb
82
100
  - lib/transcode/configurator.rb
@@ -95,9 +113,9 @@ require_paths:
95
113
  - lib
96
114
  required_ruby_version: !ruby/object:Gem::Requirement
97
115
  requirements:
98
- - - ">="
116
+ - - "~>"
99
117
  - !ruby/object:Gem::Version
100
- version: '2.3'
118
+ version: '2.6'
101
119
  required_rubygems_version: !ruby/object:Gem::Requirement
102
120
  requirements:
103
121
  - - ">="