vokoscreen refuses to record screen using mpeg4

Good day! I am using vokoscreen 2.0.0, and for some reason it refuses to record screen using mpeg4 videocodec (format mkv). Using libx264 videocodec it works well.
And I cannot insert code… so terminal output is in attachment.
Reinstalling vokoscreen does not help.

I don’t see any error message in your log. Can you manually execute the command vokoscreen tries to run to get the error message:

avconv  -f x11grab -framerate 24 -video_size 735x550 -i :0.0+35,306+nomouse -dcodec copy -f alsa -i pulse  -pix_fmt yuv420p -c:v mpeg4 -c:a libmp3lame  -qscale 1  /tmp/vokoscreen-vokoscreen/vokoscreen-2015-10-23_17-25-26.mkv

Command output contains error with timebase…
[mpeg4 @ 0x98db40] timebase 1/1000000 not supported by MPEG 4 standard, the maximum admitted value for the timebase denominator is 65535

denis@GAB75MD2V:~$ avconv -f x11grab -framerate 24 -video_size 735x550 -i :0.0+35,306+nomouse -dcodec copy -f alsa -i pulse -pix_fmt yuv420p -c:v mpeg4 -c:a libmp3lame -qscale 1 /tmp/vokoscreen-vokoscreen/vokoscreen-2015-10-23_17-25-26.mkv avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) [x11grab @ 0x97f980] device: :0.0+35,306+nomouse -> display: :0.0 x: 35 y: 306 width: 735 height: 550 [x11grab @ 0x97f980] shared memory extension found [x11grab @ 0x97f980] Estimating duration from bitrate, this may be inaccurate Input #0, x11grab, from ':0.0+35,306+nomouse': Duration: N/A, start: 1445631108.887894, bitrate: 310464 kb/s Stream #0.0: Video: rawvideo, bgra, 735x550, 310464 kb/s, 1000k tbn, 24 tbc [alsa @ 0x98b5a0] capture with some ALSA plugins, especially dsnoop, may hang. [alsa @ 0x98b5a0] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, alsa, from 'pulse': Duration: N/A, start: 1445631108.899460, bitrate: N/A Stream #1.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s [mpeg4 @ 0x98db40] timebase 1/1000000 not supported by MPEG 4 standard, the maximum admitted value for the timebase denominator is 65535 Output #0, matroska, to '/tmp/vokoscreen-vokoscreen/vokoscreen-2015-10-23_17-25-26.mkv': Stream #0.0: Video: mpeg4, yuv420p, 735x550, q=2-31, 200 kb/s, 90k tbn, 1000k tbc Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, s16p Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg4) Stream #1:0 -> #0:1 (pcm_s16le -> libmp3lame) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height denis@GAB75MD2V:~$ avconv -f x11grab -framerate 24 -video_size 735x550 -i :0.0+35,306+nomouse -dcodec copy -f alsa -i pulse -pix_fmt yuv420p -c:v mpeg4 -c:a libmp3lame -qscale 1 /tmp/vokoscreen-vokoscreen/vokoscreen-2015-10-23_17-25-26.mkv avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1) [x11grab @ 0x1d07980] device: :0.0+35,306+nomouse -> display: :0.0 x: 35 y: 306 width: 735 height: 550 [x11grab @ 0x1d07980] shared memory extension found [x11grab @ 0x1d07980] Estimating duration from bitrate, this may be inaccurate Input #0, x11grab, from ':0.0+35,306+nomouse': Duration: N/A, start: 1445631128.198068, bitrate: 310464 kb/s Stream #0.0: Video: rawvideo, bgra, 735x550, 310464 kb/s, 1000k tbn, 24 tbc [alsa @ 0x1d135a0] capture with some ALSA plugins, especially dsnoop, may hang. [alsa @ 0x1d135a0] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, alsa, from 'pulse': Duration: N/A, start: 1445631128.209253, bitrate: N/A Stream #1.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s File '/tmp/vokoscreen-vokoscreen/vokoscreen-2015-10-23_17-25-26.mkv' already exists. Overwrite ? [y/N] y [mpeg4 @ 0x1d15b40] timebase 1/1000000 not supported by MPEG 4 standard, the maximum admitted value for the timebase denominator is 65535 Output #0, matroska, to '/tmp/vokoscreen-vokoscreen/vokoscreen-2015-10-23_17-25-26.mkv': Stream #0.0: Video: mpeg4, yuv420p, 735x550, q=2-31, 200 kb/s, 90k tbn, 1000k tbc Stream #0.1: Audio: libmp3lame, 48000 Hz, stereo, s16p Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg4) Stream #1:0 -> #0:1 (pcm_s16le -> libmp3lame) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height denis@GAB75MD2V:~$

Can you adjust the framerate. I think setting it to 15 or 25 should fix it.

No, that does not help. Still the same error.

Then I am almost out of ideas.
I wonder if the -r and -framerate are the same.
Could you test it ?
So instead of -framerate 15 try -r 15.

If this does not work then maybe changing the resolution (perhaps don’t choose a specific area to capture) might help.

Using -r 15 it started to record video, but does not record audio.
Besides, in https://github.com/vkohaupt/vokoscreen/releases version 2.4.0 is available. Why this version is not available in Netrunners repositories? Maybe these bugs are fixed in newest version.

We don’t maintain vokoscreen packages anymore. So they should come directly from ubuntu.
As this not a vokoscreen but rather avconv bug it needs to be fixed there.