video_transcoding 0.12.3 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +18 -8
- data/bin/convert-video +1 -1
- data/bin/detect-crop +1 -1
- data/bin/query-handbrake-log +1 -1
- data/bin/transcode-video +17 -23
- data/lib/video_transcoding/cli.rb +1 -1
- data/lib/video_transcoding/console.rb +1 -1
- data/lib/video_transcoding/copyright.rb +2 -2
- data/lib/video_transcoding/crop.rb +1 -1
- data/lib/video_transcoding/errors.rb +1 -1
- data/lib/video_transcoding/ffmpeg.rb +1 -1
- data/lib/video_transcoding/handbrake.rb +1 -1
- data/lib/video_transcoding/media.rb +1 -1
- data/lib/video_transcoding/mkvmerge.rb +1 -1
- data/lib/video_transcoding/mkvpropedit.rb +1 -1
- data/lib/video_transcoding/mp4track.rb +1 -1
- data/lib/video_transcoding/mplayer.rb +1 -1
- data/lib/video_transcoding/tool.rb +1 -1
- data/lib/video_transcoding/version.rb +2 -2
- data/lib/video_transcoding.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faea1ae1a2ac6a14167270f2ae3776edb72f7bbd
|
4
|
+
data.tar.gz: bba58ce4331c8d14e65d7de0b23518d2d89c4a73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fb6446277b35dfaf6891f1065fa64f3c51e8b99d3e9370f8509de265202e19191c286a46db4f65945ff1a1a42ef44b0f27619764ce1dc18435fba740193e94b
|
7
|
+
data.tar.gz: e753397f951b625b6a9f297472dcfbab34b691db7238809cb77c7e1c61feb862e65091e0f87ff226217cd64e657a80f1ca5ebd0bf88696fd52c6672ce0be6900
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -71,17 +71,14 @@ You can download the command line version of HandBrake, called `HandBrakeCLI`, h
|
|
71
71
|
|
72
72
|
<https://handbrake.fr/downloads2.php>
|
73
73
|
|
74
|
-
On macOS,
|
74
|
+
On macOS, `HandBrakeCLI` and all its other dependencies can be easily installed via [Homebrew](http://brew.sh/), an add-on package manager:
|
75
75
|
|
76
|
+
brew install handbrake
|
76
77
|
brew install ffmpeg
|
77
78
|
brew install mkvtoolnix
|
78
79
|
brew install mp4v2
|
79
80
|
brew install mplayer
|
80
81
|
|
81
|
-
`HandBrakeCLI` is also available via [Homebrew Cask](http://caskroom.io/), an extension to Homebrew:
|
82
|
-
|
83
|
-
brew cask install handbrakecli
|
84
|
-
|
85
82
|
On Linux, package management systems vary so it's best consult the indexes for those systems. But there's a Homebrew port available called [Linuxbrew](http://linuxbrew.sh/) and it doesn't require root access.
|
86
83
|
|
87
84
|
On Windows, it's best to search the Web for the appropriate binary or add-on package manager. The [VideoHelp](http://www.videohelp.com) and [Cygwin](https://cygwin.com/) sites are a good place to start. Or you could try installing into the [Windows Subsystem for Linux](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) as described here:
|
@@ -624,7 +621,7 @@ You can try _experimental_ HEVC transcoding now with an advanced option:
|
|
624
621
|
|
625
622
|
transcode-video --handbrake-option encoder=x265 "/path/to/Movie.mkv"
|
626
623
|
|
627
|
-
But use this _only_ with `HandBrakeCLI`
|
624
|
+
But use this _only_ with `HandBrakeCLI` version 1.0.0 or later.
|
628
625
|
|
629
626
|
### What about hardware-based video transcoding?
|
630
627
|
|
@@ -634,11 +631,11 @@ Also, keep in mind that hardware encoders are typically designed for realtime vi
|
|
634
631
|
|
635
632
|
### Can you add support for Enhanced AC-3 audio?
|
636
633
|
|
637
|
-
[Dolby Digital Plus](https://en.wikipedia.org/wiki/Dolby_Digital_Plus) or Enhanced AC-3 is a successor to the Dolby Digital AC-3 audio format. AC-3 is the format currently output by `transcode-video` when surround audio is used as input.
|
634
|
+
[Dolby Digital Plus](https://en.wikipedia.org/wiki/Dolby_Digital_Plus) or Enhanced AC-3 is a successor to the Dolby Digital AC-3 audio format. AC-3 is the format currently output by `transcode-video` when surround audio is used as input. HandBrake has supported Enhanced AC-3 since version 1.0.0.
|
638
635
|
|
639
636
|
The original AC-3 format is limited to 5.1 audio channels. This means that any 7.1 channel audio track, typically available on Blu-ray Discs, needs to be downmixed during transcoding. The advantage to Enhanced AC-3 is that it can support up to 13.1 audio channels, so no downmixing is necessary.
|
640
637
|
|
641
|
-
Unfortunately, Enhanced AC-3 output is currently limited to 5.1 audio channels in HandBrake
|
638
|
+
Unfortunately, Enhanced AC-3 output is currently limited to 5.1 audio channels in HandBrake. I'll consider adding support once an Enhanced AC-3 feature without that limitation is available.
|
642
639
|
|
643
640
|
### How do you assess video transcoding quality?
|
644
641
|
|
@@ -662,6 +659,19 @@ For a few problematic videos, I have to apply options like `--force-rate 23.976
|
|
662
659
|
|
663
660
|
## History
|
664
661
|
|
662
|
+
### [0.13.0](https://github.com/donmelton/video_transcoding/releases/tag/0.13.0)
|
663
|
+
|
664
|
+
Monday, January 2, 2017
|
665
|
+
|
666
|
+
* Modify the `--quick` option in `transcode-video` to remove the x264 `mixed-refs=0` setting because it's unnecessary when the `ref=1` setting is also applied. Via [ #108](https://github.com/donmelton/video_transcoding/issues/108).
|
667
|
+
* Add a `--veryquick` option to `transcode-video` for encoding 90-125% faster than the default setting with little easily perceptible loss in video quality. Unlike `--quick`, its output size is larger than the default. Via [ #108](https://github.com/donmelton/video_transcoding/issues/108).
|
668
|
+
* Remove the deprecated `--small` and `--small-video` options from `transcode-video`.
|
669
|
+
* Update all copyright notices to the year 2017.
|
670
|
+
* Update the "README" document to:
|
671
|
+
* Revise the installation instructions to reflect that `HandBrakeCLI` has been removed from Homebrew Cask (thanks to [@vitorgalvao](https://github.com/vitorgalvao)) and is now part of Homebrew Core (thanks to [@JMoVS](https://github.com/JMoVS)). Via [ #106](https://github.com/donmelton/video_transcoding/pull/106) from [@vitorgalvao](https://github.com/vitorgalvao).
|
672
|
+
* Revise the version of `HandBrakeCLI` required for HEVC transcoding to 1.0.0 or later in the "FAQ" section.
|
673
|
+
* Clarify Enhanced AC-3 audio support in the "FAQ" section.
|
674
|
+
|
665
675
|
### [0.12.3](https://github.com/donmelton/video_transcoding/releases/tag/0.12.3)
|
666
676
|
|
667
677
|
Tuesday, December 6, 2016
|
data/bin/convert-video
CHANGED
data/bin/detect-crop
CHANGED
data/bin/query-handbrake-log
CHANGED
data/bin/transcode-video
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# transcode-video
|
4
4
|
#
|
5
|
-
# Copyright (c) 2013-
|
5
|
+
# Copyright (c) 2013-2017 Don Melton
|
6
6
|
#
|
7
7
|
|
8
8
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
|
@@ -68,6 +68,9 @@ Quality options:
|
|
68
68
|
--quick increase encoding speed by 70-80%
|
69
69
|
with no easily perceptible loss in video quality
|
70
70
|
(avoids quality problems associated with x264 presets)
|
71
|
+
--veryquick increase encoding speed by 90-125%
|
72
|
+
with little easily perceptible loss in video quality
|
73
|
+
(unlike `--quick`, output size is larger than default)
|
71
74
|
--preset veryfast|faster|fast|slow|slower|veryslow
|
72
75
|
apply x264 encoder preset
|
73
76
|
|
@@ -225,6 +228,7 @@ HERE
|
|
225
228
|
@vbv_maxrate_720p = 3000
|
226
229
|
@vbv_maxrate_480p = 1500
|
227
230
|
@quick = false
|
231
|
+
@veryquick = false
|
228
232
|
@crop = {:top => 0, :bottom => 0, :left => 0, :right => 0}
|
229
233
|
@constrain_crop = false
|
230
234
|
@fallback_crop = nil
|
@@ -347,28 +351,16 @@ HERE
|
|
347
351
|
@vbr_quality = nil
|
348
352
|
end
|
349
353
|
|
350
|
-
opts.on '--small' do
|
351
|
-
Console.warn 'Using deprecated option: --small'
|
352
|
-
@vbv_maxrate_2160p = 8000
|
353
|
-
@vbv_maxrate_1080p = 4000
|
354
|
-
@vbv_maxrate_720p = 2000
|
355
|
-
@vbv_maxrate_480p = 1000
|
356
|
-
@ac3_bitrate = 384
|
357
|
-
@pass_ac3_bitrate = 448
|
358
|
-
@target_bitrate = nil
|
359
|
-
end
|
360
|
-
|
361
|
-
opts.on '--small-video' do
|
362
|
-
Console.warn 'Using deprecated option: --small-video'
|
363
|
-
@vbv_maxrate_2160p = 8000
|
364
|
-
@vbv_maxrate_1080p = 4000
|
365
|
-
@vbv_maxrate_720p = 2000
|
366
|
-
@vbv_maxrate_480p = 1000
|
367
|
-
@target_bitrate = nil
|
368
|
-
end
|
369
|
-
|
370
354
|
opts.on '--quick' do
|
371
355
|
@quick = true
|
356
|
+
@veryquick = false
|
357
|
+
@handbrake_options.delete 'encoder'
|
358
|
+
@handbrake_options.delete 'encoder-preset'
|
359
|
+
end
|
360
|
+
|
361
|
+
opts.on '--veryquick' do
|
362
|
+
@veryquick = true
|
363
|
+
@quick = false
|
372
364
|
@handbrake_options.delete 'encoder'
|
373
365
|
@handbrake_options.delete 'encoder-preset'
|
374
366
|
end
|
@@ -383,6 +375,7 @@ HERE
|
|
383
375
|
end
|
384
376
|
|
385
377
|
@quick = false
|
378
|
+
@veryquick = false
|
386
379
|
end
|
387
380
|
|
388
381
|
opts.on '--crop ARG' do |arg|
|
@@ -961,13 +954,14 @@ HERE
|
|
961
954
|
handbrake_options['quality'] = @vbr_quality.to_s.gsub(/\.0+$/, '') unless @vbr_quality.nil?
|
962
955
|
end
|
963
956
|
|
964
|
-
if @quick and
|
957
|
+
if (@quick or @veryquick) and
|
965
958
|
@handbrake_options.fetch('encoder-preset', 'medium') == 'medium' and
|
966
959
|
encoder == 'x264'
|
967
960
|
encoder_options['partitions'] = 'none'
|
968
961
|
encoder_options['ref'] = '1'
|
969
|
-
encoder_options['
|
962
|
+
encoder_options['bframes'] = '1' if @veryquick
|
970
963
|
encoder_options['rc-lookahead'] = '30'
|
964
|
+
encoder_options['me'] = 'dia' if @veryquick
|
971
965
|
end
|
972
966
|
end
|
973
967
|
|
data/lib/video_transcoding.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: video_transcoding
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Don Melton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
Video Transcoding is a package of tools to transcode, inspect
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
68
|
rubyforge_project:
|
69
|
-
rubygems_version: 2.
|
69
|
+
rubygems_version: 2.6.8
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: Tools to transcode, inspect and convert videos.
|