marcandre-flvedit 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 7
4
- :patch: 1
4
+ :patch: 2
data/flvedit.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{flvedit}
5
- s.version = "0.7.1"
5
+ s.version = "0.7.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Marc-Andr\303\251 Lafortune"]
9
- s.date = %q{2009-08-20}
9
+ s.date = %q{2009-08-21}
10
10
  s.default_executable = %q{flvedit}
11
11
  s.description = %q{flvedit allows you to: * compute metadata for FLV files * merge, split or cut FLVs * insert / remote cue points or other events flvedit is meant as a replacement for FLVTool2, FLVMeta, FLVTool++ It can be used as a command line tool or as a Ruby library.}
12
12
  s.email = %q{github@marc-andre.ca}
@@ -23,9 +23,9 @@ module FLV
23
23
  if @wait_for_keyframe
24
24
  absorb
25
25
  else
26
+ @last_timestamp = tag.timestamp
26
27
  tag.timestamp += @delta
27
28
  end
28
- @last_timestamp = tag.timestamp
29
29
  end
30
30
 
31
31
  def on_video(tag)
@@ -50,9 +50,9 @@ module FLV
50
50
  @delta += [@last_video_timestamp + last_interval, @last_timestamp].max
51
51
  @wait_for_keyframe = true
52
52
  else
53
- @delta = @last_timestamp
53
+ @delta += @last_timestamp
54
54
  end
55
- dispatch_instead(Tag.new(@last_timestamp, evt = Event.new(:onNextSegment, :file => ::File.basename(h.path))))
55
+ dispatch_instead(Tag.new(@delta, evt = Event.new(:onNextSegment, :file => ::File.basename(h.path))))
56
56
  end
57
57
  end
58
58
  end
@@ -1,5 +1,5 @@
1
1
  *** command:
2
- --Join ./test/fixtures/short.flv --Debug
2
+ --Join ./test/fixtures/short.flv ./test/fixtures/short.flv --Debug
3
3
  *** result:
4
4
  Header| ./test/fixtures/short.flv
5
5
  | extra :
@@ -129,7 +129,7 @@ Header| ./test/fixtures/short.flv
129
129
  3.395 | FLV::Audio tag
130
130
  3.400 | FLV::Video tag (interframe)
131
131
  3.448 | FLV::Audio tag
132
- 3.448 | FLV::Event tag
132
+ 3.500 | FLV::Event tag
133
133
  | event : onNextSegment
134
134
  | file : short.flv
135
135
  3.500 | FLV::Video tag (keyframe)
@@ -233,3 +233,105 @@ Header| ./test/fixtures/short.flv
233
233
  6.895 | FLV::Audio tag
234
234
  6.900 | FLV::Video tag (interframe)
235
235
  6.948 | FLV::Audio tag
