I began with a video that had undesirable materials at starting and finish, and whose audio observe was too quiet. I’ve ended up with one that’s trimmed and audio-enhanced, however a lot smaller. I’d respect recommendation on enhance this course of.
ffmpeg -ss 00:00:07.0 -i enter.mp4 -c copy -t 02:00:00.0 -filter:a "quantity=5dB" output.mp4
That produced an error:
Filtering and streamcopy can't be used collectively.
I re-ran that command with out
-filter:a "quantity=5db" and that labored: output.mp4 began and ended on the desired factors, and had the identical video bitrate (however, for some motive, its audio bitrate elevated by 10 kb/s). I renamed output.mp4 to be enter.mp4 and ran this:
ffmpeg -i enter.mp4 -filter:a "quantity=5dB" output.mp4
That produced a brand new output.mp4 with considerably louder sound, however now the video bitrate dropped from 5,000 kb/s to 999 kb/s, and the audio bitrate dropped from 161 to 129 kb/s. To my eye and ear, nevertheless, video and audio high quality appeared unchanged.
My query: is there a single command that will trim video size and increase audio quantity on the identical time, with out shedding high quality?
The really helpful command would ideally resolve a number of issues within the method I took:
- Presumably I’d not wish to see video bitrate drop so dramatically, until maybe FFmpeg detected that it may considerably minimize video bitrate with out shedding considerable high quality. Recording the unique at 5,000 kb/s was a guess; possibly it was overkill.
- Presumably the audio bitrate ought to stay fixed; I do not perceive the fluctuations.
- I guessed that 5db could be the fitting audio enhancement, however would like an possibility or methodology that would not require guesswork.