video_transcoding 0.12.2 → 0.12.3
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/README.md +23 -15
- data/bin/transcode-video +4 -5
- data/lib/video_transcoding/version.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: 7e73d4a897414a0bb116ce153fa97ffac515d023
|
4
|
+
data.tar.gz: e4d4a16190bfeceb175710c630cc9f723666baef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3798329029a8aff027b8f29cdc51ff13188676686f04d289163ceaf9cd5a963371c198a53d908a75575b4599415d31516850baaf204b943cb75d72bee81bb915
|
7
|
+
data.tar.gz: ba8ed46845a07abd82b340d53ac7d0571b092c99ff3002d11d610764a6dfe3ec140ee52686fa19e35b9e7d758b7986f726c7caec3585c9cec0ba0ff0dedc39e7
|
data/README.md
CHANGED
@@ -90,6 +90,10 @@ On Windows, it's best to search the Web for the appropriate binary or add-on pac
|
|
90
90
|
|
91
91
|
When installing `HandBrakeCLI` or other downloaded programs, make sure the executable binary is in a directory listed in your `PATH` environment variable. On Unix-style systems like macOS and Linux, that directory might be `/usr/local/bin`.
|
92
92
|
|
93
|
+
If you're comfortable using [Docker virtualization software](https://en.wikipedia.org/wiki/Docker_(software)), a pre-built container with everything you need, plus installation instructions, is available here:
|
94
|
+
|
95
|
+
<https://hub.docker.com/r/ntodd/video-transcoding/>
|
96
|
+
|
93
97
|
## Rationale
|
94
98
|
|
95
99
|
### Why `transcode-video`?
|
@@ -446,27 +450,22 @@ I have four rules when preparing my own media for transcoding:
|
|
446
450
|
|
447
451
|
The `--preset` option in `transcode-video` controls the x264 video encoder, not the other preset system built into HandBrake. It takes a preset name as its single argument:
|
448
452
|
|
449
|
-
transcode-video --preset
|
453
|
+
transcode-video --preset slow "/path/to/Movie.mkv"
|
450
454
|
|
451
455
|
The x264 preset names (mostly) reflect their relative speed compared to the default, `medium`.
|
452
456
|
|
453
|
-
|
454
|
-
|
455
|
-
`
|
456
|
-
|
457
|
-
|
458
|
-
`faster` | use with caution
|
459
|
-
`fast` | good but you might want to use `--quick` instead
|
460
|
-
`medium` | default
|
461
|
-
`slow` | ​
|
462
|
-
`slower` | ​
|
463
|
-
`veryslow` | ​
|
464
|
-
`placebo` | not recommended
|
465
|
-
|
466
|
-
Presets faster than `medium` trade precision and compression efficiency for more speed. That tradeoff is acceptable for the `fast` preset. But you may notice occasional quality loss problems when using the `faster` or `veryfast` presets.
|
457
|
+
Presets faster than `medium` trade precision and compression efficiency for more speed. You may notice quality loss problems when using these presets, especially as speed increases.
|
458
|
+
|
459
|
+
However, you can increase encoding speed by 70-80% with no easily perceptible loss in video quality by using the `--quick` option instead:
|
460
|
+
|
461
|
+
transcode-video --quick "/path/to/Movie.mkv"
|
467
462
|
|
468
463
|
Presets slower than `medium` trade encoding speed for more precision and compression efficiency. Any quality improvement using these presets may not be perceptible for most input.
|
469
464
|
|
465
|
+
A faster and more perceptible way to improve quality is to simply raise the target video bitrate 50% by using the `--target big` option and argument macro:
|
466
|
+
|
467
|
+
transcode-video --target big "/path/to/Movie.mkv"
|
468
|
+
|
470
469
|
### Recommended `transcode-video` usage
|
471
470
|
|
472
471
|
Use the default settings whenever possible.
|
@@ -663,6 +662,15 @@ For a few problematic videos, I have to apply options like `--force-rate 23.976
|
|
663
662
|
|
664
663
|
## History
|
665
664
|
|
665
|
+
### [0.12.3](https://github.com/donmelton/video_transcoding/releases/tag/0.12.3)
|
666
|
+
|
667
|
+
Tuesday, December 6, 2016
|
668
|
+
|
669
|
+
* Increase the speed and quality of the `--quick` option. Encoding is now _70-80% faster_ than the default setting with _no easily perceptible loss in video quality_. The improvement is so good that I no longer recommend using x264 presets to speed things up. Via [ #104](https://github.com/donmelton/video_transcoding/issues/104).
|
670
|
+
* Update the "README" document to:
|
671
|
+
* Revise the "Understanding the x264 preset system" section to suggest using `--quick` or `--target big` instead of faster or slower presets.
|
672
|
+
* Add Docker virtualization software installation instructions. Via [ #98](https://github.com/donmelton/video_transcoding/issues/98) from [@ntodd](https://github.com/ntodd).
|
673
|
+
|
666
674
|
### [0.12.2](https://github.com/donmelton/video_transcoding/releases/tag/0.12.2)
|
667
675
|
|
668
676
|
Sunday, November 6, 2016
|
data/bin/transcode-video
CHANGED
@@ -65,9 +65,9 @@ Quality options:
|
|
65
65
|
or target for specific input resolution
|
66
66
|
(can be exceeded to maintain video quality)
|
67
67
|
(can be used multiple times)
|
68
|
-
--quick
|
69
|
-
|
70
|
-
(avoids quality
|
68
|
+
--quick increase encoding speed by 70-80%
|
69
|
+
with no easily perceptible loss in video quality
|
70
|
+
(avoids quality problems associated with x264 presets)
|
71
71
|
--preset veryfast|faster|fast|slow|slower|veryslow
|
72
72
|
apply x264 encoder preset
|
73
73
|
|
@@ -964,9 +964,8 @@ HERE
|
|
964
964
|
if @quick and
|
965
965
|
@handbrake_options.fetch('encoder-preset', 'medium') == 'medium' and
|
966
966
|
encoder == 'x264'
|
967
|
+
encoder_options['partitions'] = 'none'
|
967
968
|
encoder_options['ref'] = '1'
|
968
|
-
encoder_options['weightp'] = '1'
|
969
|
-
encoder_options['subme'] = '6'
|
970
969
|
encoder_options['mixed-refs'] = '0'
|
971
970
|
encoder_options['rc-lookahead'] = '30'
|
972
971
|
end
|
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.12.
|
4
|
+
version: 0.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Don Melton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-07 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.5.
|
69
|
+
rubygems_version: 2.5.2
|
70
70
|
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: Tools to transcode, inspect and convert videos.
|