Command Line Audio

I'm looking for a simple way to record audio from the command line in OS X.
Is there a tool similar to record or arecord?

mac57 wrote:
Hi All, thanks for the responses. I tried out cmus, but it seems to want to operate in ncurses mode only. I couldn't find a way to do something like:
cmus filename &
and have it just play a file and go away. I am looking for something like that to play sounds as part of XFCE4 startup and shutdown sequences. Totally non intereractive, you just put the command into the XFCE4 scripts and voila! you get sound.
moc worries me. I run KDE too, and there is a moc already defined on my system, in /opt/qt/bin, which declares itself to be the Qt Meta Object Compiler. I figure I don't want to mess with that by installing something ELSE called moc. So, reluctantly I set moc aside.
That's why the executable is called mocp.
Btw, I admit I didn't read your original thread, only the title, and the answers.
moc / cmus / mpd+ncmpc are not what you want at all, these are full featured music players.

Similar Messages

  • Any command line audio player with song rating and play count?

    Is there any command line audio player that can handle song rating and play count? Thank you

    I answer my question: mpd + mpdcron can store song rating and play count and much more to sqlite database.
    Last edited by hariskar (2015-03-20 05:01:09)

  • I need a command line audio player to play ogg sound events

    Hi I am new to the imac. I have a script that needs to play ogg sound events. So I need a command line callable audio player. Is there one for the imac?

    Try PlaySound 1.6.6 - VersionTracker or MacUpdate.

  • I need command line audio player to play ogg files

    I want to be able to play some sound events from the command line. Is there a player for the intel imac that will do that?
    Message was edited by: rmiles

    Try PlaySound 1.6.6 - VersionTracker or MacUpdate.

  • Audio file tagging on command line

    I've been looking for a solution to go trough all my audio files on command line and automagically write the tags. Problem is that I have quite much untagged mp3's and ogg's or not so consistent tags within same artist and this causes pain when browsing my catalogue.
    Like said, I'd prefer CLI on this. So if you know any possible solution, please, poke me
    Cheers and merry xmas!

    Hello. You could try id3 and id3v3 both from extra, or ncmpcpp from community, which I use. I don't know if they handle filetypes other than mp3, though.

  • Set audio on compressor using command line?

    Anyone know how to supply the audio path using compressor on the command line?
    Running compressor -help shows audio=/path/to/file but it's not too specific on how that looks in the actual command.  I've tried every combination I can think of. Has anyone done this succussfully?
    Thanks

    When I try that format I don't get any response at the command line from compressor...it just exits.  Here's my command:
    compressor -clustername "Compressor" -batchname "test" -settingpath "/Volumes/theGrill/Resource_Library/Art_Anim/Presets/Compressor/Preview (H.264).setting" -asneededcopy -destinationpath "/Volumes/Scratch/temp/test/test.mov" -jobpath "/Volumes/Scratch/temp/test/Leadership_April_Update/" audio="/Volumes/Scratch/temp/test/Leadership_April_Update.wav"
    The other formats I've tried include.  Responses are what is returned in terminal.
    -jobpath "/path/to/sourcevideo.mov",audio="/path/to/sourceaudio.aif"
         Response: Parameter error: Invalid Job path: /Volumes/Scratch/temp/test/Leadership_April_Update/,audio=/Volumes/Scratch/temp /test/Leadership_April_Update.wav
    -jobpath "/path/to/sourcevideo.mov" -audio="/path/to/sourceaudio.aif"
         Response: None
    -jobpath "/path/to/sourcevideo.mov" -audio "/path/to/sourceaudio.aif"
         Response: Invalid parameter: -audio
    -jobpath "/path/to/sourcevideo.mov" -jobpath audio="/path/to/sourceaudio.aif"
         Response: Parameter error: Invalid Job path: audio=/Volumes/Scratch/temp/test/Leadership_April_Update.wav
    -jobpath "file:///path/to/sourcevideo.mov?audio=file:///path/to/sourceaudio.aif"
         This submits, but the output doesn't have the audio.
    Any other ideas?

  • Setting audio output levels automatically at login (even with command-line)

    When I log in, the audio level seems to be at the level set by the last user. Is there a way to get this to automatically set to my preferred level when I log in?
    A related question: Is there a command-line method of setting the audio level?
    Thanks in advance,
    Paul
    Power Mac G5 Quad   Mac OS X (10.4.8)   2GB ECC Memory

    u could use scripting...
    sudo osascript -e "set Volume 20"
    using that at the command line will change the volume level to 20.
    you could put that in a script or something and have it launch at login.
    Beavis2084

  • Command-line access to or counterpart to Audio Midi Setup?

    Is there a way to access, or better yet, change, settings in Audio Midi Setup.app, via the command-line?

    Sure. Retrieve the file ~/Library/Preferences/ByHost/com.apple.MIDI.*.plist via scp, edit it locally in PlistEditor or some such, and upload the revision. It's a binary plist, so you can't edit it in place.
    Message was edited by: Linc Davis

  • Audio guys, LAME command line question

    Hey I know this is not the exact forum for this question but I figured you guys could help me better than anyone. I have a G5 running tiger server and a website that is recompressing uploaded MP3 files using LAME via command line. LAME seems to be mangling some of the files by creating distorted filed and 0 byte sized files. I am wondering is there an any other mac program that I can use to reencode mp3 files with the terminal and command line? LAME is said to be great but the files that are already at the frequency that I want (44.1) are converted ok but everything else is just mangled... any suggestions. Thanks!

    I guess I'm looking for either:
    a suggestion on why LAME might be messing up files, maybe someone wlse who had similar issues with LAME and found a fix
    or
    another mac program like LAME that I can run via command line through PHP to convert files.
    I'll play with automator and see if the itunes option might work.
    Thanks!

  • Sending image sequence job to compressor in command line : how to set the framerate?

    Hello,
    In Compressor, when you import a image sequence, it's possible to set the framerate and add an audio file before choosing a preset and lauching the encoding task.
    I want to dlo the same thing with command line. I know how to send a compressor job with command line, but no how to add theses settings.
    In the compressor command line help, we've got this :
    Job Info: Used when submitting individual source files. Following parameters are repeated to enter multiple job targets in a batch
              -jobpath <url> -- url to source file.
                                               -- In case of Image Sequence, URL should be a file URL pointing to directory with image sequence.
                                               -- Additional parameters may be specified to set frameRate (e.g. frameRate=29.97) and audio file (e.g. audio=/usr/me/myaudiofile.mov).
    So there are also framerate and audio parameters in command line but i've no idea how to write the command line with theses parameters
    Here is an example of command line for Compressor (by Apple) :
    ./Compressor ‑clusterid tcp://127.0.0.1:51737 ‑batchname myBatch ‑jobpath /Volumes/Source/ShortClips/NTSC24p.mov ‑settingpath /Users/stomper10/Library/Application\ Support/Compressor/PhotoJPEG.setting ‑destinationpath /Users/machinename/Movies/myDestinationFilename.mov.
    Thank you for your help!

    You can see in the command sh running-config command
    show running-config : Displays the current access point operating configuration
    Use the guest-mode SSID configuration mode command to configure the radio interface (for the specified SSID) to support guest mode. Use the no form of the command to disable the guest mode.
    [no] guest-mode .
    Here is the guideline for usage
    The access point can have one guest-mode SSID or none at all. The guest-mode SSID is used in beacon frames and response frames to probe requests that specify the empty or wildcard SSID. If no guest-mode SSID exists, the beacon contains no SSID and probe requests with the wildcard SSID are ignored. Disabling the guest mode makes the networks slightly more secure. Enabling the guest mode helps clients that passively scan (do not transmit) associate with the access point. It also allows clients configured without a SSID to associate.
    Examples
    This example shows how to set the wireless LAN for the specified SSID into guest mode:
    AP(config-if-ssid)# guest-mode
    This example shows how to reset the guest-mode parameter to default values:
    AP(config-if-ssid)# no guest-mode

  • How to burn CD's from the command line in 2009?

    I've always managed to burn CDs and DVDs from the command line but I haven't done it in a long time. cdrecord wasn't working as root and I noticed it was just a symlink pointing to wodim.
    I tried the following command as root in a directory with some wav files:
    # cdrecord -dev=/dev/sr0 -driveropts=burnfree -audio -pad *.wav
    Which gives me:
    Mar 6 08:43:18 wilco ata7.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
    Mar 6 08:43:18 wilco ata7.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
    Mar 6 08:43:18 wilco cdb 35 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Mar 6 08:43:18 wilco res 40/00:02:00:0c:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
    Mar 6 08:43:18 wilco ata7.00: status: { DRDY }
    Mar 6 08:43:18 wilco ata7: hard resetting link
    Mar 6 08:43:19 wilco ata7: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    Mar 6 08:43:19 wilco ata7.00: configured for UDMA/100
    Mar 6 08:43:19 wilco ata7: EH complete
    This worked for me in 2008, so has anything big changed?

    Rasi wrote:
    Wilco wrote:
    Dieter@be wrote:I did not follow the discussion, but I just use wodim as specified on http://wiki.archlinux.org/index.php/CD_Burning_Tips, and that works great for me.
    Hmm strange, I tried the same command as in my first post and it works fine with the real cdrtools but not with wodim (I also tried k3b and that failed too). So I just stick with cdrtools
    Hooray, one more convert
    I haven't really followed the discussion either but why choose an "emulated cdrecord" that doesn't work instead of the real program that works great?

  • [SOLVED] How to Crop an MP4 Video via Command-line?

    I have ffmpeg, mpg123, and mencoder. Does anyone know of a way I could use any of those to crop an mp4 video via command-line? I am trying to take off the black space above and below a video. Thanks in advance!
    Last edited by tony5429 (2009-04-12 00:12:57)

    I don't think it's possible to crop without re-encoding, but you can crop from the command line with ffmpeg and mencoder. Not sure about mpg123 - I think that's for playing audio but I could be wrong there.
    Anyway, with ffmpeg you can do cropping by using -croptop, -cropbottom, -cropleft, and -cropright. So if you wanted to crop 16 pixels off of the top and the bottom, your command line would look something like this:
    ffmpeg -i <input file> -croptop 16 -cropbottom 16 <video encoding options> <audio encoding options> <output file>
    With mencoder you use the "crop" video filter, like this:
    mencoder <input file> -o <output file> -vf crop=320:208:0:16 <other options>
    where the "320:208:0:16" means that the resulting picture is 320 pixels wide, 208 pixels high, and the 0:16 is the x,y position of the cropped area.
    These command lines are just really very basic examples - ffmpeg and mencoder have a LOT of options. Way too many to explain here. If you don't believe me, just try reading through the mencoder man page sometime. (There's an online version of it at: http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html)
    Hope this helps!!

  • Command line switch for silent install (-ms) no longer works for Firefox 35.0

    In previous versions of Firefox, I've downloaded the full installer from https://www.mozilla.org/en-US/firefox/all/ and created a silent install package using the command line-
    "FirefoxSetup35.0.exe" -ms /INI="configuration.ini"
    drop the -ms and it installs (albeit not silently)
    drop the /INI and it fails
    that would indicate that the problem is the -ms switch. Any ideas?

    I found the related bug (looks like it will be fixed in Firefox 23)
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=890516 Bug 890516] - Embedded audio stopped working after installing FF 22

  • Including files/resources using the ADT command line

    Hi all,
    I'm trying to get file support into my ADT helper tool before I release an update.  I am still having problems.
    According to the Adobe docs on the subject, the following commands can be used:
    -C "path/to/new/working/directory" [files and folders to include]
    -e [files and folders to include] [package directory to add these to]
    The following example works fine for me:
    // This changes the working directory to my audio resources folder, and then packages the file 'track.mp3' into the root folder of my application package.
    -C "C:\\resources\audio" "track.mp3"
    Hoiwever using -e option in any way generates an error:
    // This copies the file 'sfx.mp3' from the current working directory to the application package subdirectory 'lib'
    -e sfx.mp3 lib
    This also causes an error:
    // Change the working directory to resources/audio and then copy the file called 'sfx.mp3' to the 'lib' subfolder of the application package. Error.
    -C "C:\\resources\audio" -e sfx.mp3 lib
    The error in both cases is:
    File does not exist: sfx.mp3
    Any ideas how I can use the -e option?  Does the working directory not come in to it - do i always have to use an absolute path to my file?
    Thanks in advance,
    Peter

    Not sure if it will help in your situation, but I just include files by adding the filepath at the end of my adt command line (no -e or -c). Eg (included files or bolded):
    "C:\Program Files (x86)\Java\jre6\bin\java" -jar C:\Users\t.randall\Documents\AIRSDK\AIR_3.0\lib\adt.jar -package -target ipa-ad-hoc -storetype pkcs12 -keystore ..\..\Deployment\CareerBox.p12 -storepass pass -provisioning-profile ..\..\Deployment\CareerBox.mobileprovision ..\..\CareerBox.ipa CareerBox_iPhone-app.xml CareerBox_iPhone.swf AppIconsForPublish\Icon29x.png AppIconsForPublish\Icon57x.png AppIconsForPublish\[email protected] AppIconsForPublish\Icon512x.png AppIconsForPublish\Icon48x.png AppIconsForPublish\Icon72x.png Default.png [email protected] Default-Landscape~ipad.png Data\Cards.xml Data\CareerCards.xml

  • Networker how to change volume mode to appendable by command line

    I would like to ask how can i change volume mode to appendabel for networker ebs through command line, eg . nsrjb -o nofull -S 2,

    It looks like changes to the audio settings alters the com.apple.audio.SystemSettings.plist file.
    You can see the difference here:
    http://barbatto.com/gu/Picture_2010-01-08_at_1_50_43PM.jpg
    I might be able to use "defaults write" to make the change.

Maybe you are looking for

  • How good is the SAMPLE function?

    I need to get a sample set from a database. Thankfully, ORACLE in the modern versions provides the SAMPLE function which does exactly that. Now, my question is how good is this function? As in, would the SAMPLE function pass the random number certifi

  • Entry during GR of a batch

    Dear Experts, During GR of raw material from vendor we want to enter the next inpection date in the batch itself .But the fields for the characteristics appears grey and is not allowing to enter the next inspection date in the batch . Please suggest

  • How to produce an XML output

    Hi, can someone tell me if and how it's possible to get an output of a select in XML format in Oracle? Is there some PDF explaining how to do it? I work on Oracle version 8i Thanks!

  • Content in Container Moves every time I click

    Hi!   I have created a project that calls a symbol into a container, and when the user clicks, the content gets loaded into the container. However, every time I click the button, it moves the container/content down about 25 pixels.   I have tried in

  • Configuring AEBS for ssh to Windows box

    I'm trying to access a Windows 2000 box that is on the same network as my MBP - both served by an AEBS. When I try to access the W2K box from work I get a connection time out error. I've used the Airport Utility to open port 22 and forward it to the