Page 1 of 1

Record screen [c++/Qt4]

Posted: 12 Oct 2009 20:37
by seif
Hi,
I'm trying to record screen to a file, to do this I use follow c++ code:

Code: Select all

_m = libvlc_media_new (_vlcinstance, c_str, &_vlcexcep); raise(&_vlcexcep); libvlc_media_player_set_media (_mp, _m, &_vlcexcep); raise(&_vlcexcep); /* Play */ libvlc_media_player_play (_mp, &_vlcexcep ); raise(&_vlcexcep)

Code: Select all

In this case c_str is: screen:// :sout="#transcode{vcodec=theo,vb=80,fps=5}:duplicate{dst=std{access=file,mux=ogg,dst=C:/p.ogg}}"
but there is a problem, when I execute a window is opened with content of screen but this isn't saved to the file, therefore I don't want see any window of VLC.
Can you help me?

Re: Record screen [c++/Qt4]

Posted: 13 Oct 2009 17:17
by RĂ©mi Denis-Courmont
sout is a media option, not part of the media location.

Re: Record screen [c++/Qt4]

Posted: 13 Oct 2009 22:12
by seif
thank you. Now work!!