@@ -273,7 +273,7 @@ Audio plugins for MTL that are able to send, receive synchronous raw audio via t
273273
274274The ` mtl_st30p_tx` plugin supports the following pad capabilities:
275275
276- - ** Formats** : ` S16LE ` , ` S24LE ` , ` S32LE `
276+ - ** Formats** : ` S8 ` , ` S16BE ` , ` S24BE `
277277- ** Sample Rate Range** : 44100, 48000, 96000
278278- ** Channels Range** : 1 to 8
279279
@@ -285,7 +285,7 @@ The `mtl_st30p_tx` plugin supports the following pad capabilities:
285285| tx-ptime | string | Packetization time for the audio stream. | ` 1ms` , ` 125us` , ` 250us` , ` 333us` , ` 4ms` , ` 80us` , ` 1.09ms` , ` 0.14ms` , ` 0.09ms` | ` 1.09ms` for 44.1kHz, ` 1ms` for others |
286286| async-session-create | boolean | Improve initialization time by creating a session in a separate thread. All buffers that arrive before the session is ready will be dropped | TRUE/FALSE | FALSE |
287287
288- # ### 4.1.2. Example GStreamer Pipeline for Transmission with s16LE format
288+ # ### 4.1.2. Example GStreamer Pipeline for Transmission with s16BE format
289289
290290To run the ` mtl_st30p_tx` plugin, you need to setup metadata (Here we are using pipeline capabilities).
291291Instead of using input video we opted for build-in GStreamer audio files generator.
@@ -297,7 +297,7 @@ export VFIO_PORT_T="pci_address_of_the_device"
297297
298298# Audio pipeline with 48kHz sample rate on port 30000
299299gst-launch-1.0 audiotestsrc ! \
300- audio/x-raw,format=S16LE ,rate=48000,channels=2 ! \
300+ audio/x-raw,format=S16BE ,rate=48000,channels=2 ! \
301301mtl_st30p_tx tx-queues=4 rx-queues=0 udp-port=30000 payload-type=113 dev-ip=" 192.168.96.3" ip=" 239.168.75.30" dev-port=$VFIO_PORT_T \
302302--gst-plugin-path $GSTREAMER_PLUGINS_PATH
303303` ` `
@@ -308,19 +308,21 @@ mtl_st30p_tx tx-queues=4 rx-queues=0 udp-port=30000 payload-type=113 dev-ip="192
308308
309309The ` mtl_st30p_rx` plugin supports the following pad capabilities:
310310
311- - ** Formats** : ` S8` , ` S16LE ` , ` S24LE `
311+ - ** Formats** : ` S8` , ` S16BE ` , ` S24BE `
312312- ** Channels Range** : 1 to 2
313313- ** Sample Rate Range** : 44100, 48000, 96000
314314
315315** Arguments**
316- | Property Name | Type | Description | Range | Default Value |
317- | ---------------------| ---------| -------------------------------------------------------| -------------------------| ---------------|
318- | rx-framebuff-num | uint | Number of framebuffers to be used for transmission. | 0 to G_MAXUINT | 3 |
319- | rx-channel | uint | Audio channel number. | 0 to G_MAXUINT | 2 |
316+ | Property Name | Type | Description | Range | Default Value |
317+ | ---------------------| ---------| -------------------------------------------------------| -------------------------- | ---------------|
318+ | rx-framebuff-num | uint | Number of framebuffers to be used for transmission. | 0 to G_MAXUINT | 3 |
319+ | rx-channel | uint | Audio channel number. | 0 to G_MAXUINT | 2 |
320320| rx-sampling | uint | Audio sampling rate. | [Supported Audio Sampling Rates](# 232-supported-audio-sampling-rates) | 48000 |
321- | rx-audio-format | string | Audio format type. | ` S8 ` , ` S16LE ` , ` S24LE ` | ` S16LE ` |
321+ | rx-audio-format | string | Audio format type. | ` PCM8 ` , ` PCM16 ` , ` PCM24 ` | ` PCM16 ` |
322322| rx-ptime | string | Packetization time for the audio stream. | ` 1ms` , ` 125us` , ` 250us` , ` 333us` , ` 4ms` , ` 80us` , ` 1.09ms` , ` 0.14ms` , ` 0.09ms` | ` 1.09ms` for 44.1kHz, ` 1ms` for others |
323323
324+ > ** Note** : The ` PCM` formats are interpreted as big endian.
325+
324326# ### 4.2.2. Preparing Output Path
325327
326328In our pipelines, we will use the ` $OUTPUT ` variable to hold the path to the audio file.
@@ -344,7 +346,7 @@ export VFIO_PORT_R="pci_address_of_the_device"
344346export OUTPUT=" path_to_the_file_we_want_to_save"
345347
346348# Run the receiver pipeline
347- gst-launch-1.0 -v mtl_st30p_rx rx-queues=4 udp-port=30000 payload-type=111 dev-ip=" 192.168.96.2" ip=" 239.168.75.30" dev-port=$VFIO_PORT_R rx-audio-format=PCM24 rx-channel=2 rx-sampling=48000 ! \
349+ gst-launch-1.0 -v mtl_st30p_rx rx-queues=4 udp-port=30000 payload-type=111 dev-ip=" 192.168.96.2" ip=" 239.168.75.30" dev-port=$VFIO_PORT_R rx-audio-format=PCM16 rx-channel=2 rx-sampling=48000 ! \
348350filesink location=$OUTPUT --gst-plugin-path $GSTREAMER_PLUGINS_PATH
349351` ` `
350352
0 commit comments