Page 1 of 1

Web Cam Server.

PostPosted: Tue Sep 14, 2021 10:02 am
by maxdo
Hi MAster,
in the varius menu present on my NAS, i've find the Webcam server under Attached Device.
i understand, that, if recognize, recording the image, in a specific partition of the disk.
So after installed and activate server motion service, i've plug on the USB port a Microsoft WEbcam certify.
Then start the server, but i've back the error Fail: start command failed.
maybe the Webcam it is not recognize, then i'vetry to use a other one, a generic web cam, but i've back the same issue.
No manu information i nthe help menu , where help me to understand what happen.
Please ,c an you help me to understand how work, and if i can active it?
thanks

Re: Web Cam Server.

PostPosted: Tue Sep 14, 2021 11:37 am
by Jocko
Hi

Even if there is an issue such a missing driver, the feature should start.

So please to post these outputs
Code: Select all
/usr/bin/usb-devices
and load the webcam menu, start the debug mode
Code: Select all
debugon
, try to start the server and stop the debug mode
Code: Select all
debugoff
cat /var/log/messages

Re: Web Cam Server.

PostPosted: Tue Sep 14, 2021 12:58 pm
by Jocko
Hi again,

you can post the asked outputs of my previous message but I think I understand what happens.

In last firmware version (18.x), we removed some libs in the default system partition because they are now included in some addon packages. But we did not notice the old motion version still requires them.

Please to post the output
Code: Select all
ldd /usr/bin/motion
if you read
Code: Select all
        libavformat.so.52 => not found
        libavcodec.so.51 => not found
        libavutil.so.49 => not found
then you have to do :
- install minidlna which provides these libs
- create the following symlinks
Code: Select all
ln -s /usr/local/lib/libavformat.so.57.83.100 /usr/lib/libavformat.so.52
ln -s /usr/local/lib/libavcodec.so.57.107.100 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.55.78.100 /usr/lib/libavutil.so.49
 
If you repeat the ldd command, it should now detect the missing libs

Then try to start the webcam service.
On my side with these newer lib versions, old motion version starts without warning

Note: on next fw version, the feature will be improved by including support for network webcams...

Re: Web Cam Server.

PostPosted: Wed Nov 10, 2021 8:28 am
by maxdo
Hi Jocko, sorry my big delay avout this answer :(
i've install the minidlna and run the three command and now see correctly the file.
stop and run again the webcam option, and now i have not the error.
infact now i have to link available on scree, one about webinterface, and the other one for see the direct stream

if i going in the link web gui, i've back a error impossible contact the server (if i need to configure minidlna, please help me to understand how to do, or explain me where find the information ) if i going in the stream i see the frame in grey, and with error unable to open video device.
tomorrow, however, i will try to install a differentt webcam. maybe the actual it is damage or to old.


thanks Jocko.
ciao