Iím able to get 12 FPS @1280x720 with USB camera using mjpg_streamer and vlc. The webcam should support MJPG pixel format (check with uvcdynctrl -f).

Start mjpg_streamer:

mjpg_streamer -b -i "input_uvc.so -r 1280x720 -f 30 " -o "output_http.so -w /usr/www"


In motion.conf:

netcam_url http://localhost:8080/?action=stream

ffmpeg_cap_new off

webcam_port 0

on_event_start cvlc http://localhost:8080/?action=stream --sout='#standard{mux=avi,dst=/disk/Movies/motion/'%Y-%m-%d_%H-%M-%S'.avi,access=file}' &

on_event_end kill $(ps aux | grep '[v]lc' | awk '{print $2}')


The only drawback is it takes several seconds between starting vlc and vlc starting to write video.

Raspberry pi is connected through wifi.


With motion (ffmpeg_cap_new on) was getting 2 FPS @1280x720.


Thanks Stefan Sjogelid and his book: