mjpg-streamer在Ubuntu下编译,运行
1.將USB攝像頭插上,查看是否找到設備,輸入:
wp@ubuntu:/home/$ ? ?ls ? /dev/video*
/dev/video0
2.安裝必要的軟件集:
3.下載mipg-streamer軟件,編譯并安裝:
cd mjpg-streamer/mjpg-streamer make clean all sudo make install ps:重新編譯前,需要執行
make clean(相對make)
make uninstall(相對make install)
4.開啟視頻服務器
wp@ubuntu:/home/mjpg-streamer/mjpg-streamer$ ./start.sh?
MJPG Streamer Version: svn rev: Unversioned directory
?i: Using V4L2 device.: /dev/video0
?i: Desired Resolution: 640 x 480
?i: Frames Per Second.: 5
?i: Format............: MJPEG
Adding control for Pan (relative)
UVCIOC_CTRL_ADD - Error: Inappropriate ioctl for device
Adding control for Tilt (relative)
UVCIOC_CTRL_ADD - Error: Inappropriate ioctl for device
Adding control for Pan Reset
UVCIOC_CTRL_ADD - Error: Inappropriate ioctl for device
Adding control for Tilt Reset
UVCIOC_CTRL_ADD - Error: Inappropriate ioctl for device
Adding control for Pan/tilt Reset
UVCIOC_CTRL_ADD - Error: Inappropriate ioctl for device
Adding control for Focus (absolute)
UVCIOC_CTRL_ADD - Error: Inappropriate ioctl for device
mapping control for Pan (relative)
UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
mapping control for Tilt (relative)
UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
mapping control for Pan Reset
UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
mapping control for Tilt Reset
UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
mapping control for Pan/tilt Reset
UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
mapping control for Focus (absolute)
UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
mapping control for LED1 Mode
UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
mapping control for LED1 Frequency
UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
mapping control for Disable video processing
UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
mapping control for Raw bits per pixel
UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
?o: www-folder-path...: ./www/
?o: HTTP TCP port.....: 8080
?o: username:password.: disabled
?o: commands..........: enabled
( 注意:在ubuntu 里面運行 ,這里面的錯誤可以不用理會 )
或者在profile文件中,添加如下代碼,將其添加到環境變量中。
http://192.168.1.200:8080/
轉載于:https://www.cnblogs.com/alan666/p/8312288.html
總結
以上是生活随笔為你收集整理的mjpg-streamer在Ubuntu下编译,运行的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php,常见的面试
- 下一篇: Android Framework---