Skip to content

How to Include AVPlayer Audio in SCNRecorder Recordings? #67

@giomurru

Description

@giomurru

Hi there,

I'm encountering an issue with SCNRecorder while trying to record an SCNView. The view is displaying a video that is mapped as a texture. The video is played using an AVPlayer, and its visuals and audio are perfectly synchronized when displayed.

However, when I use SCNRecorder to record the scene, only the video is captured — the audio is missing.

From my exploration, I noticed that SCNRecorder includes an AudioEngine class for playing soundtracks. However, this approach seems tailored to a custom player that doesn't support video playback. Additionally, trying to synchronize a separate audio playback manually with the video being rendered by AVPlayer feels overly complex and prone to issues.

I'm wondering... is it feasible to extend SCNRecorder to initialize audio recording from an AVPlayer instance that is already in use?

Any insights, suggestions, or pointers would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions