Задание «SA INIT» уже выполнено? Если нет → SA INIT
Берем
Синхронизируем
Делаем «Матрешку»
Создаем тестовый проект
REFERENCE_STREAM={} #Uncomment this (and modify appropriately) if you want to time linking to other stream #execfile(ut.get_script_dir() + '/../cam1/start_time.py', globals(), REFERENCE_STREAM) diff_ms = 0 if 'START' in REFERENCE_STREAM: diff_ms = REFERENCE_STREAM['START'] # Linking by some visible event their_time_ms = ut.time2ms('1:23') # Time of the event on reference stream my_time_ms = ut.time2ms('53:45') # Time of the event on visible stream diff_ms += int(my_time_ms - their_time_ms) diff_ms += 1234 START = diff_ms AVS = "global TRIM_START_MS = %(diff_ms)s " % vars()
#Audio AVS-script, for opening with WAVSource function. #Time-adjusted according to start-time.py import("common.avs") audio = AVISource("source.py.avs").KillVideo() #Uncomment following lines, if you want to use external audio file. import("start_time.py.avs") #audio = WavSource("source.avs.wav") audio = audio.TrimAudioMS(TRIM_START_MS) audio
#Audio AVS-script, for opening with WAVSource function. #Time-adjusted according to timediff.py import("common.avs") import("start_time.py.avs") #[Un]comment following lines, if you want/not want to use internal audio channel. audio = AVISource("source.py.avs").KillVideo() #[Un]comment following lines, if you want/not want to use external audio file. #audio = WavSource("audio.wav") #[Un]comment following lines, if you want/not want to use screen2log datas #import("screen2log_audio.avs") #audio = screen2log_audio() audio = audio.TrimAudioMS(TRIM_START_MS) audio
Правильные ответы (мои, смотреть файлы start_time.py.avs):
Синхронизация:
Устройства ввода, эмоции, направление взгляда
Этого достаточно: