JACK over ethernet network?

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Arthurx
Established Member
Posts: 77
Joined: Thu Oct 22, 2015 1:27 pm
Location: Holland
Has thanked: 1 time
Contact:

Re: JACK over ethernet network?

Post by Arthurx »

Hi Frank,

Thanks gonna try it later,
my girlfriend took possession of the other laptop,
so I have to wait a little.

/usr/bin/jackd -R -d net -C 20 -P 20 -i 12 -o 10 &

This is the line i was trying to find. I tried it with --outputs 8 --inputs 8,
but that didnt work.

Greeetings Arthur :D :roll:
"A mind is like a parachute -
It doesn't work if it's not open."
Frank Zappa

"Politics is the:
Clowning division of the army."
Zappa

http://www.arthurx.com
Frank Carvalho
Established Member
Posts: 363
Joined: Sat Nov 17, 2012 3:36 pm

Re: JACK over ethernet network?

Post by Frank Carvalho »

You got me there! It was the wrong script. Copy and paste error. This is the master script:

Code: Select all

#!/bin/bash

# Script to start daemon making this machine JACK master

/usr/bin/jack_load netmanager
/Frank
Vox, Selmer, Yamaha and Leslie amplifiers. Rickenbacker, Epiphone, Ibanez, Washburn, Segovia, Yamaha and Fender guitars. Hammond, Moog, Roland, Korg, Yamaha, Crumar, Ensoniq and Mellotron keyboards. Xubuntu+KXStudio recording setup.
Arthurx
Established Member
Posts: 77
Joined: Thu Oct 22, 2015 1:27 pm
Location: Holland
Has thanked: 1 time
Contact:

Re: JACK over ethernet network?

Post by Arthurx »

Worked like a charm :roll: :D

Code: Select all

/usr/bin/jackd -R -d net -C 20 -P 20 -i 12 -o 10 &
-C is the audio channels send over the net to the master
-P is the audio channels received over the net from the master
-i and -o is for midi channels.

Thanks I am playing now.
Arthur
asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: JACK over ethernet network?

Post by asbak »

Frank Carvalho wrote:You got me there! It was the wrong script. Copy and paste error. This is the master script:

Code: Select all

#!/bin/bash

# Script to start daemon making this machine JACK master

/usr/bin/jack_load netmanager
/Frank
Thanks Frank, it's a very confusing topic for me, even though I have it working in a similarish way to your method.

For example, another way to achieve something similar (I think?) is to use jack_netsource
Then, there are the jack_net_master and jack_net_slave commands.... which I haven't been able to get to work at all.

It's a nightmare trying to find documentation and information.
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
Frank Carvalho
Established Member
Posts: 363
Joined: Sat Nov 17, 2012 3:36 pm

Re: JACK over ethernet network?

Post by Frank Carvalho »

asbak wrote: It's a nightmare trying to find documentation and information.
It so is! I always collect my findings in custom shell scripts that I store on the relevant computers. Easier to remember that way. I have also made it a habit to always make a folder ~/Desktop/Studio to organize my scripts, samples, setup files etc.
The above scripts really works well for me. The lines:

Code: Select all

alsa_in  -j local_in  -d hw:0 -c 12 -r 48000 &
alsa_out -j local_out -d hw:0 -c 10 -r 48000 &
in the first script,are there to bridge the slave to the sound card, while

Code: Select all

jack_connect system:capture_1 local_out:playback_1
jack_connect system:capture_2 local_out:playback_2
jack_connect local_in:capture_1 system:playback_1
jack_connect local_in:capture_2 system:playback_2
make up a hard coded standard connection setup between sound card i/o and the slave jackd. So I can run the slave headless, log in, execute the script, and I instantly have access to record with the remote machine.

/Frank
Vox, Selmer, Yamaha and Leslie amplifiers. Rickenbacker, Epiphone, Ibanez, Washburn, Segovia, Yamaha and Fender guitars. Hammond, Moog, Roland, Korg, Yamaha, Crumar, Ensoniq and Mellotron keyboards. Xubuntu+KXStudio recording setup.
Frank Carvalho
Established Member
Posts: 363
Joined: Sat Nov 17, 2012 3:36 pm

Re: JACK over ethernet network?

Post by Frank Carvalho »

Arthurx wrote:

Code: Select all

/usr/bin/jackd -R -d net -C 20 -P 20 -i 12 -o 10 &
-C is the audio channels send over the net to the master
-P is the audio channels received over the net from the master
-i and -o is for midi channels.
Right you are. My memory is already getting hazy.
And the jackd --help is not really very helpful...

/Frank
Vox, Selmer, Yamaha and Leslie amplifiers. Rickenbacker, Epiphone, Ibanez, Washburn, Segovia, Yamaha and Fender guitars. Hammond, Moog, Roland, Korg, Yamaha, Crumar, Ensoniq and Mellotron keyboards. Xubuntu+KXStudio recording setup.
User avatar
bluebell
Established Member
Posts: 1924
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 112 times
Been thanked: 119 times

Re: JACK over ethernet network?

Post by bluebell »

Arthurx wrote:Hi Frank,

Thanks gonna try it later,
my girlfriend took possession of the other laptop,
so I have to wait a little.

/usr/bin/jackd -R -d net -C 20 -P 20 -i 12 -o 10 &

This is the line i was trying to find. I tried it with --outputs 8 --inputs 8,
but that didnt work.

Greeetings Arthur :D :roll:
On my PC with the soundcard:
jack_netsource -i 8 -H hagel
hagel is a remote VM

On hagel:
jackd -d netone

Hagel sees 8 playback channels, my PC sees 8 capture channels from netjack.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

Arthurx
Established Member
Posts: 77
Joined: Thu Oct 22, 2015 1:27 pm
Location: Holland
Has thanked: 1 time
Contact:

Re: JACK over ethernet network?

Post by Arthurx »

Thanks BlueBell,
I can try that if netjack two doesnot work.

I had a small error in the discription,
here the correct one:

Code: Select all

/usr/bin/jackd -R -d net -P 10 -C 2 -i 2 -o 2      &      
                                                          # -P push send audio over net from slave to master 
                                                          # -C capture receive audio over net from master to slave
                                                          # -i midi into slave from master
                                                          # -o midi out over net from slave to master
I mixed up the -P and -C

Greetings Arthur :D :roll:
Post Reply