picture2video and video2picture using mplayer and ffmpeg

video2picture

mplayer –vo png videname.avi

picture2video

ffmpeg -f image2 -i image%d.jpg video.mpg
convert *.jpg movie.mpg
mencoder mf://*.jpg -mf fps=20:type=jpg -o output.avi -ovc lavc

video2video

ffmpeg -i input.avi -s 640x480 -b 5000k output.avi; % resize the input avi file to 640x480 with 5000k biterate

pciture2picture using ImageMagick

mogrify -resize 25% *.jpg

mogrify -format png *.jpg

convert rose.jpg -resize 50% rose.png

原文地址:https://www.cnblogs.com/sunleecn/p/2270393.html