video_transcoding 0.11.0 → 0.11.1
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 +25 -10
- data/bin/transcode-video +3 -10
- data/lib/video_transcoding/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1a2160cfa70551d7ab81f91c0e3cd683ac0b9bf
|
4
|
+
data.tar.gz: b1a56c9b2e5a5b5e2dec110828f7014ace48f217
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7d9f359bacd4c0a44cebaf916da150921b26073f88d1dbe0a0b6b49c1a939c5e3d0fa5254f41e1a6596554ddab4ae9c35086b59d515f8ff9da91b32d1799f69
|
7
|
+
data.tar.gz: 41beec3d9fe83947cf35bc51c17db29e05054b8f82c91604ba221dacd4e3bb8f47d26499e47ca5dc094d2c5481f6c7f544cfba24098e2d85ee989fe7fd0b1873
|
data/README.md
CHANGED
@@ -471,7 +471,7 @@ The `--preset` option in `transcode-video` controls the x264 video encoder, not
|
|
471
471
|
|
472
472
|
transcode-video --preset fast "/path/to/Movie.mkv"
|
473
473
|
|
474
|
-
The x264
|
474
|
+
The x264 preset names (mostly) reflect their relative speed compared to the default, `medium`.
|
475
475
|
|
476
476
|
Preset name | Note
|
477
477
|
--- | --- | ---
|
@@ -481,14 +481,14 @@ Preset name | Note
|
|
481
481
|
`faster` | use with caution
|
482
482
|
`fast` | good but you might want to use `--quick` instead
|
483
483
|
`medium` | default
|
484
|
-
`slow` |
|
485
|
-
`slower` |
|
486
|
-
`veryslow` |
|
484
|
+
`slow` | <!---->
|
485
|
+
`slower` | <!---->
|
486
|
+
`veryslow` | <!---->
|
487
487
|
`placebo` | not recommended
|
488
488
|
|
489
|
-
Presets faster than `medium` trade precision 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.
|
489
|
+
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.
|
490
490
|
|
491
|
-
Presets slower than `medium` trade encoding speed for more compression efficiency. Any quality improvement using these presets may not be perceptible for most input.
|
491
|
+
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.
|
492
492
|
|
493
493
|
### Recommended `transcode-video` usage
|
494
494
|
|
@@ -595,9 +595,11 @@ Plus, I wouldn't use a GUI for these tasks. And it's a bad idea to develop softw
|
|
595
595
|
|
596
596
|
[High Efficiency Video Coding](https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding) or H.265 is the likely successor to [H.264](https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC), which is the format currently output by `transcode-video`. HandBrake has supported H.265 ever since it included the [x265 video encoder](http://x265.org/).
|
597
597
|
|
598
|
-
|
598
|
+
My ratecontrol system can't be applied with the current version of the x265 encoder in HandBrake because it doesn't allow access to `qpmax`, critical for maintaining quality in certain situations. I'll consider adding support once the [fix for `qpmax` support in x265](https://bitbucket.org/multicoreware/x265/issues/232/add-option-to-specify-qpmax) is available in an official HandBrake release.
|
599
599
|
|
600
|
-
|
600
|
+
But support also requires equivalent quality at a smaller size when using my rate control system. And performance is an issue. While speed continues to improve, the x265 encoder is still considerably slower than the current H.264 system.
|
601
|
+
|
602
|
+
In the meantime, I recommend using the `--small` option to reduce output size. As a bonus, it's also faster.
|
601
603
|
|
602
604
|
### What about hardware-based video transcoding?
|
603
605
|
|
@@ -611,7 +613,7 @@ Also, keep in mind that hardware encoders are typically designed for realtime vi
|
|
611
613
|
|
612
614
|
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.
|
613
615
|
|
614
|
-
I'll consider adding support once Enhanced AC-3 is available in an official HandBrake release.
|
616
|
+
Unfortunately, Enhanced AC-3 output is currently limited to 5.1 audio channels in HandBrake development builds. I'll consider adding support once an Enhanced AC-3 feature without that limitation is available in an official HandBrake release.
|
615
617
|
|
616
618
|
### How do you assess video transcoding quality?
|
617
619
|
|
@@ -623,7 +625,9 @@ What I don't use are [peak signal-to-noise ratios](https://en.wikipedia.org/wiki
|
|
623
625
|
|
624
626
|
### What options do you use with `transcode-video`?
|
625
627
|
|
626
|
-
|
628
|
+
I use the default settings. That's why they're the defaults.
|
629
|
+
|
630
|
+
But sometimes I use the `--small` option for more space savings.
|
627
631
|
|
628
632
|
I never use the `--crop detect` function of `transcode-video` because I don't trust either `HandBrakeCLI` or `mplayer` to always get it right without supervision. Instead, I use the separate `detect-crop` tool before transcoding to manually review and apply the best crop values.
|
629
633
|
|
@@ -635,6 +639,17 @@ For a few problematic videos, I have to apply options like `--force-rate 23.976
|
|
635
639
|
|
636
640
|
## History
|
637
641
|
|
642
|
+
### [0.11.1](https://github.com/donmelton/video_transcoding/releases/tag/0.11.1)
|
643
|
+
|
644
|
+
Monday, September 26, 2016
|
645
|
+
|
646
|
+
* Add `queue-import-file` and anything starting with `preset` to the list of unsupported `HandBrakeCLI` options.
|
647
|
+
* Back out a change from version 0.3.1 to optimize setting the encoder level to behave more like past versions. This made no actual difference in the output video, only the `.log` file.
|
648
|
+
* Update the "README" document to:
|
649
|
+
* Clarify tradeoffs when using the x264 preset system.
|
650
|
+
* Revise the status of H.265 and Enhanced AC-3 support.
|
651
|
+
* Tweak the description of how I use `transcode-video`. Again.
|
652
|
+
|
638
653
|
### [0.11.0](https://github.com/donmelton/video_transcoding/releases/tag/0.11.0)
|
639
654
|
|
640
655
|
Thursday, September 15, 2016
|
data/bin/transcode-video
CHANGED
@@ -732,8 +732,8 @@ HERE
|
|
732
732
|
|
733
733
|
def filter_handbrake_option(name)
|
734
734
|
case name
|
735
|
-
when 'help', 'update',
|
736
|
-
'scan', 'main-feature', 'previews', 'output', 'format',
|
735
|
+
when 'help', 'update', /^preset/, 'queue-import-file', 'input',
|
736
|
+
'title', 'scan', 'main-feature', 'previews', 'output', 'format',
|
737
737
|
'encoder-preset-list', 'encoder-tune-list', 'encoder-profile-list',
|
738
738
|
'encoder-level-list'
|
739
739
|
fail UsageError, "unsupported HandBrakeCLI option name: #{name}"
|
@@ -873,14 +873,7 @@ HERE
|
|
873
873
|
vbv_maxrate = @vbv_maxrate_480p
|
874
874
|
end
|
875
875
|
|
876
|
-
preset = @handbrake_options.fetch('encoder-preset', 'medium')
|
877
|
-
|
878
876
|
if @abr_bitrate.nil? and @vbr_quality.nil?
|
879
|
-
case preset
|
880
|
-
when 'ultrafast', 'superfast', 'veryfast', 'faster', 'fast', 'medium'
|
881
|
-
handbrake_options['encoder-level'] = 'auto'
|
882
|
-
end
|
883
|
-
|
884
877
|
handbrake_options['quality'] = '1'
|
885
878
|
|
886
879
|
if @target_bitrate.nil?
|
@@ -920,7 +913,7 @@ HERE
|
|
920
913
|
handbrake_options['quality'] = @vbr_quality.to_s.gsub(/\.0+$/, '') unless @vbr_quality.nil?
|
921
914
|
end
|
922
915
|
|
923
|
-
if @quick and preset == 'medium'
|
916
|
+
if @quick and @handbrake_options.fetch('encoder-preset', 'medium') == 'medium'
|
924
917
|
encoder_options['ref'] = '1'
|
925
918
|
encoder_options['weightp'] = '1'
|
926
919
|
encoder_options['subme'] = '6'
|
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.11.
|
4
|
+
version: 0.11.1
|
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-09-
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
Video Transcoding is a package of tools to transcode, inspect
|