R818 tina Linux 运行 mjpg-streamer + usb camera
-
R818 tina sdk 勾选:
# CONFIG_PACKAGE_live is not set CONFIG_PACKAGE_mjpg-streamer=y # CONFIG_MJPG_STREAMER_V4L2 is not set CONFIG_MJPG_STREAMER_INPUT_FILE=y CONFIG_MJPG_STREAMER_INPUT_UVC=y CONFIG_MJPG_STREAMER_INPUT_TESTPICTURE=y CONFIG_MJPG_STREAMER_OUTPUT_FILE=y CONFIG_MJPG_STREAMER_OUTPUT_HTTP=y CONFIG_MJPG_STREAMER_WWW=y
linux kernel勾选:
CONFIG_MEDIA_USB_SUPPORT=y # # Webcam devices # CONFIG_USB_VIDEO_CLASS=y CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y # CONFIG_USB_GSPCA is not set
和:
CONFIG_MEDIA_SUPPORT=y # # Multimedia core support # CONFIG_MEDIA_CAMERA_SUPPORT=y # CONFIG_MEDIA_ANALOG_TV_SUPPORT is not set # CONFIG_MEDIA_DIGITAL_TV_SUPPORT is not set # CONFIG_MEDIA_RADIO_SUPPORT is not set # CONFIG_MEDIA_SDR_SUPPORT is not set CONFIG_MEDIA_RC_SUPPORT=y CONFIG_MEDIA_CONTROLLER=y # CONFIG_MEDIA_CONTROLLER_DVB is not set CONFIG_VIDEO_DEV=y CONFIG_VIDEO_V4L2_SUBDEV_API=y CONFIG_VIDEO_V4L2=y # CONFIG_VIDEO_ADV_DEBUG is not set # CONFIG_VIDEO_FIXED_MINOR_RANGES is not set CONFIG_VIDEOBUF2_CORE=y CONFIG_VIDEOBUF2_MEMOPS=y CONFIG_VIDEOBUF2_DMA_CONTIG=m CONFIG_VIDEOBUF2_VMALLOC=y # CONFIG_TTPCI_EEPROM is not set
命令行运行:
mjpg_streamer -i "/usr/lib/input_uvc.so -r 1280x720 -d /dev/video4" -o "/usr/lib/output_http.so -w /www/webcam"
浏览器打开:
-
D1哪吒开发板也是一模一样的操作。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号