Skip to content

Problem with audio when using scene #1493

Description

@mentoRisen

Hello,
we recently updated to new version, and that broke audio in our application. After excesive testing I manage to find out, that if I add source directly to output audio works. If I add source to scene as sceneItem, and then I add scene to output, audio is not working.
To simulate issue I have run Start advanced recording - Custom encoders in test_osn_advanced_recording.ts with following sources:
`
let ffmpegSource = osn.InputFactory.create('ffmpeg_source', 'input02', { device_id: "ffmpeg01" });
ffmpegSource.monitoringType = 0;
ffmpegSource.muted = false;
ffmpegSource.audioMixers = 1 | (1 << 2-1);

    ffmpegSource.update( Object.assign(ffmpegSource.settings, {
        local_file: "C:/reactoo/media/ForBiggerFun.mp4",
        looping: true,
        volume: 100
    }) );
    ffmpegSource.save();

    const scene = osn.SceneFactory.create('testscene');
    const sceneItem = scene.add(ffmpegSource);
    sceneItem.selected = true; 
    osn.Global.setOutputSource(1, scene); // audio does not work, mp4 is silent
    // osn.Global.setOutputSource(1, ffmpegSource); // if i comment scene and uncomment this, audio is present in mp4

`

Best Regards
Lukas Zemcak

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions