[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: motion: problem finding codec



>From my yesterday's logs, here is what I was getting when the camera worked:
Oct 18 09:40:28 red motion: [0] Processing thread 0 - config file
/etc/motion/motion.conf
Oct 18 09:40:28 red motion: [0] Motion 3.2.12 Started
Oct 18 09:40:28 red motion: [0] ffmpeg LIBAVCODEC_BUILD 3482368
LIBAVFORMAT_BUILD 3478784
Oct 18 09:40:28 red motion: [0] Thread 1 is from /etc/motion/motion.conf
Oct 18 09:40:28 red motion: [1] Thread 1 started
Oct 18 09:40:28 red motion: [1] cap.driver: "uvcvideo"
Oct 18 09:40:28 red motion: [1] cap.card: "UVC Camera (046d:0990)"


That "ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478784" appears
to be  missing now. I wonder whether something during today's upgrade?

Thanks.



On 10/20/2012 09:53 PM, H.S. wrote:
> Hello,
> 
> Today out of the blue, the 'motion' (ver 3.2.12-3.2) application on my
> Debian Testing (kernel 3.2.0-3-amd64) box has stopped working. It
> appears as if it cannot find the necessary av codec.
> 
> It doesn't matter what video output format I choose (avi, flv, swf,
> etc.), or if I run it with "sudo motion", the error is the same:
> avcodec_open - could not open codec: Invalid argument
> [1] ffopen_open error creating (new) file
> [/usr/local/motionvideo/01-20121020213958.swf]: Invalid argument
> 
> Can somebody suggest how to troubleshoot this one?
> 
> The console has the following lines when I start up motion:
> ----------------------------------------
> [0] Processing thread 0 - config file /etc/motion/motion.conf
> [0] Motion 3.2.12 Started
> [0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478784
> [0] Thread 1 is from /etc/motion/motion.conf
> [1] Thread 1 started
> [1] cap.driver: "uvcvideo"
> [1] cap.card: "UVC Camera (046d:0990)"
> [1] cap.bus_info: "usb-0000:00:12.2-2"
> [1] cap.capabilities=0x04000001
> [1] - VIDEO_CAPTURE
> [1] - STREAMING
> [1] Config palette index 8 (YU12) doesn't work.
> [1] Supported palettes:
> [1] 0: MJPG (MJPEG)
> [1] 1: YUYV (YUV 4:2:2 (YUYV))
> [1] Selected palette YUYV
> [0] motion-httpd/3.2.12 running, accepting connections
> [0] motion-httpd: waiting for data on port TCP 8080
> [1] Test palette YUYV (640x480)
> [1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400
> colorspace 00000008
> [1] found control 0x00980900, "Brightness", range 0,255
> [1] 	"Brightness", default 128, current 128
> [1] found control 0x00980901, "Contrast", range 0,255
> [1] 	"Contrast", default 32, current 32
> [1] found control 0x00980902, "Saturation", range 0,255
> [1] 	"Saturation", default 32, current 32
> [1] found control 0x00980913, "Gain", range 0,255
> [1] 	"Gain", default 0, current 0
> [1] mmap information:
> [1] frames=4
> [1] 0 length=614400
> [1] 1 length=614400
> [1] 2 length=614400
> [1] 3 length=614400
> [1] Using V4L2
> [1] Resizing pre_capture buffer to 1 items
> [1] Started stream webcam server in port 60080
> [1] avcodec_open - could not open codec: Invalid argument
> [1] ffopen_open error creating (new) file
> [/usr/local/motionvideo/01-20121020213958.swf]: Invalid argument
> [1] File of type 1 saved to: /usr/local/motionvideo/01-20121020213958-01.jpg
> [1] Thread exiting
> [1] Calling vid_close() from motion_cleanup
> [1] Closing video device /dev/video0
> [0] Motion thread 1 restart
> [1] Thread 1 started
> [1] cap.driver: "uvcvideo"
> [1] cap.card: "UVC Camera (046d:0990)"
> [1] cap.bus_info: "usb-0000:00:12.2-2"
> [1] cap.capabilities=0x04000001
> [1] - VIDEO_CAPTURE
> [1] - STREAMING
> [1] Config palette index 8 (YU12) doesn't work.
> [1] Supported palettes:
> [1] 0: MJPG (MJPEG)
> [1] 1: YUYV (YUV 4:2:2 (YUYV))
> [1] Selected palette YUYV
> [1] Test palette YUYV (640x480)
> [1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400
> colorspace 00000008
> [1] found control 0x00980900, "Brightness", range 0,255
> [1] 	"Brightness", default 128, current 128
> [1] found control 0x00980901, "Contrast", range 0,255
> [1] 	"Contrast", default 32, current 32
> [1] found control 0x00980902, "Saturation", range 0,255
> [1] 	"Saturation", default 32, current 32
> [1] found control 0x00980913, "Gain", range 0,255
> [1] 	"Gain", default 0, current 0
> [1] mmap information:
> [1] frames=4
> [1] 0 length=614400
> [1] 1 length=614400
> [1] 2 length=614400
> [1] 3 length=614400
> [1] Using V4L2
> [1] Resizing pre_capture buffer to 1 items
> [1] Started stream webcam server in port 60080
> ^C^C[0] httpd - Finishing
> [0] httpd Closing
> [0] httpd thread exit
> ^C[1] Thread exiting
> [1] Calling vid_close() from motion_cleanup
> [1] Closing video device /dev/video0
> [0] Motion terminating
> -----------------------------------------------------
> 


-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


Reply to: