sound source is always the microphone if earphones are plugged

Bug #1643290 reported by Alexander Trufanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kazam Screencaster
New
Undecided
Unassigned

Bug Description

kazam 1.4.5 'NCC-80102'
Kubuntu 16.10 Linux 'Lenovo G780' 4.8.0-26-generic #28-Ubuntu SMP Tue Oct 18 14:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
pulseaudio 9.0

I'm trying to record video and audio stream while my earphones are plugged in (just to do this more silently). It works(?) if earphones are unplugged and defenitely records only microphone if earphones are plugged in. I've tried with both settings switched on\off.

Launch with speakers recording:
/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
DEBUG Kazam - Starting ...
DEBUG Kazam - Running on: Ubuntu 16.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 1 monitor(s).
DEBUG Prefs-HW - Monitor 0 - X: 0, Y: 0, W: 1360, H: 768
/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.8.3.0
DEBUG Main - Setting variables.

(kazam:9491): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(kazam:9491): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(kazam:9491): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
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 0x7f2586db7630 (GtkAdjustment at 0x55c1fde13940)>'

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

(kazam:9491): Gtk-WARNING **: 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_1b.0.analog-stereo.monitor'
DEBUG PulseAudio - Desc: b'Monitor of \xd0\x92\xd1\x81\xd1\x82\xd1\x80\xd0\xbe\xd0\xb5\xd0\xbd\xd0\xbd\xd0\xbe\xd0\xb5 \xd0\xb0\xd1\x83\xd0\xb4\xd0\xb8\xd0\xbe \xd0\x90\xd0\xbd\xd0\xb0\xd0\xbb\xd0\xbe\xd0\xb3\xd0\xbe\xd0\xb2\xd1\x8b\xd0\xb9 \xd1\x81\xd1\x82\xd0\xb5\xd1\x80\xd0\xb5\xd0\xbe'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio - IDX: 1
DEBUG PulseAudio - Name: b'alsa_input.pci-0000_00_1b.0.analog-stereo'
DEBUG PulseAudio - Desc: b'\xd0\x92\xd1\x81\xd1\x82\xd1\x80\xd0\xbe\xd0\xb5\xd0\xbd\xd0\xbd\xd0\xbe\xd0\xb5 \xd0\xb0\xd1\x83\xd0\xb4\xd0\xb8\xd0\xbe \xd0\x90\xd0\xbd\xd0\xb0\xd0\xbb\xd0\xbe\xd0\xb3\xd0\xbe\xd0\xb2\xd1\x8b\xd0\xb9 \xd1\x81\xd1\x82\xd0\xb5\xd1\x80\xd0\xb5\xd0\xbe'
DEBUG PulseAudio - pa_sourcelist_cb() -- finished
DEBUG Prefs - Device found:
DEBUG Prefs - - 0
DEBUG Prefs - - alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG Prefs - - Monitor of Встроенное аудио Аналоговый стерео
DEBUG Prefs - Device found:
DEBUG Prefs - - 1
DEBUG Prefs - - alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG Prefs - - Встроенное аудио Аналоговый стерео
DEBUG Main - Capture microphone: True.
DEBUG Main - Capture cursor_pic: True.
DEBUG Main - Capture borders_pic: True.
DEBUG Main - Capture speakers: True.
DEBUG Main - Capture microphone: False.
DEBUG Main - Area ON.
DEBUG Window Select - Initializing select window.
DEBUG Window Select - Compositing window manager detected.
DEBUG Main - Area mode clicked.
DEBUG Window Select - Selected coords: 170 109 732 457
DEBUG Main - Area selected: SX: 170, SY: 109, EX: 732, EY: 457
DEBUG Main - Area selected: GX: 170, GY: 109, GX: 732, GY: 457
DEBUG Window Select - Move to X: 0 Y: 0
DEBUG Main - Record clicked, invoking Screencast.
DEBUG GStreamer - Audio_source : alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG GStreamer - Audio2_source : None
DEBUG GStreamer - Video_source: {'height': 768, 'x': 0, 'width': 1360, 'y': 0}
DEBUG GStreamer - Xid: None
DEBUG GStreamer - Area: (170, 109, 732, 457, 562, 348)
DEBUG GStreamer - Capture Cursor: False
DEBUG GStreamer - Framerate : 30.0
DEBUG GStreamer - Capturing area.
DEBUG GStreamer - Coordinates SX: 170 SY: 109 EX: 731 EY: 456
DEBUG GStreamer - testing for xid: None
DEBUG GStreamer - Codec: H264 (MP4)
DEBUG GStreamer - Setup audio elements.
DEBUG GStreamer - Audio1 Source:
  alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG GStreamer - Filesink: /home/truf/Videos/kazam_sd1qn1d8.movie
DEBUG GStreamer - Linking Video
DEBUG GStreamer - Linking Audio
DEBUG GStreamer - Link audiosrc -> aud_in_queue: True
DEBUG GStreamer - Link aud_in_queue -> aud_caps_filter: True
DEBUG GStreamer - Link aud_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 - Showing recording outline.
DEBUG Outline Window - Initializing outline window.
DEBUG Outline Window - Compositing window manager detected.
DEBUG Outline Window - Trying to determine Unity Launcher and Panel sizes.
DEBUG Outline Window - Got all sizes.
DEBUG Main - Counter finished.
DEBUG Indicator - Recording started.
DEBUG GStreamer - Setting STATE_PLAYING
DEBUG Indicator - Recording stopped.
DEBUG Main - Stop request.
DEBUG GStreamer - Sending new EOS event
DEBUG Main - Recorded tmp file: /home/truf/Videos/kazam_sd1qn1d8.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 Main - Quit requested.
INFO Main - Unable to delete one of the temporary files. Check your temporary directory.
DEBUG PulseAudio - Disconnecting from server.
DEBUG Kazam - Finishing ...

Launch with microphone setting on:

/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
DEBUG Kazam - Starting ...
DEBUG Kazam - Running on: Ubuntu 16.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 1 monitor(s).
DEBUG Prefs-HW - Monitor 0 - X: 0, Y: 0, W: 1360, H: 768
/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.8.3.0
DEBUG Main - Setting variables.

(kazam:9433): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(kazam:9433): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(kazam:9433): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
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 0x7fdadd49e5e8 (GtkAdjustment at 0x56279fbbf140)>'

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

(kazam:9433): Gtk-WARNING **: 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_1b.0.analog-stereo.monitor'
DEBUG PulseAudio - Desc: b'Monitor of \xd0\x92\xd1\x81\xd1\x82\xd1\x80\xd0\xbe\xd0\xb5\xd0\xbd\xd0\xbd\xd0\xbe\xd0\xb5 \xd0\xb0\xd1\x83\xd0\xb4\xd0\xb8\xd0\xbe \xd0\x90\xd0\xbd\xd0\xb0\xd0\xbb\xd0\xbe\xd0\xb3\xd0\xbe\xd0\xb2\xd1\x8b\xd0\xb9 \xd1\x81\xd1\x82\xd0\xb5\xd1\x80\xd0\xb5\xd0\xbe'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio - IDX: 1
DEBUG PulseAudio - Name: b'alsa_input.pci-0000_00_1b.0.analog-stereo'
DEBUG PulseAudio - Desc: b'\xd0\x92\xd1\x81\xd1\x82\xd1\x80\xd0\xbe\xd0\xb5\xd0\xbd\xd0\xbd\xd0\xbe\xd0\xb5 \xd0\xb0\xd1\x83\xd0\xb4\xd0\xb8\xd0\xbe \xd0\x90\xd0\xbd\xd0\xb0\xd0\xbb\xd0\xbe\xd0\xb3\xd0\xbe\xd0\xb2\xd1\x8b\xd0\xb9 \xd1\x81\xd1\x82\xd0\xb5\xd1\x80\xd0\xb5\xd0\xbe'
DEBUG PulseAudio - pa_sourcelist_cb() -- finished
DEBUG Prefs - Device found:
DEBUG Prefs - - 0
DEBUG Prefs - - alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG Prefs - - Monitor of Встроенное аудио Аналоговый стерео
DEBUG Prefs - Device found:
DEBUG Prefs - - 1
DEBUG Prefs - - alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG Prefs - - Встроенное аудио Аналоговый стерео
DEBUG Main - Capture microphone: True.
DEBUG Main - Capture cursor_pic: True.
DEBUG Main - Capture borders_pic: True.
DEBUG Main - Area ON.
DEBUG Window Select - Initializing select window.
DEBUG Window Select - Compositing window manager detected.
DEBUG Main - Area mode clicked.
DEBUG Window Select - Selected coords: 166 85 738 456
DEBUG Main - Area selected: SX: 166, SY: 85, EX: 738, EY: 456
DEBUG Main - Area selected: GX: 166, GY: 85, GX: 738, GY: 456
DEBUG Window Select - Move to X: 0 Y: 0
DEBUG Main - Record clicked, invoking Screencast.
DEBUG GStreamer - Audio_source : None
DEBUG GStreamer - Audio2_source : alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG GStreamer - Video_source: {'x': 0, 'y': 0, 'height': 768, 'width': 1360}
DEBUG GStreamer - Xid: None
DEBUG GStreamer - Area: (166, 85, 738, 456, 572, 371)
DEBUG GStreamer - Capture Cursor: False
DEBUG GStreamer - Framerate : 30.0
DEBUG GStreamer - Capturing area.
DEBUG GStreamer - Coordinates SX: 166 SY: 85 EX: 737 EY: 456
DEBUG GStreamer - testing for xid: None
DEBUG GStreamer - Codec: H264 (MP4)
DEBUG GStreamer - Setup audio elements.
DEBUG GStreamer - Audio2 Source:
  alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG GStreamer - Filesink: /home/truf/Videos/kazam_yftp4npx.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 - Showing recording outline.
DEBUG Outline Window - Initializing outline window.
DEBUG Outline Window - Compositing window manager detected.
DEBUG Outline Window - Trying to determine Unity Launcher and Panel sizes.
DEBUG Outline Window - Got all sizes.
DEBUG Main - Counter finished.
DEBUG Indicator - Recording started.
DEBUG GStreamer - Setting STATE_PLAYING
DEBUG Indicator - Recording stopped.
DEBUG Main - Stop request.
DEBUG GStreamer - Sending new EOS event
DEBUG Main - Recorded tmp file: /home/truf/Videos/kazam_yftp4npx.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 Main - Quit requested.
INFO Main - Unable to delete one of the temporary files. Check your temporary directory.
DEBUG PulseAudio - Disconnecting from server.
DEBUG Kazam - Finishing ...

Revision history for this message
Alexander Trufanov (truf) wrote :

I'm not sure if it's the app problem now.
I was able to bypass it by switching from "Internal Audio Analog Stereo" to "Monitor of Internal Audio Analog Stereo" in Record tab of Pulse Audio Volume Control. The Kazam must be running and recording to appear in it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.