video_transcoding 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/bin/transcode-video +11 -1
- data/lib/video_transcoding/media.rb +2 -2
- 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: ebf08cb980d1fb3fbeea65f3785825cba62a2072
|
4
|
+
data.tar.gz: b72309cbf62bf637f18651cb725c62226ec21c1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee60f14f84e2776ca015a94b8baffb97e27d1c379fe30925bbc0ab4ccb765478db832ffa4966b406df3787e32f5cad084db54129701c152fda791c9a10221fc2
|
7
|
+
data.tar.gz: cd49f7bbc29897be2afa3c927530af7685a65d9bf6aa27b25567e4b926591b5c56a886afd223a91e269604f8e7ccacbf5e7a461683a5922910e28b9d44458b3b
|
data/README.md
CHANGED
@@ -659,6 +659,13 @@ For a few problematic videos, I have to apply options like `--force-rate 23.976
|
|
659
659
|
|
660
660
|
## History
|
661
661
|
|
662
|
+
### [0.14.0](https://github.com/donmelton/video_transcoding/releases/tag/0.14.0)
|
663
|
+
|
664
|
+
Wednesday, January 4, 2017
|
665
|
+
|
666
|
+
* Add a `--prefer-ac3` option to `transcode-video`. This prefers Dolby Digital AC-3 over AAC format when encoding or copying audio, even when the original track channel layout is stereo or mono. It also sets the audio output "width" for all tracks to `surround`. Via [ #112](https://github.com/donmelton/video_transcoding/issues/112).
|
667
|
+
* Fix a bug in the parsing of audio and subtitle track names that was introduced by the integration of Libav version 12.0 in HandBrake on December 17, 2016, affecting `HandBrakeCLI` versions 1.0.0 and later. This caused `transcode-video` to substitute any commas with underscores in added audio track names when used with those versions of `HandBrakeCLI`.
|
668
|
+
|
662
669
|
### [0.13.0](https://github.com/donmelton/video_transcoding/releases/tag/0.13.0)
|
663
670
|
|
664
671
|
Monday, January 2, 2017
|
data/bin/transcode-video
CHANGED
@@ -124,6 +124,9 @@ Audio options:
|
|
124
124
|
with `surround` to allow single surround or stereo track
|
125
125
|
with `stereo` to allow only single stereo track
|
126
126
|
(can be used multiple times)
|
127
|
+
--prefer-ac3 prefer AC-3 over AAC format when encoding or copying audio
|
128
|
+
even when original track channel layout is stereo or mono
|
129
|
+
(sets audio output "width" for all tracks to `surround`)
|
127
130
|
--ac3-bitrate 384|448|640
|
128
131
|
set AC-3 audio bitrate (default: 640)
|
129
132
|
--pass-ac3-bitrate 384|448|640
|
@@ -239,6 +242,7 @@ HERE
|
|
239
242
|
@audio_name = {}
|
240
243
|
@audio_language = []
|
241
244
|
@audio_width = {:main => :double, :other => :stereo}
|
245
|
+
@prefer_ac3 = false
|
242
246
|
@ac3_bitrate = 640
|
243
247
|
@pass_ac3_bitrate = 640
|
244
248
|
@copy_audio = []
|
@@ -533,6 +537,12 @@ HERE
|
|
533
537
|
end
|
534
538
|
end
|
535
539
|
|
540
|
+
opts.on '--prefer-ac3' do
|
541
|
+
@prefer_ac3 = true
|
542
|
+
@audio_width[:main] = :surround
|
543
|
+
@audio_width[:other] = :surround
|
544
|
+
end
|
545
|
+
|
536
546
|
opts.on '--ac3-bitrate ARG', Integer do |arg|
|
537
547
|
@ac3_bitrate = case arg
|
538
548
|
when 384, 448, 640
|
@@ -1090,7 +1100,7 @@ HERE
|
|
1090
1100
|
add_stereo.call info, copy
|
1091
1101
|
end
|
1092
1102
|
when :surround
|
1093
|
-
if info[:channels] > 2.0
|
1103
|
+
if @prefer_ac3 or (info[:channels] > 2.0)
|
1094
1104
|
add_surround.call info, copy
|
1095
1105
|
else
|
1096
1106
|
add_stereo.call info, copy
|
@@ -164,7 +164,7 @@ module VideoTranscoding
|
|
164
164
|
track_info[:default] = false
|
165
165
|
end
|
166
166
|
|
167
|
-
if @scan =~ /[ ]+Stream #0[.:]#{stream}[^ ]*: Audio: [^\n]+\n[ ]+Metadata:\r?\n^[ ]+title[ ]+: ([^\r\n]+)/m
|
167
|
+
if @scan =~ /[ ]+Stream #0[.:]#{stream}[^ ]*: Audio: [^\n]+\n(?:[^\n]+\n)?[ ]+Metadata:\r?\n^[ ]+title[ ]+: ([^\r\n]+)/m
|
168
168
|
track_info[:name] = $1
|
169
169
|
else
|
170
170
|
track_info[:name] = nil
|
@@ -189,7 +189,7 @@ module VideoTranscoding
|
|
189
189
|
track_info[:forced] = false
|
190
190
|
end
|
191
191
|
|
192
|
-
if @scan =~ /[ ]+Stream #0[.:]#{stream}[^ ]*: Subtitle: [^\n]+\n[ ]+Metadata:\r?\n^[ ]+title[ ]+: ([^\r\n]+)/m
|
192
|
+
if @scan =~ /[ ]+Stream #0[.:]#{stream}[^ ]*: Subtitle: [^\n]+\n(?:[^\n]+\n)?[ ]+Metadata:\r?\n^[ ]+title[ ]+: ([^\r\n]+)/m
|
193
193
|
track_info[:name] = $1
|
194
194
|
else
|
195
195
|
track_info[:name] = nil
|
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.14.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: 2017-01-
|
11
|
+
date: 2017-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
Video Transcoding is a package of tools to transcode, inspect
|