FFMPEG转换png,yuv,avi,mp4

PNG>YUV(10bit)
ffmpeg -i %4d.png -pix_fmt yuv420p10le -s 1984x1344 out.yuv
PNG>YUV(420P_8bit)
ffmpeg -i %4d.png -pix_fmt yuv420p -s 1984x1344 out.yuv

YUV->PNG
ffmpeg -s 1280x720 -pix_fmt yuv420p  -i ./encodedE3.yuv  -s 1280x720  %4d.png

AVI->MP4
ffmpeg -i .\Video.avi -pix_fmt yuv420p video.mp4
MP4->YUV
ffmpeg.exe -i ne_2.mp4 -s 1920*1080 -pix_fmt yuv420p ne_2.yuv
AVI->jpg
ffmpeg.exe -i video_path.avi -vf fps=10 output_folder\frame_%05d.jpg

你可能感兴趣的:(音视频,视频编解码)