Bug 53725

Summary: ksnapshot screen recording feature request
Product: [Unmaintained] ksnapshot Reporter: Peter <peter>
Component: generalAssignee: Richard Moore <rich>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: ch75, jens-bugs.kde.org
Priority: NOR    
Version: 0.5   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Peter 2003-01-31 11:49:35 UTC
Version:           0.5 (using KDE 3.1.0)
Installed from:     (3.0)
Compiler:          gcc version 2.95.4 20011002 (Debian prerelease)
OS:          Linux (i686) release 2.4.20

It would be very useful if ksnapshot had the ability to record a rapid sequence of screen shots. There are a couple of programs using xwd that does this already, such as x11rec, which has these lines of code, written by Satoru Takabayashi <satoru@namazu.org> and released under GPL (in ruby):

  def target
    $stderr.puts "** Select an X window with a mouse. **"
    IO.popen("xwininfo").each do |line|
      if /id: (\S+)/ =~ line then
        @id = $1
      end
    end
    printf "id: %s\n", id
  end

  def record
    @start_time = Time.new.localtime.to_i
    $stderr.puts "** Hit Ctrl+Z to finish the recording. **"
    while true
      tmp1 = sprintf "%s.1.%06d", @tmpprefix, @frames 
      tmp2 = sprintf "%s.2.%06d", @tmpprefix, @frames 
      system "xwd -silent -id #{@id} > #{tmp1}"
      File.rename tmp1, tmp2
      @frames += 1
      printf "frames: %d\r", @frames
    end
  end

This would be an incredibly useful feature to have built into ksnapshot, especially if we could configure it for the default image directory, as a large number of files would be generated.

x11rec uses gifsicle to convert the images into an animated gif, which certainly is an elegant solution that ksnapshot could also use. gifsicle is already in Debian.

I hope someone will feel inspired to add continuous recording to ksnapshot; it will be used with enthusiasm and appreciation.

Best,
Peter
Comment 1 Richard Moore 2003-02-05 00:04:22 UTC
Subject: Re: ksnapshot screen recording feature request

Hmmm, maybe. It'll have to look to the user like a separate app though or it 
is too confusing. I'll think about it.


Comment 2 icefox 2004-11-06 19:55:08 UTC
Maybe with dcop?
Comment 3 Jens 2004-11-10 16:41:37 UTC
Hello,

xvidcap (http://xvidcap.sf.net) provides this functionality. There is also vncrecord (or something like that) which can record a VNC session to disk.

I think KSnapshot doesn't need to reimplement this functionality. But it might integrate xvidcap for a more user friendly interface :-)

Thanks,

Jens
Comment 4 Jonas Lihnell 2005-05-31 19:51:31 UTC
none of the other applications really live up to what one normally would want to do with such a feature, that is, record movie streams of the desktop, or parts of it.

I would like ksnapshot to get enchanced with a feature to record movie that just as the ordinary screenshots can target a window, background, with or without borders etc.

Additionally I would like to have a system tray to show if I'm recording or not, with easy access to record and stop. An applet for these buttons as well as a visual representation of amount of time recorded would be just perfect.

what file formats to record to can be discussed, but I think there should be at least a way to record to a final movie instead of only images, and I think there should be at least 2 codecs to choose from, a lossless one, and a lossy one (say, huffyuv and xvid).

I know this will be a lot of work to get into ksnapshot, but it's a feature well needed. (and there is no real good one for linux yet, and especially not kde/qt based)

just my thoughts, and if there is anything I can do to help except code feel free to drop me a mail at roze@roze.mine.nu (I'd gladly do screenshots, movies and documentation on how to use it :D)
Comment 5 Jens 2005-05-31 20:00:01 UTC
Google for "xvidcap". It's all been done already ;)
I'd love this feature integrated into ksnapshot, though.
Comment 6 Jonas Lihnell 2005-05-31 21:06:47 UTC
can xvidcap record only a certain window? without window decorations? does it have a tray icon? easy usable applet?

I looked at xvidcap before I came here, and from what I saw and read it's a gtk-based application and it didn't sport all that many features.

besides, I'd never compile a ton of libs to get onle 1 application working that wouldn't even fit in my desktop.

kde needs something just as good or better as xvidcap.
Comment 7 Jens 2005-05-31 22:28:06 UTC
yes. yes. no. yes.

Gtk? No. Plain X11. :-)
It records the X11 screen as a video. That's it. UNIX philospohy - do one thing and do it well.

I was talking about maybe taking the basic feature set and integrating it into ksnapshot. I'm not expecting anybody to do it just because it would be "nice" - my favorite feature is also still missing (cut&paste support, e.g. into KMail as an attachment, without having to save the screenshot to a file first).

But you seem to be a bit spoiled in that respect, aren't you? How can you expect anybody else to actually *develop* anything for you if you aren't even willing to compile it?

Jens
Comment 8 Jonas Lihnell 2005-06-01 06:40:24 UTC
Jens, I don't see a reason for you to call me negative things.

I came here and said it would be "nice" to have som feature, I gave suggestions on which and how to enhance a already great tool so it could become something greater. Heck! I even said I was ready to help out in any way except coding (I'm no good coder and don't want to introduce lots of bugs :)

and plain x11 is better then gtk, but it still won't fit the kde hig, and it won't fit the desktop as whole.

anyway I think (my personal view) you should try to take the good things out of what people say and appreciate them for that, instead of telling people they're not "good".

Richard Moore/dev team: I'm still willing to help out with anything except code (design of ui, documentation etc)
Comment 9 Jens 2005-06-01 20:14:02 UTC
Hi Jonas!

Well, it looked to me as if you were expecting others to do much more work (= develop) than you were willing to do yourself (= compile). That fits my definition of being spoiled or maybe lazy - no offence indended.

But if you *are* willing to help, I take that remark back, of course.

Now the first thing to do would be to get xvidcap running, because it works quite well :-)
And I *think* one can just write a new GUI for it if need be, even KDE based. It's been done with the GTK GUI instead of the plain X11 one. And *that* would save the ksnapshot devs a whole lot of time, wouldn't it?

Jens
Comment 10 tuliouel 2007-05-01 15:44:49 UTC
*** This bug has been confirmed by popular vote. ***
Comment 11 tuliouel 2007-05-01 15:51:24 UTC
I really need a feature that reccords screen movement into mpeg or gif files. I guess xvidcap solves my problem. I don't know if the policy here tends to repeat features present in other packages. I'm just here to say it's usefull for several things, including recording tutorials. This feature would include the option for recording for "x" secconds, and, also, the option given by "start" and "stop" buttoms.
Comment 12 David 2007-12-19 17:13:46 UTC
It would be really nice to have a KDE application for capturing not only screenshots, but video.
Either in another program or in ksnapshot (afaik all digital cameras can also record videos)
Comment 13 Richard Moore 2008-01-30 23:26:31 UTC
I think KRecordMyDesktop is probably a better solution to this than trying to hack ksnapshto to support this. http://sourceforge.net/projects/krecmydesktop/
Comment 14 FiNeX 2009-12-05 21:36:17 UTC
*** Bug 217476 has been marked as a duplicate of this bug. ***