Skip to content

Commit

Permalink
Restructured the directory
Browse files Browse the repository at this point in the history
  • Loading branch information
xumm committed Apr 12, 2023
1 parent 4e63546 commit 4b02168
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions linux/samples/gstreamer/mv camera/preview_3588.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

export DISPLAY=:0.0
#export GST_DEBUG=*:5
#export GST_DEBUG_FILE=/tmp/2.txt

export XDG_RUNTIME_DIR=/run/user/1000

export WIDTH=1080
export HEIGHT=1080
export FPS=30

echo "Just use 1080x1080@30fps as a sample. Please modify these value."
echo "Start MIPI CSI Camera Preview!"

v4l2-ctl -d /dev/v4l-subdev2 --set-ctrl roi_x=0

v4l2-ctl -d /dev/v4l-subdev2 --set-ctrl roi_y=0

media-ctl -d /dev/media0 --set-v4l2 '"m00_b_mvcam 7-003b":0[fmt:UYVY8_2X8/'"$WIDTH"'x'"$HEIGHT"'@1/'"$FPS"']'

gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! queue ! video/x-raw,format=NV12,width=$WIDTH,height=$HEIGHT,framerate=$FPS/1 ! glimagesink


File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def main():
if not cap.isOpened():
print("Failed to open video device")
return

print("This demo not finished yet!")
# Set the image size
cap.set(cv2.CAP_PROP_FRAME_WIDTH, args.width)
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, args.height)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4b02168

Please sign in to comment.