/media/bill/HOWELL_BASE/System_maintenance/audio/0_PulseAudio Ctrl notes - setup, problems.txt Ditial output - I don't use this? *********************** 14Oct2017 Pulseaudio setup after cold reboot Lenovo computer!! (see Dell64 below) #+-----+ #PLAYBACK of audio during vidProdn : #audio cable/jacks stereo : split audio output of system (HDA Intel) #(Xonar DG) : off -> input to [ghetto blaster, mic/in-line of CMI8786 (Xonar DG)] #for iterative [microphone record, audio playback] : set alsa (F6) at "3 Yeti stereo mic - record"! #alsamixer 1 HDA Intel #pulseaudio config CMI8786 (Xonar DG) : off #pulseaudio config High Definition Audio Controller : off #pulseaudio config Built-in Audio : Analogue Stereo Output #pulseaudio config 1.1 root hub (microphone) : off #pulseaudio config 1.1 root hub (microphone) : Digital Stereo (IEC958) Output + Analog stereo input #pulseaudio Input Dev none ... #pulseaudio Outpt Dev Built-in Audio Analog Stereo : Speakers #>> Result : # audio playback works #+-----+ (Fix later - now is for Dell64) +-----+ #Recordmydestop capture : #vlc output no changes made #alsamixer 0 Creative X-Fi #pulseaudio config CMI8786 (Xonar DG) : Digital Stereo (IEC958) Output #pulseaudio config High Definition Audio Controller : Off #pulseaudio config 1.1 root hub (microphone) : n/a #pulseaudio config Built-in Audio : Analogue Stereo Duplex #pulseaudio Input Dev CMI8786 (Xonar DG) Analog Stereo : n/a #pulseaudio Input Dev Monitor of Built-in Audio Analog Stereo : no selections #pulseaudio Input Dev Built-in Audio Analog Stereo : Analog Input #pulseaudio Input Dev Monitor of CMI8786 (Xonar DG) Analog Stereo : no selections #pulseaudio Outpt Dev CMI8786 (Xonar DG) : Digital Stereo (IEC958) #recordmydesktop --device pulse #>> Result : # rmd did NOT run, no output file generated, # ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM alsa #Couldn't open PCM device alsa #Error while opening/configuring soundcard alsa #Try running with the --no-sound or specify a correct device. #To listen to video : #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output CMI8786 (Xonar DG) Digital Stereo (IEC958) #pulseaudio Playback FireFox Audiostream on : CMI8786 (Xonar DG) Digital Stereo (IEC958) #pulseaudio Playback VLC playback on : uilt-in Audio Analog Stereo #+-----+ (Fix later - now is for Dell64) #pulseaudio Input Dev CMI8786 (Xonar DG) Analog Stereo : n/a #pulseaudio Input Dev Monitor of Built-in Audio Analog Stereo : no selections #pulseaudio Input Dev Built-in Audio Analog Stereo : Analog Input #pulseaudio Input Dev Monitor of CMI8786 (Xonar DG) Analog Stereo : no selections #pulseaudio Outpt Dev CMI8786 (Xonar DG) : Digital Stereo (IEC958) (Fix later - now is for Dell64) #+-----+ #RECORD audio file from built-in audio (eg - play video etc) : #audio cable/jacks stereo : split audio output of system (HDA Intel) # -> input to [ghetto blaster, mic/in-line of CMI8786 (Xonar DG)] #for iterative [microphone record, audio playback] : set alsa (F6) at "3 Yeti stereo mic - record"! #alsamixer 1 HDA Intel #pulseaudio config CMI8786 (Xonar DG) : off #pulseaudio config High Definition Audio Controller : off #pulseaudio config Built-in Audio : Analogue Stereo Duplex #pulseaudio config 1.1 root hub (microphone) : off #pulseaudio Input Dev Built-in Audio Analog Stereo : Analog Input #pulseaudio Outpt Dev Built-in Audio Analog Stereo : Line out (plugged in) #>> Result : # audio playback works #+-----+ (Fix later - now is for Dell64) #+-----+ #PLAYBACK of audio file : #audio cable/jacks stereo : split audio output of system (HDA Intel) # -> input to [ghetto blaster, mic/in-line of CMI8786 (Xonar DG)] #for iterative [microphone record, audio playback] : set alsa (F6) at "3 Yeti stereo mic - record"! #alsamixer 1 HDA Intel #pulseaudio config CMI8786 (Xonar DG) : off #pulseaudio config High Definition Audio Controller : off #pulseaudio config Built-in Audio : Analogue Stereo Duplex #pulseaudio config 1.1 root hub (microphone) : off #pulseaudio config 1.1 root hub (microphone) : Digital Stereo (IEC958) Output + Analog stereo input #pulseaudio Input Dev Built-in Audio Analog Stereo : Analog Input #pulseaudio Outpt Dev Built-in Audio Analog Stereo : Line out (plugged in) #>> Result : # audio playback works #+-----+ (Fix later - now is for Dell64) #+-----+ #Blue Yeti microphone capture #audio cable/jacks split audio output of system (HDA Intel) # -> input to [ghetto blaster, mic/line of CMI8786 (Xonar DG)] #for iterative [microphone record, audio playback] : set alsa (F6) at "3 Yeti stereo mic - record"! #alsamixer F6 3 Yeti stereo microphone #pulseaudio config CMI8786 (Xonar DG) : off #pulseaudio config High Definition Audio Controller : off #pulseaudio config Built-in Audio : Analogue Stereo Duplex (for convenience for playback) #pulseaudio config 1.1 root hub (microphone) : Digital Stereo (IEC958) Output + Analog stereo input #pulseaudio Input Dev 1.1 root hub Analog Stereo : Microphone #pulseaudio Outpt Dev 1.1 root hub Digital Stereo (IEC958 : Digital Output (S/PDIF) #Recording ALSA plug-in [aplay]: ALSA capture from : 1.1 root hub Analog Stereo # #>> Result : # blue yeti microphone capture works, .wav file plays through audio software #+-----+ To stop search & replace : EMU20k2 [X-Fi Titanium Series] GF100 High Definition Audio Controller EMU20k2 [X-Fi Titanium Series] GF100 High Definition Audio Controller EMU20k2 [X-Fi Titanium Series] GF100 High Definition Audio Controller EMU20k2 [X-Fi Titanium Series] GF100 High Definition Audio Controller EMU20k2 [X-Fi Titanium Series] GF100 High Definition Audio Controller EMU20k2 [X-Fi Titanium Series] GF100 High Definition Audio Controller EMU20k2 [X-Fi Titanium Series] GF100 High Definition Audio Controller *********************** 24Sep2017 Pulseaudio setup after cold reboot Dell64 computer!! +-----+ #Recordmydestop capture : #vlc output no changes made #alsamixer 0 Creative X-Fi #pulseaudio config EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) Output #pulseaudio config GF100 High Definition Audio Controller : Off #pulseaudio config 1.1 root hub (microphone) : n/a #pulseaudio config Built-in Audio : Analogue Stereo Duplex #pulseaudio Input Dev EMU20k2 [X-Fi Titanium Series] Analog Stereo : n/a #pulseaudio Input Dev Monitor of Built-in Audio Analog Stereo : no selections #pulseaudio Input Dev Built-in Audio Analog Stereo : Analog Input #pulseaudio Input Dev Monitor of EMU20k2 [X-Fi Titanium Series] Analog Stereo : no selections #pulseaudio Outpt Dev EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) #recordmydesktop --device pulse #>> Result : # rmd did NOT run, no output file generated, # ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM alsa #Couldn't open PCM device alsa #Error while opening/configuring soundcard alsa #Try running with the --no-sound or specify a correct device. #To listen to video : #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio Playback FireFox Audiostream on : EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio Playback VLC playback on : uilt-in Audio Analog Stereo #+-----+ #pulseaudio Input Dev EMU20k2 [X-Fi Titanium Series] Analog Stereo : n/a #pulseaudio Input Dev Monitor of Built-in Audio Analog Stereo : no selections #pulseaudio Input Dev Built-in Audio Analog Stereo : Analog Input #pulseaudio Input Dev Monitor of EMU20k2 [X-Fi Titanium Series] Analog Stereo : no selections #pulseaudio Outpt Dev EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) #+-----+ #RECORD audio file from built-in audio (eg - play video etc) : #audio cable/jacks stereo : split audio output of system (HDA Intel) # -> input to [ghetto blaster, mic/in-line of EMU20k2 [X-Fi Titanium Series]] #for iterative [microphone record, audio playback] : set alsa (F6) at "3 Yeti stereo mic - record"! #alsamixer 1 HDA Intel #pulseaudio config EMU20k2 [X-Fi Titanium Series] : off #pulseaudio config GF100 High Definition Audio Controller : off #pulseaudio config Built-in Audio : Analogue Stereo Duplex #pulseaudio config 1.1 root hub (microphone) : off #pulseaudio Input Dev Built-in Audio Analog Stereo : Analog Input #pulseaudio Outpt Dev Built-in Audio Analog Stereo : Line out (plugged in) #>> Result : # audio playback works #+-----+ #+-----+ #PLAYBACK of audio file : #audio cable/jacks stereo : split audio output of system (HDA Intel) # -> input to [ghetto blaster, mic/in-line of EMU20k2 [X-Fi Titanium Series]] #for iterative [microphone record, audio playback] : set alsa (F6) at "3 Yeti stereo mic - record"! #alsamixer 1 HDA Intel #pulseaudio config EMU20k2 [X-Fi Titanium Series] : off #pulseaudio config GF100 High Definition Audio Controller : off #pulseaudio config Built-in Audio : Analogue Stereo Duplex #pulseaudio config 1.1 root hub (microphone) : off #pulseaudio config 1.1 root hub (microphone) : Digital Stereo (IEC958) Output + Analog stereo input #pulseaudio Input Dev Built-in Audio Analog Stereo : Analog Input #pulseaudio Outpt Dev Built-in Audio Analog Stereo : Line out (plugged in) #>> Result : # audio playback works #+-----+ #+-----+ #Blue Yeti microphone capture #audio cable/jacks split audio output of system (HDA Intel) # -> input to [ghetto blaster, mic/line of EMU20k2 [X-Fi Titanium Series]] #for iterative [microphone record, audio playback] : set alsa (F6) at "3 Yeti stereo mic - record"! #alsamixer F6 3 Yeti stereo microphone #pulseaudio config EMU20k2 [X-Fi Titanium Series] : off #pulseaudio config GF100 High Definition Audio Controller : off #pulseaudio config Built-in Audio : Analogue Stereo Duplex (for convenience for playback) #pulseaudio config 1.1 root hub (microphone) : Digital Stereo (IEC958) Output + Analog stereo input #pulseaudio Input Dev 1.1 root hub Analog Stereo : Microphone #pulseaudio Outpt Dev 1.1 root hub Digital Stereo (IEC958 : Digital Output (S/PDIF) #Recording ALSA plug-in [aplay]: ALSA capture from : 1.1 root hub Analog Stereo # #>> Result : # blue yeti microphone capture works, .wav file plays through audio software #+-----+ ******************************** 23Sep2017 Audio problem with recordmydesktop http://www.jackaudio.org/faq/pulseaudio_and_jack.html How use PulseAudio and JACK? Many Linux systems now use PulseAudio as the default sound server, using it to handle all sound playback (media players, desktop alerts, web browsers and more). Here are a couple of basic observations about using JACK and PulseAudio together: While PulseAudio is running, JACK cannot access the same soundcard that Pulse is using. Even though in theory ALSA provides mechanisms for this to be possible (e.g. “dmix” device access), they do not work well enough to support both of these systems reliably. PulseAudio and JACK can appear to have similar goals to many people, and they wonder why its not possible to replace one with the other. However, beyond a very superficial similarity, they really do not have much in common: PulseAudio is focused on desktop and mobile audio needs. It doesn’t try to address low latency usage, but does provide seamless device switching, network routing, global per-application volume control and lots more great stuff. JACK is focused on the needs of pro-audio and music creation users. It offers the lowest possible latency, complete routing flexibility between applications and audio hardware, and all audio is always sample synchronized - apps don’t run ahead or behind of others. It doesn’t provide the smooth desktop experience that PulseAudio is aiming at. Combining PulseAudio and JACK on the same machine can be problematic. There are several options, some of which leave PulseAudio and JACK as entirely separate systems with no audio flow between them. Others connect them so that audio from one of them can be heard via the other. +-----+ Two ALSA-supported soundcards All that is necessary in this case is to define the device that PulseAudio and JACK will use. Run the following command in a terminal window: cat /proc/asound/cards You will some output like this: 0 [SB ]: HDA-Intel - HDA ATI SB HDA ATI SB at 0xfcef8000 irq 16 1 [DSP ]: H-DSP - Hammerfall DSP RME Hammerfall DSP + Digiface at 0xfcff0000, irq 20 2 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xfe57c000 irq 32 (This is from a machine with 3 soundcards: a builtin device, an additional 26 channel RME Hammerfall DSP device, and (unintentionally) an NVidia video adapter that also has an HDMI audio output.) Each of these cards can be accessed using its name, which is contained within the square brackets []. Generally, the name will simply be the conjunction of “hw:” and the card name. So for example, "hw:DSP" refers to the RME Hammerfall DSP in the above list, and "hw:SB" refers to the builtin soundcard. The names in your system will vary. >> I tried $ cat /proc/asound/cards 0 [XFi ]: SB-XFi - Creative X-Fi Creative X-Fi 20K2 SB0880 1 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xf7ffc000 irq 68 2 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xf7dfc000 irq 34 3 [Microphone ]: USB-Audio - Yeti Stereo Microphone Blue Microphones Yeti Stereo Microphone at usb-0000:00:1a.1-1, full speed +-----+ From man recordmydesktop : --device SOUND_DEVICE Sound device(default hw:0,0 or /dev/dsp, depending on whether ALSA or OSS is used). . from man vlc : OSSAUDIO_DEV The default audio output device, used by the OSSv4 output plugin. $ echo $OSSAUDIO_DEV >> no response $ env >> doesn't show OSSAUDIO_DEV >> so where does pulseaudio output go to? +-----+ https://unix.stackexchange.com/questions/3490/how-can-i-record-the-sound-output-with-gtk-recordmydesktop I managed to get it going with the steps on the Ubuntu Forums, for clarity here is what I did: sudo apt-get install gtk-recordmydesktop pavucontrol Opened the Pulse Audio Volume Control dialog: Applications > Sound & Video > PulseAudio Volume Control Opened gtk-recordmydesktop In gtk-rmd advanced preferences, "Sound" tab, set "Device" to pulse In gtk-rmd start a recording In Volume Control goto the Recording tab and ch1 HDA Intelange the recordmydesktop entry to 'Monitor of ' This is what seems to have worked for me. edited Mar 16 at 20:22, Jérôme answered Nov 12 '10 at 11:08, N J +-----+ 24Sep2017 07:20 https://wiki.ubuntu.com/PulseAudio#Recording%20example%20using%20PulseAudio%20and%20Audacity PulseAudio +---+ Resetting User Configuration For some reason, pulseaudio's user configuration files can become corrupt(unsynced?) in some way, and deleting them (and forcing fresh ones to be generated) fixes a no sound condition. After using the command below, log out/in. Ubuntu 12.10/Quantal (and earlier) rm -r ~/.pulse*; pulseaudio -k Ubuntu 13.04/Raring (and later) rm -r ~/.config/pulse; pulseaudio -k >> I did the latter, rm all files in /home/bill/.config/pulse Cold reboot +-----+ TRY : +-----+ vlc output (?OSSAUDIO_DEV?) alsamixer X-Fi card (IEC958), same input card for pulseaudio recordmydesktop --device Intel >> Result : rmd wouldn't run, hw0,0 problem >> I also tried --device Intel -> same problem +-----+ vlc output no changes made alsamixer 0 Creative X-Fi pulseaudio Input Devices: Built-in Audio Analog Stereo pulseaudio Output Devices: Built-in Audio Analog Stereo recordmydesktop --device pulse >> Result : rmd ran, but no sound +-----+ vlc output no changes made alsamixer HDA Intel (device 1) pulseaudio Input Dev Monitor of Built-in Audio Analog Stereo (analog input) pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) recordmydesktop --device pulse >> Result : rmd ran, but no sound To listen to video : pulseaudio Input Dev Built-in Audio Analog Stereo pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) pulseaudio Playback Built-in Audio Analog Stereo +-----+ >> no output saved, maybe because of : /media/bill/HOWELL_BASE/Video production/video capture/0_vidExtrn.sh: line 36: --workdir: command not found >> so I removed from recrd_start() "--workdir "$d_temp" >> Try again : #+-----+ #vlc output no changes made #alsamixer HDA Intel (device 1) #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio EMU20k2 config : Digital Stereo (IEC958) Output + Analog Stereo Input #recordmydesktop --device pulse #>> Result : rmd ran, but no sound #To listen to video : #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio Playback Built-in Audio Analog Stereo #+-----+ #vlc output no changes made #alsamixer HDA Intel (device 1) #pulseaudio config EMU20k2 : Digital Stereo (IEC958) Output + Analog Stereo Input #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #recordmydesktop --device pulse #>> Result : rmd ran, output file generated, but no sound #To listen to video : #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio Playback Built-in Audio Analog Stereo #+-----+ #vlc output no changes made #alsamixer HDA Intel (device 1) #pulseaudio config EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) Output #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #recordmydesktop --device pulse #>> Result : rmd ran, output file generated, but no sound, sound plays while video running (should be silent?) #To listen to video : #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio Playback Built-in Audio Analog Stereo #+-----+ #vlc output no changes made #alsamixer HDA Intel (device 1) #pulseaudio config EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) Output #pulseaudio config Built-in Audio : Analog Stereo Output #pulseaudio Input Dev Monitor of Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #recordmydesktop --device pulse #>> Result : # rmd ran, output file generated, # got sound when switched pulseaudio "Recording" to : Analog Stereo Output # sound does NOT play while video running (should be silent?) #To listen to video : #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio Playback Built-in Audio Analog Stereo #+-----+ #vlc output no changes made #alsamixer HDA Intel (device 1) #pulseaudio config EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) Output #pulseaudio config Built-in Audio : Analog Stereo Output #pulseaudio Input Dev Monitor of Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) #recordmydesktop --device alsa #>> Result : # rmd did NOT run, no output file generated, # ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM alsa #Couldn't open PCM device alsa #Error while opening/configuring soundcard alsa #Try running with the --no-sound or specify a correct device. #+-----+ #vlc output no changes made #alsamixer HDA Intel (device 1) #pulseaudio config EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) Output #pulseaudio config GF100 High Definition Audio Controller : Off #pulseaudio config 1.1 root hub (microphone) : Off #pulseaudio config Built-in Audio : Off #pulseaudio Input Dev Monitor of Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) #recordmydesktop --device pulse #>> Result : # rmd did NOT run, no output file generated, # ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM alsa #Couldn't open PCM device alsa #Error while opening/configuring soundcard alsa #Try running with the --no-sound or specify a correct device. #To listen to video : #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio Playback FireFox Audiostream on : EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio Playback VLC playback on : uilt-in Audio Analog Stereo #+-----+ #vlc output no changes made #alsamixer 0 Creative X-Fi #pulseaudio config EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) Output #pulseaudio config GF100 High Definition Audio Controller : Off #pulseaudio config 1.1 root hub (microphone) : n/a #pulseaudio config Built-in Audio : Analogue Stereo Duplex #pulseaudio Input Dev EMU20k2 [X-Fi Titanium Series] Analog Stereo : n/a #pulseaudio Input Dev Monitor of Built-in Audio Analog Stereo : no selections #pulseaudio Input Dev Built-in Audio Analog Stereo : Analog Input #pulseaudio Input Dev Monitor of EMU20k2 [X-Fi Titanium Series] Analog Stereo : no selections #pulseaudio Outpt Dev EMU20k2 [X-Fi Titanium Series] : Digital Stereo (IEC958) #recordmydesktop --device pulse #>> Result : # rmd did NOT run, no output file generated, # ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM alsa #Couldn't open PCM device alsa #Error while opening/configuring soundcard alsa #Try running with the --no-sound or specify a correct device. #To listen to video : #pulseaudio Input Dev Built-in Audio Analog Stereo #pulseaudio Output EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio Playback FireFox Audiostream on : EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) #pulseaudio Playback VLC playback on : uilt-in Audio Analog Stereo #+-----+ ************************ 23Sep2017 recordmydesktop screen capture of Neal Adam's expanding Earth https://www.youtube.com/watch?v=oJfBSc6e7QQ See : $ bash "/media/bill/HOWELL_BASE/Video production/video capture/0_vidExtrn.sh" I adjusted video capture - works perfectly Audio problem : +-----+ Initializing... Buffer size adjusted to 134217728 from 264620032 frames. Couldn't open PCM device hw:0,0 Error while opening/configuring soundcard hw:0,0 Try running with the --no-sound or specify a correct device. /media/bill/HOWELL_BASE/Video production/video capture/0_vidExtrn.sh: line 37: --workdir: command not found +-----+ >> --workdir: command not found -> strange error as "man recordmydesktop" lists this option! Error : "Error while opening/configuring soundcard hw:0,0" Is pavucontrol (pulseaudio) causing this problem? list the hardware devices : see "/media/bill/HOWELL_BASE/System_maintenance/Linux hardware information commands.txt" $ hwinfo --short +-----+ sound: Intel 82801JI (ICH10 Family) HD Audio Controller Creative EMU20k2 [X-Fi Titanium Series] nVidia GF100 High Definition Audio Controller Blue Microphones Yeti Stereo Microphone +-----+ >> sound-only information is shown, but no hardware addresses $ hwinfo >"/media/bill/HOWELL_BASE/System_maintenance/0_Dell64 system maintenance/Dell64 hwinfo.txt" +-----+ 44: PCI 100.0: 0403 Audio device [Created at pci.328] Unique ID: VCu0.IkvWlOp6ctE Parent ID: vSkL.Fkw69nMG5w8 SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0 SysFS BusID: 0000:01:00.0 Hardware Class: sound Model: "Creative EMU20k2 [X-Fi Titanium Series]" Vendor: pci 0x1102 "Creative Labs" Device: pci 0x000b "EMU20k2 [X-Fi Titanium Series]" SubVendor: pci 0x1102 "Creative Labs" SubDevice: pci 0x0042 Revision: 0x04 Driver: "snd_ctxfi" Driver Modules: "snd_ctxfi" Memory Range: 0xf3ef0000-0xf3efffff (rw,non-prefetchable) Memory Range: 0xf3c00000-0xf3dfffff (rw,non-prefetchable) Memory Range: 0xf2000000-0xf2ffffff (rw,non-prefetchable) IRQ: 28 (583262 events) Module Alias: "pci:v00001102d0000000Bsv00001102sd00000042bc04sc03i00" Driver Info #0: Driver Status: snd_ctxfi is active Driver Activation Cmd: "modprobe snd_ctxfi" Config Status: cfg=new, avail=yes, need=no, active=unknown Attached to: #23 (PCI bridge) +-----+ $ sudo lshw -short [sudo] password for bill: H/W path Device Class Description ================================================== ... /0/100/1/0 multimedia EMU20k2 [X-Fi Titanium Series] ... +-----+ >> key one is : /0/100/1/0 multimedia EMU20k2 [X-Fi Titanium Series] >> So how do I connect to this, which is currently selected by paucontrol for audio output? (or can I connect to pulseaudio output?) also : $ lspci 01:00.0 Audio device: Creative Labs EMU20k2 [X-Fi Titanium Series] (rev 04) >> only this item shown amount many... WAIT A MINUTE ! I need to choose the INPUT DEVICE within pavucontrol currently is microphone 1.1 root hub Digital Stereo (IEC958) I reset pavucontrol default input to EMU20k2 [X-Fi Titanium Series] Digital Stereo (IEC958) ************************ 23Sep2017 cleanup of vidCam vids 170426-27 Observing the frontier conference Davidson - Ben, How to predict earthquakes Robitaille, Pierre-Marie - Structure of water and the microwave background 2017 Val Marie visit 160417 Davidson, Ben - Citizen Science, model of solar-triggered earthquakes confirmed 160417 SO News - M7.8 earthquake, Uruguay tornado ************************* 21Sep2017 pavucontrol 22Sep2017 THIS IS ALL GARBAGE!!! IT was the Uof Calgary repository that was shit I used UBC and Software Manager immediately had pavucontrol!!! Might need pavucontrol LMDE2 Software Manager : >> no list of pavucontrol! $ sudo apt-get install pavucontrol # can't find pavucontrol (my std repositories Software Manager -> [Official, Additional] repositories ) - tried to activate additional repositories [deb deb http://mirror.clarkson.edu/linuxmint/packages http://mirrors.usinternet.com/mint/packages >> no luck - error with other repositories : E: Malformed line 2 in source list /etc/apt/sources.list.d/additional-repositories.list (dist) https://freedesktop.org/software/pulseaudio/pavucontrol/ Download The newest release is always available from http://freedesktop.org/software/pulseaudio/pavucontrol/ The current release is 3.0 Get pavucontrol's development sources from the git repository (gitweb): git clone git://anongit.freedesktop.org/pulseaudio/pavucontrol >> I tried this ... +-----+ Cloning into 'pavucontrol'... remote: Counting objects: 2394, done. remote: Compressing objects: 100% (574/574), done. remote: Total 2394 (delta 1832), reused 2353 (delta 1806) Receiving objects: 100% (2394/2394), 569.37 KiB | 141.00 KiB/s, done. Resolving deltas: 100% (1832/1832), done. Checking connectivity... done. +-----+ >> seems to have worked LMDE2 Menu -> no icon $ pavucontrol The program 'pavucontrol' is currently not installed. To run 'pavucontrol' please ask your administrator to install the package 'pavucontrol' pavucontrol: command not found >> Nuts, I guess that I must compile, but where is it? >> Double NUTS!! It was installed in /home/bill/pavucontrol >> NYET -> [when I git clone, I should be in the right directory!] install will do this Build pavucontrol : $ cd /home/bill/pavucontrol $ ./configure bash: ./configure: No such file or directory >> crap, what a fuckup setup! /home/bill/pavucontrol/configure.ac : # Process this file with autoconf to produce a configure script. >> This was NOT described on web-page (arrrggghh!) $ autoconf configure.ac >> output was to screen $ autoconf >configure.sh configure.ac >> This runs - output to file and screen (maybe as stderr?) +-----+ configure.ac:26: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:27: error: possibly undefined macro: AM_SILENT_RULES configure.ac:90: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT ~/pavucontrol $ autoconf >configure.sh configure.ac configure.ac:26: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:27: error: possibly undefined macro: AM_SILENT_RULES configure.ac:90: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT +-----+ >> doesn't look good >> solve "m4_pattern_allow" man autoconf DESCRIPTION Generate a configuration script from a TEMPLATE-FILE if given, or `configure.ac' if present, or else `con‐ figure.in'. Output is sent to the standard output if TEMPLATE-FILE is given, else into `configure'. >> maybe retry with : $ autoconf >> I need GNU M4 +-----+ https://www.gnu.org/software/m4/m4.html Downloading M4 The latest stable version is 1.4.18, and can be found on http://ftp.gnu.org/gnu/m4/ [via http] and ftp://ftp.gnu.org/gnu/m4/ [via FTP]. It can also be found on one of our FTP mirrors. The stable development branch can also be checked out from git, using either of: git clone git://git.sv.gnu.org/m4 git clone http://git.savannah.gnu.org/r/m4.git followed by: git checkout -b branch-1.4 origin/branch-1.4 +-----+ $ git clone git://git.sv.gnu.org/m4 fatal: destination path 'm4' already exists and is not an empty directory. >> This keeps getting worse - what a screw-up install >> m4 already exists, but it seems that autoconf can't find it? >> manually via nemo : /usr/bin/autoconf -> directories and files with "m4" /proc/520/cwd/m4 /usr/share/doc/m4 /usr/share/autoconf /usr/bin/m4 >> So how do I configure autoconf to find m4? /usr/share/autoconf/autom4te.cfg /usr/share/autoconf/m4sugar directory with .m4 files >> ????????????????????????????? Well, given that I'm lost, just try make anyways? $ make make: *** No targets specified and no makefile found. Stop. >> no luck - I need to solve : If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. .. https://www.gnu.org/software/autoconf/manual/autoconf.pdf search "m4_pattern_allow" $ sudo make install ************************* 21Sep2017 Pulse Audio - no GUI window, although background program launches at boot time UNRESOLVED as of 21Sep2017 !!!! 22Sep2017 THIS IS ALL GARBAGE!!! IT was the Uof Calgary repository taht was shit I used UBC and Software Manager immediately had pavucontrol!!! https://wiki.debian.org/PulseAudio Mixers Pavucontrol, an optional package for pulseaudio, allows you to make volume adjustments (entire system or per application). It also allows you to change "mixer" settings like headphone output, mic level, input device, and stereo versus surround sound profiles. However, you may not need to install pavucontrol as most desktop environments have their own control panels for configuring Pulseaudio. Often such programs will not mention Pulseaudio and will simply be called something generic like "Sound Settings". >> Ah Hah! - just try to find sound settings in System Settings? No luck - don't see full set of features of pavucontrol https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Microphone_not_detected_by_PulseAudio Microphone not detected by PulseAudio Determine the card and device number of your mic: $ arecord -l **** List of CAPTURE Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 >> With Yeti microphone plugged in, I get : +-----+ card 3: Microphone [Yeti Stereo Microphone], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 +-----+ In hw:CARD,DEVICE notation, you would specify the above device as hw:0,0. Then, edit /etc/pulse/default.pa and insert a load-module line specifying your device as follows: load-module module-alsa-source device=hw:0,0 # the line above should be somewhere before the line below .ifexists module-udev-detect.so >> I changed : +-----+ ### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so load-module module-udev-detect .else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect .endif +-----+ >> to +-----+ ### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so load-module module-udev-detect load-module module-alsa-source device=hw:3,0 .else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect load-module module-alsa-source device=hw:3,0 .endif +-----+ Finally, restart pulseaudio to apply the new settings: $ pulseaudio -k ; pulseaudio -D >> I did this $ pulseaudio -k ; pulseaudio -D E: [pulseaudio] main.c: Daemon startup failed. >> Uh Oh! >> close /etc/pulse/default.pa and retry (might be locked or something?) pulseaudio -k ; pulseaudio -D E: [pulseaudio] main.c: Failed to kill daemon: No such process E: [pulseaudio] main.c: Daemon startup failed. >> Double Oh-oh! >> System Monitor : pulseaudio doesn't show start-pulseaudio-x11 is shown >> ?? now what? kill start-pulseaudio-x11 via System Monitor $ pulseaudio E: [pulseaudio] module.c: Failed to load module "module-alsa-source" (argument: "device=hw:3,0"): initialization failed. E: [pulseaudio] main.c: Module load failed. E: [pulseaudio] main.c: Failed to initialize daemon. >> OK, at least I got something Again, edit /etc/pulse/default.pa to Use the static hardware detection module (for systems that lack udev support) : +-----+ ### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so load-module module-udev-detect .else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect load-module module-alsa-source device=hw:3,0 .endif +-----+ Re-try to load : $ pulseaudio E: [pulseaudio] bluez4-util.c: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist ... then it freezes, I did a Ctrl-C Again, edit /etc/pulse/default.pa to : +-----+ ### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so load-module module-udev-detect load-module module-alsa-source device=hw:3,0 .else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect .endif +-----+ System Monitor -> end process for pulseaudio, re-try to load : $ pulseaudio +-----+ E: [pulseaudio] module.c: Failed to load module "module-alsa-source" (argument: "device=hw:3,0"): initialization failed. E: [pulseaudio] main.c: Module load failed. E: [pulseaudio] main.c: Failed to initialize daemon. +-----+ >> Same errors as initial try. So it looks like Restore /etc/pulse/default.pa to original : +-----+ ### Automatically load driver modules depending on the hardware available .ifexists module-udev-detect.so load-module module-udev-detect .else ### Use the static hardware detection module (for systems that lack udev support) load-module module-detect .endif +-----+ System Monitor -> end process for pulseaudio (not needed - didn't restart), re-try to load : $ pulseaudio +-----+ E: [pulseaudio] bluez4-util.c: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist +-----+ >> I got this previously, and pulseaudio doesn't start up. Just try to load : $ start-pulseaudio-x11 >> no errors? now System Monitor shows both [pulseaudio, start-pulseaudio-x11] I NEED PAVUCONTROL!!!!!!!!!!!!!!!!!!! If everything worked correctly, you should now see your mic show up when running pavucontrol (under the Input Devices tab). **************** 26Sep2016 From attempts to capture video from Deep Blue vs asparov VLC media palyer (or something) crashes Ran "vidEx", Kasparov video starts up in vlc, then (probably from "snip_record") : Error message repeated 4 times : "Fontconfig warning: FcPattern object size does not accept value "0" " >> ?? don't know if this is important, not what it means Next error message : "[0x85ab270] main vout display error: Failed to resize display " ... "Defaulting to search window name, class, and classname" ... "WID_vlc: 90177553" ... "waitDVD: time_fmt = 0:00:00" ... Error message : "vlc: Fatal IO error 11 (Resource temporarily unavailable) on X server :0." ??? Try : switch alsamixer using F6 from sound card "1 HDA Nvidia" to "0 HDA Intel" Same error Search "Linux and vlc: Fatal IO error 11 (Resource temporarily unavailable) on X server" >> What a mess! many different types of problems, low-level fixes clearws, reload QNial, try again... >> nyet Ah Hah! pavucontrol is GUI for pulseaudio Software Manager -> pavucontrol -> install Not in menus -> run from terminal to get GUI? >> Ok, at least it runs! Look at Stalin,Hitler programming - was viEx run on Lenovo? /media/bill/ATA_WDC_500G/Stalin supported Hitler/z_old/vidExtract - Soviet Story snippets 140402.ndf It APPEARS that it was run on Lenovo, but not 100% sure. t_snip is missing!! used ONLY for avcon part of snip_record recordmydesktop - not installed?!?? >> DONE (sheesh!!) set_t_offset_DVDfile - 26Sep2016 I had commented out t_offset_DVDfile, but this is needed! **************** 25Sep2016 0_vidExACM.ndf - Can't run from Toshiba? (pavucontrol & alsamixer - no digital audio streams 26Sep2016 try on Lenovo >> Pulse Audio Video Control (pavuc) - not installed on Lenovo? (must have re-installed Linux Mint or something...) Software Manager "puclse audio" - couldn't connect to server Menu -> Edit -> Software Sources -> change main source (given that it's morning time!) : from http://packages/linuxmint.com to http://mirror.nexcess.net/linusmint/packages change Base (testing) server : from http://debian.linuxmint.com/latest to http://mirror.pw/linuxmint-debian/latest -> maybe there weren't any package list downloads?? Install pavuc : >>??Weird - now Software manager lists is installed, but no Menu logo/listing, can't run "pavuc" from command line >> can't get GUI interface!! >> but - It is RUNNING?? Try again "vidEx" >> No workee, "Ctrl-C" doesn't stop Qnial, had to close window Now look at System monitor : >> pulseaudio is running at very high priority Try switching audio cards? alsamixer Menu -> F6 -> from 0 HDA Intel -> this is ANALOG! to 0 HDA NVidia -> this card has NO capture controls??!! Look at "/media/bill/HOWELL_BASE/System_maintenance/PulseAudio Volume Control (pavictrl)/0_PulseAudio Ctrl notes - setup, problems.txt :" >> can't see any hints of use AGAIN, Try switching audio cards? alsamixer Menu -> F6 -> from 0 HDA Intel -> this is ANALOG! to 0 HDA NVidia -> this card has NO capture controls??!! >> still get error messages from vidEx execution re-load QNial & lq_vidExACM type "start_PulseAudio" to see what happens >> OOPS!!! xdotool not found!? (stupid me for not seeing!!) >> Sotware Manager - can't see xdotool? Software Manager -> Menu -> Edit -> Software sources -> change from http://mirror.pw/linuxmint-debian/latest to http://mirror.internode.on.net/pub/linuxmint-debian/latest then update cache -> this time there wer NO missing package notices (unlike previous) >> Oops - it's "xdotool", not "xdotools"!! >> OK, now it downloads... AGAIN : re-load QNial & lq_vidExACM type "start_PulseAudio" to see what happens >> OK now it works now do "vidEx" from QNial >> OK, now it runs, but it quits after 1 to 2seconds. Why? >> Error message : "vlc: Fatal IO error 11 (Resource temporarily unavailable) on X seerver :0." >> Also "set_t_offset_DVDfile -> offset (s) = 0" >> This is because t_offset was set to '00:00:00' in Startup! ************ 11Sep2014 No sound http://ubuntuforums.org/showthread.php?t=2211608 Sound not working Ubuntu 14.04 https://wiki.ubuntu.com/Audio/AlsaInfo You've probably come here because somebody asked you to provide Alsa information to troubleshoot an audio issue. To begin, open a terminal by pressing Ctrl+Alt+T if using Unity desktop or press Alt+F2 and enter 'bash' as the command to execute. Enter these two commands in the terminal: cd ~/ wget http://www.alsa-project.org/alsa-info.sh -O alsa-info.sh && bash alsa-info.sh Howell's result : using script : /home/bill/System_maintenance/PulseAudio Volume Control (pavictrl)/Pulseaudio test script.sh result output : /home/bill/System_maintenance/PulseAudio Volume Control (pavictrl)/140911 alsa-info.7klVCwdvnA.txt I can't understand output... http://ubuntuforums.org/showthread.php?t=2177863 No sound after updating - tired re-installing pulseaudio https://wiki.ubuntu.com/PulseAudio#Resetting_User_Configuration Resetting User Configuration rm -r ~/.config/pulse; pulseaudio -k Howell typed in terminal, log out/in result : did nothing! (even if it erased a cookie) ...I give up for now - may have something to do with screwed up update - lacking stuff etc? ***************************************** 02Apr2014 From /home/bill/Projects/Stalin supported Hitler/vidExtract - Soviet Story snippets.ndf # WARNING : It is not always apparent that audio recrding is working. # Using "PulseAudio Volume Control" (pavuc), you MUST : # - switch between analog for playback, and digital for record!!!! # - I don't know if alsamixer is necessary, especially for simple video segnment capture from DVD, flv, etc etc +-----+ #** %terminal, half screen ; host 'konsole & ' ; host link 'xdotool >"' pname_WID_alsamixer '" getwindowactive ' ; host 'alsamixer' ; host link 'xdotool >"' pname_WID_alsamixer '" getwindowactive ' ; fin := open pname_WID_alsamixer "r ; WID_alsamixer := readfile fin ; write link 'PID_alsamixer: ' (string PID_alsamixer) ; close fin ; window_sizeMove '0_Voya education - notes.txt' 3 3 s_leftStart LibreOffice_height_half s_width LibreOffice_height_half ; % ; %Identify the processID of alsamixer to allow closure later on ; host link 'pidof >"' pname_PID_alsamixer '" alsamixer ' ; % linux command "pidof" - process id of the specified program ; fin := open pname_PID_alsamixer "r ; PID_alsamixer := readfile fin ; write link 'PID_alsamixer: ' (string PID_alsamixer) ; close fin ; % ; #** %host link 'xdotool windowkill ' WID_alsaMixer ; host link 'kill -15 ' PID_alsaMixer ; +-----+ 01Apr2014 Can't kill pulseaudio http://ubuntuforums.org/showthread.php?t=1472771 July 6th, 2010 #4, Temüjin, Join Date: Jun 2007, Beans 10,505 Re: Can't kill pulseaudio. Yeah, pulse autospawns. You can use pasuspender (man pasuspender) to "pause" it, or you can set autospawn=no (either create a ~/.pulse/client.conf for your user, or uncomment the autospawn= line in /etc/pulse/client.conf). Howell - I couldn't edit the root-controlled file, even as superuser!?!?!? +-----+ # Search for a command-line voice recorder option : http://modman.unixdev.net/?sektion=1&page=gnome-sound-recorder&manpath=SunOS-5.10 - command line arguments! only takes gtk-options(7) -> --xim-status Controls the X input method (This is a GDK option -whatever that is, maybe not KDE man xim-status no manual entry (?) and gnome-options(7) -> not much of use ? http://jordilin.wordpress.com/2006/07/28/howto-recording-audio-from-the-command-line/ By Jordi Carrillo. - lame mp3 encoder First of all you have to set up the recording channels by doing alsamixer Once there, select the capture view by typing the tab key. You’ll get the next screen: With the arrow keys select the column Capture and set it to the CAPTUR mode with the space key as in the screenshot. Adjust the recording volume with the arrow keys. You can also set it up with the gnome volume control panel going to the capture tab. 30Mar2014 Howell - I can also select either the Intel or Nvidia sound cards. I left it at default. Type the following command arecord -f cd -t raw | lame -x -r - out.mp3 Arecord captures the audio that goes through your computer and pipes it to the lame encoder, so you encode the audio directly to an mp3 file. You can specify more options to the lame encoder such as the bitrate with lame -x -b bitrate. Without specifying the bitrate it encodes to 128kbps constant bit rate cbr. If you want to record for an specific amount of time then: Muon download description : LAME (LAME Ain't an MP3 Encoder) is a research project for learning about and improving MP3 encoding technology. LAME includes an MP3 encoding library, a simple frontend application, and other tools for sound analysis, as well as convenience tools. This package contains the frontend. Canonical does not provide updates for lame. Some updates may be provided by the Ubuntu community. My tests arecord -f cd -t raw | lame -x -r - "/home/bill/Projects/Stalin supported Hitler/voices/140330 arecord and lame test.mp3" This worked overall, I had to kill by typing "ctrl_+c" in the terminal. However - no music, just noise ??!?!! I was playing a file with Rythmbox, so maybe it's output won't work that way. arecord --duration 30 -format=cd --file-type raw | lame -m j -s 44.1 -r - "/home/bill/Projects/Stalin supported Hitler/voices/140330 arecord and lame test.mp3" lame options : -x swap bytes in the input file or output file when using --decode, if recordings sound like static I took this out!!! as I was getting static -s sampling frequency in kHz -m mode = s,j,f,d,m,l,r for: simple stereo, joint stero, forced MS stereo, dual momo, mono, left channel only, righ chan. only Still no sound in the resulting mp3 file! Maybe it's because I need to select the hardware device Intel first - select via alsamixer : This didn't work NVidia now - select via alsamixer : oops, "...This sound device does not have any capture controls..." Guess that kills that option. PulseAudio - try digital rather than analogue : SUCCESS!!! Looks like this may work!! Time for a break - goto Drumheller to run. +-----+ # % ; %Identify the processID of arecord to allow closure later on ; host link 'pidof >"' pname_PID_arecord '" arecord ' ; % linux command "pidof" - process id of the specified program ; fin := open pname_PID_arecord "r ; PID_arecord := readfile fin ; write (link 'PID_arecord: ' PID_arecord) ; close fin ; +-----+ # hide the audio/video details at this level! Eventually may get recordmydesktop to work with audio? %audio_recrd ; %audio_stopSave snip_fileName ; #***************************************** 01Apr2014 Can't kill pulseaudio http://ubuntuforums.org/showthread.php?t=1472771 July 6th, 2010 #4, Temüjin, Join Date: Jun 2007, Beans 10,505 Re: Can't kill pulseaudio. Yeah, pulse autospawns. You can use pasuspender (man pasuspender) to "pause" it, or you can set autospawn=no (either create a ~/.pulse/client.conf for your user, or uncomment the autospawn= line in /etc/pulse/client.conf). #**************************************** 27Mar2014 Desperate attempts to be able to record audio from videos I gave up on jackd - don't have any idea of device names and relationships, ports etc Paucontrol - was able to get working, but not sith recordmydesktop, so I'll record video separately from audio *************** 27Mar2014 scrapping & digging # gnome-sound-recoder creates 2 windows when it launches?!?!?!!! start_gnome_sound_recorder IS { NONLOCAL dirbase ID_sound pgm_delays pname_ID_sound ; % ; host 'gnome-sound-recorder &' ; cmd2 := link 'pidof >"' pname_ID_sound '" gnome-sound-recorder ' ; % linux command "pidof" - process id of the specified program ; %cmd2 := link 'xdotool search >"' pname_ID_sound '" --classname "gnome-sound-recorder" ' ; %cmd2 := link 'xdotool search >"' pname_ID_sound '" --name "Sound Recorder" ' ; write link 'cmd2 = ' cmd2 ; host cmd2 ; %wait '0:00:00' ; %wait '0:00:02' ; % ; fin := open pname_ID_sound "r ; ID_sound := readfile fin ; write link 'fin = ' (string fin) ; write link 'ID_sound: ' (string ID_sound) ; close fin ; % ; %Setup the recorder by passing keystrokes ; %host 'xdotool type -window ' (string ID_sound) ' ; } stop_gnome_sound_recorder IS { NONLOCAL dirbase ID_sound pgm_delays pname_ID_sound ; % ; %Stop the recorder by passing keystrokes "alt+f" then "c" (file -> Close) ; %host 'xdotool type -window ' (string ID_sound) ' ; % need to send separate keystrokes because these are sometines non-ascii? ; %a := link 'xdotool key -window ' (string ID_sound) ' alt+f ' ; %a := link 'xdotool windowkill ' (string ID_sound) ; %write link 'a = ' a ; %host link 'xdotool windowkill ' (string ID_sound) ; aa := link 'kill -15 ' (string ID_sound) ; write aa ; host aa ; } # pulseaudio runs from startup!! # pulseaudio --kill http://askubuntu.com/questions/171287/how-to-pass-record-audio-output-as-an-input-device Username : 5 I used to use a mixer of some kind and I can't remember which... I would like to record audio from the output, without leaving the computer. I remember in the Juanty days you could easily enable different inputs and outputs as passthroughs of sorts from the sound preferences. How can I achieve this functionality on 10.04 and beyond? I don't favor any way how, be it digital, analog, pulse or alsa... I can support any solution. Thanks ********* Username : 5 Wow, that was quick...I feel guilty for posting this, but I have been struggling to find an answer so I hope this helps someone else: Taken from http://ubuntuforums.org/showthread.php?t=1440833 does exactly what I was looking for...tested and working. The term I used to find the solution was "record internal audio" rather than output/input keywords. To sum it up: Install pavucontrol (PulseAudio Volume Control) using apt-get or the Ubuntu Software Center. Open PulseAudio Volume Control. It should be in the applications menu under Sound and Video. Open Sound Recorder and start recording. Playing any sound at this point would be helpful, as your level indicator should react once you have finished. Go to the "Recording" tab in the PulseAudio Volume Control window. Make sure that "Applications" is selected in the drop down menu on the "Recording" tab. Choose "Monitor of Internal Audio Analog Atereo" from the "Record Stream from" menu in the Sound Recorder entry of the application list. # http://askubuntu.com/questions/60837/record-a-programs-output-with-pulseaudio user5950 I would like to record an output of a program with PulseAudio using command line/bash script. It is important not to record every output of the sound card, but only the one of one specific program. I thought I would have to create a new null-sink and than move the programs output to this new sink. Than tell parec to use this specific monitor to record. The first step would be something like this: ************** Try something like this: In a terminal enter pacmd (this is the CLI of the PulseAudio-Server) then use list-sink-inputs (where you get the indices of the running inputs) Now find the index of your input. Now referred to as $INDEX the scriptable part is: pactl load-module module-null-sink sink_name=steam pactl move-sink-input $INDEX steam parec -d steam.monitor | oggenc -b 192 -o steam.ogg --raw - Explanations: The first command will add a null-sink as you already knew. The second command moves the sink-input from your standard-audio-sink to steam The third command records the monitor of the device steam (-d) and puts the output (raw-wave-stream) into oggenc, which encodes this wave-stream to an oga-file. (for mp3 use lame) Greez Waschtl # http://www.pclinuxos.com/forum/index.php?topic=97181.0 recommends using separate video & audio capture! enddoc