[libav-tools] Problem with screen recording while using x2go

Tomasz Bujlow tomasz at bujlow.com
Fri Mar 20 12:54:54 CET 2015


Hi all,

I have a problem with recording the screen while being connected to a
Kubuntu-based machine with x2go (a FreeNX-like SSH-based remote desktop).

--------------------------------------------------------------------------------------------------------------------------
login at baga:~$ avconv -f x11grab -r 25 -s 1600x900 -i :0.0 -vcodec libx264
-threads 4 output.avi
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 @ 0x2019080] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1600
height: 900
No protocol specified
[x11grab @ 0x2019080] Could not open X display.
:0.0: Input/output error
--------------------------------------------------------------------------------------------------------------------------

I tried to see where the display is redirected:

--------------------------------------------------------------------------------------------------------------------------
login at baga:~$ export
declare -x COLORFGBG="15;0"
declare -x
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-OqGNthJbd5,guid=9c28e918b5272419590701bc550ac912"
declare -x DISPLAY=":50"
--------------------------------------------------------------------------------------------------------------------------

So I tried the following:

--------------------------------------------------------------------------------------------------------------------------
login at baga:~$ avconv -f x11grab -r 25 -s 1600x900 -i :50 -vcodec libx264
-threads 4 output.avi
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 @ 0x1dc6080] device: :50 -> display: :50 x: 0 y: 0 width: 1600
height: 900
[x11grab @ 0x1dc6080] shared memory extension  found
Segmentation fault (core dumped)
--------------------------------------------------------------------------------------------------------------------------

My goal is to connect to a remote machine by x2go and to capture there (on
the remote machine) recordings of the screen by a command-line tool.
Actually, avconv is going to be executed by a Java application in a
separate thread, while the min thread is going to do some other stuff on
the screen.

Best,
Tomasz


-- 
Tomasz Bujlow, Ph.D.
Computer Network Researcher
Open-Source Software Developer
tomasz at bujlow.com
http://tomasz.bujlow.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-tools/attachments/20150320/339827a9/attachment.html>


More information about the libav-tools mailing list