How to use ssim in ffmpeg -
i looked correct place in ffmpeg command put -ssim
, or private options. didn't find got 1 option working , share you. it's working don't know why.
first try without ssim , working:
ffmpeg -s cif -r 30 -i video.yuv -vcodec mpeg4 -g 12 -bf 2 -sameq video.m4v
i tried put ssim below , did not working:
ffmpeg -s cif -r 30 -i video.yuv -vcodec mpeg4 -g 12 -bf 2 -sameq -ssim video.m4v ffmpeg -s cif -r 30 -i video.yuv -ssim -vcodec mpeg4 -g 12 -bf 2 -sameq video.m4v
and here works:
ffmpeg -s cif -r 30 -i video.yuv -vcodec mpeg4 -g 12 -bf 2 -ssim -sameq video.m4v
someone have idea why worked in last case , not in commands 2 , 3?
the -ssim option relative codec (x264) use.
at least explain why case (3) doesn't work, because put option before -vcodec
remember ffmpeg option not position independent. , far remember ssim part of avcodeccontext option , should place after fflag2 below can wrong depending of ffmpeg version use.
ffmpeg -i input ... codec .... -ssim output
Comments
Post a Comment