video_converter 0.6.8 → 0.6.9

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.
@@ -20,8 +20,10 @@ module VideoConverter
20
20
  if type == 'segmented'
21
21
  self.chunks_dir = File.join(work_dir, File.basename(filename, '.*'))
22
22
  FileUtils.mkdir_p(chunks_dir)
23
- self.ffmpeg_output = chunks_dir + '.ts'
24
- params[:format] = 'mpegts'
23
+ if File.extname(filename) == '.m3u8'
24
+ self.ffmpeg_output = chunks_dir + '.ts'
25
+ params[:format] = 'mpegts'
26
+ end
25
27
  else
26
28
  self.ffmpeg_output = File.join(work_dir, filename)
27
29
  end
@@ -1,3 +1,3 @@
1
1
  module VideoConverter
2
- VERSION = "0.6.8"
2
+ VERSION = "0.6.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -140,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  segments:
142
142
  - 0
143
- hash: -1396491590226390857
143
+ hash: 2899064939320433339
144
144
  required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  segments:
151
151
  - 0
152
- hash: -1396491590226390857
152
+ hash: 2899064939320433339
153
153
  requirements:
154
154
  - ffmpeg, version 1.2 or greated configured with libx264 and libfaac
155
155
  - live_segmenter to convert to hls