Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 2
0
        //------------------------------

        public void OnEncode()
        {
            FFmpegCommands.Encode(config);
            gameObject.SetActive(false);
        }