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

多个场景使用不同音频,合成后第后面的场景会有前面场景的音频 #315

Open
AnLiBoBo opened this issue Jan 18, 2023 · 4 comments

Comments

@AnLiBoBo
Copy link
Contributor

  const scene1 = new FFScene();
  scene1.addAudio('./assets/bg2.mp3');
  scene1.setDuration(5)


  const scene2 = new FFScene();
  scene2.addAudio('./assets/bg3.mp3');
  scene2.setDuration(5)

  const cacheDir = path.join(__dirname, './cache/');
  const outputDir = path.join(__dirname, './output/');
  const output = outputDir + "/a.mp4" ;
  const creator = new FFCreator({
    cacheDir, outputDir, output, width, height, highWaterMark: '3mb', parallel: 8,
  });
  creator.addChild(scene1);
  creator.addChild(scene2)

  creator.start();

合成后第5-10秒还是会有bg2.MP4的声音

@drawcall
Copy link
Member

Modify the audio length, and fix it here later

@AnLiBoBo
Copy link
Contributor Author

Modify the audio length, and fix it here later

scene执行多次addAudio,整体音量会变小,执行次数越多,音量越小
scene怎么设置透明背景,然后导出的视频也是透明背景

@drawcall
Copy link
Member

Oh sorry a little busy. Can you help to check and submit pr

@drawcall
Copy link
Member

Version 6.8.1 has been released, please help check

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

2 participants