On 18 March 2012 19:34, Anders Branderud <anders.branderud at gmail.com> wrote: > I inserted ' c->codec_id = CODEC_ID_MPEG2VIDEO' into the code and the > outcome is the same. > > You need to change "/home/anders/grb_1.mpg" to a directory that exists and is writeable.