236
+ 7.000 | FLV::Event tag
237
+ 7.000 | FLV::Video tag (keyframe)
238
+ 7.052 | FLV::Audio tag
239
+ 7.100 | FLV::Video tag (interframe)
240
+ 7.104 | FLV::Audio tag
241
+ 7.156 | FLV::Audio tag
242
+ 7.200 | FLV::Video tag (keyframe)
243
+ 7.208 | FLV::Audio tag
244
+ 7.261 | FLV::Audio tag
245
+ 7.300 | FLV::Video tag (interframe)
246
+ 7.313 | FLV::Audio tag
247
+ 7.365 | FLV::Audio tag
248
+ 7.400 | FLV::Video tag (interframe)
249
+ 7.417 | FLV::Audio tag
250
+ 7.470 | FLV::Audio tag
251
+ 7.500 | FLV::Video tag (interframe)
252
+ 7.522 | FLV::Audio tag
253
+ 7.574 | FLV::Audio tag
254
+ 7.600 | FLV::Video tag (interframe)
255
+ 7.626 | FLV::Audio tag
256
+ 7.679 | FLV::Audio tag
257
+ 7.700 | FLV::Video tag (interframe)
258
+ 7.731 | FLV::Audio tag
259
+ 7.783 | FLV::Audio tag
260
+ 7.800 | FLV::Video tag (interframe)
261
+ 7.835 | FLV::Audio tag
262
+ 7.888 | FLV::Audio tag
263
+ 7.900 | FLV::Video tag (interframe)
264
+ 7.940 | FLV::Audio tag
265
+ 7.992 | FLV::Audio tag
266
+ 8.000 | FLV::Video tag (interframe)
267
+ 8.044 | FLV::Audio tag
268
+ 8.097 | FLV::Audio tag
269
+ 8.100 | FLV::Video tag (interframe)
270
+ 8.149 | FLV::Audio tag
271
+ 8.200 | FLV::Video tag (interframe)
272
+ 8.201 | FLV::Audio tag
273
+ 8.253 | FLV::Audio tag
274
+ 8.300 | FLV::Video tag (interframe)
275
+ 8.306 | FLV::Audio tag
276
+ 8.358 | FLV::Audio tag
277
+ 8.400 | FLV::Video tag (interframe)
278
+ 8.410 | FLV::Audio tag
279
+ 8.462 | FLV::Audio tag
280
+ 8.500 | FLV::Video tag (interframe)
281
+ 8.515 | FLV::Audio tag
282
+ 8.567 | FLV::Audio tag
283
+ 8.600 | FLV::Video tag (interframe)
284
+ 8.619 | FLV::Audio tag
285
+ 8.671 | FLV::Audio tag
286
+ 8.700 | FLV::Video tag (interframe)
287
+ 8.724 | FLV::Audio tag
288
+ 8.776 | FLV::Audio tag
289
+ 8.800 | FLV::Video tag (interframe)
290
+ 8.828 | FLV::Audio tag
291
+ 8.880 | FLV::Audio tag
292
+ 8.900 | FLV::Video tag (interframe)
293
+ 8.933 | FLV::Audio tag
294
+ 8.985 | FLV::Audio tag
295
+ 9.000 | FLV::Video tag (interframe)
296
+ 9.037 | FLV::Audio tag
297
+ 9.089 | FLV::Audio tag
298
+ 9.100 | FLV::Video tag (interframe)
299
+ 9.142 | FLV::Audio tag
300
+ 9.194 | FLV::Audio tag
301
+ 9.200 | FLV::Video tag (interframe)
302
+ 9.246 | FLV::Audio tag
303
+ 9.298 | FLV::Audio tag
304
+ 9.300 | FLV::Video tag (interframe)
305
+ 9.351 | FLV::Audio tag
306
+ 9.400 | FLV::Video tag (interframe)
307
+ 9.403 | FLV::Audio tag
308
+ 9.455 | FLV::Audio tag
309
+ 9.500 | FLV::Video tag (interframe)
310
+ 9.507 | FLV::Audio tag
311
+ 9.559 | FLV::Audio tag
312
+ 9.600 | FLV::Video tag (interframe)
313
+ 9.612 | FLV::Audio tag
314
+ 9.664 | FLV::Audio tag
315
+ 9.700 | FLV::Video tag (interframe)
316
+ 9.716 | FLV::Audio tag
317
+ 9.768 | FLV::Audio tag
318
+ 9.800 | FLV::Video tag (interframe)
319
+ 9.821 | FLV::Audio tag
320
+ 9.873 | FLV::Audio tag
321
+ 9.900 | FLV::Video tag (interframe)
322
+ 9.925 | FLV::Audio tag
323
+ 9.977 | FLV::Audio tag
324
+ 10.000 | FLV::Video tag (interframe)
325
+ 10.030 | FLV::Audio tag
326
+ 10.082 | FLV::Audio tag
327
+ 10.100 | FLV::Video tag (interframe)
328
+ 10.134 | FLV::Audio tag
329
+ 10.186 | FLV::Audio tag
330
+ 10.200 | FLV::Video tag (interframe)
331
+ 10.239 | FLV::Audio tag
332
+ 10.291 | FLV::Audio tag
333
+ 10.300 | FLV::Video tag (interframe)
334
+ 10.343 | FLV::Audio tag
335
+ 10.395 | FLV::Audio tag
336
+ 10.400 | FLV::Video tag (interframe)
337
+ 10.448 | FLV::Audio tag
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marcandre-flvedit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Marc-Andr\xC3\xA9 Lafortune"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-20 00:00:00 -07:00
12
+ date: 2009-08-21 00:00:00 -07:00
13
13
  default_executable: flvedit
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency