other_video_transcoding 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: cd29131688402599d3de0635a670005c8f32e7bda45f3b314dd7b47948d55be3
4
- data.tar.gz: 1af9708f4b3639fd81d935b9c96ec120ecdc63411caa00a94783d44c2fb4d1f6
3
+ metadata.gz: 2d1384cb7611877537d9ff8d72a42251c40697b73685fabfc57ac5796e9e3ebc
4
+ data.tar.gz: 813d5df34e4c000f85b0a369acc77b48c57ba66bdcfec8f408dded228a8c5598
5
5
  SHA512:
6
- metadata.gz: 4ed431c314fc122ac855827c7ca831b67d1e7b5cb7dfe89500ce7bff6ec410a4e6893fc308f7724d8cb070dcc3c38eec92fbb57acd6e860690925c0691cde13a
7
- data.tar.gz: 1442f616f7f8aed6aaafd2104f503c29e3bfa4c37a5f139c832f99b3a31c8f027f2636d7d2671734170d08dc97df53eae1b3d96270cef0badbf56d88ef95ca6c
6
+ metadata.gz: 189041c0f4c25d0c62376db9f8b5eaf55a819a7c647cc21e8d424355b2e525626096dd2620ad46de2afaba1421f90f455cbea08a56c058244c67a0775654f1af
7
+ data.tar.gz: c0c7b1103fbbd187e951f6f16784f74ec7cd966bb50234fa51469b7f2522de880cab2330b2c32fbe984041b84c2eda87e965d6c8d0da2eb1b97db64f4174885f
@@ -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
- A [Docker](https://en.wikipedia.org/wiki/Docker_(software)) container for Linux, including installation instructions, is available here:
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
 
@@ -16,7 +16,7 @@ module Transcoding
16
16
  class Command
17
17
  def about
18
18
  <<HERE
19
- ask-ffmpeg-log 0.3.0
19
+ ask-ffmpeg-log 0.3.1
20
20
  Copyright (c) 2019-2020 Don Melton
21
21
  HERE
22
22
  end
@@ -18,7 +18,7 @@ module Transcoding
18
18
  class Command
19
19
  def about
20
20
  <<HERE
21
- other-transcode 0.3.0
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
- fail "output file already exists: #{output_path}" if File.exist? output_path
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
- fail "log file already exists: #{log_path}" if File.exist? log_path
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
- fail "log file already exists: #{tmp_log_path}" if File.exist? tmp_log_path
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', '--vf', "lavfi=[drawbox=#{drawbox_string}:invert:1]", path
1344
+ 'mpv', '--no-audio', "--vf=lavfi=[drawbox=#{drawbox_string}:invert:1]", path
1337
1345
  ])
1338
1346
  puts escape_command([
1339
- 'mpv', '--no-audio', '--vf', "crop=#{crop_string}", path
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'other_video_transcoding'
3
- s.version = '0.3.0'
3
+ s.version = '0.3.1'
4
4
  s.required_ruby_version = '>= 2.0'
5
5
  s.summary = 'Other tools to transcode videos.'
6
6
  s.description = <<-HERE
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.0
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-02-28 00:00:00.000000000 Z
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