mediainfo 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +1 -1
- data/lib/mediainfo/version.rb +1 -1
- data/lib/mediainfo.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a3ae33b18ff439ef940ab3f57e8c63854b464a788d14e4d24afe91ddb551006
|
4
|
+
data.tar.gz: 3f9d648d24e338aea42ecd858109268239ef65bb4ad68b698d1146414dd0e7de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49cf2dec2e78b1b8fdbafc9595138904fd4da32290b5e5e3d85489c4e47576e6fdaaed10dd91fe73315107d62e72a2c1f9bc13603cf600d240693023a2f38221
|
7
|
+
data.tar.gz: c8f9f859497b0167db0b30d7d2857b15f7f81c53d3a293a17a4e0d51207a5eb39c1411690c372ffb805fa29429f2c73bc8c57d3b6e8b34938f02191e1e07e5a0
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ MediaInfo is a class wrapping [the mediainfo CLI](http://mediainfo.sourceforge.n
|
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
-
- Versions > 1.3.0 support S3 URLs. See rspec test for example of how to obtain the supported URL.
|
11
|
+
- Versions > 1.3.0 support S3 URLs. See rspec test for example of how to obtain the supported URL (it requires access keys are set as ENV variables).
|
12
12
|
|
13
13
|
#### Parsing raw XML
|
14
14
|
media_info = MediaInfo.from(File.open('iphone6+_video.mov.xml').read)
|
data/lib/mediainfo/version.rb
CHANGED
data/lib/mediainfo.rb
CHANGED
@@ -3,6 +3,7 @@ require 'net/http'
|
|
3
3
|
require 'mediainfo/errors'
|
4
4
|
require 'mediainfo/tracks'
|
5
5
|
require 'mediainfo/string'
|
6
|
+
require 'open3'
|
6
7
|
|
7
8
|
module MediaInfo
|
8
9
|
|
@@ -89,7 +90,7 @@ module MediaInfo
|
|
89
90
|
def self.run(input = nil)
|
90
91
|
raise ArgumentError, 'Your input cannot be blank.' if input.nil?
|
91
92
|
command = "#{location} '#{input}' --Output=XML"
|
92
|
-
raw_response, errors, status = Open3.capture3(command)
|
93
|
+
raw_response, errors, status = ::Open3.capture3(command)
|
93
94
|
unless errors.empty? && status.exitstatus == 0
|
94
95
|
raise ExecutionError, "Execution of '#{command}' failed: \n #{errors.red}"
|
95
96
|
end
|