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

The last AudioTrack will be abnormally truncated. #279

Open
3 tasks done
deadblue22 opened this issue Apr 19, 2024 · 0 comments
Open
3 tasks done

The last AudioTrack will be abnormally truncated. #279

deadblue22 opened this issue Apr 19, 2024 · 0 comments

Comments

@deadblue22
Copy link

  • 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 }
}
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

1 participant