I concat video files using cat command: cat *.mpg >output.mpg And the final video is not playable. How should be the encoding of *.mpg be? This is how I create them: ffmpeg -f image2 -loop 1 -i input.png -q:v 0 out1.mpg