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

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

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