question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NaN index of audio source

See original GitHub issue

For some reason, the index of any audio sources I have is shown as NaN, making it so I can’t select it.

My system:

~/programy/Mon2Cam/src $ inxi -Fx
System:
  Host: pecet Kernel: 5.8.0-8.1-liquorix-amd64 x86_64 bits: 64 
  compiler: N/A Desktop: KDE Plasma 5.19.5 
  Distro: Debian GNU/Linux bullseye/sid 
Machine:
  Type: Desktop System: Dell product: OptiPlex 790 v: 01 
  serial: <superuser/root required> 
  Mobo: Dell model: 0J3C2F v: A00 serial: <superuser/root required> 
  BIOS: Dell v: A07 date: 09/10/2011 
CPU:
  Info: Quad Core model: Intel Core i5-2400 bits: 64 type: MCP 
  arch: Sandy Bridge rev: 7 L2 cache: 6144 KiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 24742 
  Speed: 2456 MHz min/max: 1600/3101 MHz Core speeds (MHz): 1: 2826 2: 2285 
  3: 2588 4: 3239 
Graphics:
  Device-1: NVIDIA GK106 [GeForce GTX 660] vendor: Micro-Star MSI 
  driver: nvidia v: 450.66 bus ID: 03:00.0 
  Display: x11 server: X.Org 1.20.8 driver: nvidia resolution: 1280x1024 
  OpenGL: renderer: GeForce GTX 660/PCIe/SSE2 v: 4.6.0 NVIDIA 450.66 
  direct render: Yes 
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio 
  vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  Device-2: NVIDIA GK106 HDMI Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 03:00.1 
  Device-3: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo 
  bus ID: 2-1.2:4 
  Sound Server: ALSA v: k5.8.0-8.1-liquorix-amd64 
Network:
  Device-1: Intel 82579LM Gigabit Network vendor: Dell driver: e1000e 
  v: 3.2.6-k port: 4040 bus ID: 00:19.0 
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: 18:03:73:b0:66:be 
Drives:
  Local Storage: total: 1.02 TiB used: 725.01 GiB (69.5%) 
  ID-1: /dev/sda vendor: Seagate model: ST1000DM003-1SB10C size: 931.51 GiB 
  ID-2: /dev/sdb vendor: GOODRAM model: N/A size: 111.79 GiB 
Partition:
  ID-1: / size: 58.81 GiB used: 37.80 GiB (64.3%) fs: ext4 dev: /dev/sdb3 
  ID-2: /home size: 901.04 GiB used: 687.21 GiB (76.3%) fs: ext4 
  dev: /dev/sda1 
Swap:
  ID-1: swap-1 type: partition size: 15.09 GiB used: 0 KiB (0.0%) 
  dev: /dev/sda5 
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A gpu: nvidia temp: 47 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 33% 
Info:
  Processes: 248 Uptime: 1h 01m Memory: 7.73 GiB used: 2.32 GiB (29.9%) 
  Init: systemd runlevel: 5 Compilers: gcc: 10.2.0 clang: 9.0.1-14 
  Packages: 4164 Shell: Zsh v: 5.8 inxi: 3.1.06 
~/programy/Mon2Cam/src $ 

Log (trying VLC here):

~/programy/Mon2Cam/src $ ~/programy/deno run -A -r -q --unstable --no-check mod.ts -r 1920:1080 -b -s
NaN: VLC media player (LibVLC 3.0.11.1)
Choose which applications you want to route(space separated list):

ParsedOutputElement { index: -1, arguments: {}, properties: {} }
ParsedOutputElement {
  index: NaN,
  arguments: {
    Stan: "SUSPENDED",
    Nazwa: "VirtualSinkMIC.7.monitor",
    Opis: "Monitor of Mon2CamMicrophoneSink",
    Sterownik: "module-null-sink.c",
    "Okre��lenie pr��bki": "s16le 2 k 44100���Hz",
    "Mapa kana����w": "front-left,front-right",
    "W��a��ciciel modu��u": "34",
    Wyciszenie: "nie",
    "Poziom g��o��no��ci": "front-left",
    "G��o��no���� podstawowa": "65536 / 100% / 0,00 dB",
    "Monitor odp��ywu": "VirtualSinkMIC.7",
    "Op����nienie": "0���us, skonfigurowano 0���us"
  },
  properties: {
    "device.description": '"Monitor of Mon2CamMicrophoneSink"',
    "device.class": '"monitor"',
    "device.icon_name": '"audio-input-microphone"'
  }
}
INFO No valid sources found
WARN No applications, nor any sources passed. Why are you using the sound flag?
~/programy/Mon2Cam/src $ 

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
botiapacommented, Oct 12, 2020

Yeah, the program can only parse the english version. Glad it worked out.

TODO: Add LANG= before commands, so this doesn’t happen.

0reactions
ShayBoxcommented, Nov 20, 2020

I pushed a change that should fix non English lang systems

Read more comments on GitHub >

github_iconTop Results From Across the Web

NaN values in decoded audio data - Stack Overflow
I want to get pcm samples from audio file using MediaCodec . I successfully got them, but there are NaN values in decoded...
Read more >
Getting NaN and Inf values after extracting features from Audio ...
I am trying to extract audio features from audio files that range from 1 - 30 seconds. When I extract the features using...
Read more >
Nan Errors for Small Files · Issue #6 · HSU-ANT/gstpeaq
Hello,. I am using Ubuntu 17.10 with gstreamer 1.0. I've been using GST-PEAQ to estimate the divergence between audio files, and I occasionally ......
Read more >
VALVE INDEX NO AUDIO FIX - YouTube
After my latest Nvidia driver update, my speaker output in my windows sound settings could not detect my valve index and by reinstalling ......
Read more >
Nan-6 Planar Headphone Review | Page 6
There are daily reviews of audio hardware and expert members to help answer your questions. Click here to have your audio equipment measured...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found