[MPlayer-users] x11grab uses wrong display size

Jonas Holbech jh at ctrlaltdelete.dk
Tue May 6 21:40:12 CEST 2008


Hi everybody, hope this is the correct list

I've compiled ffmpeg with x11grab and almost everything works fine

Commands similar to
ffmpeg -f x11grab -s cif -i :0.0 ~/out.mpg
give me a recording, but the size is only 352x288
And if I try using the -s param, like
ffmpeg -f x11grab -s cif -i :0.0 -s 1600x1200 ~/out.mpg
the resulting video is 1600x1200 but still only records a fraction 
(probably 352x288) of the screen.

echo $DISPLAY in the terminal gives :0.0 so that should be ok.

Below is the output when the above command is run, personally I think 
that the culprit is in this line:
[x11grab @ 0x8427cf4]device: :0.0 -> display: :0.0 x: 0 y: 0 width: 352 
height: 288
(hence the subject "x11grab uses wrong display size")

Any pointers would be greatly appreciated

 - Jonas

user at desktop:~$ ffmpeg -f x11grab -s cif -i :0.0 -s 1600x1200 ~/out.mpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler 
--enable-x11grab --enable-dc1394 --enable-liba52 --enable-liba52bin 
--enable-libdts --enable-libfaac --enable-libfaad --enable-libfaadbin 
--enable-libgsm --enable-libmp3lame --enable-libogg --enable-libtheora 
--enable-libvorbis --enable-x264 --enable-xvid --enable-amr_nb
  libavutil version: 49.3.0
  libavcodec version: 51.38.0
  libavformat version: 51.10.0
  built on May  4 2008 16:01:56, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
[x11grab @ 0x8427cf4]device: :0.0 -> display: :0.0 x: 0 y: 0 width: 352 
height: 288
[x11grab @ 0x8427cf4]shared memory extension  found
Input #0, x11grab, from ':0.0':
  Duration: N/A, bitrate: 81100 kb/s
  Stream #0.0: Video: rawvideo, rgb32, 352x288, 81100 kb/s, 25.00 fps(r)
Output #0, mpeg, to '/home/user/out.mpg':
  Stream #0.0: Video: mpeg1video, yuv420p, 1600x1200, q=2-31, 200 kb/s, 
25.00 fps(c)
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding ..........





More information about the MPlayer-users mailing list