I've read some of Christoph Eckert's posts from 2005 about passing index
options to snd-usb-audio when it gets loaded, but I haven't been able to
get it to work. There is a builtin mic with the non-functional camera
that is apparantly on the usb bus, the internal SiS AC'97 device and
sometimes an edirol ua-25.
Any one of them can end up in any position. I've tried messing with
options in modprobe.d, but haven't figured out how to make the cards
stick to their card numbers on each boot.
Anyone here have some pointers? It'll make the LAC streaming go much
more smoothly if I don't have to hunt down which cardnumber is the edirol
for the audio streams and which cardnumber is internal for monitoring.
Thanks for any help,
ERic Rz.
So while running Ubuntu Edgy, I bring up alsamixer as root to adjust
my levels. I set them accordingly and then esc out. All is good,
right? No. So I bring up alsamixer again as root and it defaulted back
to it's original values. It won't save any of my values.
What am I doing wrong here?
Thanks,
Mike
Eric Dantan Rzewnicki:
>
> On Mon, Mar 19, 2007 at 06:55:53PM -0500, Jack O'Quin wrote:
> > On 3/19/07, Atte André Jensen <atte.jensen(a)gmail.com> wrote:
> > You could code those parts of the program in C or C++ to avoid
> > memory management in the "harder" realtime portions of your
> > application. With sufficiently large ringbuffers (or the like), the
> > other parts can probably be written in python with some higher
> > latency.
Well, Python is not so bad for realtime use, since the garbage collector
is referencial. Its not optimal or realtime safe in any way, but in
practice it works a lot better than other languages.
>
> An option to consider is controlling ecasound from python. I've had a
> good deal of fun building things this way in the past and hope to get
> back to it this year.
>
> It works fairly well. The logic and configuration of your program is
> fine in python ... it just sends control information to ecasound while
> ecasound handles all the details of communicating with jackd.
>
Other python alternatives are RTcmix:
http://music.columbia.edu/cmc/RTcmix/use/python.html
Or SuperCollider:
(Couldn't find link, but I think I remember hearing about some
stuff somewhere)
Or PD:
http://grrrr.org/ext/py/
I'm sure there are other ways too. CSound for example.
Hi
I just installed csound5 with the python bindings, and now I'm eager to
explore the possibilities with audio/python. I've done a fair amount of
python programming, but so far my experiences with audio has been with
PySeq (which I found pretty straight-forward). I hope someone here can
answer a few initial questions:
1) How do I spawn a thread that has realtime priorities (like with "chrt
-f -v 70 csound some.csd")?
2) I'd like to have several csnd's running, each in its own thread, but
"collecting" the audio produced into one stream that should be
output'able to both alsa and jack (obviously not at the same time, so
maybe "either/or would be more descriptive). Is that possible and which
python library should I look into?
3) I need to "investigate" a bit from my python app. Stuff like finding
out which alsa midi clients are available, weather jack is running, etc.
How is that done?
4) I also need to filter out stuff from the midi stream in order to send
certain midi events to different csnd threads. I did this already with
PySeq, but in light of what else I want to do, is there another
alternative I should look into?
5) Besides *only* runnining the csnd instances in seperate rt threads,
are there other things I need to be aware of or avoid for the
application to perform well under jack and/or alsa? Also considering I'm
gonna make it gui driven (been looking at WxWidgets, and although I'm
totally new to gui programming it looks nice).
Answers and/or pointers to relevant online info is greatly appreciated,
thanks in advance!
--
peace, love & harmony
Atte
http://www.atte.dk | quintet: http://www.anagrammer.dk
| compositions: http://www.atte.dk/compositions
So, it turns out that tcextract extracts the 5.1 channel AC3 file (when
used with -a 0). If I use -a [1/2/3/etc], I get a 0 size file.
When I use tcdecode on the AC3 file, it downmixes to two channels and
produces a stereo file. However, I can use the -s [c,f,r] to weight
mixing of the centre, front and rear to extract 3 different stereo
files....(running tcdecode 3 different times with 3 different weights of
[1,0,0], [0,1,0] and [0,0,1].
Its something I can use for now.
It would be nice to be able to extract the DTS channels - tcdecode does
not decode DTS.
Thanks for your help,
D
Robin Gareus wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> D. Sen wrote:
>> The problem with all of these applications is that they downmix the
>> audio down to stereo when storing to a wav file.
>
> are you sure about that? - `man tcdecode` says in line 48:
>
> - -A flag
>
> audio flag for AC3/A52 decoder [none]. This flag determines the
> down-mixing configuration. Valid choices for flag are determined by the
> following bits set:
> drc off 1
> demux 2
> dolby off 4
>
> Add those numbers to turn multiple options on.
>
> maybe you want tcextract (not decode the audio) ?
> from `man tcextract`:
>
> The command tcextract -i foo.avi -x mp3 -a 3 extracts MPEG audio track 3
> from the AVI-file foo.avi and prints the bitstream to stdout.
>
>> Do you know if the tccat/tcdecode/tcextract command will save the
>> individual tracks (interleaved or otherwise)?
>
> interleaved, but it depends on the codec or how many audio tracks you
> select..
>
> cheers,
> robin
>
> PS. please don't top-post!
>
>> Thanks,
>>
>> Robin Gareus wrote:
>>> D. Sen wrote:
>>>> Robin Gareus wrote:
>>>>> D. Sen wrote:
>>>>>> Anyone know of a way to extract the multichannel audio from a
>>>>>> DVD-Audio
>>>>>> disc? Xine plays the multichannel files - so I assume there has to
>>>>>> be a
>>>>>> way to extract them...
>>>>>>
>>>>> there's `tcdemux` and `tcdecode` from the transcode package
>>>>> - dvdrip provides is a GUI.
>>>>>
>>>>> (you can copy/paste dvdrip's LOG window for the commands it uses to do
>>>>> the job. You only want the first part of the pipe: tcdemux |
>>>>> tcdecode..)
>>>>>
>>>>>
>>>> dvdrip refuses to work on my distribution.
>>> mmh then there's the chance that tcdemux & tcdecode won't work either. -
>>> usually you get those as dependency to dvd::rip. - see.
>>> http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode
>>>
>>> I'm sure that you can also use mplayer/mencoder or some ffmpeg command
>>> line to do the same job.. gstreamer too..
>>>
>>>> Is there a chance you could
>>>> tell me what the tcdemux | tcdecode scripts would be to extract the
>>>> audio?
>>> sorry, I did not have my dvd drive with me.. now I do.
>>>
>>> how are your command line skills? dvd::rip does a lot of fancy piping (
>>> `man tee` -> man dvdrip-multitee ? :) ) - the command that does ripping
>>> & demux is several pages long (includes 100 subtitle commands)...
>>>
>>> It boils down to sth like this:
>>>
>>> tccat -t dvd -T 1,-1,1 -i \/dev\/scsi\/host8\/bus0\/target0\/lun0\/cd |
>>> tcextract -a 0 -x ac3 -t vob | tcdecode -x ac3 | tcscan -x pcm
>>>
>>> adjust the device to match your DVD-ROM. and replace the last step " |
>>> tcscan -x pcm" with " > ripped-audio.pcm" to write the audio into a
>>> file; or use " | tee ripped-audio.pcm | tcscan -x pcm" to write to a
>>> file and scan for peak values..
>>>
>>> use sox or rezound or ... to convert the pcm into your favorite format!
>>>
>>> good luck,
>>> robin
>>>
>>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFF/ymleVUk8U+VK0IRAv/oAJ9Up2Mx/7QhwJzgbVwwuQb9dVWCnwCgu4bt
> +2q8W6C45eWk3Exsxx2fkc4=
> =gTLP
> -----END PGP SIGNATURE-----
>
>
D. Sen wrote:
> Robin Gareus wrote:
>>
>> D. Sen wrote:
>>> Anyone know of a way to extract the multichannel audio from a DVD-Audio
>>> disc? Xine plays the multichannel files - so I assume there has to be a
>>> way to extract them...
>>>
>>
>> there's `tcdemux` and `tcdecode` from the transcode package
>> - dvdrip provides is a GUI.
>>
>> (you can copy/paste dvdrip's LOG window for the commands it uses to do
>> the job. You only want the first part of the pipe: tcdemux | tcdecode..)
>>
>>
> dvdrip refuses to work on my distribution.
mmh then there's the chance that tcdemux & tcdecode won't work either. -
usually you get those as dependency to dvd::rip. - see.
http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode
I'm sure that you can also use mplayer/mencoder or some ffmpeg command
line to do the same job.. gstreamer too..
> Is there a chance you could
> tell me what the tcdemux | tcdecode scripts would be to extract the audio?
sorry, I did not have my dvd drive with me.. now I do.
how are your command line skills? dvd::rip does a lot of fancy piping (
`man tee` -> man dvdrip-multitee ? :) ) - the command that does ripping
& demux is several pages long (includes 100 subtitle commands)...
It boils down to sth like this:
tccat -t dvd -T 1,-1,1 -i \/dev\/scsi\/host8\/bus0\/target0\/lun0\/cd |
tcextract -a 0 -x ac3 -t vob | tcdecode -x ac3 | tcscan -x pcm
adjust the device to match your DVD-ROM. and replace the last step " |
tcscan -x pcm" with " > ripped-audio.pcm" to write the audio into a
file; or use " | tee ripped-audio.pcm | tcscan -x pcm" to write to a
file and scan for peak values..
use sox or rezound or ... to convert the pcm into your favorite format!
good luck,
robin
On Debian based Linux distributions, e.g. Debian Sarge, Fervent-STG, and so
forth, I find the following two command line programs very useful for
extracting and manipulating DVD contents:
dvdbackup (to get the info on the hard drive)
ffmpeg (for audio and/or video transcoding/format conversion)
They are usually supplied with the distribution itself. You may need to add
deCSS depending on your region. Otherwise the dependency issues are not too
bad, unlike dvd::rip
The manual (man) pages are also reasonably complete and clear.
Good luck,
A Nonny Mous
> 4. Re: Extracting/Ripping tracks from DVD-Audio discs (D. Sen)
>
> Message: 4
> Date: Tue, 20 Mar 2007 09:56:12 +1100
> From: "D. Sen" <dsen(a)homemail.com>
> Subject: Re: [linux-audio-user] Extracting/Ripping tracks from
> DVD-Audio discs
> To: Robin Gareus <robin(a)gareus.org>
> Cc: A list for linux audio users <linux-audio-user(a)music.columbia.edu>
> Message-ID: <45FF150C.5090106(a)homemail.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> The problem with all of these applications is that they downmix the
> audio down to stereo when storing to a wav file.
>
> Do you know if the tccat/tcdecode/tcextract command will save the
> individual tracks (interleaved or otherwise)?
>
> Thanks,
>
> Robin Gareus wrote:
> > D. Sen wrote:
> >> Robin Gareus wrote:
> >>> D. Sen wrote:
> >>>> Anyone know of a way to extract the multichannel audio from a DVD-Audio
> >>>> disc? Xine plays the multichannel files - so I assume there has to be a
> >>>> way to extract them...
> >>>>
> >>> there's `tcdemux` and `tcdecode` from the transcode package
> >>> - dvdrip provides is a GUI.
> >>>
> >>> (you can copy/paste dvdrip's LOG window for the commands it uses to do
> >>> the job. You only want the first part of the pipe: tcdemux | tcdecode..)
> >>>
> >>>
> >
> >> dvdrip refuses to work on my distribution.
> >
> > mmh then there's the chance that tcdemux & tcdecode won't work either. -
> > usually you get those as dependency to dvd::rip. - see.
> > http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode
> >
> > I'm sure that you can also use mplayer/mencoder or some ffmpeg command
> > line to do the same job.. gstreamer too..
> >
> >> Is there a chance you could
> >> tell me what the tcdemux | tcdecode scripts would be to extract the audio?
> >
> > sorry, I did not have my dvd drive with me.. now I do.
> >
> > how are your command line skills? dvd::rip does a lot of fancy piping (
> > `man tee` -> man dvdrip-multitee ? :) ) - the command that does ripping
> > & demux is several pages long (includes 100 subtitle commands)...
> >
> > It boils down to sth like this:
> >
> > tccat -t dvd -T 1,-1,1 -i \/dev\/scsi\/host8\/bus0\/target0\/lun0\/cd |
> > tcextract -a 0 -x ac3 -t vob | tcdecode -x ac3 | tcscan -x pcm
> >
> > adjust the device to match your DVD-ROM. and replace the last step " |
> > tcscan -x pcm" with " > ripped-audio.pcm" to write the audio into a
> > file; or use " | tee ripped-audio.pcm | tcscan -x pcm" to write to a
> > file and scan for peak values..
> >
> > use sox or rezound or ... to convert the pcm into your favorite format!
> >
> > good luck,
> > robin
> >
>
I am running Fedora Core 5 on the Playstation 3 (PPC build, kernel 2.6.16).
I'd like to do some audio processing on it using 4 microphone channels. The
channels have to be synchronous and all I have is USB 2.0 inputs, so I've
been looking at USB audio interfaces.
Does anyone have a recommendation that will work with no/few hassles on FC5
PPC 2.6.16?
Here are 3 I've looked at
* M-Audio Quattro (used on EBay)
* M-Audio Torq/Conectiv
* Roland/Edirol US-101
Thanks,
Jim Steed
With ongoing preparation to "Integrate End User and Developer Resources
at linuxaudio.org" (workshop @ LAC2007) we are proud to announce a first
version of Dave's linux-sound application index as public-wiki:
http://apps.linuxaudio.org/
this is by far no cute end-user resource portal yet, but a first
step in merging data and setting up a prototype back-end!
We are looking for interested people to contribute at various levels and
suggest to use the mailing list for general discussion while keeping
dokuwiki and style related requests at
http://apps.linuxaudio.org/wiki:open_discussion
Further [major] back-end development on http://apps.linuxaudio.org/ will
probably not happen until LAC2007, but we are interested to tweak the
look and feel, fix bugs, and collect feedback.
We're also looking for qualified LAU's and LAD's to verify and maintain
the current content with editor privileges, responsibilities and deeds.
next up: docs.linuxaudio.org:
- static documentation (docbook, LateX, [x]html)
- slides and presentations (PDF, ps, png jpg,..??)
- music (collaborate with or outsource to freesound et al.)
- include (external?) video presentations, movies, etc
- source code (coding examples: wiki-page; svn-mirror/server ??)
for each hosted documentation there will be an option for user
annotation(s). eg. wiki-discussion page, blog-comments,
email-notify[-mailing-list]? - some of it will be merged with
apps.linuxaudio.org which will provide automatic indexing; details
remain to be discussed.
some of the intended supported formats imply moderation / maintained
upload or installation of static documentation. - the ring of
maintainers could evolve with key-signatures, and parts of the system
may become completely open. - suggestions:
http://apps-devel.linuxaudio.org/wiki:suggest_doc
ico & robin