Live Video Streaming

This section describes how to execute the video streaming script and verify that the integration is working correctly.

Video Streaming Procedure

Step 7: Re-open Terminal After Reboot

After the system reboots, log in and open a new terminal window:

Ctrl + Alt + T

Step 8: Navigate to the Integration Directory

Change to the extracted integration directory:

cd OPPILA_RASP_TRIXIE_64_INTEGRATION_PM/
Format Selection

Step 9: Select the Input Format

The PAL–MIPI bridge board can decode both PAL and NTSC input signals. Before streaming, set the input video standard so the board interprets the incoming camera signal correctly.

Run the following command, replacing <input> with the value that matches your camera's standard:

v4l2-ctl -d /dev/v4l-subdev2 --setctrl=standard_select=<input>
ValueStandardWhen to use
1NTSCOutputs an NTSC composite signal.
5PALOutputs a PAL composite signal.
0AutodetectThe board automatically detects the incoming signal standard.

For example, to set the input standard to PAL:

v4l2-ctl -d /dev/v4l-subdev2 --setctrl=standard_select=5

Note:

If you are unsure of your camera's standard, use 0 to let the board autodetect it.

Input Selection

Step 10: Select the Camera Input

The PAL–MIPI bridge board supports three composite camera inputs — 0, 1, and 2. By default, the board streams from input 0. If your camera is connected to a different input, select it with the command below (change 0 to 1 or 2):

v4l2-ctl -d /dev/v4l-subdev2 -c-input_channel=0

Step 11: Media Pipeline Configuration

Configure the media pipeline for the selected video format. Run the setup script that matches your camera's output — PAL or NTSC.

For PAL output:

sudo chmod +x config_pal.sh
sudo ./config_pal.sh

For NTSC output:

sudo chmod +x config_ntsc.sh
sudo ./config_ntsc.sh
Start Streaming

Step 12: Start the Video Stream

Run the streaming script that matches the selected output format.

For PAL output:

sh video_stream_pal.sh

For NTSC output:

sh video_stream_ntsc.sh

Once the script runs successfully, a window opens showing the live camera feed.

Note:

If you encounter a green screen, black screen, or no video output after running the streaming script, refer to Troubleshooting.