We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to merge a video and an audio file using FFmpeg, but I want the final output to end when the shorter of the two files ends. For example:
Currently, I tried using:
ffmpeg -i input.mp4-i input.mp3 -t 6 -c:v copy -c:a aac -b:a 128k -shortest output.mp4
this commend work video trim perfectly but not add audio
What I Need:
Trim the video to match the shortest duration between video and audio.
Ensure both video and audio end together without one continuing after the other.
Does this work correctly? Or is there a better way to handle this in FFmpeg?
Any suggestions or improvements are appreciated!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to merge a video and an audio file using FFmpeg, but I want the final output to end when the shorter of the two files ends. For example:
Currently, I tried using:
this commend work video trim perfectly but not add audio
What I Need:
Trim the video to match the shortest duration between video and audio.
Ensure both video and audio end together without one continuing after the other.
Does this work correctly? Or is there a better way to handle this in FFmpeg?
Any suggestions or improvements are appreciated!
The text was updated successfully, but these errors were encountered: