Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with audio when using scene #1493

Open
mentoRisen opened this issue Dec 4, 2024 · 0 comments
Open

Problem with audio when using scene #1493

mentoRisen opened this issue Dec 4, 2024 · 0 comments

Comments

@mentoRisen
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant