 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

24th January 2011, 02:02 PM
|
 |
Registered User
|
|
Join Date: Nov 2008
Location: Canada
Posts: 2,048

|
|
|
Re: PulseAudio ... again
Cool... must be a full moon then.
Just for the notebook. You can grab avidemux-gtk and run it from the command line. So if you have a directory full of videos that you're trying to pull the audio off of then:
avidemux2_cli --load ./FileName.mp4 --save-uncompressed-audio ./NewWaveFile.wav
Might get you what you're looking for. It maybe me bout I "touch NewWaveFile.wav" before _cli would write to it.
|

26th January 2011, 04:39 AM
|
|
Registered User
|
|
Join Date: Jan 2011
Posts: 274

|
|
|
Re: PulseAudio ... again
Quote:
Originally Posted by pythagorean
With no configuration of anything I got audacity recording from an mp3 playing in rhythmbox. See screen shot below.
I installed pulse audio device chooser and pulse audio volume control.
In pulse audio volume control here are the selections I chose under the various tabs:
Configuration > Internal Audio > Analog Stereo Duplex
Input Devices > Show > Monitors
Output Devices > Internal Audio Analog Stereo > Analog Output/Amplifier
Which seems to be basically what you have too BUT in your screen shot above it looks like the device under the INPUT DEVICES tab in the pulse audio volume control is MUTED because it appears as a red dot.
http://dl.dropbox.com/u/3091107/recording.png
|
Is that the kde desktop? I only recognize the volume icon in the top right hand corner.
|

26th January 2011, 06:10 AM
|
|
Registered User
|
|
Join Date: Mar 2010
Posts: 85

|
|
|
Re: PulseAudio ... again
I vote for Pythagorean. Set Audacity to record from Pulse if you can. Start recording from Audacity. Then using the pulse volume control (pavucontrol?), click on the "Recording" tab. You should see one stream there. There should be that dropdown menu. Change it to one of the audio monitors. This records whatever sound is coming out of your speakers..
For a CLI and silent method, you can use mplayer!
Try this command for size
Code:
mplayer --really-quiet -vc dummy -ao pcm:file=/dev/stdout <videofilehere.mp4> 2> /dev/null | oggenc -q 5 -o <soundname.ogg>
|

26th January 2011, 02:00 PM
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 272

|
|
|
Re: PulseAudio ... again
No it is not the kde desktop. it is the standard gnome desktop that comes with Fedora 14 without any alterations.
__________________
Phenom II x4 B55 BE Win7/Fedora 14 dual boot
Compaq CQ62-220US Vista Ultimate/Fedora 13 dual boot
Acer Aspire One D250 Ubuntu 10.04
www.pythagoreanmetronome.com
|

26th January 2011, 11:51 PM
|
 |
Registered User
|
|
Join Date: Nov 2008
Location: Canada
Posts: 2,048

|
|
|
Re: PulseAudio ... again
Confused about gnome and kde? Here's a plain screen shot of kde. I know, nothing to do with pulse audio... well maybe an icon but I to have a sense of humour.
|

27th January 2011, 12:33 AM
|
 |
Administrator
|
|
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309

|
|
|
Re: PulseAudio ... again
Nice! I see Ms. Fong's artwork is still popular.
|

17th February 2011, 04:10 AM
|
 |
Administrator
|
|
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309

|
|
Well, radical experimentation and plain old stubbornness has yielded the following conclusions:
- It doesn't seem to be a hardware issue. I tried both the built-in audio chip and my old Yamaha card. Both produced sound just peachy keen fine, and both yielded a recording using the parec command listed above by Beaker.
Code:
parec -d alsa_output.pci-0000_00_14.5.analog-stereo.monitor | sox -S -t raw -r 44100 -sLb 16 -c 2 - ~/audio-file.wav
- The output of neither card could be cajoled into providing anything to show up in the Pulse Audio volume meter. (capture)
- Audacity will work to edit existing sound files, but either will not accept input, or can't find anything to accept. It seems like it tries for a second, stuttering, then monitoring fails. Using Audacity to probe hardware produces the following output.
Code:
==============================
Default capture device number: 5
Default playback device number: 5
==============================
Device ID: 0
Device name: ALSA: HDA ATI SB: ALC889 Digital (hw:0,1)
Input channels: 2
Output channels: 2
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
32000
44100
48000
88200
96000
192000
==============================
Device ID: 1
Device name: ALSA: HDA ATI SB: ALC889 Analog (hw:0,2)
Input channels: 2
Output channels: 0
Low Input Latency: 0.011610
Low Output Latency: -1.000000
High Input Latency: 0.046440
High Output Latency: -1.000000
Supported Rates:
==============================
Device ID: 2
Device name: ALSA: iec958
Input channels: 0
Output channels: 2
Low Input Latency: -1.000000
Low Output Latency: 0.011610
High Input Latency: -1.000000
High Output Latency: 0.046440
Supported Rates:
32000
44100
48000
88200
96000
192000
==============================
Device ID: 3
Device name: ALSA: spdif
Input channels: 2
Output channels: 2
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
32000
44100
48000
88200
96000
192000
==============================
Device ID: 4
Device name: ALSA: pulse
Input channels: 32
Output channels: 32
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
8000
9600
11025
12000
15000
16000
22050
24000
32000
44100
48000
88200
96000
192000
==============================
Device ID: 5
Device name: ALSA: default
Input channels: 32
Output channels: 32
Low Input Latency: 0.011610
Low Output Latency: 0.011610
High Input Latency: 0.046440
High Output Latency: 0.046440
Supported Rates:
8000
9600
11025
12000
15000
16000
22050
24000
32000
44100
48000
88200
96000
192000
==============================
Selected capture device: 5 - ALSA: default
Selected playback device: 5 - ALSA: default
Supported Rates:
8000
9600
11025
12000
15000
16000
22050
24000
32000
44100
48000
88200
96000
192000
Unable to open Portmixer
- renkinjutsu's suggested code fails with two error messages. oggenc fails with "No input file specified" and mplayer fails with several syntax errors.
Code:
mplayer --really-quiet -vc dummy -ao pcm:file=/dev/stdout <videofilehere.mp4> 2> /dev/null | oggenc -q 5 -o <soundname.ogg>
- Not being an accomplished terminal guy, an immediate fix didn't pop out at me.
So, I'm back for more suggestions.
Bump!
Just for giggles, I booted the business laptop and tried there. Same results. Nada. Audacity hates it. Won't record squat. Similarities? Intel sound chipset, same Intel audio driver. (No longer running FC6. It has since been updated to F13.)
Ok. Maybe ...
Booted the personal laptop (HP Pavillion dv9904ca -- a laptop in name only -- the bugger is HUGE.) It's running Dan's F11.
It's also running an nvidia sound chipset. Results: It was a struggle to find the right combination, but Audacity will happily record in F11 on that machine. (Pulse in/Pulse out)
Go figure? <..  ..>
EDIT:
Well ... being pretty sketchy on the details of how this all works, it seemed like if I could actually get output piped to sox, I should be able to get it piped to Audacity ... Nope. Another fail. But this time ... with some interesting gibberish to go along with it.
Code:
Expression 'err' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2469
Expression 'ContinuePoll( self, StreamDirection_In, &pollTimeout, &pollCapture )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2949
Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3311
HCK OnTimer
HCK OnTimer
HCK OnTimer
write() failed: Broken pipe
|

24th February 2011, 05:12 AM
|
 |
Administrator
|
|
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309

|
|
|
Re: PulseAudio ... again
Hmmmm.
No luck tonight, either.
Code:
[dan@****** Desktop]$ audacity
Expression 'err' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2469
Expression 'ContinuePoll( self, StreamDirection_In, &pollTimeout, &pollCapture )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2949
Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3311
HCK OnTimer
Expression 'err' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2469
Expression 'ContinuePoll( self, StreamDirection_In, &pollTimeout, &pollCapture )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2949
Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3311
[dan@****** Desktop]$
But at least I'm getting consistent failures now. That's an improvement ... isn't it?
|

24th February 2011, 08:49 AM
|
|
Registered User
|
|
Join Date: Mar 2010
Posts: 85

|
|
|
Re: PulseAudio ... again
Quote:
Originally Posted by Dan
Well, radical experimentation and plain old stubbornness has yielded the following conclusions:
renkinjutsu's suggested code fails with two error messages. oggenc fails with "No input file specified" and mplayer fails with several syntax errors.
Code:
mplayer --really-quiet -vc dummy -ao pcm:file=/dev/stdout <videofilehere.mp4> 2> /dev/null | oggenc -q 5 -o <soundname.ogg>
|
Ahhh geeze, sorry Dan, I made a mistake
It should really be
Code:
mplayer -really-quiet -vc dummy -ao pcm:file=/dev/stdout videofilehere.mp4 2> /dev/null | oggenc -q 5 -o soundname.ogg -
mplayer pipes into oggenc and oggenc was supposed to read from stdin, but I forgot to include the little dash "-" that implies stdin. Also, --really-quiet on MPlayer should have been -really-quiet with only one dash in the front. My bad  , it should work this time though
Last edited by renkinjutsu; 24th February 2011 at 09:55 AM.
|

25th February 2011, 03:10 AM
|
 |
Administrator
|
|
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309

|
|
|
Re: PulseAudio ... again
Wow! Now that is cool! Worked like a greased sneeze!
It took a grand total of about ~6 seconds to do a four minute song!
Thank you! <..  ..>
|

25th February 2011, 04:28 AM
|
|
Registered User
|
|
Join Date: Mar 2010
Posts: 85

|
|
|
Re: PulseAudio ... again
Quote:
Originally Posted by Dan
Wow! Now that is cool! Worked like a greased sneeze!
It took a grand total of about ~6 seconds to do a four minute song!
Thank you! <..  ..>
|
Awesome! That's good. Too bad straight up audio recording doesn't work for you. Recording a video just to rip out the audio is such a roundabout way to do things.
|

5th February 2012, 04:33 AM
|
 |
Administrator
|
|
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309

|
|
|
Re: Update
For further info to anyone hitting this in a search.
The above successes were in F11. In F16, you'll need to use this command. (With the red part being the file name you wish to give the output.
Code:
parec -d alsa_output.pci-0000_00_14.2.analog-stereo.monitor | sox -S -t raw -r 44100 -sLb 16 -c 2 - audio-cut.wav
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 19:50 (Tuesday, 21-05-2013)
|
|
 |
 |
 |
 |
|
|