I just installed motion but I can't get it to work. Im acessing my pi via local IP. SSH, VNC and apache works, but motion simply doesn't. I've already changed the ports at /etc/motion/motion.conf to lots of different numbers but none of them work. I've found this command: sudo motion -n When I run this, I get this message: "Problem enabling stream server in port 7043: Address already in use"
I get this for every port I try. Always when I configure a new port and run netstat -lnutp this port appears in the list and its marked as 'LISTEN'. I try to access but nothing happens. Does my camera need to work to motion at least appears when I try 192.168.1.x:7043? Can't I at least see the server running, even if the camera doesn't work? I'm using a microsoft USB camera, which appears to work with the rPi.
Here's the full list of errors:
 Motion thread 1 restart  Thread 1 started  cap.driver: "sonixj"  cap.card: "USB camera"  cap.bus_info: "usb-bcm2708_usb-1.3"  cap.capabilities=0x85200001  - VIDEO_CAPTURE  - READWRITE  - STREAMING  Config palette index 8 (YU12) doesn't work.  Supported palettes:  0: JPEG (JPEG)  Selected palette JPEG  Test palette JPEG (320x240)  Error setting pixel format VIDIOC_S_FMT: Device or resource busy  VIDIOC_TRY_FMT failed for format JPEG: Device or resource busy  Unable to find a compatible palette format.  ioctl (VIDIOCGCAP): Inappropriate ioctl for device  Could not fetch initial image from camera  Motion continues using width and height from config file(s)  Resizing pre_capture buffer to 1 items  bind(): Address already in use  Problem enabling stream server in port 7043: Address already in use  Thread exiting