The last AudioTrack will be abnormally truncated.
deadblue22 opened this issue · 0 comments
deadblue22 commented
- I have tried with the newest version of editly:
npm i -g editly
ornpm 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:
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 }
}