-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels