Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not using last used settings: give users ability to save last used recording settings and folder locations #66

Open
pleabargain opened this issue Aug 31, 2024 · 8 comments
Assignees

Comments

@pleabargain
Copy link

not using last used settings:

request

give users ability to save last used recording settings and folder locations

@henrywoo
Copy link
Owner

Kazam was designed to save the last used settings. Why did you say it is not using last used settings? @pleabargain

@pleabargain
Copy link
Author

pleabargain commented Sep 2, 2024

kazam_b_webcam_Screencast from 02.09.2024 13:42:00.webm
Because I had set automatic file saving to a specific folder previously. Then I started a new Kazam session and the files were not saved in my specified folder.
Webcam setting
kazam_settings_a_Screencast from 02.09.2024 13:39:27.webm
is clearly not being saved in between sessions but I have a distinct feeling/memory that other settings were not preserved between sessions.

@fuhengwu2021
Copy link
Contributor

kazam_b_webcam_Screencast from 02.09.2024 13:42:00.webm Because I had set automatic file saving to a specific folder previously. Then I started a new Kazam session and the files were not saved in my specified folder. Webcam setting kazam_settings_a_Screencast from 02.09.2024 13:39:27.webm is clearly not being saved in between sessions but I have a distinct feeling/memory that other settings were not preserved between sessions.

Can you run kazam --version and see which version of kazam you are using?

@pleabargain
Copy link
Author

$ kazam --version
kazam 2.0.0 'Jammy'

@mdasgo
Copy link

mdasgo commented Oct 12, 2024

I have to notice the same problem: "not using last used settings only the variable autosave_video_dir ", but
in a old version 1.4.5 of kazam and when:

  • new instance is started
  • switch workspace
    suspected also:
  • window switching
    and sometime the preference menu does not appear anymore.

OS: debian 6.1.94-1
Xfce4

$ kazam --version
WARNING Kazam - Failed to correctly detect operating system.
kazam 1.4.5 'NCC-80102'

I don't know if the WARNING could be related to the problem, but if I don't know the OS, it could be possible to fail to guess the right location of the config file?
It's not the location of the file, the problem.

@mdasgo
Copy link

mdasgo commented Oct 12, 2024

$ kazam --debug
WARNING Kazam - Failed to correctly detect operating system.
DEBUG Kazam - Starting ...
DEBUG Kazam - Running on: Ubuntu 12.10
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 2 monitor(s).
DEBUG Prefs-HW -   Monitor 0 - X: 1920, Y: 0, W: 1920, H: 1080
DEBUG Prefs-HW -   Monitor 1 - X: 0, Y: 0, W: 1920, H: 1080
DEBUG Prefs-HW -   Combined screen - X: 0, Y: 0, W: 3840, H: 1080
DEBUG Main - Gstreamer version detected: 1.22.0.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
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 0x7f4b920111c0 (GtkAdjustment at 0x2c37550)>'

(kazam:10848): Gtk-WARNING **: 14:58:17.166: Can't set a parent on widget which has a parent

(kazam:10848): Gtk-WARNING **: 14:58:17.173: 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.pci-0000_00_1f.3.hdmi-stereo.monitor'
DEBUG PulseAudio -   Desc: b'Monitor of Built-in Audio Digital Stereo (HDMI)'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio -   IDX: 1
DEBUG PulseAudio -   Name: b'alsa_input.pci-0000_00_1f.3.analog-stereo'
DEBUG PulseAudio -   Desc: b'Built-in Audio Analog Stereo'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio -   IDX: 2
DEBUG PulseAudio -   Name: b'alsa_output.usb-1130_USB_AUDIO-00.analog-stereo.monitor'
DEBUG PulseAudio -   Desc: b'Monitor of USB  AUDIO   Analog Stereo'
DEBUG PulseAudio - pa_sourcelist_cb() -- finished
DEBUG Prefs -  Device found: 
DEBUG Prefs -   - 0
DEBUG Prefs -   - alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor
DEBUG Prefs -   - Monitor of Built-in Audio Digital Stereo (HDMI)
DEBUG Prefs -  Device found: 
DEBUG Prefs -   - 1
DEBUG Prefs -   - alsa_input.pci-0000_00_1f.3.analog-stereo
DEBUG Prefs -   - Built-in Audio Analog Stereo
DEBUG Prefs -  Device found: 
DEBUG Prefs -   - 2
DEBUG Prefs -   - alsa_output.usb-1130_USB_AUDIO-00.analog-stereo.monitor
DEBUG Prefs -   - Monitor of USB AUDIO Analog Stereo
DEBUG Main - Capture cursor: True.
DEBUG Main - Capture cursor_pic: True.
DEBUG Main - Capture borders_pic: True.
DEBUG Main - Preferences requested.
DEBUG Utils - Preferences Init.


DEBUG Utils - Preferences UI setup.
DEBUG Utils - Unable to get name for '<Gtk.Adjustment object at 0x7f4b8f653e80 (GtkAdjustment at 0x2c84f30)>'
DEBUG Utils - Unable to get name for '<Gtk.Adjustment object at 0x7f4b8f654d00 (GtkAdjustment at 0x2c84900)>'
DEBUG Utils - Unable to get name for '<Gtk.Adjustment object at 0x7f4b8f655540 (GtkAdjustment at 0x2d9b880)>'
DEBUG Utils - Autosave video folder set to: /home/usern3 <--> WRONG


DEBUG Prefs-DC - Testing for: RAW (AVI)
DEBUG Prefs-DC - Supported encoder: RAW (AVI).
DEBUG Prefs-DC - Testing for: VP8 (WEBM)
DEBUG Prefs-DC - Error loading [1, 'vp8enc', 'VP8 (WEBM)', '.webm', False] GStreamer plugin - support disabled.
DEBUG Prefs-DC - Supported encoder: VP8 (WEBM).
DEBUG Prefs-DC - Testing for: H264 (MP4)
DEBUG Prefs-DC - Error loading [2, 'x264enc', 'H264 (MP4)', '.mp4', False] GStreamer plugin - support disabled.
DEBUG Prefs-DC - Supported encoder: H264 (MP4).
DEBUG Prefs-DC - Testing for: HUFFYUV (AVI)
DEBUG Prefs-DC - Error loading [3, 'avenc_huffyuv', 'HUFFYUV (AVI)', '.avi', True] GStreamer plugin - support disabled.
DEBUG Prefs-DC - Supported encoder: HUFFYUV (AVI).
DEBUG Prefs-DC - Testing for: Lossless JPEG (AVI)
DEBUG Prefs-DC - Error loading [4, 'avenc_ljpeg', 'Lossless JPEG (AVI)', '.avi', True] GStreamer plugin - support disabled.
DEBUG Prefs-DC - Supported encoder: Lossless JPEG (AVI).
DEBUG Utils - Restoring UI.
DEBUG Utils - Audio Changed.
DEBUG Utils -   - A_1 0
DEBUG Utils -   - PA Audio1 IDX: 0
DEBUG PulseAudio - get_source_info_by_index() called. IDX: 0
DEBUG PulseAudio - pa_sourceinfo_cb()
DEBUG PulseAudio -   IDX: 0
DEBUG PulseAudio -   Name: b'alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor'
DEBUG PulseAudio -   Desc: b'Monitor of Built-in Audio Digital Stereo (HDMI)'
DEBUG PulseAudio - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - pa_sourceinfo_cb() -- Hit EOL
DEBUG PulseAudio - pa_sourceinfo_cb() -- EOL no data!
DEBUG PulseAudio - pa_sourceinfo_cb() -- finished
DEBUG Utils - Volume 1 changed, new value: 12.749866475104731
DEBUG Utils - New Audio1: Monitor of Built-in Audio Digital Stereo (HDMI)
DEBUG Utils - Audio2 Changed.
DEBUG Utils -   - A_2 0
DEBUG Utils -   - PA Audio2 IDX: 1
DEBUG PulseAudio - get_source_info_by_index() called. IDX: 1
DEBUG PulseAudio - pa_sourceinfo_cb()
DEBUG PulseAudio -   IDX: 1
DEBUG PulseAudio -   Name: b'alsa_input.pci-0000_00_1f.3.analog-stereo'
DEBUG PulseAudio -   Desc: b'Built-in Audio Analog Stereo'
DEBUG PulseAudio - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - pa_sourceinfo_cb() -- Hit EOL
DEBUG PulseAudio - pa_sourceinfo_cb() -- EOL no data!
DEBUG PulseAudio - pa_sourceinfo_cb() -- finished
DEBUG Utils - Volume 2 changed, new value: 12.749866475104731
DEBUG Utils - New Audio2:
  Built-in Audio Analog Stereo
DEBUG Utils - Countdown splash: True.

DEBUG Utils - Video autosave file set to: passoBase --> RIGHT
DEBUG Utils - Autosave video folder set to: /home/usern3 --> WRONG


DEBUG Utils - Shutter sound: True.
DEBUG Utils - Shutter type set to: 0 - 
DEBUG Utils - Autosave picture folder set to: /home/usern3/None
DEBUG Utils - Codec selected: H264 (MP4) - 2

@mdasgo
Copy link

mdasgo commented Oct 12, 2024

Steps
Open preferences
set autosave video folder
close preferences
open preferences

result:
autosave_video_dir = /home/usern3

espected:
autosave_video_dir = /home/usern3/010_progress/tango/videos/51_basicSteps

DEBUG Utils - Volume 1 changed, new value: 39.0
DEBUG Utils - Autosave video folder set to: /home/usern3/010_progress/tango/videos/51_basicSteps
DEBUG Utils - Autosave video folder set to: /home/usern3/010_progress/tango/videos/51_basicSteps

set two times video folder when close the preferences window?

DEBUG Utils - Deleting preferences window
...
DEBUG Main - Preferences requested.
DEBUG Utils - Preferences Init.
DEBUG Utils - Preferences UI setup.
DEBUG Utils - Unable to get name for '<Gtk.Adjustment object at 0x7f4b8f67be40 (GtkAdjustment at 0x2ec4ca0)>'
DEBUG Utils - Unable to get name for '<Gtk.Adjustment object at 0x7f4b8f67c440 (GtkAdjustment at 0x2fef960)>'
DEBUG Utils - Unable to get name for '<Gtk.Adjustment object at 0x7f4b8f67cc80 (GtkAdjustment at 0x2fefa80)>'
DEBUG Utils - Autosave video folder set to: /home/usern3

...

DEBUG Utils - Countdown splash: True.
DEBUG Utils - Autosave for Video: True.
DEBUG Utils - Video autosave file set to: passoBase
DEBUG Utils - Autosave video folder set to: /home/usern3
DEBUG Utils - Shutter sound: True.
DEBUG Utils - Shutter type set to: 0 - 
DEBUG Utils - Autosave picture folder set to: /home/usern3/None
DEBUG Utils - Codec selected: H264 (MP4) - 2


DEBUG Utils - Autosave video folder set to: /home/usern3/010_progress/tango/videos/51_basicSteps
DEBUG Utils - Autosave video folder set to: /home/usern3/010_progress/tango/videos/51_basicSteps
DEBUG Utils - Deleting preferences window

@henrywoo
Copy link
Owner

You are still using the old version:

Kazam version: 1.4.5 NCC-80102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants