Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Recording the internal audio is far too complicated task.

  1. #1
    Join Date
    Jan 2006
    Location
    Palmela, Portugal
    Beans
    660

    Red face Recording the internal audio is far too complicated task.

    Hello,
    Outputting/recording the internal audio to an ogg file.

    Sometimes I listen to the internet radio or similar and want quickly and easily start RECORDING the sound so I can re-play it later (from an file).

    It is now possible to do the recording, but it is unncessarily complicated and unintuitive task to do.
    This is the current method:

    1) Start playing the sound; a local music file or youtube content, what ever audio you like.

    2) Install and start the "Sound Recorder" application.
    Start it from the Applications -> Sound & Video menu. Press the red-button to start the recording, "kind of".

    See the attached picture1.png

    3) Install and start the PulseAudio Sound Control application. This is the "pavucontrol" package and tool.

    4) In the pavucontrol, select the [Recording] tab-page.

    5) Select the "Monitor + name-of-your-sound-card..." from the list. Now the recording should actually start.

    See the attached picture2.png

    WTF*!*
    ------------

    This is what an ordinary computer user expects to do when recording adhoc audio to a file for later re-play.

    1) Click the loudspeaker icon on the toolbar.
    The small popup-dialog with sound controls appears.

    2) The dialog has a record button.
    Click the record-button and a small edit field with auto-suggested file name appears. User can change the file name.

    3) The loudspeaker icon now indicates that recording is on.

    4) User can stop the recording by clicking the icon.

    Output is saved to user's /home/Media directory. This folder replaces the old /home/Video/ directory.
    ------------

    My audio-card is an old SoundBlaster Audigy 2.
    Attached Images Attached Images
    Last edited by moma; September 1st, 2010 at 09:03 AM.

  2. #2
    Join Date
    Mar 2010
    Location
    in front of a computer
    Beans
    252
    Distro
    Ubuntu Development Release

    Re: Recording the internal audio is far too complicated task.

    One word, Audacity

  3. #3
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Recording the internal audio is far too complicated task.

    Hi
    I use SoundRecorder with Ubuntu Karmic.

    This works for me:-

    Setup
    1. Install all restricted multimedia packages.
    2. System---> Preferences----> Sound
    3. “Hardware tab”, select ANALOG STEREO OUTPUT in PROFILES.

    Use
    4. Play any music or flash video from web.
    5. Open Default Gnome sound recorder, Set to CD quality lossless [flac] or other format.
    6. Click RECORD.
    7. Stop Recording and save file.

  4. #4
    Join Date
    Jan 2006
    Location
    Palmela, Portugal
    Beans
    660

    Re: Recording the internal audio is far too complicated task.

    Hi, thanks for your answers and methods.

    I think the best solution is to create a new GNOME-applet that is attachable to the toolbar. It should have
    * A [REC]/[STOP REC] toogle button.
    * Audio source listbox; Record from microphone, from sound card X.
    * Output format listbox; OGA, FLAC, MP3, WAV.
    * Editable field for the output filename.
    * Use GStreamer to do the actual recording and file format job.

    Some samples. Play some audio and record the output from the default sound-card to a file. Type these commands on the command line.
    Code:
      WAV:
      $ gst-launch-0.10 pulsesrc ! queue ! audioconvert ! wavenc ! filesink location=test.wav
    
      OGG:
      $ gst-launch-0.10 pulsesrc ! queue ! audioconvert ! vorbisenc ! oggmux ! filesink location=test.oga
    
      FLAC:
      $ gst-launch-0.10 pulsesrc ! queue ! audioconvert ! flacenc ! filesink location=test.flac
    
      MP3 ("lamemp3enc" is the preferred encoder, "lame" is deprecated):
      $ gst-launch-0.10 pulsesrc ! queue ! audioconvert ! lamemp3enc ! filesink location=test.mp3
    
      AAC, .m4a (Important: the -e option terminates the stream properly when you hit cntr+c):
      $ gst-launch-0.10 -e pulsesrc ! queue ! audioconvert ! faac ! mp4mux ! filesink location=test.m4a
    
      If PulseAudio (pulsesrc) is not installed, fall back to ALSA source(alsasrc) or even to OSS source (osssrc).
      See "gst-inspect-0.10 | less" and "gst-inspect-0.10 elementname" for more options.
    I will simply convert these pipelines to C code and bake it all to a Desktop-button and GNOME-applet.

    Looking to start this project very soon.
    Whould it be better to create an applet for the new GNOME 3.0 instead of this older GNOME 2.x. I think GNOME 3.0 prefers Javascript and Javascript bindings for Desktop/Applet-programming.

    I have also tested this
    http://www.omgubuntu.co.uk/2010/07/q...output-in.html
    It's Gambas based. But I really prefer a nice and quick recorder-applet on the toolbar.
    Last edited by moma; August 13th, 2010 at 01:09 PM.

  5. #5
    Join Date
    Jan 2006
    Location
    Palmela, Portugal
    Beans
    660

    Re: Recording the internal audio is far too complicated task.

    Re-hello,

    OK, I have now coded the first version of the audio-recorder-applet. Here is a demo

    EDIT: See https://launchpad.net/~osmoma/+archive/rec-applet
    and https://launchpad.net/rec-applet

    BTW: What color does normally indicate "recording on"?
    Last edited by moma; August 13th, 2010 at 01:02 PM.

  6. #6
    Join Date
    Jan 2009
    Location
    USA! goin downhill tho :(
    Beans
    402
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Recording the internal audio is far too complicated task.

    Pretty cool app. Much better than the SoundRecorder method.

    I normally use arecord. Though this is interesting.

    Perhaps you can create a time-limite timer. So it auto stops.

  7. #7
    Join Date
    Jan 2006
    Location
    Palmela, Portugal
    Beans
    660

    Re: Recording the internal audio is far too complicated task.

    >>Perhaps you can create a time-limite timer. So it auto stops.
    Very good idea. I will see to it later.

    Will also add a small amplitude indicator to the GUI or applet itself. Pause-button would also be a nice feature.

    Also, maybe best to put the "Settings>" to a separate dialog even I like to have "Audio source" (the device) and "File format" immediately available.
    Last edited by moma; July 26th, 2010 at 10:20 AM.

  8. #8
    Join Date
    Jan 2006
    Location
    Palmela, Portugal
    Beans
    660

    Wink Re: Recording the internal audio is far too complicated task.

    Re-hello,

    Audio Recorder Applet (rec-applet):

    The first official version (v 0.1) of "Audio Recorder Applet" is now ready. See video demo: http://www.futuredesktop.com/tmp/aud...pplet-v0.1.ogv

    Source code is avail. on the Launchpad: https://launchpad.net/rec-applet
    The project name is "rec-applet".
    Instructions in README and INSTALL files.

    I will try to create a PPA-repository for this product. If success, you may download ready-made .deb packages from https://launchpad.net/~osmoma
    See "rec-applet" personal package archive.

    Most kindly
    Moma Antero,
    Last edited by moma; August 5th, 2010 at 08:28 PM.

  9. #9
    Join Date
    Nov 2008
    Location
    #!
    Beans
    1,749

    Re: Recording the internal audio is far too complicated task.

    Quote Originally Posted by moma View Post
    Re-hello,

    Audio Recorder Applet (rec-applet):

    The first official version (v 0.1) of "Audio Recorder Applet" is now ready. See video demo: http://www.futuredesktop.com/tmp/aud...pplet-v0.1.ogv

    Source code is avail. on the Launchpad: https://launchpad.net/rec-applet
    The project name is "rec-applet".
    Instructions in README and INSTALL files.

    I will try to create a PPA-repository for this product. If success, you may download ready-made .deb packages from https://launchpad.net/~osmoma
    See "rec-applet" personal package archive.

    Most kindly
    Moma Antero,
    Hi,

    I am trying to get this from the launchpad site but it is reporting that there are no files to download.

    I would like to try this out if I can get the source.

  10. #10
    Join Date
    Jan 2006
    Location
    Palmela, Portugal
    Beans
    660

    Re: Recording the internal audio is far too complicated task.

    Hello,

    I just managed to create a PPA (personal package archive) and there should be a .tar.gz source available.

    Look into:
    https://launchpad.net/~osmoma/+archi...plet/+packages

    Click the "rec-applet - 0.1" link and you should see the .tar.gz file there.

    The Launchpad's server had not yet (at this moment) compiled the source to installable .deb package. It reported that compilation would start within the next 15 minutes. If success, it will generate both 32 and 64bit .deb packages.

    EDIT: The compilation failed due to missing libgstreamer-plugins-base0.10-dev package. Fixing it and re-uploading.
    ---

    Note: This "rec-applet" has two web pages on the Launchpad.

    The 1.st one holds the development code managed by Bazar (bzr).
    See: https://code.launchpad.net/~osmoma/rec-applet/

    I just wonder if you can get the source code by issuing this command.
    $ bzr branch lp:~osmoma/rec-applet/trunk
    Or do you need special access rights for that?
    This will give you the latest code.

    Then you would just enter to the directory and
    $ ./configure
    $ make
    $ sudo make install

    The 2.nd page is the PPA that provides ready-made Debian/Ubuntu packages (also .tar.gz ball).
    See: https://launchpad.net/~osmoma/+archive/rec-applet
    This will give you the original (old) .tar.gz ball + diff patches.

    I hope other people will contribute to the code, improve the code quality, fix bugs, translate the program to other languages etc.
    Last edited by moma; August 6th, 2010 at 11:03 AM.

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •