rvideo-tecnobrat 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/ENV +100 -0
  2. data/ENV2 +129 -0
  3. data/History.txt +30 -0
  4. data/License.txt +20 -0
  5. data/Manifest.txt +47 -0
  6. data/README.txt +91 -0
  7. data/RULES +11 -0
  8. data/Rakefile +184 -0
  9. data/config/boot.rb +16 -0
  10. data/lib/rvideo.rb +17 -0
  11. data/lib/rvideo/errors.rb +24 -0
  12. data/lib/rvideo/float.rb +7 -0
  13. data/lib/rvideo/inspector.rb +486 -0
  14. data/lib/rvideo/reporter.rb +176 -0
  15. data/lib/rvideo/reporter/views/index.html.erb +27 -0
  16. data/lib/rvideo/reporter/views/report.css +27 -0
  17. data/lib/rvideo/reporter/views/report.html.erb +81 -0
  18. data/lib/rvideo/reporter/views/report.js +9 -0
  19. data/lib/rvideo/tools/abstract_tool.rb +79 -0
  20. data/lib/rvideo/tools/ffmpeg.rb +128 -0
  21. data/lib/rvideo/tools/flvtool2.rb +45 -0
  22. data/lib/rvideo/tools/mencoder.rb +65 -0
  23. data/lib/rvideo/transcoder.rb +122 -0
  24. data/lib/rvideo/version.rb +9 -0
  25. data/scripts/txt2html +67 -0
  26. data/setup.rb +1585 -0
  27. data/spec/files/kites.mp4 +0 -0
  28. data/spec/fixtures/ffmpeg_builds.yml +28 -0
  29. data/spec/fixtures/files.yml +385 -0
  30. data/spec/fixtures/recipes.yml +57 -0
  31. data/spec/integrations/files/files.yml +361 -0
  32. data/spec/integrations/formats_spec.rb +295 -0
  33. data/spec/integrations/inspection_spec.rb +15 -0
  34. data/spec/integrations/recipes_spec.rb +0 -0
  35. data/spec/integrations/rvideo_spec.rb +17 -0
  36. data/spec/integrations/transcoding_spec.rb +9 -0
  37. data/spec/spec.opts +1 -0
  38. data/spec/spec_helper.rb +11 -0
  39. data/spec/units/abstract_tool_spec.rb +112 -0
  40. data/spec/units/ffmpeg_spec.rb +703 -0
  41. data/spec/units/flvtool2_spec.rb +314 -0
  42. data/spec/units/inspector_spec.rb +49 -0
  43. data/spec/units/mencoder_spec.rb +4986 -0
  44. data/spec/units/transcoder_spec.rb +140 -0
  45. data/website/index.html +219 -0
  46. data/website/index.txt +142 -0
  47. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  48. metadata +116 -0
@@ -0,0 +1,361 @@
1
+ fancypants:
2
+ response: |
3
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
4
+ Mac OSX universal build for ffmpegX
5
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
6
+ libavutil version: 49.0.0
7
+ libavcodec version: 51.9.0
8
+ libavformat version: 50.4.0
9
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
10
+
11
+ Seems that stream 0 comes from film source: 44100.00 (44100/1) -> 23.98 (24000/1001)
12
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'files/fancypants-h264.mov':
13
+ Duration: 00:00:35.4, start: 0.000000, bitrate: 1980 kb/s
14
+ Stream #0.0(eng), 23.98 fps(r): Video: h264, yuv420p, 720x400
15
+ Stream #0.1(eng): Audio: aac, 44100 Hz, stereo
16
+ Must supply at least one output file
17
+ kites:
18
+ response: |
19
+ FFmpeg version SVN-r6399, Copyright (c) 2000-2004 Fabrice Bellard
20
+ configuration: --prefix=/opt/local --prefix=/opt/local --disable-vhook --mandir=/opt/local/share/man --extra-cflags=-DHAVE_LRINTF --extra-ldflags=-d -L/opt/local/lib --enable-gpl --enable-mp3lame --enable-libogg --enable-vorbis --enable-faac --enable-faad --enable-xvid --enable-x264 --enable-a52 --enable-dts
21
+ libavutil version: 49.0.1
22
+ libavcodec version: 51.16.0
23
+ libavformat version: 50.5.0
24
+ built on Mar 29 2007 17:18:04, gcc: 4.0.1 (Apple Computer, Inc. build 5367)
25
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'spec/files/kites.mp4':
26
+ Duration: 00:00:19.6, start: 0.000000, bitrate: 98 kb/s
27
+ Stream #0.0(und): Video: mpeg4, yuv420p, 176x144, 10.00 fps(r)
28
+ Stream #0.1(und): Audio: samr / 0x726D6173, 8000 Hz, mono
29
+ Must supply at least one output file
30
+ duck:
31
+ response: |
32
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
33
+ Mac OSX universal build for ffmpegX
34
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
35
+ libavutil version: 49.0.0
36
+ libavcodec version: 51.9.0
37
+ libavformat version: 50.4.0
38
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
39
+ Input #0, mp3, from '01 Come See The Duck.mp3':
40
+ Duration: 00:02:03.0, start: 0.000000, bitrate: 128 kb/s
41
+ Stream #0.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
42
+ Must supply at least one output file
43
+ eiffel:
44
+ response: |
45
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
46
+ Mac OSX universal build for ffmpegX
47
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
48
+ libavutil version: 49.0.0
49
+ libavcodec version: 51.9.0
50
+ libavformat version: 50.4.0
51
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
52
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '03 Alec Eiffel 1.m4a':
53
+ Duration: 00:02:50.3, start: 0.000000, bitrate: 162 kb/s
54
+ Stream #0.0(und): Audio: aac, 44100 Hz, stereo
55
+ Must supply at least one output file
56
+ mpeg1_957:
57
+ response: |
58
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
59
+ Mac OSX universal build for ffmpegX
60
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
61
+ libavutil version: 49.0.0
62
+ libavcodec version: 51.9.0
63
+ libavformat version: 50.4.0
64
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
65
+ Input #0, mpeg, from '957.mpg':
66
+ Duration: 00:00:22.6, start: 0.177778, bitrate: 808 kb/s
67
+ Stream #0.0[0x1c0]: Audio: mp2, 32000 Hz, mono, 32 kb/s
68
+ Stream #0.1[0x1e0], 25.00 fps(r): Video: mpeg1video, yuv420p, 320x240, 104857 kb/s
69
+ Must supply at least one output file
70
+ buffy:
71
+ response: |
72
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
73
+ Mac OSX universal build for ffmpegX
74
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
75
+ libavutil version: 49.0.0
76
+ libavcodec version: 51.9.0
77
+ libavformat version: 50.4.0
78
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
79
+
80
+ Seems that stream 0 comes from film source: 30000.00 (30000/1) -> 23.98 (24000/1001)
81
+ Input #0, avi, from 'buffy0501.avi':
82
+ Duration: 00:43:25.3, start: 0.000000, bitrate: 1266 kb/s
83
+ Stream #0.0, 23.98 fps(r): Video: mpeg4, yuv420p, 640x464
84
+ Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
85
+ Must supply at least one output file
86
+ chainsaw:
87
+ response: |
88
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
89
+ Mac OSX universal build for ffmpegX
90
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
91
+ libavutil version: 49.0.0
92
+ libavcodec version: 51.9.0
93
+ libavformat version: 50.4.0
94
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
95
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'chainsaw-xvid.mov':
96
+ Duration: 00:01:09.5, start: 0.000000, bitrate: 970 kb/s
97
+ Stream #0.0(eng), 23.98 fps(r): Video: mpeg4, yuv420p, 624x352
98
+ Stream #0.1(eng): Audio: mp2, 48000 Hz, stereo
99
+ Must supply at least one output file
100
+ chairprank:
101
+ response: |
102
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
103
+ Mac OSX universal build for ffmpegX
104
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
105
+ libavutil version: 49.0.0
106
+ libavcodec version: 51.9.0
107
+ libavformat version: 50.4.0
108
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
109
+ [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5597b8]negative ctts, ignoring
110
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'chair_prank.mov':
111
+ Duration: 00:00:36.6, start: 0.000000, bitrate: 26602 kb/s
112
+ Stream #0.0(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
113
+ Stream #0.1(eng), 29.97 fps(r): Video: mpeg2video, yuv420p, 1440x1080, 25000 kb/s
114
+ Must supply at least one output file
115
+ fire_short:
116
+ response: |
117
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
118
+ Mac OSX universal build for ffmpegX
119
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
120
+ libavutil version: 49.0.0
121
+ libavcodec version: 51.9.0
122
+ libavformat version: 50.4.0
123
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
124
+ [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5597b8]negative ctts, ignoring
125
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fire-short.mov':
126
+ Duration: 00:00:10.0, start: 0.000000, bitrate: 23232 kb/s
127
+ Stream #0.0(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
128
+ Stream #0.1(eng), 29.97 fps(r): Video: h264, yuv420p, 1280x720
129
+ Must supply at least one output file
130
+ fire_video_only:
131
+ response: |
132
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
133
+ Mac OSX universal build for ffmpegX
134
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
135
+ libavutil version: 49.0.0
136
+ libavcodec version: 51.9.0
137
+ libavformat version: 50.4.0
138
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
139
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fire-short.video.mp4':
140
+ Duration: 00:00:10.0, start: 0.000000, bitrate: 506 kb/s
141
+ Stream #0.0(und), 29.97 fps(r): Video: h264, yuv420p, 320x180
142
+ Must supply at least one output file
143
+ fire_audio_only:
144
+ response: |
145
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
146
+ Mac OSX universal build for ffmpegX
147
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
148
+ libavutil version: 49.0.0
149
+ libavcodec version: 51.9.0
150
+ libavformat version: 50.4.0
151
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
152
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fire-short.audio.mp4':
153
+ Duration: 00:00:10.0, start: 0.000000, bitrate: 86 kb/s
154
+ Stream #0.0(und): Audio: aac, 48000 Hz, stereo
155
+ Must supply at least one output file
156
+ fireproof:
157
+ response: |
158
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
159
+ Mac OSX universal build for ffmpegX
160
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
161
+ libavutil version: 49.0.0
162
+ libavcodec version: 51.9.0
163
+ libavformat version: 50.4.0
164
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
165
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fireproof_apple_intermediate.mov':
166
+ Duration: 00:00:18.7, start: 0.000000, bitrate: 24281 kb/s
167
+ Stream #0.0(eng): Audio: pcm_s16be, 48000 Hz, mono, 768 kb/s
168
+ Stream #0.1(eng), 600.00 fps(r): Video: Apple Intermediate Codec, 1280x720
169
+ Must supply at least one output file
170
+ jobjob:
171
+ response: |
172
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
173
+ Mac OSX universal build for ffmpegX
174
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
175
+ libavutil version: 49.0.0
176
+ libavcodec version: 51.9.0
177
+ libavformat version: 50.4.0
178
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
179
+
180
+ Seems that stream 1 comes from film source: 600.00 (600/1) -> 59.75 (239/4)
181
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'jobjob.mov':
182
+ Duration: 00:01:09.0, start: 0.000000, bitrate: 28847 kb/s
183
+ Stream #0.0(eng): Audio: aac, 44100 Hz, stereo
184
+ Stream #0.1(eng), 59.75 fps(r): Video: dvvideo, yuv411p, 720x480
185
+ Must supply at least one output file
186
+ lecture:
187
+ response: |
188
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
189
+ Mac OSX universal build for ffmpegX
190
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
191
+ libavutil version: 49.0.0
192
+ libavcodec version: 51.9.0
193
+ libavformat version: 50.4.0
194
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
195
+ Input #0, avi, from 'lecture.avi':
196
+ Duration: 01:01:20.4, start: 0.000000, bitrate: 996 kb/s
197
+ Stream #0.0, 29.97 fps(r): Video: msmpeg4, yuv420p, 320x240
198
+ Stream #0.1: Audio: mp3, 48000 Hz, mono, 64 kb/s
199
+ Must supply at least one output file
200
+ nope:
201
+ respone: |
202
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
203
+ Mac OSX universal build for ffmpegX
204
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
205
+ libavutil version: 49.0.0
206
+ libavcodec version: 51.9.0
207
+ libavformat version: 50.4.0
208
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
209
+ Input #0, mpeg, from 'nope_mpeg2.mpg':
210
+ Duration: 00:00:06.2, start: 0.375367, bitrate: 1972 kb/s
211
+ Stream #0.0[0x1e0], 23.98 fps(r): Video: mpeg2video, yuv420p, 720x400, 104857 kb/s
212
+ Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 128 kb/s
213
+ Must supply at least one output file
214
+ tiki:
215
+ response: |
216
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
217
+ Mac OSX universal build for ffmpegX
218
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
219
+ libavutil version: 49.0.0
220
+ libavcodec version: 51.9.0
221
+ libavformat version: 50.4.0
222
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
223
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tiki.m4v':
224
+ Duration: 00:05:23.9, start: 0.000000, bitrate: 1631 kb/s
225
+ Stream #0.0(eng): Audio: aac, 44100 Hz, stereo
226
+ Stream #0.1(eng), 23.98 fps(r): Video: h264, yuv420p, 640x360
227
+ Must supply at least one output file
228
+ ben:
229
+ response: |
230
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
231
+ Mac OSX universal build for ffmpegX
232
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
233
+ libavutil version: 49.0.0
234
+ libavcodec version: 51.9.0
235
+ libavformat version: 50.4.0
236
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
237
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ben.3g2':
238
+ Duration: 00:01:04.8, start: 0.000000, bitrate: 138 kb/s
239
+ Stream #0.0(und): Audio: mp4a / 0x6134706D, 8000 Hz, stereo
240
+ Stream #0.1(und), 15.00 fps(r): Video: mpeg4, yuv420p, 320x240
241
+ Must supply at least one output file
242
+ dan:
243
+ response: |
244
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
245
+ Mac OSX universal build for ffmpegX
246
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
247
+ libavutil version: 49.0.0
248
+ libavcodec version: 51.9.0
249
+ libavformat version: 50.4.0
250
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
251
+
252
+ Seems that stream 0 comes from film source: 1000.00 (48000/48) -> 7.67 (23/3)
253
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dan.3gp':
254
+ Duration: 00:00:07.0, start: 0.000000, bitrate: 107 kb/s
255
+ Stream #0.0(und), 7.67 fps(r): Video: h263, yuv420p, 176x144
256
+ Stream #0.1(und): Audio: amr_nb, 8000 Hz, mono
257
+ Must supply at least one output file
258
+ out:
259
+ response: |
260
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
261
+ Mac OSX universal build for ffmpegX
262
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
263
+ libavutil version: 49.0.0
264
+ libavcodec version: 51.9.0
265
+ libavformat version: 50.4.0
266
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
267
+
268
+ Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 15.00 (15/1)
269
+ Input #0, flv, from 'output.flv':
270
+ Duration: 00:00:03.5, bitrate: N/A
271
+ Stream #0.0: Audio: mp3, 22050 Hz, mono
272
+ Stream #0.1, 15.00 fps(r): Video: flv, yuv420p, 320x240
273
+ Must supply at least one output file
274
+ truck:
275
+ response: |
276
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
277
+ Mac OSX universal build for ffmpegX
278
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
279
+ libavutil version: 49.0.0
280
+ libavcodec version: 51.9.0
281
+ libavformat version: 50.4.0
282
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
283
+
284
+ Seems that stream 0 comes from film source: 15000.00 (30000/2) -> 15.00 (15/1)
285
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'truck.3gpp':
286
+ Duration: 00:00:24.4, start: 0.000000, bitrate: 134 kb/s
287
+ Stream #0.0(und), 15.00 fps(r): Video: h263, yuv420p, 176x144
288
+ Stream #0.1(und): Audio: amr_nb, 8000 Hz, mono
289
+ Must supply at least one output file
290
+ live_tv:
291
+ response: |
292
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
293
+ Mac OSX universal build for ffmpegX
294
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
295
+ libavutil version: 49.0.0
296
+ libavcodec version: 51.9.0
297
+ libavformat version: 50.4.0
298
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
299
+
300
+ Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 15.00 (15/1)
301
+ Input #0, asf, from '2LiveTV.wmv':
302
+ Duration: 00:00:54.4, start: 5.000000, bitrate: 310 kb/s
303
+ Stream #0.0: Audio: wmav2, 32000 Hz, stereo, 48 kb/s
304
+ Stream #0.1, 15.00 fps(r): Video: wmv2, yuv420p, 320x240
305
+ Must supply at least one output file
306
+ jedermann:
307
+ response: |
308
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
309
+ Mac OSX universal build for ffmpegX
310
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
311
+ libavutil version: 49.0.0
312
+ libavcodec version: 51.9.0
313
+ libavformat version: 50.4.0
314
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
315
+
316
+ Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 30.00 (30/1)
317
+ Input #0, asf, from 'jedermann.wmv':
318
+ Duration: 00:00:29.9, start: 5.000000, bitrate: 887 kb/s
319
+ Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 64 kb/s
320
+ Stream #0.1, 30.00 fps(r): Video: WMV3 / 0x33564D57, 320x240
321
+ Must supply at least one output file
322
+ athf:
323
+ response: |
324
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
325
+ Mac OSX universal build for ffmpegX
326
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
327
+ libavutil version: 49.0.0
328
+ libavcodec version: 51.9.0
329
+ libavformat version: 50.4.0
330
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
331
+
332
+ Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 30.00 (30/1)
333
+ Input #0, asf, from 'athf2.wmv':
334
+ Duration: 00:00:21.1, start: 5.000000, bitrate: 1534 kb/s
335
+ Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 64 kb/s
336
+ Stream #0.1, 30.00 fps(r): Video: WMVA / 0x41564D57, 640x480
337
+ Must supply at least one output file
338
+ macgyver:
339
+ response: |
340
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
341
+ Mac OSX universal build for ffmpegX
342
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
343
+ libavutil version: 49.0.0
344
+ libavcodec version: 51.9.0
345
+ libavformat version: 50.4.0
346
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
347
+ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'macgyver.mov':
348
+ Duration: 00:00:50.2, start: 0.000000, bitrate: 1100 kb/s
349
+ Stream #0.0(eng), 23.98 fps(r): Video: msmpeg4, yuv420p, 512x384
350
+ Stream #0.1(eng): Audio: mp2, 44100 Hz, stereo
351
+ Must supply at least one output file
352
+ text:
353
+ response: |
354
+ FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
355
+ Mac OSX universal build for ffmpegX
356
+ configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
357
+ libavutil version: 49.0.0
358
+ libavcodec version: 51.9.0
359
+ libavformat version: 50.4.0
360
+ built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
361
+ TODO: Unknown format
@@ -0,0 +1,295 @@
1
+ require File.dirname(__FILE__) + '/../spec_helper'
2
+
3
+ module RVideo
4
+ context "Using various builds of ffmpeg, RVideo should properly inspect" do
5
+ specify "a cell-phone MP4 file" do
6
+ file = Inspector.new(:raw_response => files(:kites))
7
+ file.container.should == "mov,mp4,m4a,3gp,3g2,mj2"
8
+ file.raw_duration.should == "00:00:19.6"
9
+ file.duration.should == 19600
10
+ file.bitrate.should == 98
11
+ file.bitrate_units.should == "kb/s"
12
+ file.audio_stream_id.should == "#0.1"
13
+ file.audio_codec.should == "samr / 0x726D6173"
14
+ file.audio_sample_rate.should == 8000
15
+ file.audio_sample_units.should == "Hz"
16
+ file.audio_channels_string.should == "mono"
17
+ file.video_codec.should == "mpeg4"
18
+ file.video_stream_id.should == "#0.0"
19
+ file.video_colorspace.should == "yuv420p"
20
+ file.width.should == 176
21
+ file.height.should == 144
22
+ file.fps.should == "10.00"
23
+ end
24
+
25
+ specify "fancypants" do
26
+ file = Inspector.new(:raw_response => files(:fancypants))
27
+ file.container.should == "mov,mp4,m4a,3gp,3g2,mj2"
28
+ file.raw_duration.should == "00:00:35.4"
29
+ file.duration.should == 35400
30
+ file.bitrate.should == 1980
31
+ file.bitrate_units.should == "kb/s"
32
+ file.audio_stream_id.should == "#0.1"
33
+ file.audio_codec.should == "aac"
34
+ file.audio_sample_rate.should == 44100
35
+ file.audio_sample_units.should == "Hz"
36
+ file.audio_channels_string.should == "stereo"
37
+ file.video_codec.should == "h264"
38
+ file.video_stream_id.should == "#0.0"
39
+ file.video_colorspace.should == "yuv420p"
40
+ file.width.should == 720
41
+ file.height.should == 400
42
+ file.fps.should == "23.98"
43
+ end
44
+
45
+ specify "mpeg4/xvid" do
46
+ file = Inspector.new(:raw_response => files(:chainsaw))
47
+ file.container.should == "mov,mp4,m4a,3gp,3g2,mj2"
48
+ file.raw_duration.should == "00:01:09.5"
49
+ file.duration.should == 69500
50
+ file.bitrate.should == 970
51
+ file.bitrate_units.should == "kb/s"
52
+ file.audio_stream_id.should == "#0.1"
53
+ file.audio_codec.should == "mp2"
54
+ file.audio_sample_rate.should == 48000
55
+ file.audio_sample_units.should == "Hz"
56
+ file.audio_channels_string.should == "stereo"
57
+ file.video_codec.should == "mpeg4"
58
+ file.video_stream_id.should == "#0.0"
59
+ file.video_colorspace.should == "yuv420p"
60
+ file.width.should == 624
61
+ file.height.should == 352
62
+ file.fps.should == "23.98"
63
+ end
64
+
65
+ specify "mpeg1" do
66
+ file = Inspector.new(:raw_response => files(:mpeg1_957))
67
+ file.container.should == "mpeg"
68
+ file.raw_duration.should == "00:00:22.6"
69
+ file.duration.should == 22600
70
+ file.bitrate.should == 808
71
+ file.bitrate_units.should == "kb/s"
72
+ file.audio_stream_id.should == "#0.0"
73
+ file.audio_codec.should == "mp2"
74
+ file.audio_sample_rate.should == 32000
75
+ file.audio_sample_units.should == "Hz"
76
+ file.audio_channels_string.should == "mono"
77
+ file.video_codec.should == "mpeg1video"
78
+ file.video_stream_id.should == "#0.1"
79
+ file.video_colorspace.should == "yuv420p"
80
+ file.width.should == 320
81
+ file.height.should == 240
82
+ file.fps.should == "25.00"
83
+ end
84
+
85
+ specify "avi/mpeg4/mp3" do
86
+ file = Inspector.new(:raw_response => files(:buffy))
87
+ file.container.should == "avi"
88
+ file.raw_duration.should == "00:43:25.3"
89
+ file.duration.should == 2605300
90
+ file.bitrate.should == 1266
91
+ file.bitrate_units.should == "kb/s"
92
+ file.audio_stream_id.should == "#0.1"
93
+ file.audio_codec.should == "mp3"
94
+ file.audio_sample_rate.should == 48000
95
+ file.audio_sample_units.should == "Hz"
96
+ file.audio_channels_string.should == "stereo"
97
+ file.video_codec.should == "mpeg4"
98
+ file.video_stream_id.should == "#0.0"
99
+ file.video_colorspace.should == "yuv420p"
100
+ file.width.should == 640
101
+ file.height.should == 464
102
+ file.fps.should == "23.98"
103
+ end
104
+
105
+ specify "HD mpeg2" do
106
+ file = Inspector.new(:raw_response => files(:chairprank))
107
+ file.container.should == "mov,mp4,m4a,3gp,3g2,mj2"
108
+ file.raw_duration.should == "00:00:36.6"
109
+ file.duration.should == 36600
110
+ file.bitrate.should == 26602
111
+ file.bitrate_units.should == "kb/s"
112
+ file.audio_stream_id.should == "#0.0"
113
+ file.audio_codec.should == "pcm_s16le"
114
+ file.audio_sample_rate.should == 48000
115
+ file.audio_sample_units.should == "Hz"
116
+ file.audio_channels_string.should == "stereo"
117
+ file.video_codec.should == "mpeg2video"
118
+ file.video_stream_id.should == "#0.1"
119
+ file.video_colorspace.should == "yuv420p"
120
+ file.width.should == 1440
121
+ file.height.should == 1080
122
+ file.fps.should == "29.97"
123
+ end
124
+
125
+ specify "h264 (1)" do
126
+ file = Inspector.new(:raw_response => files(:fire_short))
127
+ file.container.should == "mov,mp4,m4a,3gp,3g2,mj2"
128
+ file.raw_duration.should == "00:00:10.0"
129
+ file.duration.should == 10000
130
+ file.bitrate.should == 23232
131
+ file.bitrate_units.should == "kb/s"
132
+ file.audio_stream_id.should == "#0.0"
133
+ file.audio_codec.should == "pcm_s16le"
134
+ file.audio_sample_rate.should == 48000
135
+ file.audio_sample_units.should == "Hz"
136
+ file.audio_channels_string.should == "stereo"
137
+ file.video_codec.should == "h264"
138
+ file.video_stream_id.should == "#0.1"
139
+ file.video_colorspace.should == "yuv420p"
140
+ file.width.should == 1280
141
+ file.height.should == 720
142
+ file.fps.should == "29.97"
143
+ end
144
+
145
+ specify "h264 video only" do
146
+ file = Inspector.new(:raw_response => files(:fire_video_only))
147
+ file.container.should == "mov,mp4,m4a,3gp,3g2,mj2"
148
+ file.raw_duration.should == "00:00:10.0"
149
+ file.duration.should == 10000
150
+ file.bitrate.should == 506
151
+ file.bitrate_units.should == "kb/s"
152
+ file.audio?.should == false
153
+ file.audio_codec.should == nil
154
+ file.video_codec.should == "h264"
155
+ file.video_stream_id.should == "#0.0"
156
+ file.video_colorspace.should == "yuv420p"
157
+ file.width.should == 320
158
+ file.height.should == 180
159
+ file.fps.should == "29.97"
160
+ end
161
+
162
+ specify "aac audio only" do
163
+ file = Inspector.new(:raw_response => files(:fire_audio_only))
164
+ file.container.should == "mov,mp4,m4a,3gp,3g2,mj2"
165
+ file.raw_duration.should == "00:00:10.0"
166
+ file.duration.should == 10000
167
+ file.bitrate.should == 86
168
+ file.bitrate_units.should == "kb/s"
169
+ file.audio_stream_id.should == "#0.0"
170
+ file.audio_codec.should == "aac"
171
+ file.audio_sample_rate.should == 48000
172
+ file.audio_sample_units.should == "Hz"
173
+ file.audio_channels_string.should == "stereo"
174
+ file.video?.should == false
175
+ file.video_codec.should be_nil
176
+ end
177
+
178
+ specify "apple intermediate" do
179
+ file = Inspector.new(:raw_response => files(:fireproof))
180
+ file.container.should == "mov,mp4,m4a,3gp,3g2,mj2"
181
+ file.raw_duration.should == "00:00:18.7"
182
+ file.duration.should == 18700
183
+ file.bitrate.should == 24281
184
+ file.bitrate_units.should == "kb/s"
185
+ file.audio_stream_id.should == "#0.0"
186
+ file.audio_codec.should == "pcm_s16be"
187
+ file.audio_sample_rate.should == 48000
188
+ file.audio_sample_units.should == "Hz"
189
+ file.audio_channels_string.should == "mono"
190
+ file.video_codec.should == "Apple Intermediate Codec"
191
+ file.video_stream_id.should == "#0.1"
192
+ file.video_colorspace.should == nil
193
+ file.width.should == 1280
194
+ file.height.should == 720
195
+ file.fps.should == "600.00" # this is a known FFMPEG problem
196
+ end
197
+
198
+ specify "dv video" do
199
+
200
+ end
201
+
202
+ specify "msmpeg4" do
203
+
204
+ end
205
+
206
+ specify "mpeg2 ac3" do
207
+
208
+ end
209
+
210
+ specify "m4v h264" do
211
+
212
+ end
213
+
214
+ specify "3g2" do
215
+
216
+ end
217
+
218
+ specify "3gp (1)" do
219
+
220
+ end
221
+
222
+ specify "3gp (2)" do
223
+
224
+ end
225
+
226
+ specify "flv" do
227
+
228
+ end
229
+
230
+ specify "wmv (1)" do
231
+
232
+ end
233
+
234
+ specify "wmv/wmv3/wmav2" do
235
+
236
+ end
237
+
238
+ specify "wmva/wmva2" do
239
+
240
+ end
241
+
242
+ specify "mov/msmpeg4" do
243
+
244
+ end
245
+
246
+ specify "audio only mp3" do
247
+ file = Inspector.new(:raw_response => files(:duck))
248
+ file.container.should == "mp3"
249
+ file.raw_duration.should == "00:02:03.0"
250
+ file.duration.should == 123000
251
+ file.bitrate.should == 128
252
+ file.bitrate_units.should == "kb/s"
253
+ file.audio_stream_id.should == "#0.0"
254
+ file.audio_codec.should == "mp3"
255
+ file.audio_sample_rate.should == 44100
256
+ file.audio_sample_units.should == "Hz"
257
+ file.audio_channels_string.should == "stereo"
258
+ file.audio?.should == true
259
+ file.video?.should == false
260
+ end
261
+
262
+ specify "audio only aac" do
263
+ file = Inspector.new(:raw_response => files(:eiffel))
264
+ file.container.should == "mov,mp4,m4a,3gp,3g2,mj2"
265
+ file.raw_duration.should == "00:02:50.3"
266
+ file.duration.should == 170300
267
+ file.bitrate.should == 162
268
+ file.bitrate_units.should == "kb/s"
269
+ file.audio_stream_id.should == "#0.0"
270
+ file.audio_codec.should == "aac"
271
+ file.audio_sample_rate.should == 44100
272
+ file.audio_sample_units.should == "Hz"
273
+ file.audio_channels_string.should == "stereo"
274
+ file.audio?.should == true
275
+ file.video?.should == false
276
+ end
277
+
278
+ specify "invalid file" do
279
+ file = Inspector.new(:raw_response => files(:invalid))
280
+ file.container.should == "mov,mp4,m4a,3gp,3g2,mj2"
281
+ file.raw_duration.should be_nil
282
+ file.valid?.should be_false
283
+ file.unknown_format?.should be_false
284
+ file.unreadable_file?.should be_true
285
+ end
286
+
287
+ specify "failing mp3 file" do
288
+ file = Inspector.new(:raw_response => files(:failing_ogg))
289
+ file.raw_duration.should be_nil
290
+ file.invalid?.should be_true
291
+ file.unknown_format?.should be_false
292
+ file.unreadable_file?.should be_true
293
+ end
294
+ end
295
+ end