LiTr
LiTr copied to clipboard
Trimming Video according to audio length while replacing audio track
Hello Team,
Thank you for the great library. We are tranforming video and trying to replace the audio and its working cool but video is not trimming according to audio length. The video goes sound less after transformation. How can we trim the video according to audio track length while video transcoding.
Hi. Glad to hear that you are enjoying LiTr!
Is audio track longer than video track? Track muxing logic uses longest track time, it doesn't automatically trim all track to duration of shortest track. Can you try to set MediaRange with duration that matches video trim for audio track MediaSource?