LiTr icon indicating copy to clipboard operation
LiTr copied to clipboard

Trimming Video according to audio length while replacing audio track

Open dsandeep1414 opened this issue 3 years ago • 1 comments

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.

dsandeep1414 avatar Mar 01 '22 19:03 dsandeep1414

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?

izzytwosheds avatar Mar 04 '22 15:03 izzytwosheds