Home | History | Annotate | Download | only in audiovideo_AVSyncInternalDisplayAudioJack
      1 # Copyright 2016 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 from autotest_lib.server import utils
      6 
      7 AUTHOR = 'chromeos-chameleon'
      8 NAME = 'audiovideo_AVSyncInternalDisplayAudioJack'
      9 PURPOSE = 'Measure audio/video sync from internal display and audio jack.'
     10 ATTRIBUTES = "suite:chameleon_audiovideo"
     11 TIME = 'SHORT'
     12 TEST_CATEGORY = 'Performance'
     13 TEST_CLASS = 'audiovideo'
     14 TEST_TYPE = 'server'
     15 DEPENDENCIES = 'chameleon:avsync_probe'
     16 JOB_RETRIES = 2
     17 
     18 DOC = """
     19 This test measure the audio/video synchronization quality while playing a
     20 1080p 30fps MP4 video.
     21 """
     22 
     23 VIDEO_URL = ('http://commondatastorage.googleapis.com/'
     24         'chromiumos-test-assets-public/chameleon/'
     25         'audiovideo_AVSyncInternalDisplayAudioJack/'
     26         'testvideo.mp4')
     27 
     28 args_dict = utils.args_to_dict(args)
     29 chameleon_args = hosts.CrosHost.get_chameleon_arguments(args_dict)
     30 
     31 def run(machine):
     32     host = hosts.create_host(machine, chameleon_args=chameleon_args)
     33     job.run_test("audiovideo_AVSyncInternalDisplayAudioJack", host=host,
     34                  video_url=VIDEO_URL, capture_seconds=12, video_fps=30,
     35                  sound_interval_frames=30, perf_prefix='1080_30fps')
     36 
     37 parallel_simple(run, machines)
     38