Solved mjpg-streamer performs badly on FreeBSD compared to linux

rosorio

Developer
Hi,
Yesterday I start digging around webcam cast on FreeBSD with the following configuration:

- Microsoft LifeCam Cinema webcam (https://www.microsoft.com/accessories/en-us/products/webcams/lifecam-cinema/h5d-00013)
- Raspberry pi 3B+
- FreeBSD 12-RELEASE

multimedia/motion
First I try multimedia/motion but I didn't success to make it work. After configuration, even if the camera was properly detected,
the tool always end in a timeout reload loop. I can provide logs if required.


multimedia/mjpg-streamer
With mjpg-streamer and after multiples tries I was able to find the correct configuration for my camera :

Code:
mjpg_streamer -i "input_uvc.so -d /dev/video0  -r 320x240  -y" -o "output_http.so -p 8080 -w /usr/local/www/mjpg-streamer -n "

When I enter into the stream display, I got some flashes/flickering during the refresh
output.gif


To see if the issue is not caused by a miss-configuration, I install a raspbian image, and even if the tool is not officially packaged
for debian I install it with success and got a better output without the flashing/flickering noticed with the FreeBSD version.

Since the webcam with pwcview works like a charm , I think the issue can come from the jpeg-turbo lib or, since debian uses the old libjpg.

If someone has any clue about that
- rodrigo
 
I switch to multimedia/ustreamer who works perfectly fine at least on amd64 computers. I'm doing the build for the amd64 archs to see how it works on my rpi3.
 
Back
Top