使用openwrt内置的网络摄像头服务时,出现501: Not Implemented! no www-folder configured 错误。

在网上查到了一篇帖子

https://forum.openwrt.org/viewtopic.php?id=38239

其中有下面一段话:

The error about the missing webui is normal, those files are not included with the OpenWRT package.  To test if its working try the following URLs, changing routerip to what is relevant for your configuration.

Streaming (probably only works in Mozilla based browsers) http://routerip:8081/?action=stream
Snapshot image (should work in any browser) http://routerip:8081/?action=snapshot

If you want the webUI then you need to download a copy of mjpg_streamer and put the www files somewhere on your router storage.  Then edit /etc/init.d/mjpg-streamer adding the -w parameter pointing to the webUI files.

错误的原因是openwrt没有包含mjpg-streamer中的www部分,所以找不到文件,就出错了。

解决办法

1用火狐访问 http://routerip:8081/?action=snapshot
火狐自动识别为mjpg流

2下一份mjpg-streamer的源码,把www部分丢到路由器上,在mjpg-streamer的启动代码中的输出部分加上 -w 参数来指定www目录位置

http://sourceforge.net/projects/mjpg-streamer

亲测可用!

 

Leave a reply