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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e73d4a897414a0bb116ce153fa97ffac515d023
4
- data.tar.gz: e4d4a16190bfeceb175710c630cc9f723666baef
3
+ metadata.gz: faea1ae1a2ac6a14167270f2ae3776edb72f7bbd
4
+ data.tar.gz: bba58ce4331c8d14e65d7de0b23518d2d89c4a73
5
5
  SHA512:
6
- metadata.gz: 3798329029a8aff027b8f29cdc51ff13188676686f04d289163ceaf9cd5a963371c198a53d908a75575b4599415d31516850baaf204b943cb75d72bee81bb915
7
- data.tar.gz: ba8ed46845a07abd82b340d53ac7d0571b092c99ff3002d11d610764a6dfe3ec140ee52686fa19e35b9e7d758b7986f726c7caec3585c9cec0ba0ff0dedc39e7
6
+ metadata.gz: 0fb6446277b35dfaf6891f1065fa64f3c51e8b99d3e9370f8509de265202e19191c286a46db4f65945ff1a1a42ef44b0f27619764ce1dc18435fba740193e94b
7
+ data.tar.gz: e753397f951b625b6a9f297472dcfbab34b691db7238809cb77c7e1c61feb862e65091e0f87ff226217cd64e657a80f1ca5ebd0bf88696fd52c6672ce0be6900
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013-2016 Don Melton
1
+ Copyright (c) 2013-2017 Don Melton
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
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, the other dependencies can be easily installed via [Homebrew](http://brew.sh/), an add-on package manager:
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` nightly builds from September 29, 2016, or later.
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. As of this writing, HandBrake only supports Enhanced AC-3 in development builds.
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 development builds. I'll consider adding support once an Enhanced AC-3 feature without that limitation is available in an official HandBrake release.
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
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # convert-video
4
4
  #
5
- # Copyright (c) 2013-2016 Don Melton
5
+ # Copyright (c) 2013-2017 Don Melton
6
6
  #
7
7
 
8
8
  $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
data/bin/detect-crop CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # detect-crop
4
4
  #
5
- # Copyright (c) 2013-2016 Don Melton
5
+ # Copyright (c) 2013-2017 Don Melton
6
6
  #
7
7
 
8
8
  $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # query-handbrake-log
4
4
  #
5
- # Copyright (c) 2013-2016 Don Melton
5
+ # Copyright (c) 2013-2017 Don Melton
6
6
  #
7
7
 
8
8
  $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
data/bin/transcode-video CHANGED
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # transcode-video
4
4
  #
5
- # Copyright (c) 2013-2016 Don Melton
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['mixed-refs'] = '0'
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
 
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # cli.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  require 'optparse'
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # console.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,9 +1,9 @@
1
1
  #
2
2
  # copyright.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
8
- COPYRIGHT = 'Copyright (c) 2013-2016 Don Melton'
8
+ COPYRIGHT = 'Copyright (c) 2013-2017 Don Melton'
9
9
  end
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # crop.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # errors.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # ffmpeg.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # handbrake.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # media.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # mkvmerge.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # mkvpropedit.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # mp4track.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # mplayer.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # tool.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
@@ -1,9 +1,9 @@
1
1
  #
2
2
  # version.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  module VideoTranscoding
8
- VERSION = '0.12.3'
8
+ VERSION = '0.13.0'
9
9
  end
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # video_transcoding.rb
3
3
  #
4
- # Copyright (c) 2013-2016 Don Melton
4
+ # Copyright (c) 2013-2017 Don Melton
5
5
  #
6
6
 
7
7
  require 'English'
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.3
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: 2016-12-07 00:00:00.000000000 Z
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.5.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.