Live Video Streaming
Verify Video Node
Step 10: Check the Video Device Node
ls /dev/video*The output should display /dev/video0. If the node is present, the driver has loaded successfully and the camera is ready.
Boost Clocks & Enable Debug
Step 11: Open a Terminal and Run rc.local
- Press
Ctrl + Alt + Tand run:
cd ~/OPPILA_ORIN_L4T_36.5.0_INTEGRATION_PM/sudo ./rc.localFormat Selection
Step 12: 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>| Value | Standard | When to use |
|---|---|---|
1 | NTSC | Outputs an NTSC composite signal. |
5 | PAL | Outputs a PAL composite signal. |
0 | Autodetect | The 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=5Note:
If you are unsure of your camera's standard, use
0to let the board autodetect it.
Dynamic Camera Selection
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, switch to it using the dynamic_camera_switch.sh script bundled with the driver package.
Step 13: Select the Camera Input
cd ~/OPPILA_ORIN_L4T_36.5.0_INTEGRATION_PM/sudo chmod +x dynamic_camera_switch.shRun the script with the input number (0, 1, or 2) of the connected camera:
sudo ./dynamic_camera_switch.sh <input>For example, if your camera is connected to input 1, run:
sudo ./dynamic_camera_switch.sh 1The video feed switches to the selected composite input immediately.
Video Streaming Script
Step 14: Select and Run the Stream
Run the script that matches your camera's video standard.
- For a PAL camera:
./video_stream_pal.sh- For an NTSC camera:
./video_stream_ntsc.shOnce the script runs successfully, a window opens showing the live camera feed.
