mp4 - Calculate PSNR and MSE for individual frames using ffmpeg -


i have avi file.i converting avi file .mp4 codec h.264 , ain second case .mp4 file codec h.265.now want calculate psnr/mse/msad between ref file(avi file) , converted mp4 file using ffmpeg.came across ffmpeg command line filters psnr , ssim calculation gives average psnr value not psnr value frame frame.also want using code , not using command line.read several examples in demuxing.c separating whole file frames in av_read_frame before calling decode how can convert pkt frame , able calculate psnr or mse values.

regards mayank

ffmpeg has psnr video filter give per-frame psnr per-frame metadata. want use this, since allows extending code add ssim (using ssim filter) without effort on end.

you should able find documentation hooking libavfilter decoded avframes without effort.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -