public void StopRecordingFromVideo(Action callback)
        {
            if (channelMapping == null)
            {
                Debug.LogError("Channel Mapping is null.");
                return;
            }

            foreach (var target in channelMapping.Values)
            {
                currentTake.SetMetadata(target.Name, target);
            }

            Movie.Pause();
#if UNITY_EDITOR
            StartCoroutine(Bake(() => {
                if (callback != null)
                {
                    callback();
                }
                state = CaptureState.None;
                Movie.Rewind();
            }));
#endif
        }