./ffmpeg -i test.mp4 -pix_fmt yuv420p10le -c:v libvpx-vp9 -b:v 0 -crf 31 -speed 1 -quality good -static-thresh 4 -lag-in-frames 25 -f webm out.webm
//转vp9
./ffmpeg -pix_fmt yuv420p -s 704*576 -i out.yuv -c:v libvpx-vp9 -speed 4 -static-thresh 4 -lag-in-frames 25 -f webm out_vp9.webm
//转vp8
./ffmpeg -pix_fmt yuv420p -s 704*576 -i out.yuv -c:v libvpx -speed 4 -static-thresh 4 -lag-in-frames 20 -f webm out_vp8.webm
Last Modified: 2016-05-18 Examples given are for 2-pass VP9 encoding with FFMpeg. Ensure that your FFMpeg has been built with libvpx support.
VOD Recommended Settings c:v libvpx-vp9 tells FFmpeg to encode the video in VP9.
Most of the current VP9 decoders use tile-based, multi-threaded decoding. In order for the decoders to take advantage of multiple cores, the encoder must set Setting
Multi-threaded encoding may be used if -threads > 1 and -tile-columns > 0.
DASH Recommended Settings
See http://wiki.webmproject.org/adaptive-streaming/instructions-to-playback-adaptive-webm-using-dash for WebM DASH settings. Best Quality (Slowest) Recommended Settings tile-columns 0 , frame-parallel 0 : Turning off tile-columns and frame-parallel should give a small bump in quality, but will most likely hamper decode performance severely. Constant Quality Recommended Settings
Objective is to achieve a constant (perceptual) quality level without regard to bitrate. (Note that Constant Quality differs from Constrained Quality, described below.)
crf is the quality value (0-63 for VP9). To trigger this mode, you must use a combination of crf and b:v 0 . bv MUST be 0 . Constrained Quality Recommended Settings
Objective is to achieve a constant (perceptual) quality level as long as the bitrate achieved is below a specified upper bound. Constrained Quality is useful for bulk encoding large sets of videos in a generally consistent fashion. The quality desired is provided as the crf parameter and the bitrate upper bound is provided as the b:v parameter, where bitrate MUST be non-zero. Both For easy videos, this mode behaves exactly like the constant quality mode, and the actual bitrate achieved can be much lower than the specified bitrate in the One caveat in FFMpeg is that if you do not provide the |