From: Sean B. <gol...@ho...> - 2005-09-16 01:49:00
|
Sorry, I sent the original message from the wrong E-mail address. Sean Bobb ----Original Message---- I've been trying to get Motion-3.2.3 to work with PiXORD Network Cameras (120 and 200), but I keep getting a Segmentation fault: ----CONSOLE OUTPUT BEGIN---- motion -s -c ~/motion-pix.conf [0] Processing thread 0 - config file /home/seanbobb/motion-pix.conf [0] Motion running in setup mode. [0] Thread device: http://192.168.2.65:9998/getimage?camera=1&fmt=sif input -1 [1] Thread is from /home/seanbobb/motion-pix.conf [1] Waiting for threads to finish, pid: 18311 [1] Thread started [1] Camera thread starting... [1] Received first header [1] Received first header [1] Received first header [1] Streaming camera [1] Boundary string [--myboundary] [1] Camera handler thread [2] started Segmentation fault ----CONSOLE OUTPUT END---- I use a very simple motion.conf file: ----BEGIN motion.conf---- width 352 height 240 framerate 30 netcam_url http://192.168.2.65:9998/getimage?camera=1&fmt=sif ;width 640 ;height 480 ;framerate 30 ;videodevice /dev/video0 ;input 1 ;norm 1 switchfilter off pre_capture 2 post_capture 30 gap 10 output_normal off ffmpeg_cap_new on ffmpeg_variable_bitrate 4 ffmpeg_video_codec mpeg4 text_right %Y-%m-%d\n%T-%q target_dir /mnt/backup1/personal/movies/motion snapshot_filename %Y/%m/%d/%H/%M/%S-snapshot jpeg_filename %Y/%m/%d/%H/%M/%S-%q ffmpeg_filename %Y/%m/%d/%H%M%S timelapse_filename %Y/%m/%d-timelapse ----END motion.conf---- When I comment out the netcam section and uncomment the videodevice section it works without a problem. I've already uploaded a dumpfile to http://www.lavrsen.dk/twiki/bin/view/Motion/NetcamMjpegStreamDumps When I change the URL to provide a single JPEG image rather than a multipart JPEG stream I still end up with the same Segmentation fault. I've attached a file listing some system information for my Gentoo system (the output from emerge --info). I'm using ffmpeg-0.4.9_p20050906, although I don't think that this should make any difference as it works fine with the videodevice. I am also able to use ffmpeg to capture the MJPEG stream directly from the netcam using: ffmpeg -y -f mjpeg -b 1500 -i "http://192.168.2.65:9998/getimage?camera=1&fmt=sif" -vcodec mpeg4 -qscale 1 netcam.avi If anyone has any suggestions, please let me know. Thank you, Sean Bobb |