audio stops after a few seconds
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 374
- PR merge metrics
- No merged PRs in 30d
Description
The video is created, but the audio cuts out after 2or 3 seconds.
I was able to reproduce the issue and find when it doesn't break.
It doesn't matter the duration, or number of audio files played, or increasing number of layers, or the type of layers. Tried removing other attributes like zoom, position, shadow -- nothing worked.
Removing the layer with "text3" fixes the problem and the audio keeps playing.
So, for me, if I only have 2 clip layers, this works fine.
Thoughts?
Thank you!
{
"id": "daily",
"outPath": "./work/daily.mp4",
"width": 1080,
"height": 1920,
"defaults": {
"layer": {
"fontPath": "./PatuaOne-Regular.ttf"
},
"layerType": {
"fill-color": {
"color": "#111111"
}
},
"transition": {
"name": "dummy",
"duration": 0,
"audioOutCurve": "tri"
}
},
"clips": [
{
"duration": 7,
"layers": [
{
"type": "image",
"path": "./images/c9264040-b814-4bb7-bd9d-a4f6cc00e3ae-0.png",
"zoomDirection": "in",
"zoomAmount": 0.2
},
{
"type": "title",
"position": {
"x": 0.5,
"y": 0.5,
"originY": "center",
"originX": "center"
},
"text": "text1",
"zoomDirection": null,
"shadow": 80
},
{
"type": "news-title",
"text": "Daily Motivational Quote"
}
]
},
{
"duration": 5,
"layers": [
{
"type": "title-background",
"position": {
"x": 0.5,
"y": 0.5,
"originY": "center",
"originX": "center"
},
"text": "text2.",
"zoomDirection": null,
"backgroundColor": "rgba(0,0,0,0.5)"
}
]
},
{
"duration": 2,
"layers": [
{
"type": "title-background",
"position": {
"x": 0.5,
"y": 0.5,
"originY": "center",
"originX": "center"
},
"text": "text3",
"zoomDirection": null,
"backgroundColor": "rgba(0,0,0,0.5)"
}
]
},
],
"audioTracks": [
{
"path": "./audio/Audiio_NovaSK_Emotional_Farewell.wav",
"mixVolume": 0.2
},
{
"path": "./voice/LovetheLor_20240713055456.mp3",
"start": 0,
"mixVolume": 0.5
},
{
"path": "./voice/Showloveto_20240713071200.mp3",
"start": 8,
"mixVolume": 0.5
},
]
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the supplied configuration and audio tracks, then compare it with the same configuration after removing the layer containing "text3". Confirm that the fix allows audio to continue beyond 2–3 seconds while retaining the listed clips and layers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100