0

I'm using the afir filter to add reverb effects in the video using the following command.

val reverbFFmpegCommand = arrayOf(
                        "-i",
                        originalVideoPath,
                        "-i",
                        reverbIRFileTypePath,
                        "-filter_complex",
                        "[0] [1] afir=dry=$dryValue:wet=$wetValue [reverb]; [0] [reverb] amix=inputs=2:weights=$originalWeightValue $reverbWeightValue",
                        reverbVideoPath
                    )

But the output video quality is very low than the original video quality. Seems like the video bitrate is very low in the output video.

Please help, how can the video quality be improved?

mendax01
  • 31
  • 6
  • You need to set the codec quality to your desired level. Assuming you're using MP4, read [this](https://trac.ffmpeg.org/wiki/Encode/H.264) instruction. – kesh Mar 15 '22 at 13:35
  • @kesh I already tried the description written over there but didn't work for me. Can you please send me the command for this? – mendax01 Mar 15 '22 at 18:02
  • 1
    Actually, you are only changing the audio right? Try adding `-c:v copy` in front of `reverbVideoPath`. – kesh Mar 15 '22 at 18:16

0 Answers0