How To Record Multiple Audio Channels In Commandline With External Soundcard

Hi, for scientific reasons I need to record 8 audio channels simultaniously. The process has to be automated, so I want to run everything from commandline.
The device I'm using is a Presonus Audiobox 1818VSL. Ideally it should feed a RaspberryPi which stores it on a external harddrive. For my porpuse the samplerate doesn't really matter, but the file size should not not be to large. So 16 bit and 4 to 8 kHz would be great.
Up to now I've tried to use arecord with every posssible format, bitsize and samplerate, but nothing worked out so far. Obviously arecord missinterpretes the incoming signal, what results in pretty large and samplerate dependend noise.
Surprisingly everthings fine with the recording via audacity, which excludes the possibility of driver problems or something like that.
Does anybody have an idea how to solve this problem?
Thanks in advance


Similar Content



Perplexing Cron Audio Problem

I'm running LinuxLite 2.0 32bit on a Dell 3000.

I have never come across anything like this and to tell you, I am stumped.

Here are the contents of my crontab file:

Code:
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h  dom mon dow   command
*/10 * * * * /usr/bin/arecord -t wav -f cd -d 42 /home/randy/Music/lanting$(date "+\%^b\%d\%y").wav


If I run this from the terminal, everything is fine. It properly records the audio:

Code:
/usr/bin/arecord -t wav -f cd -d 42 /home/randy/Music/lanting$(date "+\%^b\%d\%y").wav

If I run this as it is shown in my crontab file, it records but there is no audio recorded.:


Code:
*/10 * * * * /usr/bin/arecord -t wav -f cd -d 42 /home/randy/Music/lanting$(date "+\%^b\%d\%y").wav

What could be causing this? I tried different cron settings for example 15 14 * * 2

This recorded at 2:15pm on Tuesday (today) but no audio. Yet if I run the code as mentioned above, from the terminal without the cron settings, the recording is fine.

Any ideas what I should do?

Can Ffmpeg, Mencoder, Handbrake Fix Fluctuating Audio Like VLC Can?

Hi

I have some video files where audio dialogue is low but action scenes are loud. I was searching the web on how I can fix this and I found this link http://lifehacker.com/5920290/how-to...en-really-loud

It is an excellent tutorial from lifehacker.

I was wondering if ffmpeg, mplayer/mencoder, handbrake or other commandline program can do the same of increasing the low audio dialogue while keeping the loud action scenes the same audio level? Thanks

How To Shrink A Large Audio Ogg File

I would like to learn how to create a zip file. The word zip file is a Windows/Microsoft word. I do not know what word is used in Linux OS.
What I am trying to do is send a copy of an internet radio show. The show is two hours long. When I try to attach the audio file to an email. I am told the file is too large.
I have permission from the host of the radio show to make a copy and send it to a friend.

HDMI Audio Not Working

I have just switched over from DVI to HDMI on a new monitor. I would like to feed the audio out over HDMI. Currently I get no audio over HDMI. Is there a setting to enable this? I am running Debian Wheezy with XFCE.

I Installed An External Hard Drive Using Gparted. I Cannot Move Files To The External

Hello.

I have checked the other threads and either I have missed my answer or did not understand that it was the answer. I apologise in advance if I am being a repeater:

The Problem: I am running 17 mint. I installed a toshiba external Hard Drive using Gparted- Fast and easy, BUT, somehow I installed the external as root, I cannot move files to the external because I am not root? Under permissions it states that the Owner Cannot Be Determined.
Any help would be great.

Have a great night, morning or afternoon!

Mplayer Song Length Limit

(Raspberry Pi Model B)
I have a really long audio file I'd like to play.
It's 10 hours long (white noise)

However, when playing it with mplayer it only gets to 4 hours before determining it's now end of file.

Code:
A:14360.8 ( 3:59:20.8) of 36080.8 (10:01:20.7)  7.2


Exiting... (End of file)

I know the audio file isn't corrupted past this point since I can fast-forward to 3:59:00:0 and let it play and it works fine (at least for the 2m I let it play)

I could in theory break up the file into 3.5 chunks to stay below the limit but I'm wondering if this is a inherent limitation of mplayer (didn't expect 4hr+) or if it's a bug.

Record Buffer Provided By Awk

we do have a record buffer in awk utility that holds one complete record of a data file.

