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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +11 -2
- data/bin/cutcut +1 -1
- data/cutcut.gemspec +1 -1
- data/lib/cutcut/media.rb +0 -2
- 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: 575d6be5782bf2e17676c21f52042af41dae32c2
|
4
|
+
data.tar.gz: c92eff0831e8a20a7b335cb9241934b17894b48b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d869ae871c5714f665ac36a85a776704c49967662424e8352326a9128f9dfe2771d18235836120cd25123b560262d505a23de277ab59cd46aae1590d9d8be45b
|
7
|
+
data.tar.gz: 2f327c0a3ae8092687ea132f066caf9959a30ccc7b6adcaebd205b26a3b29bfcf443d1476b7e563b8460fc47f3eec0ff82ecb2991c9c9835f903abb9e6d8d4de
|
data/CHANGELOG.md
CHANGED
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
|
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
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
|
+
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-
|
11
|
+
date: 2016-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|