Jump to content

Configuring Jack for use in Rivendell: Difference between revisions

From Rivendell Wiki
imported>WaybackImport
Imported via HTML fallback (before-primary)
 
imported>ImportBot
Imported from scrape
 
Line 1: Line 1:
NOTICE! This article is woefully out of date. In Mid 2020, the current version of Rivendell is 3.4.x. Please do not use this guide for any recent versions of Rivendell. Consider using the information in the [/index.php/Jack Jack] article instead.
'''NOTICE!''' This article is woefully out of date. In Mid 2020, the current version of Rivendell is 3.4.x. Please do not use this guide for any recent versions of Rivendell. Consider using the information in the [[Jack]] article instead.
<hr>


From: Erik Anderson
<s>From: Erik Anderson
Date: Tue, 19 May 2009 18:42:25 -0400
Date: Tue, 19 May 2009 18:42:25 -0400


Line 10: Line 11:
2. I am a bit confused about the Rivendell audio resources and Jack. On this M-Audio, I have 4 ins and 4 outs. If I wanted to have 2 ins be mono and 2 as stereo, would one setup Jack to have 4 separate inputs like...
2. I am a bit confused about the Rivendell audio resources and Jack. On this M-Audio, I have 4 ins and 4 outs. If I wanted to have 2 ins be mono and 2 as stereo, would one setup Jack to have 4 separate inputs like...


  Source1=alsa_pcm:capture_1
    Source1=alsa_pcm:capture_1
  Destination1=rivendell_1:record_0L
    Destination1=rivendell_1:record_0L
  Source2=alsa_pcm:capture_2
    Source2=alsa_pcm:capture_2
  Destination2=rivendell_1:record_0R
    Destination2=rivendell_1:record_0R
  Source3=alsa_pcm:capture_3
    Source3=alsa_pcm:capture_3
  Destination3=rivendell_1:record_1L
    Destination3=rivendell_1:record_1L
  Source4=alsa_pcm:capture_4
    Source4=alsa_pcm:capture_4
  Destination4=rivendell_1:record_1R
    Destination4=rivendell_1:record_1R


... and then setup the audio resource to be NORMAL, or would you somehow setup Jack to be 2 channels, and then use the LEFT or RIGHT in Rivendell Audio Ports to configure it? While on the subject, how does a Jack source relate to an audio port? Using ALSA, I just left everything as default (since it is not configurable) and found my ports by experimentation, but I think it is time for me to understand what is going on with the audio ports.
... and then setup the audio resource to be NORMAL, or would you somehow setup Jack to be 2 channels, and then use the LEFT or RIGHT in Rivendell Audio Ports to configure it? While on the subject, how does a Jack source relate to an audio port? Using ALSA, I just left everything as default (since it is not configurable) and found my ports by experimentation, but I think it is time for me to understand what is going on with the audio ports.


THANKS!!
THANKS!!
Erik
Erik
----


From: Dan Mills
From: Dan Mills
Date: Wed, 20 May 2009 00:05:05 +0100
Date: Wed, 20 May 2009 00:05:05 +0100


A rivendell port is always basically a stereo object, while a jack port
A rivendell port is always basically a stereo object, while a jack port
Line 33: Line 39:
So something like:
So something like:


* Make jack inputs 1 and 2 appear as two mono inputs appearing on the
# Make jack inputs 1 and 2 appear as two mono inputs appearing on the
#left channel of rivendell ports 0 and 1 (set rivendell to record from
#left only) to make this work right). You could of course patch
#capture_1 to both record_L and record_R


* left channel of rivendell ports 0 and 1 (set rivendell to record from
    Source1=alsa_pcm:capture_1     
 
    Destination1=rivendell_1:record_0L
* left only) to make this work right). You could of course patch
    Source2=alsa_pcm:capture_2
 
    Destination2=rivendell_1:record_1L
