Syllable Forum Index Syllable
Syllable Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SUGGESTION] Video capture/screen capture tool !
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Syllable Forum Index -> Syllable Desktop
View previous topic :: View next topic  
Author Message
forart.eu



Joined: 18 Dec 2008
Posts: 71

PostPosted: Tue Aug 09, 2011 1:36 am    Post subject: [SUGGESTION] Video capture/screen capture tool ! Reply with quote

I recently saw many videos (particularry for 3D libraries tests) realized for Syllable.

Unfortunally all seems realized with an external camera, which is not good.

It would be great to have an integrated OS tool to capture a live desktop action into a video file.

This tool could be useful too for future online presentations or learning courses.

Here's a couple "inspirational" links (grabbed from [url=http://sourceforge.net/search/?q=screen+capture]here[/url]:
http://taksi.sourceforge.net/
http://recordmydesktop.sourceforge.net/

Hope that help or at least inspires !
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2204
Location: Friesland

PostPosted: Tue Aug 09, 2011 8:34 am    Post subject: Reply with quote

It shouldn't be very hard to program on Syllable. It can probably be based on our AZoom utility, because that already captures smaller parts of the screen. The entire screen is captured once by the screenshot tool. It would be a nice project for someone to start programming on Syllable.
Back to top
View user's profile Send private message Visit poster's website
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Tue Aug 09, 2011 8:59 am    Post subject: Reply with quote

Hi everyone and thank you for the links.

If the capture of the magnifying glass in AZoom is a video stream, we need to increase the size of the magnifier (Fullscreen) and to record the video stream to a file without displaying on the screen. right?
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2204
Location: Friesland

PostPosted: Tue Aug 09, 2011 12:18 pm    Post subject: Reply with quote

Pretty much. The file would need to be in a video format, compressed and all. You may be able to use the multimedia framework for that, but I'm not sure if recording is implemented already.
Back to top
View user's profile Send private message Visit poster's website
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Tue Aug 09, 2011 3:16 pm    Post subject: Reply with quote

OK. I think it would be wise to choose a video format not too exotic, MPEG or AVI for example, that are recognized by any media player.
I grabbed the sources of BZoom (syllable-bzoom.tar.gz) based on AZoom. The code is very small.

we can see the improvements :(README.txt)
+ Faster zooming, using a bitmap scaling algorithm
+ Shorter update interval (50 ms => 25 Hz)
+ Longer update interval when the mouse pointer is not moved (750 ms)
+ Zooms in more while the right mouse button is held down
+ Works in both 15/16 and 32 bit modes. Should work in 8 and 24 bit too (not tested).
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2204
Location: Friesland

PostPosted: Tue Aug 09, 2011 4:44 pm    Post subject: Reply with quote

Sorry, yes, AZoom is ancient.

Did you get the BZoom source from the Syllable source tree?

The MediaConverter application both reads and writes video files, so writing is supported by the media framework and you should be able to take that backend.
Back to top
View user's profile Send private message Visit poster's website
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2204
Location: Friesland

PostPosted: Tue Aug 09, 2011 4:47 pm    Post subject: Reply with quote

Ah, I see the SourceForge CVS viewer generates that tarball name these days.
Back to top
View user's profile Send private message Visit poster's website
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Tue Aug 09, 2011 4:50 pm    Post subject: Reply with quote

Yes, indeed. I downloaded the sources here: http://syllable.cvs.sourceforge.net/viewvc/syllable/syllable/system/apps/utils/bzoom/
Back to top
View user's profile Send private message
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Wed Aug 10, 2011 11:56 am    Post subject: Reply with quote

I modified the code of BZoom. I added the magnification x1 which corresponds to the real scale of the screen. The zoom is slower. This is normal.
I think the zoomed part is actually a capture of images , 25 frames per second (25Hz). I tried with the cube of PicoGL. It is very slow. So I changed the interval (line 24 in file "zoomview.cpp"). That's better. By recording these images, we could have a stop-motion animation.
Back to top
View user's profile Send private message
Kaj
The Knights of Syllable


Joined: 14 Sep 2007
Posts: 2204
Location: Friesland

PostPosted: Thu Aug 11, 2011 6:36 am    Post subject: Reply with quote

Nice progress. Yes, taking a screenshot is also very CPU intensive, so you can't take too many of them. Encoding to a video format would take even more time, so maybe it's better to do that after the fact.
Back to top
View user's profile Send private message Visit poster's website
jaspras



Joined: 13 Sep 2007
Posts: 96
Location: Greece

PostPosted: Fri Aug 12, 2011 4:16 am    Post subject: Reply with quote

Bogomips:
You could also try this...

http://nepthttpsrv.dyndns.org:8080/cap.zip

i made it very quikly so don t expect miracles!

requiements:
1. You must have pre installed

ffmpeg-11308-1.i586.resource

http://downloads.syllable.org/Syllable/i586/resources/FFMPEG/ffmpeg-11308-1.i586.resource

to work

and your desktop screen depth MUST be 32 bits!!
Back to top
View user's profile Send private message
Bogomips



Joined: 23 Feb 2011
Posts: 307
Location: France

PostPosted: Fri Aug 12, 2011 8:10 am    Post subject: Reply with quote

Hello Jaspras,

Thank you for your sources. I tested CaptureFF.
Indeed, it's a very greedy program. But it's a good start.
In the capture, I get a still image. Perhaps with less video compression, it will be faster.
Back to top
View user's profile Send private message
jaspras



Joined: 13 Sep 2007
Posts: 96
Location: Greece

PostPosted: Fri Aug 12, 2011 9:54 am    Post subject: Reply with quote

Yes , sizing down resolution also helps 800x600x32
Back to top
View user's profile Send private message
jaspras



Joined: 13 Sep 2007
Posts: 96
Location: Greece

PostPosted: Fri Aug 12, 2011 9:56 am    Post subject: Reply with quote

forgot to mention,
an SSE or MMX version of memcpy and RGB2YUV,
in AvCodec::AddFrame would do the trick !
Back to top
View user's profile Send private message
jaspras



Joined: 13 Sep 2007
Posts: 96
Location: Greece

PostPosted: Fri Aug 12, 2011 10:04 am    Post subject: Reply with quote

[quote]
In the capture, I get a still image. Perhaps with less video compression, it will be faster.
[/quote]

? you mean that you only get one image? you should get a VIDEO!!!

*.mpg format!!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Syllable Forum Index -> Syllable Desktop All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group