abrizer 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d43d0ec149f4116eeb8410a53dcc50841194a3b
4
- data.tar.gz: ecaa1720869d608df837186fc7edbc5975fa212d
3
+ metadata.gz: 0dd898ab7c1969f83af2826e17cd694d8c0f177a
4
+ data.tar.gz: e17f3bdeeaeb3aee544c2d18ff49a429e57684cb
5
5
  SHA512:
6
- metadata.gz: 66f82d54378336839f9864e9d2fc2ca1de68c6a976b522837a4e7f7f1a370d7f9cfcdcf9715b8618a938297ac4c38ab1abc999b225b97a2bd0e727760f6bb5ca
7
- data.tar.gz: fc6fd76b62a2cb8f1a5e59dddbd6aaf332847e9eee452d73593503477f9fdc0bbe8d54b70f08152ca42fa1ad929a2db2e7aadb97499eb4d04a980453f240a14d
6
+ metadata.gz: 2ac6de5750cc97595044c8fed1b54b97c6a4a7427a2837ea15938ba0481c8e9714725dc1e307df34bc992000ecc5345b6523d2e4f83f013682ed08c8951c7017
7
+ data.tar.gz: 73cd1ec7d6c730390830f1393ad14d470a073d6097b4842cfbce5451b0183584b3f647355cad639015a46947b0b52cce32a3bae337f58cef6c01d60a3f8cecf9
data/README.md CHANGED
@@ -66,7 +66,7 @@ From the command line you can see help with: `abrizer`
66
66
  To see help for a particular command run: `abrizer help all`
67
67
 
68
68
  You can run all steps with:
69
- `abrizer all -i /path/to/video.mp4 -o /path/to/output_directory -u http://localhost:8088/v`
69
+ `abrizer all -i /path/to/video.mp4 -o /path/to/output_directory -u http://localhost:8088/v/output_directory`
70
70
 
71
71
  Or just create various adaptations needed for repackaging to DASH and HLS:
72
72
  `abrizer process -i /path/to/video.mp4 -o /path/to/output_directory`
@@ -88,7 +88,7 @@ If you simply want to run all the steps, you can use the `Abrizer::All` class li
88
88
  ```ruby
89
89
  video_path = "/path/to/video.mp4"
90
90
  output_directory = "/path/to/output_directory"
91
- base_url = "http://localhost:8088/v"
91
+ base_url = "http://localhost:8088/v/output_directory"
92
92
  Abrizer::All.new(video_path, output_directory, base_url).run
93
93
  ```
94
94
 
@@ -110,7 +110,7 @@ This includes a web server that can be used for local testing of streams and vid
110
110
  cd /vagrant
111
111
  bundle exec exe/abrizer all \
112
112
  -i test/videos/FullHDCinemaCountdown720p-8sec.mp4 \
113
- -o tmp/countdown -u http://localhost:8088/v
113
+ -o tmp/countdown -u http://localhost:8088/v/countdown
114
114
  ```
115
115
 
116
116
  Now visit http://localhost:8088/v/countdown/ to see the files that were created. You can then test any of the videos or streams.
@@ -21,8 +21,8 @@ module Abrizer
21
21
  Abrizer::ProgressiveMp4.new(@output_directory).create
22
22
  Abrizer::PackageDashBento.new(@output_directory).package
23
23
  Abrizer::PackageHlsBento.new(@output_directory).package
24
- Abrizer::Canvas.new(@output_directory, @base_url).create
25
- Abrizer::Data.new(@output_directory, @base_url).create
24
+ Abrizer::Canvas.new(nil, @output_directory, @base_url).create
25
+ Abrizer::Data.new(nil, @output_directory, @base_url).create
26
26
  Abrizer::Cleaner.new(@output_directory).clean
27
27
  end
28
28
 
@@ -8,7 +8,8 @@ module Abrizer
8
8
  include ReadAdaptations
9
9
 
10
10
  # TODO: allow control of items/versions listed on canvas
11
- def initialize(output_directory, base_url)
11
+ def initialize(filepath, output_directory, base_url)
12
+ @filepath = filepath
12
13
  @output_directory = output_directory
13
14
  FileUtils.mkdir_p output_directory unless File.exist? output_directory
14
15
  @base_url = base_url
@@ -7,7 +7,8 @@ module Abrizer
7
7
  include InformationHelpers
8
8
  include ReadAdaptations
9
9
 
10
- def initialize(output_directory, base_url)
10
+ def initialize(filepath, output_directory, base_url)
11
+ @filepath = filepath
11
12
  @output_directory = output_directory
12
13
  @base_url = base_url
13
14
  read_adaptations
@@ -2,7 +2,7 @@ module Abrizer
2
2
  module IdentifierHelpers
3
3
 
4
4
  def media_base_url
5
- File.join @base_url, output_directory_basename
5
+ @base_url
6
6
  end
7
7
 
8
8
  def canvas_id
@@ -1,3 +1,3 @@
1
1
  module Abrizer
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abrizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Ronallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-09 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler