vidibus-mp4_encoder 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/vidibus/mp4_encoder.rb +5 -5
  2. metadata +4 -4
@@ -2,7 +2,7 @@ module Vidibus
2
2
  class Mp4Encoder < Vidibus::Encoder::Base
3
3
  class ProfileError < Vidibus::Encoder::ProfileError; end
4
4
 
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
 
7
7
  DEFAULT_AUDIO_CODEC = 'aac'
8
8
  DEFAULT_VIDEO_CODEC = 'h264'
@@ -101,11 +101,11 @@ module Vidibus
101
101
  flag(:audio_channels) { |value| "-ac #{value}" }
102
102
  flag(:audio_sample_rate) { |value| "-ar #{value}" }
103
103
  flag(:aspect_ratio) { |value| "-aspect #{value}" }
104
- flag(:video_profile) { |value| "-profile #{value}" }
105
- flag(:video_codec_level) { |value| "-level #{value}" }
104
+ flag(:video_profile) { |value| "-vprofile #{value}" }
105
+ flag(:video_codec_level) { |value| "-vlevel #{value}" }
106
106
 
107
107
  flag(:video_bit_rate) do |value|
108
- output = "-b #{value} "
108
+ output = "-vb #{value}"
109
109
  if profile.constant_bit_rate
110
110
  output << " -vmaxrate #{value} -vbufsize #{value}"
111
111
  end
@@ -182,7 +182,7 @@ module Vidibus
182
182
  # The encoding recipe.
183
183
  def recipe
184
184
  audio = %(-acodec %{audio_codec} %{audio_sample_rate} %{audio_bit_rate} %{audio_channels} -async 2)
185
- video = %(-vcodec %{video_codec} %{dimensions} %{video_bit_rate} %{frame_rate} %{video_profile} %{video_codec_level} %{preset})
185
+ video = %(-vcodec %{video_codec} %{dimensions} %{video_bit_rate} %{frame_rate} %{video_profile} %{video_codec_level} -deinterlace %{preset})
186
186
  "ffmpeg -i %{input} #{audio} #{video} -y -threads 0 %{output}"
187
187
  end
188
188
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-mp4_encoder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Andr\xC3\xA9 Pankratz"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-20 00:00:00 +02:00
18
+ date: 2012-04-21 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency