FFmpeg video synthesis by Ciro Santilli 34 Updated +Created
Video with a solid color:
  • 2 second white video:
    ffplay -autoexit -f lavfi -i 'color=white:640x480:d=3,format=rgb24,trim=end=2'
    Also add some audio:
    ffmpeg -lavfi "color=white:640x480:d=3,format=rgb24,trim=end=2[v];sine=f=1000:d=2[a]" -map '[a]' -map '[v]' out.mkv
    TODO how to ffplay the video + audio directly? -map does not seem to work unfortunately.
  • 2 second white followed by 2 second black video:
    ffplay -autoexit -f lavfi -i 'color=white:640x480:d=3,format=rgb24,trim=end=2[a];color=black:640x480:d=3,format=rgb24,trim=end=2[b];[a][b]concat=n=2:v=1:a=0'
  • bibliography:
Display count in seconds on the video: