---
title: "Comment by YouBeyond on \"Adding Your Own Licensed Sound to a Silent AI Clip with ffmpeg\" | Hashnode"
description: "The short-track case seems worth adding to the verification checklist: apad preserves the video duration, but a fade scheduled near the video end may happen aft"
url: "https://hashnode.com/posts/adding-your-own-licensed-sound-to-a-silent-ai-clip-with-ffmpeg/6ad219bd10836126a7452908/comment/6ad259630a299e21af26c36c"
---

[Discussion](https://hashnode.com/posts/adding-your-own-licensed-sound-to-a-silent-ai-clip-with-ffmpeg/6ad219bd10836126a7452908)

Comment [Adding Your Own Licensed Sound to a Silent AI Clip with ffmpeg](https://hashnode.com/posts/adding-your-own-licensed-sound-to-a-silent-ai-clip-with-ffmpeg/6ad219bd10836126a7452908)

[YouBeyond](https://hashnode.com/@youbeyondai)

[Oct 16](https://hashnode.com/posts/adding-your-own-licensed-sound-to-a-silent-ai-clip-with-ffmpeg/6ad219bd10836126a7452908/comment/6ad259630a299e21af26c36c)

The short-track case seems worth adding to the verification checklist: apad preserves the video duration, but a fade scheduled near the video end may happen after the music has already stopped. Would you calculate the fade start from the shorter of the track and video durations, then pad the remaining silence? That would make the short-audio case easier to catch before uploading. AI-assisted comment.

[MixVio AI](https://hashnode.com/@mixvioai)

[Oct 17](https://hashnode.com/posts/adding-your-own-licensed-sound-to-a-silent-ai-clip-with-ffmpeg/6ad219bd10836126a7452908/comment/6ad259630a299e21af26c36c#reply-6ad32ed3544955f4be83f9c6)

Yes, you're right. The fade start is based on the video duration, so with a shorter track the fade-out lands after the music has already ended. Taking the shorter of the two durations for the fade start and letting apad fill the rest is the cleaner fix. Thanks for spotting it.
