LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-22-2010, 03:01 PM   #1
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 39
Posts: 215

Rep: Reputation: 18
Forking an Audio signal


INTRODUCTION (Question follows)
I record using streamer (part of xawtv). Normally, I record Audio only, but sometime Audio and Video. The reason I use streamer is that it is controlled by Command Line parameters, so I can run it from a script – and it can record Audio and Video or just Audio. Once recording is complete, I split the Audio up into tracks to burn to an Audio CD. In order to know approximately where to split the recording, the script also starts another program which writes the elapsed time since it started running to a file each time I press a button (or the space bar). Since the two programs are started by the script, the times logged in the file are well synchronized with the recording.
The problem with using streamer is that it does not have a VU meter of any kind – so I don't know until the recording is complete if it is too loud or too quiet (or just right).
If I am recording just Audio, I could use Audacity which would be wonderful – but I would not be able to synchronize my timing program so well with the start of the recording, and I could not record Audio/Video.

QUESTION
Is there a way that I can send the same Audio feed into streamer and some other program which will give me a visual indication of the recording levels? I have seen reference to 'jack' – but that seems to want everything which works with it to be compiled to interface to it. If jack will do what I want, is there a guide to how I would use it?
 
Old 08-22-2010, 03:06 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
If you use the spacebar, then why not use Audacity (a gui app, for audio only). But yes, Jack, the advanced sound framework for Linux and OSX does that really, really well. PulseAudio, the standard audio framework in Fedora 10+ is also capable of doing this, but it will requier more work to set it up as only few users use Pulse for that kind of thing. But it does handle multiple audio sources/destinations.
 
Old 08-29-2010, 04:28 PM   #3
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 39
Posts: 215

Original Poster
Rep: Reputation: 18
Having looked at Audacity, I am aware that I can select the input source I want to use. Similarly, with streamer, I can select the input source I want to use. So, if Jack can open the source that I would normally use for streamer and give me 2 'ports' then I could have my 2 applications use those 2 different ports and we would be happy.

Reading the documentation for Jack, it does not provide me with 2 ports, it gives me "an API that does several things". So I look at the simple_client.c which "demonstrates a complete (simple!) JACK application" - but it has 1 input port, 1 output port and a client. I am not sure what the client would do.

The write-up of Jack starts by suggesting that it can do what I want, but then seems to suggest that I am going to have to re-write Audacity to use an API - and I don't want to re-write things that work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Video signal from audio hardware? MrCode General 2 11-03-2009 02:19 PM
user-define signal handler & coredump for signal 11(SIGSEGV) Alexlun Linux - Software 2 05-24-2009 06:37 AM
How to reinstall a signal handler after exec ( Strange behaviour in signal handling ) lali.p Programming 0 09-20-2008 12:11 PM
KMix Launch Crash (signal 8) No Audio shewfly Linux - Newbie 1 04-14-2005 10:15 PM
No Signal from digital audio output netsroht Linux - Hardware 2 06-28-2004 04:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration