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

audio stops after a few seconds #284

Open
charlesmccann opened this issue Jul 20, 2024 · 1 comment
Open

audio stops after a few seconds #284

charlesmccann opened this issue Jul 20, 2024 · 1 comment

Comments

@charlesmccann
Copy link

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
},
]
}

@charlesmccann
Copy link
Author

after some more testing... I've noticed that if one of the clips is < 4s, the audio doesn't come through correctly (or not at all).

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