* capture_1 to both record_L and record_R
    # Source 3 and 4 are the first stereo pair.
 
    Source3=alsa_pcm:capture_3
  Source1=alsa_pcm:capture_1     
    Destination3=rivendell_1:record_2L
  Destination1=rivendell_1:record_0L
    Source4=alsa_pcm:capture_4
  Source2=alsa_pcm:capture_2
    Destination4=rivendell_1:record_2R
  Destination2=rivendell_1:record_1L
  # Source 3 and 4 are the first stereo pair.
  Source3=alsa_pcm:capture_3
  Destination3=rivendell_1:record_2L
  Source4=alsa_pcm:capture_4
  Destination4=rivendell_1:record_2R


qjackctl is a good tool for investigating what is going on with jack,
qjackctl is a good tool for investigating what is going on with jack,
and the drag and drop patching is convenient.
and the drag and drop patching is convenient.
----


From: Erik Anderson
From: Erik Anderson
Line 58: Line 63:
So, if I am following this right, I could then setup the inputs and outputs like:
So, if I am following this right, I could then setup the inputs and outputs like:


  [JackSession]
    [JackSession]
 
   
  # This configuration will setup 2 stereo outputs on 1/2 and 3/4
    # This configuration will setup 2 stereo outputs on 1/2 and 3/4
  # and 2 mono inputs on 1, 2 and stereo input on 3/4
    # and 2 mono inputs on 1, 2 and stereo input on 3/4
 
   
  #TREAT ALL OUTPUTS AS STEREO
    #TREAT ALL OUTPUTS AS STEREO
  Source1=rivendell_1:playout_0L
    Source1=rivendell_1:playout_0L
  Destination1=alsa_pcm:playback_1
    Destination1=alsa_pcm:playback_1
  Source2=rivendell_1:playout_0R
    Source2=rivendell_1:playout_0R
  Destination2=alsa_pcm:playback_2
    Destination2=alsa_pcm:playback_2
  Source3=rivendell_1:playout_1L
    Source3=rivendell_1:playout_1L
  Destination3=alsa_pcm:playback_3
    Destination3=alsa_pcm:playback_3
  Source4=rivendell_1:playout_1R
    Source4=rivendell_1:playout_1R
  Destination4=alsa_pcm:playback_4
    Destination4=alsa_pcm:playback_4
 
   
  # SEND INPUT 1 TO RD PORT 0 LEFT AND RIGHT
    # SEND INPUT 1 TO RD PORT 0 LEFT AND RIGHT
  Source5=alsa_pcm:capture_1
    Source5=alsa_pcm:capture_1
  Destination5=rivendell_1:record_0L
    Destination5=rivendell_1:record_0L
  Source6=alsa_pcm:capture_1
    Source6=alsa_pcm:capture_1
  Destination6=rivendell_1:record_0R
    Destination6=rivendell_1:record_0R
 
   
  # SEND INPUT 2 TO RD PORT 1 LEFT AND RIGHT
    # SEND INPUT 2 TO RD PORT 1 LEFT AND RIGHT
  Source7=alsa_pcm:capture_2
    Source7=alsa_pcm:capture_2
  Destination7=rivendell_1:record_1L
    Destination7=rivendell_1:record_1L
  Source8=alsa_pcm:capture_2
    Source8=alsa_pcm:capture_2
  Destination8=rivendell_1:record_1R
    Destination8=rivendell_1:record_1R
 
   
  # SEND INPUT 3/4 TO RD PORT 2 STEREO
    # SEND INPUT 3/4 TO RD PORT 2 STEREO
  Source9=alsa_pcm:capture_3
    Source9=alsa_pcm:capture_3
  Destination9=rivendell_1:record_2L
    Destination9=rivendell_1:record_2L
  Source10=alsa_pcm:capture_4
    Source10=alsa_pcm:capture_4
  Destination10=rivendell_1:record_2R
    Destination10=rivendell_1:record_2R
 
You may also be interested in using [/index.php/Jack-init jack-init] - Phlash
 
Retrieved from "[[Configuring_Jack_for_use_in_Rivendell|http://wiki.rivendellaudio.org/index.php?title=Configuring_Jack_for_use_in_Rivendell&oldid=532]]"


----
You may also be interested in using [[jack-init]] - Phlash</s>

Latest revision as of 10:18, 9 May 2026

NOTICE! This article is woefully out of date. In Mid 2020, the current version of Rivendell is 3.4.x. Please do not use this guide for any recent versions of Rivendell. Consider using the information in the Jack article instead.


From: Erik Anderson Date: Tue, 19 May 2009 18:42:25 -0400

I am attempting to migrate my SUSE 10.2 Rivendell installation that is using a Delta 44 soundcard from ALSA to Jack. This is my first experience with Jack. I have a few questions:

1. After reading the archives, I understand that the preferred method to auto-start jack is to use bash to set an environment variable of JACK_START_SERVER = 1, although the RD Jack.txt documentation mentions doing it the deprecated way. I assume the RD docs are outdated on this one, right?

2. I am a bit confused about the Rivendell audio resources and Jack. On this M-Audio, I have 4 ins and 4 outs. If I wanted to have 2 ins be mono and 2 as stereo, would one setup Jack to have 4 separate inputs like...

   Source1=alsa_pcm:capture_1
   Destination1=rivendell_1:record_0L
   Source2=alsa_pcm:capture_2
   Destination2=rivendell_1:record_0R
   Source3=alsa_pcm:capture_3
   Destination3=rivendell_1:record_1L
   Source4=alsa_pcm:capture_4
   Destination4=rivendell_1:record_1R

... and then setup the audio resource to be NORMAL, or would you somehow setup Jack to be 2 channels, and then use the LEFT or RIGHT in Rivendell Audio Ports to configure it? While on the subject, how does a Jack source relate to an audio port? Using ALSA, I just left everything as default (since it is not configurable) and found my ports by experimentation, but I think it is time for me to understand what is going on with the audio ports.


THANKS!! Erik



From: Dan Mills Date: Wed, 20 May 2009 00:05:05 +0100


A rivendell port is always basically a stereo object, while a jack port is a single channel, by default rivendell creates 8 stereo ports for jack input and output.

So something like:

  1. Make jack inputs 1 and 2 appear as two mono inputs appearing on the
  2. left channel of rivendell ports 0 and 1 (set rivendell to record from
  3. left only) to make this work right). You could of course patch
  4. capture_1 to both record_L and record_R
   Source1=alsa_pcm:capture_1    
   Destination1=rivendell_1:record_0L
   Source2=alsa_pcm:capture_2
   Destination2=rivendell_1:record_1L
   # Source 3 and 4 are the first stereo pair.
   Source3=alsa_pcm:capture_3
   Destination3=rivendell_1:record_2L
   Source4=alsa_pcm:capture_4
   Destination4=rivendell_1:record_2R

qjackctl is a good tool for investigating what is going on with jack, and the drag and drop patching is convenient.


From: Erik Anderson

So, if I am following this right, I could then setup the inputs and outputs like:

   [JackSession]
   
   # This configuration will setup 2 stereo outputs on 1/2 and 3/4
   # and 2 mono inputs on 1, 2 and stereo input on 3/4
   
   #TREAT ALL OUTPUTS AS STEREO
   Source1=rivendell_1:playout_0L
   Destination1=alsa_pcm:playback_1
   Source2=rivendell_1:playout_0R
   Destination2=alsa_pcm:playback_2
   Source3=rivendell_1:playout_1L
   Destination3=alsa_pcm:playback_3
   Source4=rivendell_1:playout_1R
   Destination4=alsa_pcm:playback_4
   
   # SEND INPUT 1 TO RD PORT 0 LEFT AND RIGHT
   Source5=alsa_pcm:capture_1
   Destination5=rivendell_1:record_0L
   Source6=alsa_pcm:capture_1
   Destination6=rivendell_1:record_0R
   
   # SEND INPUT 2 TO RD PORT 1 LEFT AND RIGHT
   Source7=alsa_pcm:capture_2
   Destination7=rivendell_1:record_1L
   Source8=alsa_pcm:capture_2
   Destination8=rivendell_1:record_1R
   
   # SEND INPUT 3/4 TO RD PORT 2 STEREO
   Source9=alsa_pcm:capture_3
   Destination9=rivendell_1:record_2L
   Source10=alsa_pcm:capture_4
   Destination10=rivendell_1:record_2R

You may also be interested in using jack-init - Phlash