How to make an xface 48×48 pixel movie (black and white) ffmpeg

How to make an xface 48×48 pixel movie (black and white) ffmpeg

a) create the xface images
ffmpeg -i input.mp4 -c:v xface -s 48×48 xface-%05d.bmp

b) create a subdirectory (I use 0) so you can convert to standard bmp:

c) convert the xface images to bmp:
ffmpeg -f image2 -c:v xface -i xface-%05d.bmp 0\xfacebmp-%05d.bmp

d) convert bmp images (with sound you should also extract) – into lossless mp4

ffmpeg -f image2 -i images%03d.bmp -i sound.wav  -vcodec libx264 -r 10 -sws_flags neighbor+full_chroma_inp -qblur 0 -pix_fmt monow -crf 1 xface_movie.mp4

e) make it a useable size for youtube
ffmpeg -i xface_movie.mp4 -s:v 144×144 -c:v libx264 -sws_flags neighbor+full_chroma_inp -qblur 0 -framerate 10 -crf 1 xface_movie_144.mp4

-Kenneth Udut

Leave a comment

Your email address will not be published. Required fields are marked *


− 3 = five

Leave a Reply