cutcut 1.4.4 → 1.4.5

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: 507328f542facceb34fc4acce97250f1c9768bfc
4
- data.tar.gz: 213260b625b31eb822075fd761539350937ea1df
3
+ metadata.gz: 575d6be5782bf2e17676c21f52042af41dae32c2
4
+ data.tar.gz: c92eff0831e8a20a7b335cb9241934b17894b48b
5
5
  SHA512:
6
- metadata.gz: 0ac67269e46a69c82619be87a81c0e98ff36475641ae6e5fb5566085676093ed084f21b0135d7d3d2dfe637e9ac7e8bd6ae4d71ae4281e0bca749fbb43fbdb7d
7
- data.tar.gz: 27b07d6d00d592ca1c369a9e7dc3572500a49bda62e9b113f6a6de94758c6711228690f81aeca7cecf4275d291633f4ef5dadc048083a200f00ffad63d627f75
6
+ metadata.gz: d869ae871c5714f665ac36a85a776704c49967662424e8352326a9128f9dfe2771d18235836120cd25123b560262d505a23de277ab59cd46aae1590d9d8be45b
7
+ data.tar.gz: 2f327c0a3ae8092687ea132f066caf9959a30ccc7b6adcaebd205b26a3b29bfcf443d1476b7e563b8460fc47f3eec0ff82ecb2991c9c9835f903abb9e6d8d4de
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ Version 1.4.5 (September 04, 2016)
5
+ -----------------------------
6
+
7
+ * Fix ruby 2.3.1 error
8
+
4
9
  Version 1.4.4 (July 11, 2016)
5
10
  -----------------------------
6
11
 
data/README.md CHANGED
@@ -1,5 +1,3 @@
1
- # cutcut
2
-
3
1
  * Trim/Cut/Scale videos
4
2
  * Change video playback speed
5
3
  * Extract video screenshots based on an interval
@@ -27,6 +25,17 @@
27
25
  For usage help:
28
26
  ```
29
27
  cutcut --help
28
+ Usage: cutcut [options]
29
+ --convert Convert all videos in a folder
30
+ --copy-metadata Copy original video metadata
31
+ --extract-screenshots NUMBER Screenshots per second
32
+ --input INPUT Input
33
+ --quality CRF CRF between 0 and 51, 0 lossless. Default to 20
34
+ --raw Raw options
35
+ --remove-audio Video speed
36
+ --scale SCALE_RESOLUTION Resolution to scale eg: 1280:720
37
+ --speed NUMBER Video speed
38
+ --timelapse-fps FPS Timelapse FPS
30
39
  ```
31
40
 
32
41
  ## License
data/bin/cutcut CHANGED
@@ -22,7 +22,7 @@ pwd = ENV['PWD']
22
22
  options[:input_dir] ||= options[:input] || pwd
23
23
  options[:copy_metadata] ||= false
24
24
 
25
- files = Dir[File.join(options[:input_dir], '/*.mp4')]
25
+ files = Dir.glob(File.join(options[:input_dir], '/*.mp4'), File::FNM_CASEFOLD)
26
26
  folders = Dir.glob(File.join(options[:input_dir], '/*')).select { |e| File.directory?(e) }
27
27
  progressbar = ProgressBar.create(title: 'Converting', starting_at: 0, total: files.count + folders.count)
28
28
 
data/cutcut.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.license = 'MIT'
7
7
  s.summary = 'Easily Trim/Cut/Screenshot videos'
8
8
  s.description = 'CLI for working with videos'
9
- s.version = '1.4.4'
9
+ s.version = '1.4.5'
10
10
 
11
11
  s.executables = ['cutcut']
12
12
  s.files = `git ls-files`.split("\n")
data/lib/cutcut/media.rb CHANGED
@@ -12,9 +12,7 @@ module CutCut
12
12
  def convert(options = {})
13
13
  copy_metadata = options[:copy_metadata] || false
14
14
  output = options[:output] || @output || File.join(@output_path, '__' + File.basename(@input))
15
-
16
15
  execute_ffmpeg_command(input: @input, output: output, raw_options: { output: extract_output_raw_options(options) })
17
-
18
16
  Helpers.copy_metadata(@input, output) if copy_metadata
19
17
  output
20
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cutcut
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jhimy Fernandes Villar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-31 00:00:00.000000000 Z
11
+ date: 2016-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport