vkohaupt / vokoscreenNG

vokoscreenNG is a powerful screencast creator in many languages to record the screen, an area or a window (Linux only). Recording of audio from multiple sources is supported. With the built-in camera support, you can make your video more personal. Other tools such as systray, magnifying glass, countdown, timer, Showclick and Halo support will help
https://linuxecke.volkoh.de/vokoscreen/vokoscreen.html
GNU General Public License v2.0
1.13k stars 92 forks source link

Window title cannot be removed from cam window (Linux, MATE) #295

Open miraculixx opened 10 months ago

miraculixx commented 10 months ago

Bug report checklist

Describe the bug

The cam is displayed with a window frame and title, despite selecting "Remove window frame".

To Reproduce Steps to reproduce the behavior:

  1. Go to Cam > Select a cam from list
  2. Click on Remove window frame (toggle activate)
  3. The cam window is displayed with a frame

Expected behavior The cam window should be shown without a frame

Additional context

Screenshots This is the screenshot of the cam window following the "remove window frame" is toggled active. The time of toggling the option does not influence the result. Note the window background is in fact transparent.

image

Log messages

22:01:42 [vokoscreenNG] Version: 4.0.0
22:01:42 [vokoscreenNG] Locale: en_US
22:01:42 [vokoscreenNG] Log from: 2024-01-10 22:01:42
22:01:42 [vokoscreenNG] Country: United States
22:01:42 [vokoscreenNG] Qt: 6.5.3
22:01:42 [vokoscreenNG] GStreamer 1.20.7
22:01:42 [vokoscreenNG] PulseAudio library version: 16.0.0
22:01:42 [vokoscreenNG] Virtual Maschine: systemd-detect-virt not found
22:01:42 [vokoscreenNG] Operating system: KDE Flatpak runtime
22:01:42 [vokoscreenNG] KernelVersion: 6.1.0-1027-oem
22:01:42 [vokoscreenNG] CPU Architecture: x86_64
22:01:42 [vokoscreenNG] Count CPU: 12
22:01:42 [vokoscreenNG] vokoscreenNG running as: xcb client
22:01:42 [vokoscreenNG] vokoscreenNG running on: x11
22:01:42 [vokoscreenNG] Desktop: MATE
22:01:42 [vokoscreenNG] Icon-Theme: Mint-L-Aqua
22:01:42 [vokoscreenNG] Styles: QStyleSheetStyle
22:01:42 [vokoscreenNG] ExecutablePath:      /app/bin
22:01:42 [vokoscreenNG] Qt-PluginsPath:      /usr/plugins
22:01:42 [vokoscreenNG] Qt-TranslationsPath: /usr/translations
22:01:42 [vokoscreenNG] Qt-LibraryPath:      /usr/lib/x86_64-linux-gnu
22:01:42 [vokoscreenNG] Settings: /home/user/.var/app/com.github.vkohaupt.vokoscreenNG/config/vokoscreenNG/vokoscreenNG.ini
22:01:42 [vokoscreenNG] Log: /home/user/.var/app/com.github.vkohaupt.vokoscreenNG/config/vokoscreenNG/log/2024-01-10_22-01-42.log
22:01:42 [vokoscreenNG] Default Videopath: /home/user/Videos
22:01:42 [vokoscreenNG] User Videopath: /home/user/Videos

22:01:42 [vokoscreenNG] [Audio] Found: Monitor of sof-hda-dsp HDMI / DisplayPort 3 Output Device: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink.monitor
22:01:42 [vokoscreenNG] [Audio] Found: C922 Pro Stream Webcam Digital Stereo (IEC958) Device: alsa_input.usb-046d_C922_Pro_Stream_Webcam_1E2E8AEF-02.iec958-stereo
22:01:42 [vokoscreenNG] [Audio] Found: ThinkPad Hybrid USB-C with USB-A Dock Analog Stereo Device: alsa_input.usb-DisplayLink_ThinkPad_Hybrid_USB-C_with_USB-A_Dock_13569149-02.analog-stereo
22:01:42 [vokoscreenNG] [Audio] Found: Monitor of ThinkPad Hybrid USB-C with USB-A Dock Analog Stereo Device: alsa_output.usb-DisplayLink_ThinkPad_Hybrid_USB-C_with_USB-A_Dock_13569149-02.analog-stereo.monitor

22:01:42 [vokoscreenNG] Pictures permission: Can write in /home/user/Pictures

22:01:42 [vokoscreenNG] Symbols: + available, - not available
22:01:42 [vokoscreenNG] + ximagesrc
22:01:42 [vokoscreenNG] + pulsesrc
22:01:42 [vokoscreenNG] + queue
22:01:42 [vokoscreenNG] + appsrc
22:01:42 [vokoscreenNG] + capsfilter
22:01:42 [vokoscreenNG] + videoconvert
22:01:42 [vokoscreenNG] + videorate
22:01:42 [vokoscreenNG] + videoscale
22:01:42 [vokoscreenNG] + h264parse
22:01:42 [vokoscreenNG] + audioconvert
22:01:42 [vokoscreenNG] + audiorate
22:01:42 [vokoscreenNG] + audiomixer
22:01:42 [vokoscreenNG] + audioresample
22:01:42 [vokoscreenNG] + filesink

