ffmpeg-cli-wrapper icon indicating copy to clipboard operation
ffmpeg-cli-wrapper copied to clipboard

How can I keep the original video quality?

Open GdavidPaella opened this issue 3 years ago • 1 comments

The question

I'd like to create an exact copy from a given audio or video file, keeping the quality, format, codec, framrate, bitrate, etc... (I just get bigger or smaller files, but can't get to get a file with the same attributes and size)

What you have tried

I'm trying to remove settings hoping it takes the original file values.

I also tried: .setConstantRateFactor(0)

GdavidPaella avatar Sep 30 '21 11:09 GdavidPaella

Solution: (In case someone has the same issue)

FFmpegBuilder builder = new FFmpegBuilder()
...
.setAudioCodec("copy")
.setVideoCodec("copy")

GdavidPaella avatar Sep 30 '21 15:09 GdavidPaella

Thank you for the issue and answer! I'll go ahead and close this issue, as you have answered it yourself. Feel free to reopen or create a new issue.

Euklios avatar Mar 11 '24 20:03 Euklios