void Update() { timer += Time.deltaTime; if (capturing) { StartCoroutine(TakePhotoEnumerator()); } if (encoding) { encoding = false; // Save audio clip to wav file Microphone.End("audio"); audio = savWav.TrimSilence(audio, 0); savWav.Save(string.Format("{0}/audio", realFolder), audio); OnImagesPathInput(); OnSoundPathInput(); OnOutputPathInput(); OnFPSInput(); FFmpegCommands.Encode(config); } }
//------------------------------ public void OnEncode() { FFmpegCommands.Encode(config); gameObject.SetActive(false); }