22:01:42 [vokoscreenNG] Formats, video- and audio codec are only for record, not for the player
22:01:42 [vokoscreenNG] Video formats:
22:01:42 [vokoscreenNG] + matroskamux (mkv)
22:01:42 [vokoscreenNG] - gifenc (gif)
22:01:42 [vokoscreenNG] + mp4mux (mp4)
22:01:42 [vokoscreenNG] + webmmux (webm)
22:01:42 [vokoscreenNG] + avimux (avi)
22:01:42 [vokoscreenNG] + qtmux (mov)

22:01:42 [vokoscreenNG] Format was changed, codecs are inserted:
22:01:42 [vokoscreenNG] + openh264enc
22:01:42 [vokoscreenNG] + vp8enc

22:01:42 [vokoscreenNG] Video encoder:
22:01:42 [vokoscreenNG] + openh264enc
22:01:42 [vokoscreenNG] + vp8enc
22:01:42 [vokoscreenNG] - gifenc

22:01:42 [vokoscreenNG] Audio encoder:
22:01:42 [vokoscreenNG] + vorbisenc
22:01:42 [vokoscreenNG] + flacenc
22:01:42 [vokoscreenNG] + opusenc
22:01:42 [vokoscreenNG] + lamemp3enc

22:01:42 [vokoscreenNG] This screen is the primary screen:  DVI-I-1-1
22:01:42 [vokoscreenNG] Name from screen:  DVI-I-1-1
22:01:42 [vokoscreenNG] Screen available desktop width : 1920
22:01:42 [vokoscreenNG] Screen available desktop height: 1080
22:01:42 [vokoscreenNG] DevicePixelRatio: 1  (Normal displays is 1, Retina display is 2)
22:01:42 [vokoscreenNG] Vertical refresh rate of the screen in Hz: 60
22:01:42 [vokoscreenNG] Screen orientation Qt::LandscapeOrientation
22:01:42 [vokoscreenNG] Color depth of the screen:  24
22:01:42 [vokoscreenNG] Model from screen:  S24C350
22:01:42 [vokoscreenNG] Manufactur from screen:  Samsung Electric Company
22:01:42 [vokoscreenNG] SerialNumber from screen:  808661557
22:01:42 [vokoscreenNG] ItemText in Combobox: DVI-I-1-1 :  1920 x 1080
22:01:42 [vokoscreenNG] ItemData in Combobox: x=1920 y=0 with=1920 height=1080

22:01:42 [vokoscreenNG] Name from screen:  eDP-1
22:01:42 [vokoscreenNG] Screen available desktop width : 1920
22:01:42 [vokoscreenNG] Screen available desktop height: 1200
22:01:42 [vokoscreenNG] DevicePixelRatio: 1  (Normal displays is 1, Retina display is 2)
22:01:42 [vokoscreenNG] Vertical refresh rate of the screen in Hz: 60.0031
22:01:42 [vokoscreenNG] Screen orientation Qt::LandscapeOrientation
22:01:42 [vokoscreenNG] Color depth of the screen:  24
22:01:42 [vokoscreenNG] Model from screen:
22:01:42 [vokoscreenNG] Manufactur from screen:  BOE
22:01:42 [vokoscreenNG] SerialNumber from screen:
22:01:42 [vokoscreenNG] ItemText in Combobox: eDP-1 :  1920 x 1200
22:01:42 [vokoscreenNG] ItemData in Combobox: x=0 y=0 with=1920 height=1200

22:01:42 Couldn't load VAAPI library
22:01:42 [vokoscreenNG] [Camera] Added: Integrated Camera: Integrated C Device: /dev/video0
22:01:42 [vokoscreenNG] [Camera] Added: Integrated Camera: Integrated I Device: /dev/video2
22:01:42 [vokoscreenNG] [Camera] Added: C922 Pro Stream Webcam Device: /dev/video4
22:01:42 [vokoscreenNG] Language changed to: English  ( United States )  ( en_US ) :/language/en_US.qm
22:01:42 [vokoscreenNG] [Camera] Start with format: Format_YUYV and resolution: 1280x720
22:01:43 [vokoscreenNG] Set global shortcut for Start: CTRL+SHIFT+F10
22:01:43 [vokoscreenNG] Set global shortcut for Pause: CTRL+SHIFT+F12
22:01:43 [vokoscreenNG] Set global shortcut for Magnification: CTRL+SHIFT+F9
22:01:43 [vokoscreenNG] Set global shortcut for Camera: CTRL+SHIFT+F8
22:01:43 [vokoscreenNG] Set global shortcut for Showclick: CTRL+SHIFT+F7
22:01:43 [vokoscreenNG] Set global shortcut for Halo: CTRL+SHIFT+F6
22:01:43 [vokoscreenNG] Set global shortcut for Snapshot: CTRL+SHIFT+F5

22:01:43 [vokoscreenNG] Video permission: Can write in /home/user/Videos

22:01:43 [vokoscreenNG] [Composite] true
miraculixx commented 10 months ago

I found a workaround to remove the window title selectively using the following command shell alias:

# added to .bashrc
alias vokome='xprop -id $(xdotool search --name "Camera ") -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x0, 0x0, 0x0"'

Then I can start vokoscreenng 4.0 and just type vokome in my bash shell to removed the window title, as would be expected. Perhaps this is helpful in resolving the issue. The workaround is inspired by https://unix.stackexchange.com/a/446519/477548

vkohaupt commented 10 months ago

Thanks for the hint. The bug has been fixed. https://github.com/vkohaupt/vokoscreenNG/commit/7471cb97a194458d4a73b73765ecb431b49bff9e