~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy

« back to all changes in this revision

Viewing changes to kwin/effects/videorecord.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-11 14:04:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071011140448-v0eb7lxbb24zagca
Tags: 3.94.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 - ./autogen.sh
26
26
 - the usual configure && make && make install procedure
27
27
 
28
 
 Video is saved to /tmp/kwin_video.cps, use
 
28
 Video is saved to $HOME/kwin_video.cps, use
29
29
 "cpsrecode -i kwin_video.cps  -o - | mplayer -" to play,
30
30
 use mencoder the same way to create a video.
31
31
 
37
37
 
38
38
#include <kaction.h>
39
39
#include <kactioncollection.h>
 
40
#include <kdebug.h>
40
41
#include <klocale.h>
 
42
#include <qdir.h>
 
43
#include <qfile.h>
41
44
 
42
45
namespace KWin
43
46
{
112
115
        return;
113
116
        }
114
117
    // TODO
115
 
    if( CapturySetOutputFileName( client, "/tmp/kwin_video.cps" ) != CAPTURY_SUCCESS )
 
118
    if( CapturySetOutputFileName( client, QFile::encodeName(QDir::homePath()+
 
119
                    "/kwin_video.cps").constData() ) != CAPTURY_SUCCESS )
116
120
        {
117
121
        kDebug( 1212 ) << "Video recording file open failed";
118
122
        return;