Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #31  
Old 24th January 2011, 02:02 PM
beaker_'s Avatar
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,048
linuxfedorafirefox
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.
Reply With Quote
  #32  
Old 26th January 2011, 04:39 AM
COKEDUDE Offline
Registered User
 
Join Date: Jan 2011
Posts: 274
linuxmintfirefox
Re: PulseAudio ... again

Quote:
Originally Posted by pythagorean View Post
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.
Reply With Quote
  #33  
Old 26th January 2011, 06:10 AM
renkinjutsu Offline
Registered User
 
Join Date: Mar 2010
Posts: 85
linuxchrome
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>
Reply With Quote
  #34  
Old 26th January 2011, 02:00 PM
pythagorean Offline
Registered User
 
Join Date: Aug 2010
Posts: 272
windows_vistaopera
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
Reply With Quote
  #35  
Old 26th January 2011, 11:51 PM
beaker_'s Avatar
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,048
linuxfedorafirefox
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.
Attached Thumbnails
Click image for larger version

Name:	snapshot2.jpe
Views:	67
Size:	30.1 KB
ID:	20631  
Reply With Quote
  #36  
Old 27th January 2011, 12:33 AM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309
linuxfedorafirefox
Re: PulseAudio ... again

Nice! I see Ms. Fong's artwork is still popular.
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #37  
Old 17th February 2011, 04:10 AM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309
linuxfedorafirefox
Question

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
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #38  
Old 24th February 2011, 05:12 AM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309
linuxfedorafirefox
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?
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #39  
Old 24th February 2011, 08:49 AM
renkinjutsu Offline
Registered User
 
Join Date: Mar 2010
Posts: 85
linuxchrome
Re: PulseAudio ... again

Quote:
Originally Posted by Dan View Post
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.
Reply With Quote
  #40  
Old 25th February 2011, 03:10 AM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309
linuxfedorafirefox
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! <....>
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #41  
Old 25th February 2011, 04:28 AM
renkinjutsu Offline
Registered User
 
Join Date: Mar 2010
Posts: 85
linuxchrome
Re: PulseAudio ... again

Quote:
Originally Posted by Dan View Post
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.
Reply With Quote
  #42  
Old 5th February 2012, 04:33 AM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309
linuxfirefox
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
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
Reply

Tags
pulseaudio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulseaudio? It is a **** ! antiwinhacker Reviews, Rants & Things That Make You Scream 16 17th June 2010 03:44 AM
pulseaudio max CPU ltodd2 Using Fedora 0 2nd March 2010 09:07 AM
ssh -X and PulseAudio GreyWizzard Using Fedora 7 20th May 2009 07:55 PM
pulseaudio -0.98 for fc8 ? PeterO_UK Using Fedora 5 1st January 2008 09:00 PM


Current GMT-time: 19:50 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat