rest-ftp-daemon 0.410.4 → 0.410.5
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/Gemfile.lock +1 -1
- data/lib/rest-ftp-daemon/constants.rb +1 -1
- data/lib/rest-ftp-daemon/jobs/video.rb +10 -7
- data/rest-ftp-daemon.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fa821b4974f3c450b6ba939b7d550056f567f61
|
4
|
+
data.tar.gz: 5e63689d2ef91e6a28046824086da73e1519f78f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38976cb5fbdd2ba3adafc8423eec17b2db16c9b022ad53b7c34ce3b57cf2f936a26b328e7abdbb6483a337597d852b35e3f94a5aef5c1587391856db6eda7ba8
|
7
|
+
data.tar.gz: 63cf9c1429b5ac2ffcbb7a0a3a7160de6e1ebedbc74505b399e4d437ee30fe323cd9533c7cb1933aff649a4fbb9576d0652da710df511a74a9a8f0cbb377f653
|
data/Gemfile.lock
CHANGED
@@ -61,10 +61,13 @@ module RestFtpDaemon
|
|
61
61
|
movie = FFMPEG::Movie.new(source.path)
|
62
62
|
|
63
63
|
# Build options
|
64
|
-
options = {
|
65
|
-
|
66
|
-
|
67
|
-
options[:
|
64
|
+
options = {
|
65
|
+
threads: JOB_FFMPEG_THREADS
|
66
|
+
}
|
67
|
+
options[:audio_codec] = @video_ac unless @video_ac.to_s.empty?
|
68
|
+
options[:video_codec] = @video_vc unless @video_vc.to_s.empty?
|
69
|
+
options[:custom] = options_from(@video_custom) if @video_custom.is_a? Hash
|
70
|
+
|
68
71
|
set_info :work, :ffmpeg_options, options
|
69
72
|
|
70
73
|
# Announce contexte
|
@@ -81,14 +84,14 @@ module RestFtpDaemon
|
|
81
84
|
end
|
82
85
|
end
|
83
86
|
|
84
|
-
def
|
87
|
+
def options_from attributes
|
85
88
|
# Ensure options ar in the correct format
|
86
|
-
return [] unless
|
89
|
+
return [] unless attributes.is_a? Hash
|
87
90
|
# video_custom_parts = @video_custom.to_s.scan(/(?:\w|"[^"]*")+/)
|
88
91
|
|
89
92
|
# Build the final array
|
90
93
|
custom_parts = []
|
91
|
-
|
94
|
+
attributes.each do |name, value|
|
92
95
|
custom_parts << "-#{name}"
|
93
96
|
custom_parts << value.to_s
|
94
97
|
end
|
data/rest-ftp-daemon.gemspec
CHANGED