streamio-ffmpeg 2.1.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +12 -1
- data/README.md +6 -4
- data/lib/ffmpeg/encoding_options.rb +1 -0
- data/lib/ffmpeg/transcoder.rb +1 -1
- data/lib/ffmpeg/version.rb +1 -1
- 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: 176d42fb71be4471958c695a6c6e1ab4d2f594a3
|
4
|
+
data.tar.gz: fc053ad1763a78b2e30bd89fe54c124459ba26d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16b6a964dd8bb2f9d32705fa76a15b405a33bb727b40724b57d0e9e5f4f14b029d617f9260380c269e11d2f0e8b5ac63ff1be7ae09ffbb6643f55af5579e5f25
|
7
|
+
data.tar.gz: 3f8bdb44849284e9d3c57b453e0c1498b4db3463ae6e14b83c885f6441d68bbee05f324210b3175dadc033f1d7f0a5671315996724a32644a640ad819195b0c3
|
data/CHANGELOG
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
== Master
|
2
2
|
|
3
|
-
Current with
|
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
|
79
|
+
Give custom command line options with an array.
|
80
80
|
|
81
81
|
``` ruby
|
82
|
-
movie.transcode("movie.mp4",
|
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.
|
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:
|
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
|
|
data/lib/ffmpeg/transcoder.rb
CHANGED
@@ -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
|
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
|
data/lib/ffmpeg/version.rb
CHANGED
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:
|
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
|
+
date: 2016-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|