Coder Social home page Coder Social logo

kazam's People

Contributors

logileifs avatar panispani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kazam's Issues

Kazam on DWM

I can't screencapture using the DWM window manager.
Running through a terminal returns the following errors:

/usr/lib/python3/dist-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
  self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))

(kazam:29301): Gtk-WARNING **: Symbolic icon kazam-screencast-symbolic of size 24 is in an icon theme directory of size 16

(kazam:29301): Gtk-WARNING **: Symbolic icon kazam-screenshot-symbolic of size 24 is in an icon theme directory of size 16

(kazam:29301): Gtk-WARNING **: Can't set a parent on widget which has a parent


(kazam:29301): Gtk-WARNING **: Symbolic icon kazam-fullscreen-symbolic of size 24 is in an icon theme directory of size 16

(kazam:29301): Gtk-WARNING **: Symbolic icon kazam-all-screens-symbolic of size 24 is in an icon theme directory of size 16

(kazam:29301): Gtk-WARNING **: Symbolic icon kazam-window-symbolic of size 24 is in an icon theme directory of size 16

(kazam:29301): Gtk-WARNING **: Symbolic icon kazam-area-symbolic of size 24 is in an icon theme directory of size 16

(kazam:29301): Gtk-WARNING **: Can't set a parent on widget which has a parent

WARNING Window Select - Compositing window manager not found, expect the unexpected.

Kazam is not really crashing, as it is still running. "*.movie, *.mux" files are also created in a directory. But I can not view them.

Bug - Glitch when screenshot an area

Problem

I wanted to capture an area of my screen, then I've selected Screenshot option on Kazam, selected Area option, true on Mouse Cursor and 3 seconds of delay. I've selected the area, clicked on Capture and this is the result:

Screenshot 2019-05-16 11:53:40

Reproducing the Problem

Peek 2019-05-16 11-53

A playtime display?

Does kazam support the time from the istant recording starts?

I need this to ensure I must stop my recording in 4 minutes or so.

WARNING Kazam - Failed to correctly detect operating system.(error occurs in garuda linux arch based)

kazam always gives this error while opening it in garuda linux
WARNING Kazam - Failed to correctly detect operating system.
Traceback (most recent call last):
File "/usr/bin/kazam", line 148, in
from kazam.app import KazamApp
File "/usr/lib/python3.9/site-packages/kazam/app.py", line 35, in
from kazam.backend.prefs import *
File "/usr/lib/python3.9/site-packages/kazam/backend/prefs.py", line 26, in
from xdg.BaseDirectory import xdg_config_home
ModuleNotFoundError: No module named 'xdg.BaseDirectory'

Kazam suddenly stopped working

It worked fine for few days, now when I take a screenshot from the icon(in Kali) above it takes a screenshot and then hangs for a few seconds, also it is not saved anywhere, I can't find the installation folder also. And I can't uninstall it either.

keymap

is that possible to configure keymap
after installation of linux package manager?

cause i know i can configure it after source code installation
just curious, is there a easier way to configure it, for instance, ~/.kazam
map control+super+r ==> map super+r

Max length of video

Add the option to set maximum duration of recording. So it won't hog up the system if I forget to stop recording. This bit me yesterday.

How to draw a circle on the mouse cursor?

I'd like to add a circle around the mouse cursor during the video, however, I couldn't see on the code where each frame is taken.

With the frame, we could manually add a text, a cursor around the mouse, etc.

How can we do that?

remove microphone sound

Hello, I made a mistake and accidentally recorded the screen with microphone audio, when I needed only internal audio. I have movie.mux file. is there a way to separate audios?

Unable to Uninstall Kazam

How do I uninstall Kazam completely, I have run the uninstaller in the following ways but I can still see the launcher icon in the application menu on Ubuntu 20.04.

  • sudo apt-get remove kazam

  • sudo apt autoremove

  • sudo apt-get remove --auto-remove kazam

Screenshot from 2020-11-26 01-34-46

I want to know keyboard shortcuts of kazam

Keyboard shortcuts
------------------

SUPER-CTRL-Q - Quit
SUPER-CTRL-W - Show/Hide main window
SUPER-CTRL-R - Start Recording
SUPER-CTRL-F - Finish Recording

from the document, i knew that, there are four shortcuts for screencast.
i found another one SUPER-CTRL-P - Pause/continue Recording.

but there is no keyboard shortcuts for screenshot, why?
who knows all the shortcuts? please tell me, thank you

when disk is full kazam stops functinality

when disk is full I can not stop video writing.

after system reboot I have kazam_x3wsi9hn.movie.mux file which can not be opened

TODO:
Allow to keep at least saved part of video

Thank you.

Capturing window doesn't capture menus

I've checked that on Firefox ESR and VSCode: menu windows wasn't be captured if you specify only one window for capturing. If this is feature, can you add a mode for capturing windows with a children windows?

Add GIF support

Right now, Kazam saves everything as .mp4. While it's a good format, it's not very useful for use in Markdown files or for filling bug reports.

It would be nice if Kazam could save as GIF.

Preferences not saved

Some of the preferences aren't saved after being adjusted.

2 that I've noticed:

  • The recording sound/mic volume
  • The auto save video directory

Kazam Doesn't load on Ubuntu 20.04 at all

I have recently updated from Ubuntu 18.04 to Ubuntu 20.04 but at once the Kazam stopped working. I am not able to open the app itself.

