With reference to this post: http://stackoverflow.com/questions/30782771/what-does-past-duration-x-xxx- too-large-mean The problem seems to disappear if you set the input frame rate, i.e. use the -r flag before your input definition, e.g. ffmpeg -r 25 -i /dev/video0 ....