一段時間沒開樹莓派來用了,卻突然整個壞掉,重灌才發現OS跟以前不一樣了才知道有新的,要使用Mjpg-Streamer時,照以前的方式安裝,要執行的時候卻有Error,如下:
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 1280 x 1024
i: Frames Per Second.: 30
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
i: The specified resolution is unavailable, using: width 1296 height 972 instead
i: Could not obtain the requested pixelformat: MJPG , driver gave us: pBAA
... will try to handle this by checking against supported formats.
Init v4L2 failed !! exit fatal
i: init_VideoIn failed
根本不能看串流影像,我使用的是Pi Camera,不是接USB的,請問這是什麼地方出錯了呢?還是新版本的OS跟Mjpg-Streamer不相容?
#sudo apt install libjpeg8-dev imagemagick
sudo apt install libjpeg62-turbo-dev imagemagick -y
試試上面的~ 我裝舊的會錯誤~
(我是USB Webcam)