Bug 498030 - when recording a video show *Rec on the screen
when recording a video show *Rec on the screen
Status: NEW
Product: cheese
Classification: Applications
Component: general
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Cheese Maintainer(s)
Cheese Maintainer(s)
:
Depends on:
Blocks: 599729
  Show dependency tree
 
Reported: 2007-11-18 22:37 UTC by daniel g. siegel
Modified: 2014-01-27 20:39 UTC (History)
6 users (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments
CheeseWindow: display a red '*REC' while recording (3.18 KB, patch)
2011-03-29 22:56 UTC, Raluca-Elena Podiuc
none Details | Diff | Review

Description daniel g. siegel 2007-11-18 22:37:59 UTC
cheese should show something like a clapperboard or a red point with "REC" to show the user, that we are recording
Comment 1 Jaap A. Haitsma 2007-11-18 23:34:41 UTC
Updated summary
Comment 2 Felix Kaser 2008-08-06 07:58:25 UTC
We should change the priority of this bug! I'm working on the fullscreen mode at the moment, and there you will not know if you are recording or not without the red-point thing or something similar!

I have no idea how this could be done....but probably someone has?!
Comment 3 John McHugh 2008-11-05 20:10:29 UTC
would be possible with the new effects being worked on as far as I know. I cant remember the name of it but its the one which takes images of borders and layers it over the video, I would assume a similar method can be used to add a REC to the corner of the screen.
Comment 4 Bastien Nocera 2009-11-30 19:10:06 UTC
videomixer with a gdkpixbufdec source should do it.
Comment 5 Filippo Argiolas 2009-12-02 10:15:21 UTC
(In reply to comment #4)
> videomixer with a gdkpixbufdec source should do it.

It's a bit tricky to make the image persistent though. filesrc outputs just a frame, we need to manually implement some kind of looping, as far as I know there is no gstreamer element for this. I think multifilesrc could be easily extended to support a loop property too.
Comment 6 Filippo Argiolas 2009-12-02 11:00:07 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > videomixer with a gdkpixbufdec source should do it.
> 
> It's a bit tricky to make the image persistent though. filesrc outputs just a

Ok forget it, multifilesrc can already do it! So, who wants to implement it? Felix?

Here's little hint to start:
gst-launch-0.10 multifilesrc location="rec.png" "caps=image/png, framerate=\(fraction\)30/1" ! pngdec ! alphacolor ! ffmpegcolorspace ! videobox border-alpha=0 alpha=0.8 top=-10 left=-270 ! videomixer name=m ! ffmpegcolorspace ! autovideosink videotestsrc ! video/x-raw-yuv, width=320, height=240 ! m.
Comment 7 Felix Kaser 2009-12-02 11:03:26 UTC
I'm quite busy at the moment, but I can see what I can do!

if somebody else wants to do it, feel free to do so :)
Comment 8 Raluca-Elena Podiuc 2011-03-29 22:54:18 UTC
I tried with "gst-launch -v videotestsrc ! ffmpegcolorspace ! rsvgoverlay
location=/home/mimi/Desktop/rec.svg fit-to-frame=FALSE !
ffmpegcolorspace ! autovideosink", but then fujii_ on IRC gave me a hint: draw directly on the clutter context.

I'm attaching here a patch using the second approach.

There's only one issue remaining: I can't make the "*REC" text show up in a corner, it stays centered regarding CLUTTER_BIN_ALIGNMENT_START.
Comment 9 Raluca-Elena Podiuc 2011-03-29 22:56:08 UTC
Created attachment 184640 [details] [review]
CheeseWindow: display a red '*REC' while recording

Adds another layer in the viewport_layout_manager:
     Text = *REC, Color=red

Enabled when starting to record.
Disabled at startup and at record stop.

Still has a bug: text is centered.

Note You need to log in before you can comment on or make changes to this bug.