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

Mix volume between background audio and video clip audio #149

Open
3 tasks done
jamtartley opened this issue Sep 19, 2021 · 1 comment
Open
3 tasks done

Mix volume between background audio and video clip audio #149

jamtartley opened this issue Sep 19, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@jamtartley
Copy link

Is it possible to fade in/out the background audio track while certain video clips are playing their audio?
This is how I am currently attempting to do that - by setting the mixVolume of the clip to 1 if it is marked as requiring audio.
As it is now, the background audio file just plays at full volume and the audio from the video clips isn't audible.

await editly({
  outPath,
  audioFilePath,
  loopAudio: true,
  keepSourceAudio: true,
  audioNorm: { enable: true, gaussSize: 3, maxGain: 100 },
  clips: [
    ...schedule.map(take => ({
        layers: [
          {
            type: "video",
            path: pathForLocalTake(take._id),
            resizeMode: "contain-blur",
            mixVolume: take.prompt.requiresAudio ? 1 : 0,
          },
      ]
    })),
  ],
  defaults: {
    transition: {
      name: "dummy",
    },
  },
});
  • I have tried with the newest version of editly: npm i -g editly or npm i editly@latest
  • I have tried ffmpeg newest stable version
  • I have searched for existing issues
@mifi
Copy link
Owner

mifi commented Sep 23, 2021

not currently possible to fade audio of a video clip at arbitrary times inside the clip's duration.

@mifi mifi added the enhancement New feature or request label Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants