rest-ftp-daemon-transform-mp4split 0.0.2 → 0.0.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0cbbd83c74af28886f895e9c765ff01fbebfd66
|
4
|
+
data.tar.gz: 7489c6f790a4e48701edb2d4d7a52f80c4d0c51f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8e80919f288353f049bc7a40fed28e453d0ddacdf04e5d18c41e9d273c69acff985dff9c4005e1f7c1979252642868dea9ca8492a4a6447f1fbfcd0155a4e0e
|
7
|
+
data.tar.gz: ba8265a847d99ad9c33a5a360a09e0bf0a3ac0638e70be08738faaf471a8316eb9c0b21b535f2c177f2d617a9216228fa3b03e33d01266c2e97e3df9a04c3689
|
data/.gitignore
ADDED
@@ -1,7 +1,10 @@
|
|
1
1
|
require 'open3'
|
2
2
|
|
3
3
|
module RestFtpDaemon::Transform
|
4
|
-
class
|
4
|
+
class TransformVideoMissing < TransformError; end
|
5
|
+
class TransformVideoError < TransformError; end
|
6
|
+
|
7
|
+
class TransformMp4split < TaskTransform
|
5
8
|
|
6
9
|
# Task attributes
|
7
10
|
def task_icon
|
@@ -10,21 +13,19 @@ module RestFtpDaemon::Transform
|
|
10
13
|
|
11
14
|
# Task operations
|
12
15
|
def prepare
|
13
|
-
super
|
14
|
-
|
15
16
|
# Init
|
16
17
|
@command = @config[:command]
|
17
18
|
|
18
19
|
# Ensure MP4SPLIT lib is available
|
19
|
-
raise
|
20
|
-
raise
|
20
|
+
raise Task::TransformMissingBinary, "mp4split binary not found: #{@config[:command]}" unless File.exist? (@command)
|
21
|
+
raise Task::TransformMissingBinary, "mp4split binary not executable: #{@config[:command]}" unless File.executable? (@command)
|
21
22
|
|
22
23
|
# Ensure MP4SPLIT licence is available
|
23
24
|
@licence = @config[:licence]
|
24
|
-
raise
|
25
|
+
raise Task::TransformMissingBinary, "mp4split licence not found: #{@config[:licence]}" unless @config[:licence]
|
25
26
|
|
26
27
|
# Target loc should have a name
|
27
|
-
raise
|
28
|
+
raise Task::TargetNameRequired, "mp4split requires target to provided a filename" unless target_loc.name
|
28
29
|
end
|
29
30
|
|
30
31
|
def process
|
@@ -70,12 +71,12 @@ module RestFtpDaemon::Transform
|
|
70
71
|
|
71
72
|
# If we get anything on stderr => failed
|
72
73
|
unless status.success?
|
73
|
-
raise
|
74
|
+
raise Task::AssertionFailed, "stderr: #{stderr}"
|
74
75
|
end
|
75
76
|
|
76
77
|
# Check we have the expected output file
|
77
78
|
unless File.exist? (output_file)
|
78
|
-
raise
|
79
|
+
raise Task::TransformMissingOutput, "can't find the expected output file at: #{output_file}"
|
79
80
|
end
|
80
81
|
end
|
81
82
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rest-ftp-daemon-transform-mp4split
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno MEDICI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,10 +44,11 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
+
- ".gitignore"
|
47
48
|
- Gemfile
|
48
49
|
- README.md
|
49
50
|
- Rakefile
|
50
|
-
- lib/plugins/rest-ftp-daemon/transform/
|
51
|
+
- lib/plugins/rest-ftp-daemon/transform/transform_mp4split.rb
|
51
52
|
- rest-ftp-daemon-transform-mp4split.gemspec
|
52
53
|
homepage: http://github.com/bmedici/rest-ftp-daemon-transform-mp4split
|
53
54
|
licenses:
|