mifi / editly

Slick, declarative command line video editing & API
MIT License
4.72k stars 306 forks source link

audio stops after a few seconds #284

Open charlesmccann opened 1 month ago

charlesmccann commented 1 month ago

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 commented 1 month ago

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).