I have already tried this solution (#39) but didn't worked out as mine seems something different.

image

after record mouse cursor disappear on some screen regions

after recording a webm screencast, area, window or fullscreen, mouse cursor hides only on some specific region of the screen, expecially on window titlebar.
happens to me only when used kazam, my config is:

  • ubuntu disco 19.04
  • kazam 1.4.5-2.1ubuntu0.1

Can't record a window because Kazam hides all my windows

When I click 'Window' a message appears "Select a window by clicking on it", but it hides my desktop on that screen so I can't click on any windows.

I tried moving it to my other monitor, but then clicking on windows on my main screen doesn't do anything.

OS: Ubuntu 18.04 using X11.

Kazam can't more than 1918*1078 resolution

Hello
I want to record my screen with Kazam, but problem is it can only record a proportion of my screen. Currently, I'm using Ubuntu Bionic Beaver, I have 4K screen , my real resolution is " 3840x2160 ". Ubuntu Bionic Beaver use X.Org by default.
Is there any way to fix this ?

Crash on startup

Kazam app can't start because has error when prepare config.

OS: Arch Linux
Stacktrace:

/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk /usr/bin/kazam:75: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5 dist = platform.linux_distribution() Traceback (most recent call last): File "/usr/bin/kazam", line 146, in <module> from kazam.app import KazamApp File "/usr/lib/python3.7/site-packages/kazam/app.py", line 35, in <module> from kazam.backend.prefs import * File "/usr/lib/python3.7/site-packages/kazam/backend/prefs.py", line 478, in <module> prefs = Prefs() File "/usr/lib/python3.7/site-packages/kazam/backend/prefs.py", line 119, in __init__ self.config = KazamConfig() File "/usr/lib/python3.7/site-packages/kazam/backend/config.py", line 76, in __init__ ConfigParser.__init__(self, self.DEFAULTS[0]['keys']) File "/usr/lib/python3.7/configparser.py", line 638, in __init__ self._read_defaults(defaults) File "/usr/lib/python3.7/configparser.py", line 1216, in _read_defaults self.read_dict({self.default_section: defaults}) File "/usr/lib/python3.7/configparser.py", line 753, in read_dict self.set(section, key, value) File "/usr/lib/python3.7/site-packages/kazam/backend/config.py", line 127, in set self.add_section(section) File "/usr/lib/python3.7/configparser.py", line 1205, in add_section super().add_section(section) File "/usr/lib/python3.7/configparser.py", line 655, in add_section raise ValueError('Invalid section name: %r' % section) ValueError: Invalid section name: 'DEFAULT'

I think what reason of crash is new version Configparser.

Cannot select window for screencast or screenshot

My envirnoment:
Ubuntu 21.04, Wayland
libwnck 3.36.0-1
kazam 1.4.5-4

It isn't possible to select any window when try to screencast or screenshot.

(kazam:60640): Wnck-WARNING **: 15:46:05.348: libwnck is designed to work in X11 only, no valid display found
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/kazam/frontend/window_select.py", line 111, in cb_button_press_event
    screen.force_update()
AttributeError: 'NoneType' object has no attribute 'force_update'

kazam fails to start

The full traceback
/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk Traceback (most recent call last): File "/usr/bin/kazam", line 146, in <module> from kazam.app import KazamApp File "/usr/lib/python3/dist-packages/kazam/app.py", line 35, in <module> from kazam.backend.prefs import * File "/usr/lib/python3/dist-packages/kazam/backend/prefs.py", line 26, in <module> from xdg.BaseDirectory import xdg_config_home ModuleNotFoundError: No module named 'xdg.BaseDirectory'
I tried installing python3-gi and python3-xdg but it didn't go away.

Picture folder location not saving

So basically the casting tab will save the desired location just fine but the screenshot tab will not save when you select a location (pictures, but default is user folder (no idea why in first place)).

Can this be fixed, as well as an update to adding shortcut keys for user friendlier experience(s).

MP4 screencast does not play in web browser

After recording a screencast as H264 (MP4), the file plays correctly in a video player like VLC but when we try to play the screencast in a web browser like Firefox, there is an error message "Video can't be played because the file is corrupt".
The workaround is to reencode the video with a tool like ffmpeg / avconc or avidemux (by selecting MP4 AVC x264). The reencoded file also has the advantage to have a smaller size (3 MB instead of 7 MB in my case for the same quality / codec).

Tested on Ubuntu 18.10 (LXQt) with Kazam 1.4.5.

Launchpad link in README not working

I'm trying to install Kazam on CentOS Linux release 7.4.1708 (Core).

In the README, the section called "Installation - stable release" has a link to download the Kazam tar ball from Launchpad, but when I click on the link I get a message saying "Error: Page not found". See screenshot below.

kazam screenshot

Screenshot: copy to clipboard

Hello!
This is feature request: make parameter at Screenshot tab to copy image to clipboard instead of saving file.

Bug: Resume Sleep, Screen Enlarged

Contents

Bug Details

Kazam will record with a zoomed in resolution about 2-4x larger in full-screen mode. This happens only happens after resuming sleep mode, such as closing the laptop Iid.

My only solution is to reboot right now. Everything else works great.

Maybe it's just me, or my display. Also, great software, ty.

Attempts to Fix without Rebooting

  • Reloading Kazaam doesn't work
  • Reload GUI doesn't work: ALT + F2 and r
  • Screen Locking doesn't work.

Specific Details

  • Screen Resolution: 1920x1080
    • I can go up to 2560 x 1440, but it's too small for me to use
  • OS: Ubuntu 19.04 / Using gnome-session (not unity default_
  • Kazam: 1.4.5
    • Mode: ScreenCast
      • Full Screen
      • Options:
        • Mouse cursor: yes
        • Sound from speakers: no
        • Sound from Microphone: yes
        • Seconds to wait before capturing: 3
    • Settings:
      • Framerate: 15
      • Record with: H264 (MP4)
      • Automatic file saving: yes

Debug Output w/Bug

 teachya-> kazam --debug
/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/bin/kazam:75: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  dist = platform.linux_distribution()
DEBUG Kazam - Starting ...
DEBUG Kazam - Running on: Ubuntu 19.04
DEBUG Kazam - Kazam version: 1.4.5 NCC-80102
DEBUG Kazam - Starting new instance ...
DEBUG Prefs - XDG_PICTURES is a directory and accessible
DEBUG Prefs-HW - Getting hardware specs
DEBUG Prefs-HW - Getting Video sources.
DEBUG Prefs-HW - Found 1 monitor(s).
DEBUG Prefs-HW -   Monitor 0 - X: 0, Y: 0, W: 1920, H: 1080
/usr/lib/python3/dist-packages/kazam/frontend/window_area.py:30: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_version('Wnck', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GObject, Gdk, Wnck, GdkX11
/usr/lib/python3/dist-packages/kazam/backend/gstreamer.py:35: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gst
/usr/lib/python3/dist-packages/kazam/frontend/indicator.py:148: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3
DEBUG Main - Gstreamer version detected: 1.15.90.0
DEBUG Main - Setting variables.
DEBUG PulseAudio - Starting mainloop.
DEBUG PulseAudio - Getting API.
DEBUG PulseAudio - Setting context.
DEBUG PulseAudio - Set state callback.
DEBUG PulseAudio - Connecting to server.
DEBUG PulseAudio - Start mainloop.
DEBUG PulseAudio - State connected.
DEBUG Main - Connecting indicator signals.
DEBUG Main - Starting in silent mode: False
DEBUG Indicator - Indicatior silent: False
/usr/lib/python3/dist-packages/kazam/frontend/indicator.py:97: PyGIWarning: Keybinder was imported without specifying a version first. Use gi.require_version('Keybinder', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Keybinder
DEBUG Indicator - Trying to bind hotkeys.
DEBUG Main - Main Window UI setup.
/usr/lib/python3/dist-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
  self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))
DEBUG Main - Unable to get name for '<Gtk.Adjustment object at 0x7fd2689ccfc0 (GtkAdjustment at 0x2074c10)>'

(kazam:17424): Gtk-WARNING **: 15:02:48.295: Can't set a parent on widget which has a parent

(kazam:17424): Gtk-WARNING **: 15:02:48.303: Can't set a parent on widget which has a parent
DEBUG Prefs - Getting Audio sources.
DEBUG PulseAudio - get_audio_sources() called.
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio -   IDX: 0
DEBUG PulseAudio -   Name: b'alsa_output.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-stereo.monitor'
DEBUG PulseAudio -   Desc: b'Monitor of USB-BH209A Analog Stereo'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio -   IDX: 1
DEBUG PulseAudio -   Name: b'alsa_input.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-mono'
DEBUG PulseAudio -   Desc: b'USB-BH209A Analog Mono'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio -   IDX: 2
DEBUG PulseAudio -   Name: b'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
DEBUG PulseAudio -   Desc: b'Monitor of Built-in Audio Analog Stereo'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio -   IDX: 3
DEBUG PulseAudio -   Name: b'alsa_input.pci-0000_00_1b.0.analog-stereo'
DEBUG PulseAudio -   Desc: b'Built-in Audio Analog Stereo'
DEBUG PulseAudio - pa_sourcelist_cb() -- finished
DEBUG Prefs -  Device found:
DEBUG Prefs -   - 0
DEBUG Prefs -   - alsa_output.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-stereo.monitor
DEBUG Prefs -   - Monitor of USB-BH209A Analog Stereo
DEBUG Prefs -  Device found:
DEBUG Prefs -   - 1
DEBUG Prefs -   - alsa_input.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-mono
DEBUG Prefs -   - USB-BH209A Analog Mono
DEBUG Prefs -  Device found:
DEBUG Prefs -   - 2
DEBUG Prefs -   - alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG Prefs -   - Monitor of Built-in Audio Analog Stereo
DEBUG Prefs -  Device found:
DEBUG Prefs -   - 3
DEBUG Prefs -   - alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG Prefs -   - Built-in Audio Analog Stereo
DEBUG Main - Capture cursor: True.
DEBUG Main - Capture microphone: True.
DEBUG Main - Capture cursor_pic: True.
DEBUG Main - Capture borders_pic: True.
DEBUG Main - Start delay now: 3
DEBUG Indicator - KEY <Super><Ctrl>R, ACTION start-request
DEBUG Main - Start recording selected.
DEBUG GStreamer - Audio_source : None
DEBUG GStreamer - Audio2_source : alsa_input.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-mono
DEBUG GStreamer - Video_source: {'x': 0, 'y': 0, 'width': 1920, 'height': 1080}
DEBUG GStreamer - Xid: None
DEBUG GStreamer - Area: None
DEBUG GStreamer - Capture Cursor: True
DEBUG GStreamer - Framerate : 15.0
DEBUG GStreamer - Coordinates SX: 0 SY: 0 EX: 1919 EY: 1079
DEBUG GStreamer - testing for xid: None
DEBUG GStreamer - Codec: H264 (MP4)
DEBUG GStreamer - Setup audio elements.
DEBUG GStreamer - Audio2 Source:
  alsa_input.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-mono
DEBUG GStreamer - Filesink: /home/teachya/kazam_ejmytikx.movie
DEBUG GStreamer - Linking Video
DEBUG GStreamer -  Link audio2src -> aud2_in_queue: True
DEBUG GStreamer -  Link aud2_in_queue -> aud2_caps_filter: True
DEBUG GStreamer -  Link aud2_caps_filter -> audioconv: True
DEBUG GStreamer - Link audioconv -> audioenc: True
DEBUG GStreamer - Link audioenc -> aud_out_queue: True
DEBUG GStreamer - Link aud_out_queue -> mux: True
DEBUG GStreamer - Link mux -> file queue: True
DEBUG GStreamer - Link file queue -> sink: True
DEBUG Main - Hiding main window.
DEBUG Main - Counter finished.
DEBUG Indicator - Recording started.
DEBUG GStreamer - Setting STATE_PLAYING
DEBUG Indicator - KEY <Super><Ctrl>F, ACTION stop-request
DEBUG Indicator - Recording stopped.
DEBUG Main - Stop request.
DEBUG GStreamer - Sending new EOS event
DEBUG Main - Recorded tmp file: /home/teachya/kazam_ejmytikx.movie
DEBUG Main - Waiting for data to flush.
DEBUG GStreamer - Received EOS, setting pipeline to NULL.
DEBUG GStreamer - Emitting flush-done.
DEBUG Main - Autosaving enabled.

Debug Output without Bug

teachya-> kazam --debug
/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/bin/kazam:75: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  dist = platform.linux_distribution()
DEBUG Kazam - Starting ...
DEBUG Kazam - Running on: Ubuntu 19.04
DEBUG Kazam - Kazam version: 1.4.5 NCC-80102
DEBUG Kazam - Starting new instance ...
DEBUG Prefs - XDG_PICTURES is a directory and accessible
DEBUG Prefs-HW - Getting hardware specs
DEBUG Prefs-HW - Getting Video sources.
DEBUG Prefs-HW - Found 1 monitor(s).
DEBUG Prefs-HW -   Monitor 0 - X: 0, Y: 0, W: 1920, H: 1080
/usr/lib/python3/dist-packages/kazam/frontend/window_area.py:30: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_version('Wnck', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GObject, Gdk, Wnck, GdkX11
/usr/lib/python3/dist-packages/kazam/backend/gstreamer.py:35: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gst
/usr/lib/python3/dist-packages/kazam/frontend/indicator.py:148: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3
DEBUG Main - Gstreamer version detected: 1.15.90.0
DEBUG Main - Setting variables.
DEBUG PulseAudio - Starting mainloop.
DEBUG PulseAudio - Getting API.
DEBUG PulseAudio - Setting context.
DEBUG PulseAudio - Set state callback.
DEBUG PulseAudio - Connecting to server.
DEBUG PulseAudio - Start mainloop.
DEBUG PulseAudio - State connected.
DEBUG Main - Connecting indicator signals.
DEBUG Main - Starting in silent mode: False
DEBUG Indicator - Indicatior silent: False
/usr/lib/python3/dist-packages/kazam/frontend/indicator.py:97: PyGIWarning: Keybinder was imported without specifying a version first. Use gi.require_version('Keybinder', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Keybinder
DEBUG Indicator - Trying to bind hotkeys.
DEBUG Main - Main Window UI setup.
/usr/lib/python3/dist-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
  self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))
DEBUG Main - Unable to get name for '<Gtk.Adjustment object at 0x7f30dee9eee8 (GtkAdjustment at 0x31a7c10)>'

(kazam:6837): Gtk-WARNING **: 15:06:04.160: Can't set a parent on widget which has a parent

(kazam:6837): Gtk-WARNING **: 15:06:04.168: Can't set a parent on widget which has a parent
DEBUG Prefs - Getting Audio sources.
DEBUG PulseAudio - get_audio_sources() called.
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio -   IDX: 0
DEBUG PulseAudio -   Name: b'alsa_output.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-stereo.monitor'
DEBUG PulseAudio -   Desc: b'Monitor of USB-BH209A Analog Stereo'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio -   IDX: 1
DEBUG PulseAudio -   Name: b'alsa_input.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-mono'
DEBUG PulseAudio -   Desc: b'USB-BH209A Analog Mono'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio -   IDX: 2
DEBUG PulseAudio -   Name: b'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
DEBUG PulseAudio -   Desc: b'Monitor of Built-in Audio Analog Stereo'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio -   IDX: 3
DEBUG PulseAudio -   Name: b'alsa_input.pci-0000_00_1b.0.analog-stereo'
DEBUG PulseAudio -   Desc: b'Built-in Audio Analog Stereo'
DEBUG PulseAudio - pa_sourcelist_cb() -- finished
DEBUG Prefs -  Device found:
DEBUG Prefs -   - 0
DEBUG Prefs -   - alsa_output.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-stereo.monitor
DEBUG Prefs -   - Monitor of USB-BH209A Analog Stereo
DEBUG Prefs -  Device found:
DEBUG Prefs -   - 1
DEBUG Prefs -   - alsa_input.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-mono
DEBUG Prefs -   - USB-BH209A Analog Mono
DEBUG Prefs -  Device found:
DEBUG Prefs -   - 2
DEBUG Prefs -   - alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG Prefs -   - Monitor of Built-in Audio Analog Stereo
DEBUG Prefs -  Device found:
DEBUG Prefs -   - 3
DEBUG Prefs -   - alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG Prefs -   - Built-in Audio Analog Stereo
DEBUG Main - Capture cursor: True.
DEBUG Main - Capture microphone: True.
DEBUG Main - Capture cursor_pic: True.
DEBUG Main - Capture borders_pic: True.
DEBUG Main - Start delay now: 3
DEBUG Indicator - KEY <Super><Ctrl>R, ACTION start-request
DEBUG Main - Start recording selected.
DEBUG GStreamer - Audio_source : None
DEBUG GStreamer - Audio2_source : alsa_input.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-mono
DEBUG GStreamer - Video_source: {'x': 0, 'y': 0, 'width': 1920, 'height': 1080}
DEBUG GStreamer - Xid: None
DEBUG GStreamer - Area: None
DEBUG GStreamer - Capture Cursor: True
DEBUG GStreamer - Framerate : 15.0
DEBUG GStreamer - Coordinates SX: 0 SY: 0 EX: 1919 EY: 1079
DEBUG GStreamer - testing for xid: None
DEBUG GStreamer - Codec: H264 (MP4)
DEBUG GStreamer - Setup audio elements.
DEBUG GStreamer - Audio2 Source:
  alsa_input.usb-DeSheng_Electronics_Inc._USB-BH209A-00.analog-mono
DEBUG GStreamer - Filesink: /home/teachya/kazam_arehloy8.movie
DEBUG GStreamer - Linking Video
DEBUG GStreamer -  Link audio2src -> aud2_in_queue: True
DEBUG GStreamer -  Link aud2_in_queue -> aud2_caps_filter: True
DEBUG GStreamer -  Link aud2_caps_filter -> audioconv: True
DEBUG GStreamer - Link audioconv -> audioenc: True
DEBUG GStreamer - Link audioenc -> aud_out_queue: True
DEBUG GStreamer - Link aud_out_queue -> mux: True
DEBUG GStreamer - Link mux -> file queue: True
DEBUG GStreamer - Link file queue -> sink: True
DEBUG Main - Hiding main window.
DEBUG Main - Counter finished.
DEBUG Indicator - Recording started.
DEBUG GStreamer - Setting STATE_PLAYING
DEBUG Indicator - KEY <Super><Ctrl>F, ACTION stop-request
DEBUG Indicator - Recording stopped.
DEBUG Main - Stop request.
DEBUG GStreamer - Sending new EOS event
DEBUG Main - Recorded tmp file: /home/teachya/kazam_arehloy8.movie
DEBUG Main - Waiting for data to flush.
DEBUG GStreamer - Received EOS, setting pipeline to NULL.
DEBUG GStreamer - Emitting flush-done.
DEBUG Main - Autosaving enabled.
^CTraceback (most recent call last):
  File "/usr/bin/kazam", line 151, in <module>
    Gtk.main()
  File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 1630, in main
    return _Gtk_main(*args, **kwargs)
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "/usr/lib/python3/dist-packages/gi/_ossighelper.py", line 251, in register_sigint_fallback
    signal.default_int_handler(signal.SIGINT, None)
KeyboardInterrupt
[~]

Is this project still alive?

I've been using the Kazam application for a couple of months. I have some problems already reported in issues but it does not has a response or commit. The last commits are from years ago and the software looks like it is losing compatibility with modern operating systems.

[Enhancement] - default screen choice

In general kazam is nice and easy to use, I tend to do more screen shots than screencast's, however i often accidentally screencast initially because it always defaults to screencast when you open it. A nice feature would be preferences to allow the user to choose what screen is default when opening

python 3.6.8, AttributeError: 'KazamConfig' object has no attribute 'default_section'

kazam
/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
Traceback (most recent call last):
  File "/usr/bin/kazam", line 146, in <module>
    from kazam.app import KazamApp
  File "/usr/lib/python3/dist-packages/kazam/app.py", line 35, in <module>
    from kazam.backend.prefs import *
  File "/usr/lib/python3/dist-packages/kazam/backend/prefs.py", line 478, in <module>
    prefs = Prefs()
  File "/usr/lib/python3/dist-packages/kazam/backend/prefs.py", line 119, in __init__
    self.config = KazamConfig()
  File "/usr/lib/python3/dist-packages/kazam/backend/config.py", line 76, in __init__
    super().__init__(self)
  File "/usr/lib/python3.6/configparser.py", line 614, in __init__
    for key, value in defaults.items():
  File "/usr/lib/python3.6/_collections_abc.py", line 743, in __iter__
    for key in self._mapping:
  File "/usr/lib/python3.6/configparser.py", line 989, in __iter__
    return itertools.chain((self.default_section,), self._sections.keys())
AttributeError: 'KazamConfig' object has no attribute 'default_section'

"/usr/lib/python3.6/configparser.py", line 989 looks like:

    def __iter__(self):
        # XXX does it break when underlying container state changed?
        return itertools.chain((self.default_section,), self._sections.keys())

Kazam not working on Python 3.5.3

It seems tha Kazam is not working on Python 3.5

$ python3 -V
Python 3.5.3

Steps:

  1. Download kazam from https://launchpad.net/kazam/stable/1.4.5/+download/kazam-1.4.5.tar.gz
  2. Unpack
  3. Install with:
sudo python3 setup.py install
  1. Run kazam
$ kazam
/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
Traceback (most recent call last):
  File "/usr/bin/kazam", line 146, in <module>
    from kazam.app import KazamApp
  File "/usr/lib/python3.5/site-packages/kazam/app.py", line 35, in <module>
    from kazam.backend.prefs import *
  File "/usr/lib/python3.5/site-packages/kazam/backend/prefs.py", line 478, in <module>
    prefs = Prefs()
  File "/usr/lib/python3.5/site-packages/kazam/backend/prefs.py", line 121, in __init__
    self.read_config()
  File "/usr/lib/python3.5/site-packages/kazam/backend/prefs.py", line 199, in read_config
    self.audio_source = int(self.config.get("main", "audio_source"))
  File "/usr/lib/python3.5/site-packages/kazam/backend/config.py", line 103, in get
    return ConfigParser.get(self, section, key)
  File "/usr/lib64/python3.5/configparser.py", line 797, in get
    d)
  File "/usr/lib64/python3.5/configparser.py", line 393, in before_get
    self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File "/usr/lib64/python3.5/configparser.py", line 406, in _interpolate_some
    rawval = parser.get(section, option, raw=True, fallback=rest)
TypeError: get() got an unexpected keyword argument 'raw'

Bitrate option

It's good to have a FPS option when recording a screencast but the size of the video can be still quite huge.
For example, a video of 439*253 resolution, at the ridiculous FPS of 8 FPS, on WEBM format, gives me a video of 60MB!
I need to go through ffmpeg program to manually change the bitrate and so the size of the video.
It would be great to have a bitrate option

Kazam Failed to correctly detect operating system

Hi, I'm a newbie, and I'm using Manajaro bspwm community edtion.
My kazam crashes on start.

WARNING Kazam - Failed to correctly detect operating system.
Traceback (most recent call last):
File "/usr/bin/kazam", line 129, in
bus = dbus.SessionBus()
File "/usr/lib/python3.8/site-packages/dbus/_dbus.py", line 212, in new
return Bus.new(cls, Bus.TYPE_SESSION, private=private,
File "/usr/lib/python3.8/site-packages/dbus/_dbus.py", line 102, in new
bus = BusConnection.new(subclass, bus_type, mainloop=mainloop)
File "/usr/lib/python3.8/site-packages/dbus/bus.py", line 124, in new
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoServer: Failed to connect to socket /tmp/dbus-bY2CkhNA9I: Connection refused

Unusable with hidpi screens

Unfortunately kazam records only the quarter of the screen when trying to record the full screen. This is because of hidpi screen (UHD) instead of FHD screen.
At the moment, this software is just useless which is a shame as it is otherwise really great! Please could you address this issue.
Many thanks.

Increase range of countdown for timer-based recordings

In some cases, it would be great to start recording at a later time, e.g. to have a timer. This could be achieved using the countdown, but unfortunately, it is limited to 10s.
Therefore, it would be great to extend the range of the countdown to, say, 9999s.

Ubuntu 20.04 error - no detection spikers

py-foi pc in ~
○ → kazam
WARNING Kazam - Failed to correctly detect operating system.
/usr/lib/python3/dist-packages/kazam/app.py:145: Warning: value "((GtkIconSize) 32)" of type 'GtkIconSize' is invalid or out of range for property 'icon-size' of type 'GtkIconSize'
self.builder.add_from_file(os.path.join(prefs.datadir, "ui", "kazam.ui"))

(kazam:190249): Gtk-WARNING **: 16:22:30.197: Can't set a parent on widget which has a parent

(kazam:190249): Gtk-WARNING **: 16:22:30.208: Can't set a parent on widget which has a parent
WARNING Prefs - Unable to find any audio devices.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kazam/frontend/preferences.py", line 256, in cb_audio2_changed
pa_audio2_idx = prefs.mic_sources[prefs.audio2_source][0]
IndexError: list index out of range

py-foi pc in ~
○ →

can't get file after crash

Before finishing recording a screencast my computer shutdown and I ended up with two files .movie and .movie.mux.

Could you tell me how I can encode the video from these files please ?

Thank you

kazma not open in archlinux kde

python --version
Python 3.8.0

/usr/bin/kazam:32: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk WARNING Kazam - Failed to correctly detect operating system. Traceback (most recent call last): File "/usr/bin/kazam", line 81, in <module> from kazam.version import * ModuleNotFoundError: No module named 'kazam'
'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.