webvtt-ruby 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ 00:00:29.000 --> 00:00:31.000 line:75%
2
+ English subtitle 15 -Forced- (00:00:27.000)
3
+ line:75%
@@ -0,0 +1,70 @@
1
+ WEBVTT
2
+ X-TIMESTAMP-MAP=MPEGTS:900000,LOCAL:00:00:00.000
3
+
4
+ 00:00:29.000 --> 00:00:31.000 line:75%
5
+ English subtitle 15 -Forced- (00:00:27.000)
6
+ line:75%
7
+
8
+ 2
9
+ 00:00:31.000 --> 00:00:33.000 align:start line:0%
10
+ English subtitle 16 -Unforced- (00:00:31.000)
11
+ align:start line:0%
12
+
13
+ 00:00:33.000 --> 00:00:35.000 align:start line:50%
14
+ English subtitle 17 -Unforced- (00:00:33.000)
15
+ align:start line:50%
16
+
17
+ 00:00:35.000 --> 00:00:37.000 align:start line:100%
18
+ English subtitle 18 -Unforced- (00:00:35.000)
19
+ align:start line:100%
20
+
21
+ 00:00:37.000 --> 00:00:39.000 align:middle line:100%
22
+ English subtitle 19 -Unforced- (00:00:37.000)
23
+ align:middle line:100%
24
+
25
+ 00:00:39.000 --> 00:00:41.000 align:end line:100%
26
+ English subtitle 20 -Forced- (00:00:39.000)
27
+ align:end line:100%
28
+
29
+ 00:00:41.000 --> 00:00:43.000 align:end line:50%
30
+ English subtitle 21 -Unforced- (00:00:41.000)
31
+ align:end line:50%
32
+
33
+ 00:00:43.000 --> 00:00:45.000 align:end line:0%
34
+ English subtitle 22 -Unforced- (00:00:43.000)
35
+ align:end line:0%
36
+
37
+ 00:00:45.000 --> 00:00:47.000 align:middle line:0%
38
+ English subtitle 23 -Unforced- (00:00:45.000)
39
+ align:middle line:0%
40
+
41
+ 00:00:47.000 --> 00:00:49.000 align:middle line:50%
42
+ English subtitle 24 -Unforced- (00:00:47.000)
43
+ align:middle line:50%
44
+
45
+ 00:00:49.000 --> 00:00:51.000 align:middle line:100%
46
+ English subtitle 25 -Forced- (00:00:49.000)
47
+ align:middle line:100%
48
+
49
+ 00:00:51.000 --> 00:00:53.000 position:20% size:55%
50
+ English subtitle 26 -Unforced- (00:00:51.000)
51
+ position:20% size:55%
52
+
53
+ 00:00:53.000 --> 00:00:60.000
54
+ English subtitle 27 -Unforced- (00:00:53.000)
55
+ Special Characters
56
+ œ∑´®†¥¨ˆøπ“
57
+ åß∂ƒ©˙∆˚¬
58
+ Ω≈ç√∫˜µ≤≥÷
59
+
60
+ 00:00:55.000 --> 00:00:57.000
61
+ English subtitle 28 -Unforced- (00:00:55.000)
62
+ Multilines
63
+ line 3
64
+ line 4
65
+ line 5
66
+ line 6
67
+
68
+ 00:00:57.000 --> 00:05:59.000
69
+ English subtitle 29 -Forced- (00:00:57.000)
70
+ 1 Minute subtilte sample complete - will now repeat
@@ -0,0 +1,7 @@
1
+ 1
2
+ 00:00:00,500 --> 00:00:13,000
3
+ Elephant's Dream
4
+
5
+ 2
6
+ 00:00:15,000 --> 00:00:18,000
7
+ At the left we can see...
@@ -0,0 +1,9 @@
1
+ WEBVTT
2
+
3
+ 1
4
+ 00:00:00.500 --> 00:00:13.000
5
+ Elephant's Dream
6
+
7
+ 2
8
+ 00:00:15.000 --> 00:00:18.000
9
+ At the left we can see...
@@ -0,0 +1,21 @@
1
+ WEBVTT - Translation of that film I like
2
+
3
+ NOTE
4
+ This translation was done by Kyle so that
5
+ some friends can watch it with their parents.
6
+
7
+ 1
8
+ 00:02:15.000 --> 00:02:20.000
9
+ - Ta en kopp varmt te.
10
+ - Det är inte varmt.
11
+
12
+ 2
13
+ 00:02:20.000 --> 00:02:25.000
14
+ - Har en kopp te.
15
+ - Det smakar som te.
16
+
17
+ NOTE This last line may not translate well.
18
+
19
+ 3
20
+ 00:02:25.000 --> 00:02:30.000
21
+ -Ta en kopp.
@@ -0,0 +1,15 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'webvtt-ruby'
3
+ s.version = '0.2.0'
4
+ s.summary = "WebVTT parser and segmenter in ruby"
5
+ s.description = "WebVTT parser and segmenter in ruby. The WebVTT format is a standard captioning format compatible with HTML5 and HTTP Live Streaming (HLS)."
6
+ s.authors = ["Bruno Celeste"]
7
+ s.email = 'bruno@heywatch.com'
8
+ s.homepage = 'http://www.heywatchencoding.com'
9
+ s.license = 'MIT'
10
+ s.bindir = 'bin'
11
+ s.files = `git ls-files`.split("\n")
12
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
13
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
14
+ s.require_paths = ["lib"]
15
+ end
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: webvtt-ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Bruno Celeste
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-12 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: WebVTT parser and segmenter in ruby. The WebVTT format is a standard
14
+ captioning format compatible with HTML5 and HTTP Live Streaming (HLS).
15
+ email: bruno@heywatch.com
16
+ executables:
17
+ - webvtt-segmenter
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - .gitignore
22
+ - Gemfile
23
+ - LICENSE
24
+ - README.md
25
+ - bin/webvtt-segmenter
26
+ - lib/parser.rb
27
+ - lib/segmenter.rb
28
+ - lib/webvtt.rb
29
+ - tests/parser.rb
30
+ - tests/segmenter.rb
31
+ - tests/subtitles/big_srt.srt
32
+ - tests/subtitles/big_srt.webvtt
33
+ - tests/subtitles/notvalid.webvtt
34
+ - tests/subtitles/test.webvtt
35
+ - tests/subtitles/test_from_srt.srt
36
+ - tests/subtitles/test_from_srt.webvtt
37
+ - tests/subtitles/withnote.webvtt
38
+ - webvtt-ruby.gemspecs
39
+ homepage: http://www.heywatchencoding.com
40
+ licenses:
41
+ - MIT
42
+ metadata: {}
43
+ post_install_message:
44
+ rdoc_options: []
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ requirements: []
58
+ rubyforge_project:
59
+ rubygems_version: 2.0.5
60
+ signing_key:
61
+ specification_version: 4
62
+ summary: WebVTT parser and segmenter in ruby
63
+ test_files: []