VSI Python for vStream.
VSI Python for vStream.
The VSI Python scripts bridge the C driver running on the FVP firmware to the Audio or Video Server running on the host. Each script corresponds to one VSI peripheral instance and is loaded by the FVP at model start. The scripts use a client-server architecture: the arm_vsi*.py scripts act as thin clients that relay register writes from the firmware to a background server process, which interfaces with the host audio or video hardware.
The following files implement the VSI Python layer for vStream:
| Item | Description |
|---|---|
| ./interface/vstream/python/arm_vsi0.py | VSI Python script for AudioIn (VSI instance 0). Bridges the FVP to the Audio Server. |
| ./interface/vstream/python/arm_vsi1.py | VSI Python script for AudioOut (VSI instance 1). Bridges the FVP to the Audio Server. |
| ./interface/vstream/python/arm_vsi4.py | VSI Python script for VideoIn channel 0 (VSI instance 4). Bridges the FVP to the Video Server. |
| ./interface/vstream/python/arm_vsi5.py | VSI Python script for VideoOut channel 0 (VSI instance 5). Bridges the FVP to the Video Server. |
| ./interface/vstream/python/arm_vsi6.py | VSI Python script for VideoIn channel 1 (VSI instance 6). Bridges the FVP to the Video Server. |
| ./interface/vstream/python/arm_vsi7.py | VSI Python script for VideoOut channel 1 (VSI instance 7). Bridges the FVP to the Video Server. |
| ./interface/vstream/python/vsi_audio.py | VSI Audio client module. Handles communication between the VSI Python scripts and the Audio Server. |
| ./interface/vstream/python/vsi_audio_server.py | Audio Server module. Implements a TCP server for audio streaming using PyAudio. |
| ./interface/vstream/python/vsi_video.py | VSI Video client module. Handles communication between the VSI Python scripts and the Video Server. |
| ./interface/vstream/python/vsi_video_server.py | Video Server module. Implements a TCP server for video streaming using OpenCV. |
In addition to the base Python environment, the VSI vStream use case requires the following Python packages: