streamio-ffmpeg 2.1.0 → 3.0.0

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: 7a9cde12ae96942f93cff233ac586afa9dcb804d
4
- data.tar.gz: 9fc3c59bbd8ebdcf0aa00dac17a0314c8490e877
3
+ metadata.gz: 176d42fb71be4471958c695a6c6e1ab4d2f594a3
4
+ data.tar.gz: fc053ad1763a78b2e30bd89fe54c124459ba26d6
5
5
  SHA512:
6
- metadata.gz: 02226d4978a610a81cf08c154a99aeb18782a85e0e1071d836e9da1c57e0920780758f210490e7003ece9e551c2f2fc0247648be8ce8f0a4abebeb3a6ce61969
7
- data.tar.gz: c31ab9b785ea8f1b58e009c2770c91caf9a4071bab81cadac187bb74dfa34e049f30269b7514800e7c1578169537949ce33551523f7226c34e8d4122fdd364e5
6
+ metadata.gz: 16b6a964dd8bb2f9d32705fa76a15b405a33bb727b40724b57d0e9e5f4f14b029d617f9260380c269e11d2f0e8b5ac63ff1be7ae09ffbb6643f55af5579e5f25
7
+ data.tar.gz: 3f8bdb44849284e9d3c57b453e0c1498b4db3463ae6e14b83c885f6441d68bbee05f324210b3175dadc033f1d7f0a5671315996724a32644a640ad819195b0c3
data/CHANGELOG CHANGED
@@ -1,6 +1,17 @@
1
1
  == Master
2
2
 
3
- Current with 2.0.0
3
+ Current with 3.0.0
4
+
5
+ == 3.0.0 2016-09-07
6
+
7
+ Breaking Changes:
8
+ * Changes: custom parameters now specified using an array syntax
9
+
10
+ Improvements:
11
+ * Issue # 128, #137 are fixed (custom parameters passed as strings) which was caused
12
+ by 2.1.0 in attempting to avoid the use of shell and filename escaping issues
13
+ on various platforms.
14
+
4
15
 
5
16
  == 2.1.0 2016-08-08
6
17
 
data/README.md CHANGED
@@ -76,13 +76,15 @@ Keep track of progress with an optional block.
76
76
  movie.transcode("movie.mp4") { |progress| puts progress } # 0.2 ... 0.5 ... 1.0
77
77
  ```
78
78
 
79
- Give custom command line options with a string.
79
+ Give custom command line options with an array.
80
80
 
81
81
  ``` ruby
82
- movie.transcode("movie.mp4", "-ac aac -vc libx264 -ac 2 ...")
82
+ movie.transcode("movie.mp4", %w(-ac aac -vc libx264 -ac 2 ...)")
83
83
  ```
84
84
 
85
- Use the EncodingOptions parser for humanly readable transcoding options. Below you'll find most of the supported options. Note that the :custom key will be used as is without modification so use it for any tricky business you might need.
85
+ Use the EncodingOptions parser for humanly readable transcoding options. Below you'll find most of the supported options.
86
+ Note that the :custom key is an array so that it can be used for FFMpeg options like
87
+ `-map` that can be repeated:
86
88
 
87
89
  ``` ruby
88
90
  options = {video_codec: "libx264", frame_rate: 10, resolution: "320x240", video_bitrate: 300, video_bitrate_tolerance: 100,
@@ -90,7 +92,7 @@ options = {video_codec: "libx264", frame_rate: 10, resolution: "320x240", video_
90
92
  x264_vprofile: "high", x264_preset: "slow",
91
93
  audio_codec: "libfaac", audio_bitrate: 32, audio_sample_rate: 22050, audio_channels: 1,
92
94
  threads: 2,
93
- custom: "-vf crop=60:60:10:10"}
95
+ custom: %w(-vf crop=60:60:10:10 -map 0:0 -map 0:1) }
94
96
  movie.transcode("movie.mp4", options)
95
97
  ```
96
98
 
@@ -189,6 +189,7 @@ module FFMPEG
189
189
  end
190
190
 
191
191
  def convert_custom(value)
192
+ raise ArgumentError unless value.class <= Array
192
193
  value
193
194
  end
194
195
 
@@ -22,7 +22,7 @@ module FFMPEG
22
22
  elsif options.is_a?(Hash)
23
23
  @raw_options = EncodingOptions.new(options)
24
24
  else
25
- raise ArgumentError, "Unknown options format '#{options.class}', should be either EncodingOptions, Hash or String."
25
+ raise ArgumentError, "Unknown options format '#{options.class}', should be either EncodingOptions, Hash or Array."
26
26
  end
27
27
 
28
28
  @transcoder_options = transcoder_options
@@ -1,3 +1,3 @@
1
1
  module FFMPEG
2
- VERSION = '2.1.0'
2
+ VERSION = '3.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamio-ffmpeg
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rackfish AB
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json