back

Color code cube face

ffmpeg color syntax

0x000000 Black right
0x0000FF Blue   left
0x00FF00 Lime   up
0x00FFFF Cyan (or Aqua) down
0xFF0000 Red
0xFF00FF Magenta (or Fuchsia) forward
0xFFFF00 Yellow back
0xFFFFFF White

ffmpeg -f lavfi -i "color=0x000000:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/1.mov
ffmpeg -f lavfi -i "color=0x0000FF:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/2.mov
ffmpeg -f lavfi -i "color=0x0FF000:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/3.mov
ffmpeg -f lavfi -i "color=0x00FFFF:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/4.mov
ffmpeg -f lavfi -i "color=0xFF00FF:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/5.mov
ffmpeg -f lavfi -i "color=0xFFFF00:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/6.mov

to speed up you can use  && after each ".mov" except the last.
you can also use color name:

ffmpeg -f lavfi -i "color=Black:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/1.mov
ffmpeg -f lavfi -i "color=Blue:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/2.mov
ffmpeg -f lavfi -i "color=Lime:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/3.mov
ffmpeg -f lavfi -i "color=Cyan:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/4.mov
ffmpeg -f lavfi -i "color=Magenta:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/5.mov
ffmpeg -f lavfi -i "color=Yellow:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/6.mov

ffmpeg -f lavfi -i "color=black@0:s=480x480" -r 25 -c:v libx264 -crf 18 -t 20 -pix_fmt yuv420p dir/1.mov
gives transparency.

ffmpeg -i dir/1.mov -i dir/2.mov -i dir/3.mov -i dir/4.mov -i dir/5.mov -i dir/6.mov -filter_complex 'hstack=inputs=6' dir/cubemap01.mov



cubemap01-0001.png.

ffmpeg -i dir/cubemap01.mov -vf "v360=c6x1:e" dir/equirectangular01.mov



equirectangular01-0002.png.

back