I want to know that if record buffer changes during script processing, then when are these changes reflected back to the data file?

Are they reflected immediately or is there an in-built mechanism available to schedule this change?

Using Ffmpeg To Fade In Audio, BUT Original Audio From Video Is Gone

Hi

I am trying to fade in audio at 39 seconds into the video with existing audio.

It did work, the mp3 file fades in at 39 seconds, however the original audio from the video is silence or removed.

Here is the code I've use.

Code:
ffmpeg -i audio.mp3 -i test.mp4 -c:v copy -strict experimental -shortest -af 'afade=t=in:st=39' test.mp4

How can I fix this? Thanks

Transferring Audio Files From A Media Player To An Android Phone

Hi all,

I'm not quite a newbie having been using Linux for around a year now and think I know some of the basics at least. In the main it does what I want, some things better than they ever did on Window while some things frustratingly more awkward!

I have a load of music files that I'd like to search through and transfer some to the external sd card of my android phone. This was something that was a doddle during my Windows days but seems unbelievably difficult now. Back then I used a media player I loved, Mediamonkey, and could simply drag and drop whichever tracks I wanted, or right click and move to a device that way. Sadly this doesn't work too well with WINE though so is fine on XP through Virtualbox, apart from a lack of USB function.

I'm using Linux Mint 17.1 with a KDE desktop.

When I plug my phone into a USB port, it is recognised straight away as an android phone and I can navigate around it with no problems in Dolphin. I could look for each individual file and transfer them that way but with around 30,000 mp3s the task would take quite some time!

None of the media players I've tried so far recognise the phone or the storage on it.

I've installed Windows XP on Virtualbox and have Mediamonkey on there with all my audio files. I can't seem to get Virtualbox to recognise any USB devices so I can't transfer files that way either.

I find it annoying that, in effect, Android is a variety of Linux yet connectivity between the two is so complicated. Airdroid has been the best way that I've found but that's not an option.

I've been trying for 4 hours now and have got nowhere. If anyone can help I'd be grateful Thanks

New Debian 7.7 Non-free Install - Sound Not Working.

Hello everyone.
I have just installed debian stable non-free onto my hard drive but the sound isn't working.

I've been to the debian site https://wiki.debian.org/SoundConfiguration and found that 'users' don't automatically have access to audio (for security reasons).
So I did the following command as root (sudo):
Code:
adduser USER_NAME audio

Now when I am 'user', I can get sound.

I also did:
Code:
chgrp cdrom /dev/sr0
adduser USER_ID cdrom

This allows 'user' to get sound from the cdrom.

I then went onto the debian soundfaq https://wiki.debian.org/SoundFAQ

From the 'lspci -v' command, I get these 2 outputs which have the word 'audio' in it:
Code:
01:05.1 Audio device: Advanced Micro Devices [AMD] nee ATI RS880 HDMI Audio [Radeon HD 4200 Series]
	Subsystem: Giga-byte Technology Device 960f
	Flags: bus master, fast devsel, latency 0, IRQ 19
	Memory at fdefc000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 3
	Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
	Kernel driver in use: snd_hda_intel

00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) (rev 40)
	Subsystem: Giga-byte Technology Device a102
	Flags: bus master, slow devsel, latency 32, IRQ 16
	Memory at fe024000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
	Kernel driver in use: snd_hda_intel

So I have 2 sound cards.

The debian website says: 'If sound does not work for root account as well, then that means that either your sound card is not supported by Debian or it was not configured properly'.

Ok, so the first part of the statement is worrying.
So I went to the debian device driver check page http://kmuto.jp/debian/hcl/ and did 'lspci -n'.
The output can be pasted onto their web page and debian will say if the sound cards are supported.
The web page shows that the sound cards are supported:

Quote:
10024383 Yes Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) snd-hda-intel v2.6.25
10029715 Yes Advanced Micro Devices [AMD] nee ATI RS880 [Radeon HD 4250] radeon v2.6.35-
1002970f Yes Advanced Micro Devices [AMD] nee ATI RS880 HDMI Audio [Radeon HD 4200 Series] snd-hda-intel v2.6.27-
So now I'm guessing that my sound cards are 'not configured properly'. But I've run a Youtube video and then changed the sound cards under alsamixer and I still don't get sound.
Is there is a simple solution to this please? Thank you in advance.