marcandre-flvedit 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/CHANGELOG.rdoc +5 -0
  2. data/LICENSE +24 -0
  3. data/README.rdoc +90 -0
  4. data/Rakefile +131 -0
  5. data/VERSION.yml +4 -0
  6. data/bin/flvedit +14 -0
  7. data/lib/flv.rb +24 -0
  8. data/lib/flv/audio.rb +66 -0
  9. data/lib/flv/base.rb +38 -0
  10. data/lib/flv/body.rb +57 -0
  11. data/lib/flv/edit.rb +20 -0
  12. data/lib/flv/edit/options.rb +162 -0
  13. data/lib/flv/edit/processor.rb +3 -0
  14. data/lib/flv/edit/processor/add.rb +67 -0
  15. data/lib/flv/edit/processor/base.rb +209 -0
  16. data/lib/flv/edit/processor/command_line.rb +23 -0
  17. data/lib/flv/edit/processor/cut.rb +27 -0
  18. data/lib/flv/edit/processor/debug.rb +30 -0
  19. data/lib/flv/edit/processor/head.rb +16 -0
  20. data/lib/flv/edit/processor/join.rb +52 -0
  21. data/lib/flv/edit/processor/meta_data_maker.rb +127 -0
  22. data/lib/flv/edit/processor/print.rb +13 -0
  23. data/lib/flv/edit/processor/printer.rb +27 -0
  24. data/lib/flv/edit/processor/reader.rb +30 -0
  25. data/lib/flv/edit/processor/save.rb +28 -0
  26. data/lib/flv/edit/processor/update.rb +27 -0
  27. data/lib/flv/edit/runner.rb +23 -0
  28. data/lib/flv/edit/version.rb +15 -0
  29. data/lib/flv/event.rb +40 -0
  30. data/lib/flv/file.rb +41 -0
  31. data/lib/flv/header.rb +37 -0
  32. data/lib/flv/packing.rb +140 -0
  33. data/lib/flv/tag.rb +62 -0
  34. data/lib/flv/timestamp.rb +124 -0
  35. data/lib/flv/util/double_check.rb +22 -0
  36. data/lib/flv/video.rb +73 -0
  37. data/test/fixtures/corrupted.flv +0 -0
  38. data/test/fixtures/short.flv +0 -0
  39. data/test/fixtures/tags.xml +39 -0
  40. data/test/test_flv.rb +145 -0
  41. data/test/test_flv_edit.rb +32 -0
  42. data/test/test_flv_edit_results.rb +27 -0
  43. data/test/test_helper.rb +9 -0
  44. data/test/text_flv_edit_results/add_tags.txt +132 -0
  45. data/test/text_flv_edit_results/cut_from.txt +114 -0
  46. data/test/text_flv_edit_results/cut_key.txt +20 -0
  47. data/test/text_flv_edit_results/debug.txt +132 -0
  48. data/test/text_flv_edit_results/debug_limited.txt +18 -0
  49. data/test/text_flv_edit_results/debug_range.txt +32 -0
  50. data/test/text_flv_edit_results/join.txt +237 -0
  51. data/test/text_flv_edit_results/print.txt +16 -0
  52. data/test/text_flv_edit_results/stop.txt +38 -0
  53. data/test/text_flv_edit_results/update.txt +33 -0
  54. metadata +134 -0
@@ -0,0 +1,16 @@
1
+ *** command:
2
+ --Print
3
+ *** result:
4
+ 0.000 | FLV::Event tag
5
+ | event : onMetaData
6
+ | audiocodecid : 2
7
+ | audiodatarate : 16
8
+ | audiodelay : 0
9
+ | canSeekToEnd : 1
10
+ | creationdate : Fri Feb 03 122553 2006\n
11
+ | duration : 16.9
12
+ | framerate : 10
13
+ | height : 154
14
+ | videocodecid : 4
15
+ | videodatarate : 40
16
+ | width : 192
@@ -0,0 +1,38 @@
1
+ *** command:
2
+ -n 10 --Debug
3
+ *** result:
4
+ Header| ./test/fixtures/short.flv
5
+ | extra :
6
+ | has_audio : true
7
+ | has_video : true
8
+ | version : 1
9
+ 0.000 | FLV::Event tag
10
+ | event : onMetaData
11
+ | audiocodecid : 2
12
+ | audiodatarate : 16
13
+ | audiodelay : 0
14
+ | canSeekToEnd : 1
15
+ | creationdate : Fri Feb 03 122553 2006\n
16
+ | duration : 16.9
17
+ | framerate : 10
18
+ | height : 154
19
+ | videocodecid : 4
20
+ | videodatarate : 40
21
+ | width : 192
22
+ 0.000 | FLV::Audio tag
23
+ | channel : mono
24
+ | codec_id : 2
25
+ | format : MP3
26
+ | rate : 11000
27
+ | sample_size : 16
28
+ 0.000 | FLV::Video tag (keyframe)
29
+ | codec : on2_vp6
30
+ | codec_id : 4
31
+ | dimensions : nil
32
+ 0.052 | FLV::Audio tag
33
+ 0.100 | FLV::Video tag (interframe)
34
+ 0.104 | FLV::Audio tag
35
+ 0.156 | FLV::Audio tag
36
+ 0.200 | FLV::Video tag (keyframe)
37
+ 0.208 | FLV::Audio tag
38
+ 0.261 | FLV::Audio tag
@@ -0,0 +1,33 @@
1
+ *** command:
2
+ --Update --Print
3
+ *** result:
4
+ 0.000 | FLV::Event tag
5
+ | event : onMetaData
6
+ | audiocodecid : 2
7
+ | audiodatarate : 15.7066666666667
8
+ | audiodelay : 0.0
9
+ | audiosamplerate: 11000
10
+ | audiosamplesize: 16
11
+ | audiosize : 7805
12
+ | canSeekToEnd : false
13
+ | cuePoints : []
14
+ | datasize : 25001
15
+ | duration : 3.6
16
+ | filesize : 25430
17
+ | framerate : 10.0
18
+ | hasAudio : true
19
+ | hasCuePoints : false
20
+ | hasKeyframes : true
21
+ | hasMetadata : true
22
+ | hasVideo : true
23
+ | height : 154
24
+ | keyframes : {filepositions=>[846, 1968], times=>[0.0, 0.2]}
25
+ | lastkeyframetimestamp: 0.2
26
+ | lasttimestamp : 3.5
27
+ | metadatacreator: flvedit........................................................
28
+ | metadatadate : Sat Dec 20 000000 UTC 2008
29
+ | stereo : false
30
+ | videocodecid : 4
31
+ | videodatarate : 35.7577777777778
32
+ | videosize : 16487
33
+ | width : 192
metadata ADDED
@@ -0,0 +1,134 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: marcandre-flvedit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.1
5
+ platform: ruby
6
+ authors:
7
+ - "Marc-Andr\xC3\xA9 Lafortune"
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-04-21 00:00:00 -07:00
13
+ default_executable: flvedit
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: packable
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "1.2"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: backports
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ description: "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."
36
+ email: github@marc-andre.ca
37
+ executables:
38
+ - flvedit
39
+ extensions: []
40
+
41
+ extra_rdoc_files:
42
+ - LICENSE
43
+ - README.rdoc
44
+ files:
45
+ - CHANGELOG.rdoc
46
+ - LICENSE
47
+ - README.rdoc
48
+ - Rakefile
49
+ - VERSION.yml
50
+ - bin/flvedit
51
+ - lib/flv.rb
52
+ - lib/flv/audio.rb
53
+ - lib/flv/base.rb
54
+ - lib/flv/body.rb
55
+ - lib/flv/edit.rb
56
+ - lib/flv/edit/options.rb
57
+ - lib/flv/edit/processor.rb
58
+ - lib/flv/edit/processor/add.rb
59
+ - lib/flv/edit/processor/base.rb
60
+ - lib/flv/edit/processor/command_line.rb
61
+ - lib/flv/edit/processor/cut.rb
62
+ - lib/flv/edit/processor/debug.rb
63
+ - lib/flv/edit/processor/head.rb
64
+ - lib/flv/edit/processor/join.rb
65
+ - lib/flv/edit/processor/meta_data_maker.rb
66
+ - lib/flv/edit/processor/print.rb
67
+ - lib/flv/edit/processor/printer.rb
68
+ - lib/flv/edit/processor/reader.rb
69
+ - lib/flv/edit/processor/save.rb
70
+ - lib/flv/edit/processor/update.rb
71
+ - lib/flv/edit/runner.rb
72
+ - lib/flv/edit/version.rb
73
+ - lib/flv/event.rb
74
+ - lib/flv/file.rb
75
+ - lib/flv/header.rb
76
+ - lib/flv/packing.rb
77
+ - lib/flv/tag.rb
78
+ - lib/flv/timestamp.rb
79
+ - lib/flv/util/double_check.rb
80
+ - lib/flv/video.rb
81
+ - test/fixtures/corrupted.flv
82
+ - test/fixtures/short.flv
83
+ - test/fixtures/tags.xml
84
+ - test/test_flv.rb
85
+ - test/test_flv_edit.rb
86
+ - test/test_flv_edit_results.rb
87
+ - test/test_helper.rb
88
+ - test/text_flv_edit_results/add_tags.txt
89
+ - test/text_flv_edit_results/cut_from.txt
90
+ - test/text_flv_edit_results/cut_key.txt
91
+ - test/text_flv_edit_results/debug.txt
92
+ - test/text_flv_edit_results/debug_limited.txt
93
+ - test/text_flv_edit_results/debug_range.txt
94
+ - test/text_flv_edit_results/join.txt
95
+ - test/text_flv_edit_results/print.txt
96
+ - test/text_flv_edit_results/stop.txt
97
+ - test/text_flv_edit_results/update.txt
98
+ has_rdoc: true
99
+ homepage: http://github.com/marcandre/flvedit
100
+ post_install_message:
101
+ rdoc_options:
102
+ - --charset=UTF-8
103
+ - --title
104
+ - FLV::Edit
105
+ - --main
106
+ - README.rdoc
107
+ - --line-numbers
108
+ - --inline-source
109
+ require_paths:
110
+ - lib
111
+ required_ruby_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: "0"
116
+ version:
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: "0"
122
+ version:
123
+ requirements: []
124
+
125
+ rubyforge_project: flvedit
126
+ rubygems_version: 1.2.0
127
+ signing_key:
128
+ specification_version: 2
129
+ summary: Command line tool & library to handle FLV files
130
+ test_files:
131
+ - test/test_flv.rb
132
+ - test/test_flv_edit.rb
133
+ - test/test_flv_edit_results.rb
134
+ - test/test_helper.rb