Search code examples
ffmpegh.264codecencoder

How enable Deblocking Filter in ffmpeg h264 Encoder


I am new to ffmpeg. I have searched Stack Overflow for this question, but was not able to get the exact answer.

export LD_LIBRARY_PATH=:./FFMPEGEncLibs ./ffmpegEnc -f rawvideo -r 60 -s 1920x1080 -vcodec rawvideo -i ./encIn/piglab_1frames.yuv -c:v libx264 -x264-params cabac=0:8x8dct=0 -pix_fmt yuv422p -profile:v high422 -psnr -intra -qp 9 ./encOut/EncOut_1frames.h264

export LD_LIBRARY_PATH=:./FFMPEGDecLibs ./ffmpegDec -f h264 -i ./encOut/piglab_EncOut_1frames.h264 ./decOut/DecOut_1frames.yuv


Solution

  • The deblocking filter (assuming you mean the one part of the h264 standard) is automatically enabled in x264. To control the loopfilter parameters, use the "deblock" private codec option:

    Loop filter parameters, in <alpha:beta> form.