ffmpeg: capture audio that's playing (command line)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ffmpeg: capture audio that's playing (command line)
# 1  
Old 02-09-2010
ffmpeg: capture audio that's playing (command line)

I'd like to capture the audio playing in itunes (OSX) to a file (from the command line).

I currently use Wiretap Pro, but i'd like a non-gui. I tried installing sox, but after installing about 40-50 dependencies it crashed out. I do have ffmpeg working and I am pretty sure it can capture what's playing.

I've tried stuff i googled like:

Code:
ffmpeg -f audio_device -i /dev/audio -o test.aiff

However, i get errors on audio_device and /dev/audio

Quote:
Unknown input or output format: audio_device
Quote:
/dev/audio: I/O error occured
Usually that means that input file is truncated and/or corrupted.
I've also downloaded streamripper but that requires a URL.

I am not too concerned about hte format the audio is saved in, i can convert it to mp3 using ffmpeg later.

Thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

OSX afplay command line audio player _manual_.

Hi everyone... I don't know if this is the correct forum but it is Apple OSX specific. It is a proper pseudo-man page for the sparse official one... This is as thorough as experimentation can get... Command line afplay, August 2016. --------------------------------- afplay -h ... (0 Replies)
Discussion started by: wisecracker
0 Replies

2. Windows & DOS: Issues & Discussions

FFMPEG command problem...

Hi, Currently having some trouble with FFMPEG.... I have the following files: 0001_.gif 0002_.gif ............. 0584_.gif 0585_.gif 0586_.gif 0587_.gif 0588_.gif 0589_.gif 0590_.gif 0591_.gif And am trying to use ffmpeg to join them to a video as follows: (7 Replies)
Discussion started by: pasc
7 Replies

3. OS X (Apple)

Python script to do simple audio capture...

This site is the first to get this snippet. It will capture an audio recording of any time length within the limits of OSX's QuickTime Player's capablility... A shell script derivative of this will be used as a further capture for CygWin's AudioScope.sh. Thoroughly read ALL the comments in... (0 Replies)
Discussion started by: wisecracker
0 Replies

4. Slackware

Problems with audio recording in Audacity 2.0.5. Slackware64 14.1; Intel HD Audio.

I'm trying to record audio using Audacity 2.0.5 installed from SlackBuilds. My system is 64-bit Slackware 14.1 and a sound card is Intel HD Audio. I didn't change my sound system to OSS. (Default sound system in Slackware 14.1 is ALSA, isn't it?) First, I set Internal Microphone slider in KMix... (2 Replies)
Discussion started by: qzxcvbnm
2 Replies

5. HP-UX

How capture all user command line output?

Hi I want to know how capture all user command line output and save this commands and outputs to text files? if you have script for this subject please give me.:o please help me thank you (6 Replies)
Discussion started by: amvhd
6 Replies

6. UNIX for Dummies Questions & Answers

sed command playing with me!

Hello guys, I was working with my data (a tab delimted text file) in Linux and wanted to replace all "NaN" values in my huge table with "NA", so i used the following sed command: sed 's/NaN/NA/g' /filepath -> outputfile.txt The results were good, all "NaN" were replaced with "NA", but the... (7 Replies)
Discussion started by: Error404
7 Replies

7. Red Hat

command line image capture on fedora 11

i mean command line WEBCAM image capture. sorry fo rleaving webcam out of the title... how do i edit that? anyways... imagemagick, ffmpeg are installed. cheese works fine. webcam is there. i can take movies and photos. i would like to take command line snapshots from the camera. how do i do... (0 Replies)
Discussion started by: danpaluska
0 Replies

8. Shell Programming and Scripting

Capture entire line in ps command

I need to determine what processes are running at certain times of the day. I have a script that issues the /usr/ucb/ps aux command and captures it to a file. I want to see the cpu usage and memory usage. This command lops off the end of the of the display line so I can't see the entire... (2 Replies)
Discussion started by: MizzGail
2 Replies

9. Programming

Playing Audio files in C

Hi All, Looking for an assistance on how to access the speakers of my machine and play audio files using C. Any tutorials will be of great help. Regards, Sayantan. (1 Reply)
Discussion started by: Sayantan
1 Replies

10. UNIX for Dummies Questions & Answers

playing audio

Hi all, I play audio through the web browser and it plays ok on windows. When i try the same thing on unix i get the error message "sh: /usr/local/bin/sox: not found. I've tried 'locate sox' and can't seem to find it. Is there some way I can change the browser settings so they play the audio... (3 Replies)
Discussion started by: molli_81
3 Replies
Login or Register to Ask a Question