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

Does not play any audio on google speakers #437

Open
zany130 opened this issue Dec 12, 2023 · 1 comment
Open

Does not play any audio on google speakers #437

zany130 opened this issue Dec 12, 2023 · 1 comment

Comments

@zany130
Copy link

zany130 commented Dec 12, 2023

I tried all my google speakers (2 google home minis and 1 nest audio) and set mkchromecast as my default audio device.

no audio plays on the speakers

pacman -Qi mkchromecast-git
Name            : mkchromecast-git
Version         : 0.3.8.1.r222.g621058ed-1
mkchromecast -s --debug
ALSA device name: None
Google Cast name: None
backend: parec
USER =zany130
PATH =/home/zany130/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/Fishbowl/client/bin:/opt/android-sdk/platform-tools:/home/zany130/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/opt/flutter/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
ALSA device name: None
Google Cast name: None
backend: parec
Mkchromecast v0.3.9
Creating Pulseaudio Sink...
Open Pavucontrol and Select the Mkchromecast Sink.
Starting Local Streaming Server
[Done]
ALSA device name: None
Google Cast name: None
backend: parec
:::audio::: chunk_size, frame_size, buffer_size: 64, 2048, 8192
ALSA device name: None
Google Cast name: None
backend: parec
Selected backend: parec
Selected audio codec: mp3
Using bitrate: 192k
Using sample rate: 44100Hz
:::audio::: command ['lame', '-b', '192', '-r', '-']
PID of main process: 1442577
PID of streaming process: 1442581
 * Serving Flask app 'mkchromecast.audio'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://192.168.2.205:5000
Press CTRL+C to quit
self.cclist [[0, 'SHIELD', 'Gcast'], [1, 'Miranda’s room speaker', 'Gcast'], [2, 'Andres Bedroom speaker 2', 'Gcast'], [3, 'Andres Bedroom speaker', 'Gcast'], [4, 'Bedroom Audio', 'Gcast']]
elif len(self.cclist) != 0 and self.mkcc.select_device == True and self.mkcc.tray == False:

List of Devices Available in Network:
-------------------------------------

Index   Types   Friendly Name
=====   =====   =============
0 	Gcast 	SHIELD
1 	Gcast 	Miranda’s room speaker
2 	Gcast 	Andres Bedroom speaker 2
3 	Gcast 	Andres Bedroom speaker
4 	Gcast 	Bedroom Audio

Please, select the Index of the Google Cast device that you want to use:
3

Casting to: Andres Bedroom speaker

def get_devices(self):

Information about  Andres Bedroom speaker

def play_cast(self):
The IP of Andres Bedroom speaker is: 192.168.2.94
Your local IP is: 192.168.2.205

The media type string used is: audio/mpeg

Cast media controller status

CastStatus(is_active_input=None, is_stand_by=None, volume_level=0.30000001192092896, volume_muted=False, app_id=None, display_name=None, namespaces=[], session_id=None, transport_id=None, status_text='', icon_url=None, volume_control_type='master')

Remember to open pavucontrol and select the mkchromecast sink.

Ctrl-C to kill the Application at any Time
System:
  Kernel: 6.6.5-1-cachyos arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-linux
    root=UUID=53e270ad-dfd5-4874-a125-69d21ada6b8d rw rootflags=subvol=@
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
    sysrq_always_enabled=1 amdgpu.ppfeaturemask=0xffffffff tsc=reliable
    clocksource=tsc nowatchdog nmi_watchdog=0
    initrd=@\boot\initramfs-linux-cachyos.img
  Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.11 wm: kwin_wayland vt: 1
    dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: X470 Taichi serial: <superuser required>
    UEFI: American Megatrends v: P5.10 date: 10/20/2022
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 10% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
    level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
    model-id: 0x21 (33) stepping: 2 microcode: 0xA20120A
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 3853 high: 4625 min/max: 2200/4650 boost: enabled
    scaling: driver: acpi-cpufreq governor: ondemand cores: 1: 3698 2: 3698
    3: 3700 4: 3698 5: 4623 6: 3699 7: 3699 8: 3700 9: 3700 10: 3700 11: 4625
    12: 3698 bogomips: 88806
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]
    vendor: Gigabyte driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
    lanes: 16 ports: active: DP-1,DP-2,HDMI-A-2 empty: HDMI-A-1
    bus-ID: 10:00.0 chip-ID: 1002:73df class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.9 with: Xwayland v: 23.2.2
    compositor: kwin_wayland driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu d-rect: 4980x2513 display-ID: 0
  Monitor-1: DP-1 pos: bottom-r res: 2048x864 size: N/A modes: N/A
  Monitor-2: DP-2 pos: primary,top-left res: 1396x785 size: N/A modes: N/A
  Monitor-3: HDMI-A-2 pos: middle-c res: 1536x864 size: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi
    wayland: drv: radeonsi x11: drv: radeonsi
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.2.1-arch1.2
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 6700 XT (navi22 LLVM
    16.0.6 DRM 3.54 6.6.5-1-cachyos) device-ID: 1002:73df memory: 11.72 GiB
    unified: no display-ID: :0.0
  API: Vulkan v: 1.3.269 layers: 22 device: 0 type: discrete-gpu name: AMD
    Radeon RX 6700 XT (RADV NAVI22) driver: mesa radv v: 23.2.1-arch1.2
    device-ID: 1002:73df surfaces: xcb,xlib,wayland device: 1 type: cpu
    name: llvmpipe (LLVM 16.0.6 256 bits) driver: mesa llvmpipe
    v: 23.2.1-arch1.2 (LLVM 16.0.6) device-ID: 10005:0000
    surfaces: xcb,xlib,wayland
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 10:00.1 chip-ID: 1002:ab28
    class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 12:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Sony INZONE H9 / H7
    driver: cdc_acm,hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 5-3:3 chip-ID: 054c:0e53
    class-ID: 0a00
  API: ALSA v: k6.6.5-1-cachyos status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 08:00.0
    chip-ID: 8086:24fb class-ID: 0280
  IF: wlp8s0 state: down mac: <filter>
  Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 0a:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp10s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Edimax Bluetooth Adapter driver: btusb v: 0.8 type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-5:3 chip-ID: 7392:c611
    class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 5.1
    lmp-v: 10 status: discoverable: yes pairing: yes class-ID: 7c0104
Drives:
  Local Storage: total: 2.96 TiB used: 3.63 TiB (122.7%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:4 vendor: Samsung model: SSD 980 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 3B4QFXO7 temp: 38.9 C
    scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO 250GB
    size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 2B2QEXE7 temp: 27.9 C
    scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DX002-2DV164
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: CC41 scheme: GPT
Partition:
  ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 841.88 GiB (90.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:6
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 37.4 MiB (12.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:5
  ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 841.88 GiB (90.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:6
  ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 841.88 GiB (90.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:6
  ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 841.88 GiB (90.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:6
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 31.26 GiB used: 5.58 GiB (17.9%)
    priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 12
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 57.9 C mobo: 36.0 C gpu: amdgpu temp: 56.0 C
    mem: 58.0 C
  Fan Speeds (rpm): fan-1: 0 fan-2: 2202 fan-3: 0 fan-4: 0 fan-5: 0
    gpu: amdgpu fan: 0
  Power: 12v: N/A 5v: N/A 3.3v: 3.18 vbat: 3.28 gpu: amdgpu watts: 31.00
Info:
  Processes: 620 Uptime: 2h 41m wakeups: 0 Memory: total: 32 GiB
  available: 31.26 GiB used: 18.65 GiB (59.7%) Init: systemd v: 255
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Packages: 2859 pm: pacman pkgs: 2813 libs: 627 tools: octopi,paru
  pm: appimage pkgs: 0 pm: flatpak pkgs: 46 Shell: fish v: 3.6.4
  running-in: alacritty inxi: 3.3.31
Garuda (2.6.19-2):
  System install date:     2023-09-26
  Last full system update: 2023-12-11
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:
@xsdg
Copy link
Collaborator

xsdg commented Jan 5, 2024

Could you try again, adding --backend ffmpeg to your existing command? I don't know whether this will actually change the behavior, but ffmpeg tends to do some more verbose logging, which may help to understand what's going on.

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

2 participants