JACK-STDOUT(1)

πŸ“¦
version 1.6 Β· 2 versions
, in arch rolling, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– JACK-STDOUT β€” write JACK audio data to stdout πŸ’–

okay bestie, so jack-stdout is a page from the General Commands Manual (section 1, the cool one) and honestly? it's giving legendary. she grabs audio out of JACK and yeets it straight to standard output. that's it. that's the whole vibe. let's get into it πŸŽ€


✨ NAME ✨

jack-stdout β€” write JACK audio data to stdout


πŸ¦‹ SYNOPSIS πŸ¦‹

jack-stdout [OPTIONS] port1 [ port2 ...]

🌸 DESCRIPTION 🌸

so like, jack-stdout captures audio from JACK and writes raw data to standard-output. simple as that. slay πŸ’…

the number of ports you hand her determines the number of audio channels that get used. and if you give her more than one channel? the audio-sample data will be interleaved. yes bestie, interleaved, she's fancy like that ✨


πŸ‘‘ OPTIONS πŸ‘‘

  • -b, --bitdepth BITS β€” tell her the bit-depth of each sample. for integer-encoding this can be 16 or 24. the default is 16. ngl this setting is only used for integer encoding: floating-point samples will always be 32 bit wide. no exceptions, she said what she said πŸ’€
  • -d, --duration SEC β€” set how long jack-stdout should run, in seconds. a value less than 1 means run indefinitely. the default is 0. (so yeah, by default she's immortal 🧚)
  • -e, --encoding FORMAT β€” set the output format of the data: signed-integer, unsigned-integer, floating-point (default: signed)
  • -n, --name CLIENTNAME β€” set the JACK client name (default: jstdout)
  • -h, --help β€” print a brief usage information. she'll tell you the basics real quick 🫢
  • -L, --little-endian β€” write little-endian data or native-byte-order float (this is the default, so she's already on that energy)
  • -B, --big-endian β€” output big-endian data or swap the byte-order of floating-point. flip it, reverse it πŸ”₯
  • -q, --quiet β€” inhibit usual output. this affects information and buffer-overflow warnings but not setup-errors. so she goes quiet but she's still gonna yell if something's genuinely wrong 😭
  • -S, --bufsize SAMPLES β€” choose the internal buffer-size in samples. the default size is 65536. the given value will be multiplied by the number of channels and bit-depth to get the size of the ring-buffer. math! she's doing math! 🌈

πŸ“ EXAMPLES πŸ“

okay these are the real ones, copy them exactly, character for character, because she does not play about her syntax πŸ’–

jack-stdout xmms_0:out_1 xmms_0:out_2 \
| mono  ~/Desktop/Downloads/JustePort.exe - 10.0.1.6 0
jack-stdout -b 24 -e unsigned -B system:capture_1 system:capture_2 \
| sox -t raw -r 48k -e unsigned -b 24 -B -c 2 - /tmp/recording.wav
jack-stdout system:capture_1 system:capture_2 \
| oggenc -r -R 48000 -B 16 -C 2 - \
> /tmp/recording.ogg
jack-stdout system:capture_1 \
| oggenc -r -R 48000 -B 16 -C 1 - \
| oggfwd -p -n "my live stream" localhost 5900 hackme live.ogg

like, she's piping into mono, she's piping into sox, she's piping into oggenc and then straight into oggfwd for a live stream?? main character energy fr fr πŸ‘‘


πŸ’œ AUTHOR πŸ’œ

Robin Gareus <robin@gareus.org>. we love her, we thank her, periodt πŸ™


πŸŽ€ SEE ALSO πŸŽ€

http://jackaudio.org/,

iykyk 😌


and that's the whole page bestie!! this was JACK-STDOUT(1) from the General Commands Manual, last touched 21 February 2019 β€” go forth and pipe some audio, you absolute icon πŸ’…βœ¨πŸ¦‹