mifi / mifi/editly

The last AudioTrack will be abnormally truncated.

Open
#279 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

  • 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

When I splice multiple audio segments into an AudioTrack, the last segment is always unexpectedly cut off by one or two seconds. I have turned off the transition. And the sound has a slight misalignment(about 1 frame). Here is the comparative sound wave:

image

The render spec is below:

{
  outPath: 'output/voiceAndSub.mov',
  customOutputArgs: [ '-c:v', 'qtrle', '-pix_fmt', 'argb' ],
  audioTracks: [
    {
      path: '/var/folders/x0/q7x4m1vs2gnch_x92nqhr43c0000gn/T/tmp-17635-lfdSwRXgpwuH-.mp3',
      start: 0,
      mixVolume: 1
    },
    {
      path: '/var/folders/x0/q7x4m1vs2gnch_x92nqhr43c0000gn/T/tmp-17635-kUlJwa8FeSA1-.mp3',
      start: 8.904,
      mixVolume: 1
    }
  ],
  clips: [
    {
      duration: 20,
      transition: { name: 'directional-left' },
      layers: [
        {
          type: 'title-background',
          text: 'EDITLY\nVideo editing framework',
          background: { type: 'linear-gradient', colors: [ '#02aab0', '#00cdac' ] }
        }
      ]
    }
  ],
  width: 1280,
  height: 720,
  fps: 30,
  defaults: { layer: { fontPath: 'assets/fonts/fzsong.ttf' }, transition: null }
}

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 by reproducing the render with the supplied audioTracks and clips specification, using the reported transition and ffmpeg setup. Compare the rendered waveform and timing against the two source segments; done means the final segment is not truncated and the roughly one-frame misalignment is resolved.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.