Record screen [c++/Qt4]

This forum is about all development around libVLC.
seif
New Cone
New Cone
Posts: 5
Joined: 12 Oct 2009 20:22

Record screen [c++/Qt4]

Postby seif » 12 Oct 2009 20:37

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Record screen [c++/Qt4]

Postby Rémi Denis-Courmont » 13 Oct 2009 17:17

sout is a media option, not part of the media location.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

seif
New Cone
New Cone
Posts: 5
Joined: 12 Oct 2009 20:22

Re: Record screen [c++/Qt4]

Postby seif » 13 Oct 2009 22:12

thank you. Now work!!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 35 guests