GNOME Bugzilla – Bug 498030
when recording a video show *Rec on the screen
Last modified: 2020-11-12 07:12:35 UTC
cheese should show something like a clapperboard or a red point with "REC" to show the user, that we are recording
Updated summary
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?!
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.
videomixer with a gdkpixbufdec source should do it.
(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.
(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.
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 :)
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.
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.
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time. If you still use cheese and if you still see this bug / want this feature in a recent and currently supported version, then please feel free to report it at https://gitlab.gnome.org/GNOME/cheese/-/issues/ Thank you for creating this report and we are sorry it could not be implemented (volunteer workforce and time is quite limited).