Live Video Streaming
Warning
LVDS only: Use Video Streaming for LVDS configuration if your AstrOptix board is connected to a single LVDS camera. The camera streams on
/dev/video0.
Warning
LVDS + MIPI: Use Video Streaming for LVDS + MIPI configuration if your AstrOptix board is connected to both an LVDS camera and a MIPI CSI-2 camera simultaneously. The LVDS camera streams on
/dev/video0and the MIPI camera streams on/dev/video1.
1. Video Streaming for LVDS
1.1 Verify Video Node
Step 19: 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.
Note:
If the video node is not detected, refer to Troubleshooting
1.2 Boost Clocks & Enable Debug
Note:
If you have the
rc.localfile, continue with the step below. If not, contact the Oppila Support to obtain it before proceeding.
Step 20: Open a Terminal and Run rc.local
- Press
Ctrl + Alt + Tand run:
sudo ./rc.local1.3. Start GStreamer Pipeline
Step 21: Run the GStreamer Command
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY ! videoconvert ! xvimagesink2. Video Streaming for LVDS + MIPI
2.1 Verify Video Node
Step 19: 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.
Note:
If the video node is not detected, refer to Troubleshooting
2.2 Boost Clocks & Enable Debug
Note:
If you have the
rc.localfile, continue with the step below. If not, contact the Oppila Support to obtain it before proceeding.
Step 20: Open a Terminal and Run rc.local
- Press
Ctrl + Alt + Tand run:
sudo ./rc.local2.3 Start GStreamer Pipeline
Step 21: Run the GStreamer Commands
Run the following command to stream from the LVDS camera (/dev/video0):
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY ! videoconvert ! xvimagesinkOpen a second terminal and run the following to stream from the MIPI camera (/dev/video1):
gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw,format=UYVY ! videoconvert ! xvimagesinkIf the pipeline starts successfully, a video window will appear displaying the live camera feed.
Note:
If you encounter a green screen, black screen, or no video output after launching the GStreamer pipeline, refer to Troubleshooting.
