各种视频编码器的命令行格式

各种编码器命令行工具的简单使用方式

第一行是编码,第二行是解码

注意:输入为YUV420P序列

分辨率:1920x1080P

帧率:25

HEVC:

//编码器自动输出重建文件

 

TappEncoder -c encoder_lowdelay_P_main.cfg -i src01_1920x1080.yuv -wdt 1920 -hgt 1080 -b src01_1920x1080_37.hm10 -o src01_1920x1080_37.yuv
TAppDecoder -b src01_1920x1080_37.hm10 -o src01_1920x1080_37.yuv

 

VP9(libvpx):

 

vpxenc -w 1920 -h 1080 --codec=vp9 --fps=25/1 --passes=2 --target-bitrate=7776 -o src01_1920x1080_0.150.vp9 src01_1920x1080.yuv
vpxdec --i420 -o src01_1920x1080_0.150_vp9.yuv src01_1920x1080_0.150.vp9

 

 

VP8(libvpx):

 

vpxenc -w 1920 -h 1080 --codec=vp8 --fps=25/1 --target-bitrate=7776 -o src01_1920x1080_0.150.webm src01_1920x1080.yuv
vpxdec --i420 -o src01_1920x1080_0.150_vp8.yuv src01_1920x1080_0.150.webm

 

 

H264(libx264):

 

ffmpeg -s 1920x1080 -i  src01_1920x1080.yuv -b:v 7776k -r 25 -vcodec libx264 -x264opts ssim src01_1920x1080_0.150.h264
ffmpeg -i src01_1920x1080_0.150.h264 src01_1920x1080_0.150_264.yuv

 

 

MPEG4(Xvid):

 

xvid_encraw -i src01_1920x1080.yuv -w 1920 -h 1080 -csp i420 -type 0  -bitrate 7776 -framerate 25 -o src01_1920x1080_0.150.avi
ffmpeg -i src01_1920x1080_0.150.avi src01_1920x1080_0.150_xvid.yuv

 

 

MPEG2(ffmpeg):

 

ffmpeg -s 1920x1080 -i src01_1920x1080.yuv -b:v 7776k -r 25 -vcodec mpeg2video src01_1920x1080_0.150.mpg
ffmpeg -i src01_1920x1080_0.150.mpg src01_1920x1080_0.150_mpg2.yuv



 

你可能感兴趣的:(命令行)