other_video_transcoding 0.3.0 → 0.3.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/CHANGELOG.md +9 -0
- data/README.md +3 -1
- data/bin/ask-ffmpeg-log +1 -1
- data/bin/other-transcode +15 -7
- data/other_video_transcoding.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d1384cb7611877537d9ff8d72a42251c40697b73685fabfc57ac5796e9e3ebc
|
4
|
+
data.tar.gz: 813d5df34e4c000f85b0a369acc77b48c57ba66bdcfec8f408dded228a8c5598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 189041c0f4c25d0c62376db9f8b5eaf55a819a7c647cc21e8d424355b2e525626096dd2620ad46de2afaba1421f90f455cbea08a56c058244c67a0775654f1af
|
7
|
+
data.tar.gz: c0c7b1103fbbd187e951f6f16784f74ec7cd966bb50234fa51469b7f2522de880cab2330b2c32fbe984041b84c2eda87e965d6c8d0da2eb1b97db64f4174885f
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,15 @@
|
|
2
2
|
|
3
3
|
This single document contains all of the notes created for each [release](https://github.com/donmelton/other_video_transcoding/releases).
|
4
4
|
|
5
|
+
## [0.3.1](https://github.com/donmelton/other_video_transcoding/releases/tag/0.3.1)
|
6
|
+
|
7
|
+
Tuesday, May 26, 2020
|
8
|
+
|
9
|
+
* Modify the `--preview-crop` option in `other-transcode` to show commands compatible with newer versions of `mpv`.
|
10
|
+
* No longer force a NTSC film frame rate for interlaced inputs in PAL MPEG-2 format.
|
11
|
+
* When using the `--dry-run` option in `other-transcode`, issue a warning instead of failing if the output or log files already exist.
|
12
|
+
* Add a link to another Docker container for Linux in the "README" document. Thanks, @ttyS0!
|
13
|
+
|
5
14
|
## [0.3.0](https://github.com/donmelton/other_video_transcoding/releases/tag/0.3.0)
|
6
15
|
|
7
16
|
Thursday, February 27, 2020
|
data/README.md
CHANGED
@@ -62,7 +62,9 @@ See "[Download FFmpeg](https://ffmpeg.org/download.html)," "[MKVToolNix Download
|
|
62
62
|
|
63
63
|
Additional documentation for installing these programs on Windows is available in the [wiki](https://github.com/donmelton/other_video_transcoding/wiki/Windows).
|
64
64
|
|
65
|
-
|
65
|
+
[Docker](https://en.wikipedia.org/wiki/Docker_(software)) containers for Linux, including installation instructions, are available here:
|
66
|
+
|
67
|
+
https://github.com/ttyS0/docker-transcode-nvidia
|
66
68
|
|
67
69
|
https://github.com/ttyS0/docker-transcode-vaapi
|
68
70
|
|
data/bin/ask-ffmpeg-log
CHANGED
data/bin/other-transcode
CHANGED
@@ -18,7 +18,7 @@ module Transcoding
|
|
18
18
|
class Command
|
19
19
|
def about
|
20
20
|
<<HERE
|
21
|
-
other-transcode 0.3.
|
21
|
+
other-transcode 0.3.1
|
22
22
|
Copyright (c) 2019-2020 Don Melton
|
23
23
|
HERE
|
24
24
|
end
|
@@ -969,13 +969,13 @@ HERE
|
|
969
969
|
|
970
970
|
unless @scan or @detect
|
971
971
|
output_path = File.basename(path, '.*') + '.' + @format.to_s
|
972
|
-
|
972
|
+
fail_or_warn "output file already exists: #{output_path}" if File.exist? output_path
|
973
973
|
|
974
974
|
log_path = output_path + '.log'
|
975
|
-
|
975
|
+
fail_or_warn "log file already exists: #{log_path}" if File.exist? log_path
|
976
976
|
|
977
977
|
tmp_log_path = "_ffmpeg_#{rand(10000..99999)}_#{$PROCESS_ID}.#{@format.to_s}.log"
|
978
|
-
|
978
|
+
fail_or_warn "log file already exists: #{tmp_log_path}" if File.exist? tmp_log_path
|
979
979
|
end
|
980
980
|
|
981
981
|
media_info = scan_media(path)
|
@@ -1090,6 +1090,14 @@ HERE
|
|
1090
1090
|
Kernel.warn "\nElapsed time: #{seconds_to_time(Time.now.tv_sec - seconds)}\n\n"
|
1091
1091
|
end
|
1092
1092
|
|
1093
|
+
def fail_or_warn(message)
|
1094
|
+
if @dry_run
|
1095
|
+
Kernel.warn "#{$PROGRAM_NAME}: #{message}"
|
1096
|
+
else
|
1097
|
+
fail message
|
1098
|
+
end
|
1099
|
+
end
|
1100
|
+
|
1093
1101
|
def scan_media(path)
|
1094
1102
|
Kernel.warn 'Scanning media...'
|
1095
1103
|
output = ''
|
@@ -1333,10 +1341,10 @@ HERE
|
|
1333
1341
|
drawbox_string = "#{crop[:x]}:#{crop[:y]}:#{crop[:width]}:#{crop[:height]}"
|
1334
1342
|
puts
|
1335
1343
|
puts escape_command([
|
1336
|
-
'mpv', '--no-audio',
|
1344
|
+
'mpv', '--no-audio', "--vf=lavfi=[drawbox=#{drawbox_string}:invert:1]", path
|
1337
1345
|
])
|
1338
1346
|
puts escape_command([
|
1339
|
-
'mpv', '--no-audio',
|
1347
|
+
'mpv', '--no-audio', "--vf=crop=#{crop_string}", path
|
1340
1348
|
])
|
1341
1349
|
puts
|
1342
1350
|
puts escape_command([
|
@@ -1476,7 +1484,7 @@ HERE
|
|
1476
1484
|
if video['avg_frame_rate'] == '30000/1001' or video['field_order'] != 'progressive'
|
1477
1485
|
deinterlace = true
|
1478
1486
|
|
1479
|
-
if video['codec_name'] == 'mpeg2video'
|
1487
|
+
if video['codec_name'] == 'mpeg2video' and video['avg_frame_rate'] != '25/1'
|
1480
1488
|
rate = '24000/1001'
|
1481
1489
|
end
|
1482
1490
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: other_video_transcoding
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.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: 2020-
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: " Other Video Transcoding is a package of tools to transcode videos.\n"
|
14
14
|
email: don@blivet.com
|