Example Script
to encode, decode and calculate metrics
Important: If you intend to run objective metrics, then please remember to disable dithering on the decoder.
~/vnova/ffmpeg/ffmpeg \
-framerate $FPS \
-vcodec rawvideo \
-pix_fmt yuv420p \
-s $RESO \
-i $INPUT \
-vcodec lcevc_h264 \
-base_encoder x264 \
-b:v $BITRATE \
-eil_params "lcevc_tune=vmaf;dc_dithering_type=none;preset=medium;rc_pcrf_window_type=rolling" \
-f mp4 \
outputs/"$FILE"_vnova.mp4
ffmpeg \
-s $RESO \
-framerate $FPS \
-vcodec rawvideo \
-i $INPUT \
-vcodec libx264 \
-b:v $BITRATE \
-preset medium \
-g $FPS \
-f mp4 \
outputs/"$FILE"_libx.mp4
~/vnova/ffmpeg/ffmpeg -y \
-vcodec lcevc_hevc \
-disable_dithering 1 \
-i outputs/"$FILE"_vnova.mp4 \
-vcodec rawvideo \
-s $RESO \
-framerate $FPS \
-pix_fmt yuv420p \
-i $INPUT \
-filter_complex "[0:v]scale=1920x1080:flags=bicubic[main];[main][1:v]libvmaf=model_path=/path/to/vmaf_v0.6.1.pk1" \
-f null -
~/vnova/ffmpeg/ffmpeg -y \
-i outputs/"$FILE"_libx.mp4 \
-s $RESO \
-framerate $FPS \
-pix_fmt yuv420p \
-i $INPUT \
-filter_complex "[0:v]scale=1920x1080:flags=bicubic[main];[main][1:v]libvmaf" \
-f null -
Last updated
Was this helpful?