mifi / mifi/editly

Mix volume between background audio and video clip audio

Open
#149 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
5.5k
Forks
374
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the editly configuration in issue #149 and trace how audioFilePath, keepSourceAudio, and each clip's mixVolume are handled. Check the audio-mixing path and its existing tests or fixtures, then verify that background audio is reduced while clips marked as requiring audio are audible and that other clips retain the background track.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
audio-video-rtc, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.