Comment 7 for bug 220924

Revision history for this message
Hernâni Ribeiro Pereira de Moura (hernanimoura) wrote :

Dear friends!

I had exactly the same problem and I solved the problem this way:

Go to aplications – accessories – terminal

Here, in the terminal, you rite: sudo gedit /etc/motion/motion.conf

This will open the window of gedit. Now, in this window change this lines as I show:

"############################################################
# Daemon
############################################################

# Start in daemon (background) mode and release terminal (default: off)
daemon off

# File to store the process ID, also called pid file. (default: not defined)
process_id_file /var/run/motion/motion.pid

Now, click in File . In the menu that apears choose “save as”. This will open another window for you to choose where to save the file. Then choose the folder “home” (or personal folder) and save there this file. The new location of the motion .conf will be something like this: /home/the_name_that_you_gave_to_your_computer/motion.conf

May be in your case it can be only: /home/motion.conf. In my case the result was as fallows:

prof@prof:~$ sudo motion

[sudo] password for prof:

[0] Processing thread 0 - config file /home/prof/motion.conf

[0] Motion 3.2.11 Started

[0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808

[0] Thread 1 is from /home/prof/motion.conf

[1] Thread 1 started

[0] motion-httpd/3.2.11 running, accepting connections

[0] motion-httpd: waiting for data on port TCP 8080

[1] cap.driver: "uvcvideo"

[1] cap.card: "CNF7051"

[1] cap.bus_info: "usb-0000:00:1a.7-2"

[1] cap.capabilities=0x04000001

[1] - VIDEO_CAPTURE

[1] - STREAMING

[1] Supported palettes:

[1] 0: YUYV (YUV 4:2:2 (YUYV))

[1] index_format 6 Test palette YUYV (320x240)

[1] Using palette YUYV (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000008

[1] found control 0x00980900, "Brightness", range -64,64

[1] "Brightness", default 0, current 0

[1] found control 0x00980901, "Contrast", range 0,95

[1] "Contrast", default 25, current 25

[1] found control 0x00980902, "Saturation", range 0,128

[1] "Saturation", default 64, current 64

[1] found control 0x00980903, "Hue", range -40,40

[1] "Hue", default 0, current 0

[1] found control 0x00980910, "Gamma", range 72,500

[1] "Gamma", default 100, current 100

[1] mmap information:

[1] frames=4

[1] 0 length=153600

[1] 1 length=153600

[1] 2 length=153600

[1] 3 length=153600

[1] Using V4L2

[1] Resizing pre_capture buffer to 1 items

[1] Started stream webcam server in port 8081

Now my Motion works perfectly. I'm very happy with it.

Regards

Hernâni