On 15 January 2011 21:37, GSO <gsowww@...> wrote:
>> I could have phrased my comment better. What I meant was that in
>> addition to supporting mmap cameras it can be configured to accept an
>> mjpeg stream (via the netcam_url configuration option). There may
>> well be a way of converting the video from the camera to mjpeg. If
>> vlc will display it then vlc should be able to convert it to mjpeg.
> OK, the cam works with vlc, and I have got this far with the necessary
> mjpeg stream:
> Tried various options, the last of which was:
> cvlc v4l2:///dev/video1 --sout
Try something like
vlc --no-audio v4l2:///dev/video1 --sout-http-mime=
--no-sout-rtp-sap --no-sout-standard-sap --sout-keep
Replace height and width with your size (not sure if you need them if
you want to leave the size as is).
I have not got much idea what some of that does, I picked it up from
various forums and posts.
You can use cvlc (which comes with vlc on Ubuntu at least) which is
the version without UI.
> Which did not throw any errors, but motion still could not find the
> camera ("Could not fetch initial image from network camera")
> The motion conf file for the thread looks like:
> netcam_url http://localhost:8085
> webcam_port 8084
> Do I need to run vlc using the vlc-wrapper possibly, or use a higher port?
> CORRECTION: The webcam I have that does not support mmap is in fact a
> Logitech C120 http://www.logitech.com/en-au/webcam-communications/webcams/devices/6065
> - not the Trust Spacecam 150 Portable as stated in previous posts.
> One further footnote: The problem of the image breaking up has only
> appeared once in the past 24hrs, stopping the motion daemon and
> restarting though fixed it.