Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: tools/perf/page_sets/tough_video_cases.py

Issue 2814613002: Organize tough_video_cases by adding tags. (Closed)
Patch Set: Fix tag problems, and test this time. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry import story 5 from telemetry import story
6 6
7 _PAGE_TAGS_LIST = [
8 # Audio codecs:
9 'pcm',
10 'mp3',
11 'aac',
12 'vorbis',
13 'opus',
14 # Video codecs:
15 'theora',
16 'h264',
17 'vp8',
18 'vp9',
19 # Test types:
20 'audio_video',
21 'audio_only',
22 'video_only',
23 'looping_audio',
24 # Other filter tags:
25 'is_50fps',
26 'is_4k',
27 ]
28
7 29
8 class ToughVideoCasesPage(page_module.Page): 30 class ToughVideoCasesPage(page_module.Page):
9 31
10 def __init__(self, url, page_set, tags=None): 32 def __init__(self, url, page_set, tags):
33 if tags:
34 for t in tags:
35 assert t in _PAGE_TAGS_LIST
11 super(ToughVideoCasesPage, self).__init__( 36 super(ToughVideoCasesPage, self).__init__(
12 url=url, page_set=page_set, tags=tags) 37 url=url, page_set=page_set, tags=tags)
13 38
14 def LoopMixedAudio(self, action_runner): 39 def LoopMixedAudio(self, action_runner):
15 action_runner.PlayMedia(selector='#background_audio', 40 action_runner.PlayMedia(selector='#background_audio',
16 playing_event_timeout_in_seconds=60) 41 playing_event_timeout_in_seconds=60)
17 action_runner.LoopMedia(loop_count=50, selector='#mixed_audio') 42 action_runner.LoopMedia(loop_count=50, selector='#mixed_audio')
18 43
19 def LoopSingleAudio(self, action_runner): 44 def LoopSingleAudio(self, action_runner):
20 action_runner.LoopMedia(loop_count=50, selector='#single_audio') 45 action_runner.LoopMedia(loop_count=50, selector='#single_audio')
(...skipping 17 matching lines...) Expand all
38 # Seek to after the play-head location. 63 # Seek to after the play-head location.
39 action_runner.SeekMedia(seconds=9, timeout_in_seconds=timeout, 64 action_runner.SeekMedia(seconds=9, timeout_in_seconds=timeout,
40 label='seek_cold') 65 label='seek_cold')
41 66
42 67
43 class Page1(ToughVideoCasesPage): 68 class Page1(ToughVideoCasesPage):
44 69
45 def __init__(self, page_set): 70 def __init__(self, page_set):
46 super(Page1, self).__init__( 71 super(Page1, self).__init__(
47 url='file://tough_video_cases/video.html?src=crowd.wav&type=audio', 72 url='file://tough_video_cases/video.html?src=crowd.wav&type=audio',
48 page_set=page_set) 73 page_set=page_set,
74 tags=['pcm', 'audio_only'])
49 75
50 self.add_browser_metrics = True 76 self.add_browser_metrics = True
51 77
52 def RunPageInteractions(self, action_runner): 78 def RunPageInteractions(self, action_runner):
53 self.PlayAction(action_runner) 79 self.PlayAction(action_runner)
54 80
55 81
56 class Page2(ToughVideoCasesPage): 82 class Page2(ToughVideoCasesPage):
57 83
58 def __init__(self, page_set): 84 def __init__(self, page_set):
59 super(Page2, self).__init__( 85 super(Page2, self).__init__(
60 url='file://tough_video_cases/video.html?src=crowd.ogg&type=audio', 86 url='file://tough_video_cases/video.html?src=crowd.ogg&type=audio',
61 page_set=page_set) 87 page_set=page_set,
88 tags=['vorbis', 'audio_only'])
62 89
63 self.add_browser_metrics = True 90 self.add_browser_metrics = True
64 91
65 def RunPageInteractions(self, action_runner): 92 def RunPageInteractions(self, action_runner):
66 self.PlayAction(action_runner) 93 self.PlayAction(action_runner)
67 94
68 95
69 class Page3(ToughVideoCasesPage): 96 class Page3(ToughVideoCasesPage):
70 97
98 # Note that ffprobe reports about this file:
99 # "[ogg @ 0x31a3ba0] Broken file, keyframe not correctly marked."
100 # This media file should probably be removed or replaced.
71 def __init__(self, page_set): 101 def __init__(self, page_set):
72 super(Page3, self).__init__( 102 super(Page3, self).__init__(
73 url='file://tough_video_cases/video.html?src=crowd1080.ogv', 103 url='file://tough_video_cases/video.html?src=crowd1080.ogv',
74 page_set=page_set) 104 page_set=page_set,
105 tags=['is_50fps', 'theora', 'vorbis', 'audio_video'])
75 106
76 self.add_browser_metrics = True 107 self.add_browser_metrics = True
77 self.is_50fps = True
78 108
79 def RunPageInteractions(self, action_runner): 109 def RunPageInteractions(self, action_runner):
80 self.PlayAction(action_runner) 110 self.PlayAction(action_runner)
81 111
82 112
83 class Page4(ToughVideoCasesPage): 113 class Page4(ToughVideoCasesPage):
84 114
85 def __init__(self, page_set): 115 def __init__(self, page_set):
86 super(Page4, self).__init__( 116 super(Page4, self).__init__(
87 url='file://tough_video_cases/video.html?src=crowd1080.webm', 117 url='file://tough_video_cases/video.html?src=crowd1080.webm',
88 page_set=page_set, tags=['is_50fps']) 118 page_set=page_set,
119 tags=['is_50fps', 'vp8', 'vorbis', 'audio_video'])
89 120
90 self.add_browser_metrics = True 121 self.add_browser_metrics = True
91 122
92 def RunPageInteractions(self, action_runner): 123 def RunPageInteractions(self, action_runner):
93 self.PlayAction(action_runner) 124 self.PlayAction(action_runner)
94 125
95 126
96 class Page5(ToughVideoCasesPage): 127 class Page5(ToughVideoCasesPage):
97 128
98 def __init__(self, page_set): 129 def __init__(self, page_set):
99 super(Page5, self).__init__( 130 super(Page5, self).__init__(
100 url='file://tough_video_cases/video.html?src=crowd2160.ogv', 131 url='file://tough_video_cases/video.html?src=crowd2160.ogv',
101 page_set=page_set, tags=['is_4k', 'is_50fps']) 132 page_set=page_set,
133 tags=['is_4k', 'is_50fps', 'theora', 'vorbis', 'audio_video'])
102 134
103 self.add_browser_metrics = True 135 self.add_browser_metrics = True
104 136
105 def RunPageInteractions(self, action_runner): 137 def RunPageInteractions(self, action_runner):
106 self.PlayAction(action_runner) 138 self.PlayAction(action_runner)
107 139
108 140
109 class Page6(ToughVideoCasesPage): 141 class Page6(ToughVideoCasesPage):
110 142
111 def __init__(self, page_set): 143 def __init__(self, page_set):
112 super(Page6, self).__init__( 144 super(Page6, self).__init__(
113 url='file://tough_video_cases/video.html?src=crowd2160.webm', 145 url='file://tough_video_cases/video.html?src=crowd2160.webm',
114 page_set=page_set, tags=['is_4k', 'is_50fps']) 146 page_set=page_set,
147 tags=['is_4k', 'is_50fps', 'vp8', 'vorbis', 'audio_video'])
115 148
116 self.add_browser_metrics = True 149 self.add_browser_metrics = True
117 150
118 def RunPageInteractions(self, action_runner): 151 def RunPageInteractions(self, action_runner):
119 self.PlayAction(action_runner) 152 self.PlayAction(action_runner)
120 153
121 154
122 class Page7(ToughVideoCasesPage): 155 class Page7(ToughVideoCasesPage):
123 156
124 def __init__(self, page_set): 157 def __init__(self, page_set):
125 super(Page7, self).__init__( 158 super(Page7, self).__init__(
126 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio', 159 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio',
127 page_set=page_set) 160 page_set=page_set,
161 tags=['vorbis', 'audio_only'])
128 162
129 self.add_browser_metrics = True 163 self.add_browser_metrics = True
130 164
131 def RunPageInteractions(self, action_runner): 165 def RunPageInteractions(self, action_runner):
132 self.PlayAction(action_runner) 166 self.PlayAction(action_runner)
133 167
134 168
135 class Page8(ToughVideoCasesPage): 169 class Page8(ToughVideoCasesPage):
136 170
137 def __init__(self, page_set): 171 def __init__(self, page_set):
138 super(Page8, self).__init__( 172 super(Page8, self).__init__(
139 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio', 173 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio',
140 page_set=page_set) 174 page_set=page_set,
175 tags=['pcm', 'audio_only'])
141 176
142 self.add_browser_metrics = True 177 self.add_browser_metrics = True
143 178
144 def RunPageInteractions(self, action_runner): 179 def RunPageInteractions(self, action_runner):
145 self.PlayAction(action_runner) 180 self.PlayAction(action_runner)
146 181
147 182
148 class Page9(ToughVideoCasesPage): 183 class Page9(ToughVideoCasesPage):
149 184
150 def __init__(self, page_set): 185 def __init__(self, page_set):
151 super(Page9, self).__init__( 186 super(Page9, self).__init__(
152 url='file://tough_video_cases/video.html?src=tulip2.ogv', 187 url='file://tough_video_cases/video.html?src=tulip2.ogv',
153 page_set=page_set) 188 page_set=page_set,
189 tags=['theora', 'vorbis', 'audio_video'])
154 190
155 self.add_browser_metrics = True 191 self.add_browser_metrics = True
156 192
157 def RunPageInteractions(self, action_runner): 193 def RunPageInteractions(self, action_runner):
158 self.PlayAction(action_runner) 194 self.PlayAction(action_runner)
159 195
160 196
161 class Page10(ToughVideoCasesPage): 197 class Page10(ToughVideoCasesPage):
162 198
163 def __init__(self, page_set): 199 def __init__(self, page_set):
164 super(Page10, self).__init__( 200 super(Page10, self).__init__(
165 url='file://tough_video_cases/video.html?src=tulip2.webm', 201 url='file://tough_video_cases/video.html?src=tulip2.webm',
166 page_set=page_set) 202 page_set=page_set,
203 tags=['vp8', 'vorbis', 'audio_video'])
167 204
168 self.add_browser_metrics = True 205 self.add_browser_metrics = True
169 206
170 def RunPageInteractions(self, action_runner): 207 def RunPageInteractions(self, action_runner):
171 self.PlayAction(action_runner) 208 self.PlayAction(action_runner)
172 209
173 210
174 class Page11(ToughVideoCasesPage): 211 class Page11(ToughVideoCasesPage):
175 212
176 def __init__(self, page_set): 213 def __init__(self, page_set):
177 super(Page11, self).__init__( 214 super(Page11, self).__init__(
178 url='file://tough_video_cases/video.html?src=crowd1080.mp4', 215 url='file://tough_video_cases/video.html?src=crowd1080.mp4',
179 page_set=page_set, tags=['is_50fps']) 216 page_set=page_set,
217 tags=['is_50fps', 'h264', 'aac', 'audio_video'])
180 218
181 self.add_browser_metrics = True 219 self.add_browser_metrics = True
182 220
183 def RunPageInteractions(self, action_runner): 221 def RunPageInteractions(self, action_runner):
184 self.PlayAction(action_runner) 222 self.PlayAction(action_runner)
185 223
186 224
187 class Page12(ToughVideoCasesPage): 225 class Page12(ToughVideoCasesPage):
188 226
189 def __init__(self, page_set): 227 def __init__(self, page_set):
190 super(Page12, self).__init__( 228 super(Page12, self).__init__(
191 url='file://tough_video_cases/video.html?src=crowd2160.mp4', 229 url='file://tough_video_cases/video.html?src=crowd2160.mp4',
192 page_set=page_set, tags=['is_4k', 'is_50fps']) 230 page_set=page_set,
231 tags=['is_4k', 'is_50fps', 'h264', 'aac', 'audio_video'])
193 232
194 self.add_browser_metrics = True 233 self.add_browser_metrics = True
195 234
196 def RunPageInteractions(self, action_runner): 235 def RunPageInteractions(self, action_runner):
197 self.PlayAction(action_runner) 236 self.PlayAction(action_runner)
198 237
199 238
200 class Page13(ToughVideoCasesPage): 239 class Page13(ToughVideoCasesPage):
201 240
202 def __init__(self, page_set): 241 def __init__(self, page_set):
203 super(Page13, self).__init__( 242 super(Page13, self).__init__(
204 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio', 243 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio',
205 page_set=page_set) 244 page_set=page_set,
245 tags=['mp3', 'audio_only'])
206 246
207 self.add_browser_metrics = True 247 self.add_browser_metrics = True
208 248
209 def RunPageInteractions(self, action_runner): 249 def RunPageInteractions(self, action_runner):
210 self.PlayAction(action_runner) 250 self.PlayAction(action_runner)
211 251
212 252
213 class Page14(ToughVideoCasesPage): 253 class Page14(ToughVideoCasesPage):
214 254
215 def __init__(self, page_set): 255 def __init__(self, page_set):
216 super(Page14, self).__init__( 256 super(Page14, self).__init__(
217 url='file://tough_video_cases/video.html?src=tulip2.mp4', 257 url='file://tough_video_cases/video.html?src=tulip2.mp4',
218 page_set=page_set) 258 page_set=page_set,
259 tags=['h264', 'aac', 'audio_video'])
219 260
220 self.add_browser_metrics = True 261 self.add_browser_metrics = True
221 262
222 def RunPageInteractions(self, action_runner): 263 def RunPageInteractions(self, action_runner):
223 self.PlayAction(action_runner) 264 self.PlayAction(action_runner)
224 265
225 266
226 class Page15(ToughVideoCasesPage): 267 class Page15(ToughVideoCasesPage):
227 268
228 def __init__(self, page_set): 269 def __init__(self, page_set):
229 super(Page15, self).__init__( 270 super(Page15, self).__init__(
230 url='file://tough_video_cases/video.html?src=tulip2.m4a&type=audio', 271 url='file://tough_video_cases/video.html?src=tulip2.m4a&type=audio',
231 page_set=page_set) 272 page_set=page_set,
273 tags=['aac', 'audio_only'])
232 274
233 self.add_browser_metrics = True 275 self.add_browser_metrics = True
234 276
235 def RunPageInteractions(self, action_runner): 277 def RunPageInteractions(self, action_runner):
236 self.PlayAction(action_runner) 278 self.PlayAction(action_runner)
237 279
238 280
239 class Page16(ToughVideoCasesPage): 281 class Page16(ToughVideoCasesPage):
240 282
241 def __init__(self, page_set): 283 def __init__(self, page_set):
242 super(Page16, self).__init__( 284 super(Page16, self).__init__(
243 url='file://tough_video_cases/video.html?src=garden2_10s.webm', 285 url='file://tough_video_cases/video.html?src=garden2_10s.webm',
244 page_set=page_set, tags=['is_4k']) 286 page_set=page_set,
287 tags=['is_4k', 'vp8', 'vorbis', 'audio_video'])
245 288
246 self.add_browser_metrics = True 289 self.add_browser_metrics = True
247 290
248 def RunPageInteractions(self, action_runner): 291 def RunPageInteractions(self, action_runner):
249 self.PlayAction(action_runner) 292 self.PlayAction(action_runner)
250 293
251 294
252 class Page17(ToughVideoCasesPage): 295 class Page17(ToughVideoCasesPage):
253 296
254 def __init__(self, page_set): 297 def __init__(self, page_set):
255 super(Page17, self).__init__( 298 super(Page17, self).__init__(
256 url='file://tough_video_cases/video.html?src=garden2_10s.mp4', 299 url='file://tough_video_cases/video.html?src=garden2_10s.mp4',
257 page_set=page_set, tags=['is_4k']) 300 page_set=page_set,
301 tags=['is_4k', 'h264', 'aac', 'audio_video'])
258 302
259 self.add_browser_metrics = True 303 self.add_browser_metrics = True
260 304
261 def RunPageInteractions(self, action_runner): 305 def RunPageInteractions(self, action_runner):
262 self.PlayAction(action_runner) 306 self.PlayAction(action_runner)
263 307
264 308
265 class Page18(ToughVideoCasesPage): 309 class Page18(ToughVideoCasesPage):
266 310
267 def __init__(self, page_set): 311 def __init__(self, page_set):
268 super(Page18, self).__init__( 312 super(Page18, self).__init__(
269 url='file://tough_video_cases/video.html?src=garden2_10s.ogv', 313 url='file://tough_video_cases/video.html?src=garden2_10s.ogv',
270 page_set=page_set, tags=['is_4k']) 314 page_set=page_set,
315 tags=['is_4k', 'theora', 'vorbis', 'audio_video'])
271 316
272 self.add_browser_metrics = True 317 self.add_browser_metrics = True
273 318
274 def RunPageInteractions(self, action_runner): 319 def RunPageInteractions(self, action_runner):
275 self.PlayAction(action_runner) 320 self.PlayAction(action_runner)
276 321
277 322
278 class Page19(ToughVideoCasesPage): 323 class Page19(ToughVideoCasesPage):
279 324
280 def __init__(self, page_set): 325 def __init__(self, page_set):
281 super(Page19, self).__init__( 326 super(Page19, self).__init__(
282 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio', 327 url='file://tough_video_cases/video.html?src=tulip2.ogg&type=audio',
283 page_set=page_set) 328 page_set=page_set,
329 tags=['vorbis', 'audio_only'])
284 330
285 self.skip_basic_metrics = True 331 self.skip_basic_metrics = True
286 332
287 def RunPageInteractions(self, action_runner): 333 def RunPageInteractions(self, action_runner):
288 self.SeekBeforeAndAfterPlayhead(action_runner) 334 self.SeekBeforeAndAfterPlayhead(action_runner)
289 335
290 336
291 class Page20(ToughVideoCasesPage): 337 class Page20(ToughVideoCasesPage):
292 338
293 def __init__(self, page_set): 339 def __init__(self, page_set):
294 super(Page20, self).__init__( 340 super(Page20, self).__init__(
295 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio', 341 url='file://tough_video_cases/video.html?src=tulip2.wav&type=audio',
296 page_set=page_set) 342 page_set=page_set,
343 tags=['pcm', 'audio_only'])
297 344
298 self.skip_basic_metrics = True 345 self.skip_basic_metrics = True
299 346
300 def RunPageInteractions(self, action_runner): 347 def RunPageInteractions(self, action_runner):
301 self.SeekBeforeAndAfterPlayhead(action_runner) 348 self.SeekBeforeAndAfterPlayhead(action_runner)
302 349
303 350
304 class Page21(ToughVideoCasesPage): 351 class Page21(ToughVideoCasesPage):
305 352
353 # Note that ffprobe reports about this file:
354 # "[ogg @ 0x39adba0] Broken file, keyframe not correctly marked."
355 # This media file should probably be removed or replaced.
306 def __init__(self, page_set): 356 def __init__(self, page_set):
307 super(Page21, self).__init__( 357 super(Page21, self).__init__(
308 url='file://tough_video_cases/video.html?src=tulip2.ogv', 358 url='file://tough_video_cases/video.html?src=tulip2.ogv',
309 page_set=page_set) 359 page_set=page_set,
360 tags=['theora', 'vorbis', 'audio_video'])
310 361
311 self.skip_basic_metrics = True 362 self.skip_basic_metrics = True
312 363
313 def RunPageInteractions(self, action_runner): 364 def RunPageInteractions(self, action_runner):
314 self.SeekBeforeAndAfterPlayhead(action_runner) 365 self.SeekBeforeAndAfterPlayhead(action_runner)
315 366
316 367
317 class Page22(ToughVideoCasesPage): 368 class Page22(ToughVideoCasesPage):
318 369
319 def __init__(self, page_set): 370 def __init__(self, page_set):
320 super(Page22, self).__init__( 371 super(Page22, self).__init__(
321 url='file://tough_video_cases/video.html?src=tulip2.webm', 372 url='file://tough_video_cases/video.html?src=tulip2.webm',
322 page_set=page_set) 373 page_set=page_set,
374 tags=['vp8', 'vorbis', 'audio_video'])
323 375
324 self.skip_basic_metrics = True 376 self.skip_basic_metrics = True
325 377
326 def RunPageInteractions(self, action_runner): 378 def RunPageInteractions(self, action_runner):
327 self.SeekBeforeAndAfterPlayhead(action_runner) 379 self.SeekBeforeAndAfterPlayhead(action_runner)
328 380
329 381
330 class Page23(ToughVideoCasesPage): 382 class Page23(ToughVideoCasesPage):
331 383
332 def __init__(self, page_set): 384 def __init__(self, page_set):
333 super(Page23, self).__init__( 385 super(Page23, self).__init__(
334 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio', 386 url='file://tough_video_cases/video.html?src=tulip2.mp3&type=audio',
335 page_set=page_set) 387 page_set=page_set,
388 tags=['mp3', 'audio_only'])
336 389
337 self.skip_basic_metrics = True 390 self.skip_basic_metrics = True
338 391
339 def RunPageInteractions(self, action_runner): 392 def RunPageInteractions(self, action_runner):
340 self.SeekBeforeAndAfterPlayhead(action_runner) 393 self.SeekBeforeAndAfterPlayhead(action_runner)
341 394
342 395
343 class Page24(ToughVideoCasesPage): 396 class Page24(ToughVideoCasesPage):
344 397
345 def __init__(self, page_set): 398 def __init__(self, page_set):
346 super(Page24, self).__init__( 399 super(Page24, self).__init__(
347 url='file://tough_video_cases/video.html?src=tulip2.mp4', 400 url='file://tough_video_cases/video.html?src=tulip2.mp4',
348 page_set=page_set) 401 page_set=page_set,
402 tags=['h264', 'aac', 'audio_video'])
349 403
350 self.skip_basic_metrics = True 404 self.skip_basic_metrics = True
351 405
352 def RunPageInteractions(self, action_runner): 406 def RunPageInteractions(self, action_runner):
353 self.SeekBeforeAndAfterPlayhead(action_runner) 407 self.SeekBeforeAndAfterPlayhead(action_runner)
354 408
355 409
356 class Page25(ToughVideoCasesPage): 410 class Page25(ToughVideoCasesPage):
357 411
358 def __init__(self, page_set): 412 def __init__(self, page_set):
359 super(Page25, self).__init__( 413 super(Page25, self).__init__(
360 url='file://tough_video_cases/video.html?src=garden2_10s.webm', 414 url='file://tough_video_cases/video.html?src=garden2_10s.webm',
361 page_set=page_set, tags=['is_4k']) 415 page_set=page_set,
416 tags=['is_4k', 'vp8', 'vorbis', 'audio_video'])
362 417
363 self.skip_basic_metrics = True 418 self.skip_basic_metrics = True
364 419
365 def RunPageInteractions(self, action_runner): 420 def RunPageInteractions(self, action_runner):
366 self.SeekBeforeAndAfterPlayhead(action_runner) 421 self.SeekBeforeAndAfterPlayhead(action_runner)
367 422
368 423
369 class Page26(ToughVideoCasesPage): 424 class Page26(ToughVideoCasesPage):
370 425
371 def __init__(self, page_set): 426 def __init__(self, page_set):
372 super(Page26, self).__init__( 427 super(Page26, self).__init__(
373 url='file://tough_video_cases/video.html?src=garden2_10s.mp4', 428 url='file://tough_video_cases/video.html?src=garden2_10s.mp4',
374 page_set=page_set, tags=['is_4k']) 429 page_set=page_set,
430 tags=['is_4k', 'h264', 'aac', 'audio_video'])
375 431
376 self.skip_basic_metrics = True 432 self.skip_basic_metrics = True
377 433
378 def RunPageInteractions(self, action_runner): 434 def RunPageInteractions(self, action_runner):
379 self.SeekBeforeAndAfterPlayhead(action_runner) 435 self.SeekBeforeAndAfterPlayhead(action_runner)
380 436
381 437
382 class Page27(ToughVideoCasesPage): 438 class Page27(ToughVideoCasesPage):
383 439
384 def __init__(self, page_set): 440 def __init__(self, page_set):
385 super(Page27, self).__init__( 441 super(Page27, self).__init__(
386 url='file://tough_video_cases/video.html?src=garden2_10s.ogv', 442 url='file://tough_video_cases/video.html?src=garden2_10s.ogv',
387 page_set=page_set, tags=['is_4k']) 443 page_set=page_set,
444 tags=['is_4k', 'theora', 'vorbis', 'audio_video'])
388 445
389 self.skip_basic_metrics = True 446 self.skip_basic_metrics = True
390 447
391 def RunPageInteractions(self, action_runner): 448 def RunPageInteractions(self, action_runner):
392 self.SeekBeforeAndAfterPlayhead(action_runner) 449 self.SeekBeforeAndAfterPlayhead(action_runner)
393 450
394 451
395 class Page28(ToughVideoCasesPage): 452 class Page28(ToughVideoCasesPage):
396 453
454 # This page tests looping a single audio track.
397 def __init__(self, page_set): 455 def __init__(self, page_set):
398 super(Page28, self).__init__( 456 super(Page28, self).__init__(
399 url='file://tough_video_cases/audio_playback.html?id=single_audio', 457 url='file://tough_video_cases/audio_playback.html?id=single_audio',
400 page_set=page_set) 458 page_set=page_set,
459 tags=['pcm', 'looping_audio'])
401 460
402 self.skip_basic_metrics = True 461 self.skip_basic_metrics = True
403 462
404 def RunPageInteractions(self, action_runner): 463 def RunPageInteractions(self, action_runner):
405 self.LoopSingleAudio(action_runner) 464 self.LoopSingleAudio(action_runner)
406 465
407 466
408 class Page29(ToughVideoCasesPage): 467 class Page29(ToughVideoCasesPage):
409 468
469 # This page tests looping an audio track and playing another in the
470 # background.
410 def __init__(self, page_set): 471 def __init__(self, page_set):
411 super(Page29, self).__init__( 472 super(Page29, self).__init__(
412 url='file://tough_video_cases/audio_playback.html?id=mixed_audio', 473 url='file://tough_video_cases/audio_playback.html?id=mixed_audio',
413 page_set=page_set) 474 page_set=page_set,
475 tags=['pcm', 'looping_audio'])
414 476
415 self.skip_basic_metrics = True 477 self.skip_basic_metrics = True
416 478
417 def RunPageInteractions(self, action_runner): 479 def RunPageInteractions(self, action_runner):
418 self.LoopMixedAudio(action_runner) 480 self.LoopMixedAudio(action_runner)
419 481
420 class Page30(ToughVideoCasesPage): 482 class Page30(ToughVideoCasesPage):
421 483
422 def __init__(self, page_set): 484 def __init__(self, page_set):
423 super(Page30, self).__init__( 485 super(Page30, self).__init__(
424 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm', 486 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm',
425 page_set=page_set) 487 page_set=page_set,
488 tags=['vp9', 'opus', 'audio_video'])
426 489
427 self.add_browser_metrics = True 490 self.add_browser_metrics = True
428 491
429 def RunPageInteractions(self, action_runner): 492 def RunPageInteractions(self, action_runner):
430 self.PlayAction(action_runner) 493 self.PlayAction(action_runner)
431 494
432 class Page31(ToughVideoCasesPage): 495 class Page31(ToughVideoCasesPage):
433 496
434 def __init__(self, page_set): 497 def __init__(self, page_set):
435 super(Page31, self).__init__( 498 super(Page31, self).__init__(
436 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm', 499 url='file://tough_video_cases/video.html?src=tulip2.vp9.webm',
437 page_set=page_set) 500 page_set=page_set,
501 tags=['vp9', 'opus', 'audio_video'])
438 502
439 self.skip_basic_metrics = True 503 self.skip_basic_metrics = True
440 504
441 def RunPageInteractions(self, action_runner): 505 def RunPageInteractions(self, action_runner):
442 self.SeekBeforeAndAfterPlayhead(action_runner) 506 self.SeekBeforeAndAfterPlayhead(action_runner)
443 507
444 class Page32(ToughVideoCasesPage): 508 class Page32(ToughVideoCasesPage):
445 509
446 def __init__(self, page_set): 510 def __init__(self, page_set):
447 super(Page32, self).__init__( 511 super(Page32, self).__init__(
448 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm', 512 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm',
449 page_set=page_set) 513 page_set=page_set,
514 tags=['vp9', 'video_only'])
450 515
451 self.add_browser_metrics = True 516 self.add_browser_metrics = True
452 517
453 def RunPageInteractions(self, action_runner): 518 def RunPageInteractions(self, action_runner):
454 self.PlayAction(action_runner) 519 self.PlayAction(action_runner)
455 520
456 class Page33(ToughVideoCasesPage): 521 class Page33(ToughVideoCasesPage):
457 522
458 def __init__(self, page_set): 523 def __init__(self, page_set):
459 super(Page33, self).__init__( 524 super(Page33, self).__init__(
460 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm', 525 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm',
461 page_set=page_set) 526 page_set=page_set,
527 tags=['vp9', 'video_only'])
462 528
463 self.skip_basic_metrics = True 529 self.skip_basic_metrics = True
464 530
465 def RunPageInteractions(self, action_runner): 531 def RunPageInteractions(self, action_runner):
466 self.SeekBeforeAndAfterPlayhead(action_runner) 532 self.SeekBeforeAndAfterPlayhead(action_runner)
467 533
468 class Page34(ToughVideoCasesPage): 534 class Page34(ToughVideoCasesPage):
469 535
470 def __init__(self, page_set): 536 def __init__(self, page_set):
471 super(Page34, self).__init__( 537 super(Page34, self).__init__(
472 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm', 538 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm',
473 page_set=page_set) 539 page_set=page_set,
540 tags=['vp9', 'video_only'])
474 541
475 self.add_browser_metrics = True 542 self.add_browser_metrics = True
476 543
477 def RunPageInteractions(self, action_runner): 544 def RunPageInteractions(self, action_runner):
478 self.PlayAction(action_runner) 545 self.PlayAction(action_runner)
479 546
480 class Page35(ToughVideoCasesPage): 547 class Page35(ToughVideoCasesPage):
481 548
482 def __init__(self, page_set): 549 def __init__(self, page_set):
483 super(Page35, self).__init__( 550 super(Page35, self).__init__(
484 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm', 551 url='file://tough_video_cases/video.html?src=crowd720_vp9.webm',
485 page_set=page_set) 552 page_set=page_set,
553 tags=['vp9', 'video_only'])
486 554
487 self.skip_basic_metrics = True 555 self.skip_basic_metrics = True
488 556
489 def RunPageInteractions(self, action_runner): 557 def RunPageInteractions(self, action_runner):
490 self.SeekBeforeAndAfterPlayhead(action_runner) 558 self.SeekBeforeAndAfterPlayhead(action_runner)
491 559
492 class Page36(ToughVideoCasesPage): 560 class Page36(ToughVideoCasesPage):
493 561
494 def __init__(self, page_set): 562 def __init__(self, page_set):
495 super(Page36, self).__init__( 563 super(Page36, self).__init__(
496 url=('file://tough_video_cases/video.html?src=' 564 url=('file://tough_video_cases/video.html?src='
497 'smpte_3840x2160_60fps_vp9.webm'), 565 'smpte_3840x2160_60fps_vp9.webm'),
498 page_set=page_set, tags=['is_4k']) 566 page_set=page_set,
567 tags=['is_4k', 'vp9', 'video_only'])
499 568
500 self.add_browser_metrics = True 569 self.add_browser_metrics = True
501 570
502 def RunPageInteractions(self, action_runner): 571 def RunPageInteractions(self, action_runner):
503 self.SeekBeforeAndAfterPlayhead(action_runner, 572 self.SeekBeforeAndAfterPlayhead(action_runner,
504 action_timeout_in_seconds=120) 573 action_timeout_in_seconds=120)
505 574
506 class Page37(ToughVideoCasesPage): 575 class Page37(ToughVideoCasesPage):
507 576
508 def __init__(self, page_set): 577 def __init__(self, page_set):
509 super(Page37, self).__init__( 578 super(Page37, self).__init__(
510 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm&canvas=tru e', 579 url='file://tough_video_cases/video.html?src=crowd1080_vp9.webm&canvas=tru e',
511 page_set=page_set) 580 page_set=page_set,
581 tags=['vp9', 'video_only'])
512 582
513 self.add_browser_metrics = True 583 self.add_browser_metrics = True
514 584
515 def RunPageInteractions(self, action_runner): 585 def RunPageInteractions(self, action_runner):
516 self.PlayAction(action_runner) 586 self.PlayAction(action_runner)
517 587
518 class Page38(ToughVideoCasesPage): 588 class Page38(ToughVideoCasesPage):
519 589
520 def __init__(self, page_set): 590 def __init__(self, page_set):
521 super(Page38, self).__init__( 591 super(Page38, self).__init__(
522 url='file://tough_video_cases/video.html?src=tulip2.mp4&canvas=true', 592 url='file://tough_video_cases/video.html?src=tulip2.mp4&canvas=true',
523 page_set=page_set) 593 page_set=page_set,
594 tags=['h264', 'aac', 'audio_video'])
524 595
525 self.add_browser_metrics = True 596 self.add_browser_metrics = True
526 597
527 def RunPageInteractions(self, action_runner): 598 def RunPageInteractions(self, action_runner):
528 self.SeekBeforeAndAfterPlayhead(action_runner) 599 self.SeekBeforeAndAfterPlayhead(action_runner)
529 600
530 class Page39(ToughVideoCasesPage): 601 class Page39(ToughVideoCasesPage):
531 602
532 def __init__(self, page_set): 603 def __init__(self, page_set):
533 super(Page39, self).__init__( 604 super(Page39, self).__init__(
534 url='file://tough_video_cases/video.html?src=garden2_10s.webm&canvas=true' , 605 url='file://tough_video_cases/video.html?src=garden2_10s.webm&canvas=true' ,
535 page_set=page_set, tags=['is_4k']) 606 page_set=page_set,
607 tags=['is_4k', 'vp8', 'vorbis', 'audio_video'])
536 608
537 self.add_browser_metrics = True 609 self.add_browser_metrics = True
538 610
539 def RunPageInteractions(self, action_runner): 611 def RunPageInteractions(self, action_runner):
540 self.PlayAction(action_runner) 612 self.PlayAction(action_runner)
541 613
542 class Page40(ToughVideoCasesPage): 614 class Page40(ToughVideoCasesPage):
543 615
616 # Note that ffprobe reports about this file:
617 # "[ogg @ 0x31a3ba0] Broken file, keyframe not correctly marked."
618 # This media file should probably be removed or replaced.
544 def __init__(self, page_set): 619 def __init__(self, page_set):
545 super(Page40, self).__init__( 620 super(Page40, self).__init__(
546 url='file://tough_video_cases/video.html?src=crowd1080.ogv&canvas=true', 621 url='file://tough_video_cases/video.html?src=crowd1080.ogv&canvas=true',
547 page_set=page_set) 622 page_set=page_set,
623 tags=['is_50fps', 'theora', 'vorbis', 'audio_video'])
548 624
549 self.add_browser_metrics = True 625 self.add_browser_metrics = True
550 self.is_50fps = True
551 626
552 def RunPageInteractions(self, action_runner): 627 def RunPageInteractions(self, action_runner):
553 self.PlayAction(action_runner) 628 self.PlayAction(action_runner)
554 629
555 class ToughVideoCasesPageSet(story.StorySet): 630 class ToughVideoCasesPageSet(story.StorySet):
556 """ 631 """
557 Description: Video Stack Perf benchmark that report time_to_play. 632 Description: Video Stack Perf benchmark that report time_to_play.
558 """ 633 """
559 def __init__(self): 634 def __init__(self):
560 super(ToughVideoCasesPageSet, self).__init__( 635 super(ToughVideoCasesPageSet, self).__init__(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 self.AddStory(Page23(self)) 678 self.AddStory(Page23(self))
604 self.AddStory(Page24(self)) 679 self.AddStory(Page24(self))
605 self.AddStory(Page25(self)) 680 self.AddStory(Page25(self))
606 self.AddStory(Page26(self)) 681 self.AddStory(Page26(self))
607 self.AddStory(Page27(self)) 682 self.AddStory(Page27(self))
608 self.AddStory(Page28(self)) 683 self.AddStory(Page28(self))
609 self.AddStory(Page29(self)) 684 self.AddStory(Page29(self))
610 self.AddStory(Page31(self)) 685 self.AddStory(Page31(self))
611 self.AddStory(Page33(self)) 686 self.AddStory(Page33(self))
612 self.AddStory(Page35(self)) 687 self.AddStory(Page35(self))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698