Logitech c270 webcam and pi

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Re: Logitech c270 webcam and pi

Postby reinaldoaf » Wed Sep 19, 2012 7:06 pm

sorry my stupid question :oops: :oops:

the result

$this->bbcode_second_pass_code('', '(gdb) bt
#0 0x40345618 in h263_pred_motion (s=0xe71f0, block=0, dir=<value optimized out>, px=0x418abd70, py=0x418abd6c)
at /build/buildd-ffmpeg-debian_0.svn20080206-18+lenny3-arm-zlMAfF/ffmpeg-debian-0.svn20080206/libavcodec/h263.c:1723
#1 0x4034f568 in h263_encode_mb (s=0x3, block=0x11b0d0, motion_x=4, motion_y=2)
at /build/buildd-ffmpeg-debian_0.svn20080206-18+lenny3-arm-zlMAfF/ffmpeg-debian-0.svn20080206/libavcodec/h263.c:1309
#2 0x4029e9c8 in encode_thread (c=<value optimized out>, arg=<value optimized out>)
at /build/buildd-ffmpeg-debian_0.svn20080206-18+lenny3-arm-zlMAfF/ffmpeg-debian-0.svn20080206/libavcodec/mpegvideo_enc.c:1729
#3 0x402417a0 in avcodec_default_execute (c=0x40310, func=0x4029bb10 <encode_thread>, arg=0xe72bc, ret=0x3, count=1)
at /build/buildd-ffmpeg-debian_0.svn20080206-18+lenny3-arm-zlMAfF/ffmpeg-debian-0.svn20080206/libavcodec/utils.c:404
#4 0x4028fd98 in MPV_encode_picture (avctx=0x0, buf=0x3 <Address 0x3 out of bounds>,
buf_size=<value optimized out>, data=0x0)
at /build/buildd-ffmpeg-debian_0.svn20080206-18+lenny3-arm-zlMAfF/ffmpeg-debian-0.svn20080206/libavcodec/mpegvideo_enc.c:2921
#5 0x40242cb4 in avcodec_encode_video (avctx=0x40310, buf=0x42247008 "", buf_size=200000, pict=0x123ee0)
at /build/buildd-ffmpeg-debian_0.svn20080206-18+lenny3-arm-zlMAfF/ffmpeg-debian-0.svn20080206/libavcodec/utils.c:917
#6 0x00023c58 in ?? ()
Cannot access memory at address 0x0
')
reinaldoaf
 
Posts: 5
Joined: Wed Sep 19, 2012 2:37 pm

Re: Logitech c270 webcam and pi

Postby xenoxaos » Wed Sep 19, 2012 7:10 pm

I actually made a version of motion without ffmpeg built in becaues it did make much sense to bring in all those ffmpeg dependencies for somthing it wont use....

$this->bbcode_second_pass_code('', 'pacman -Sy motion-noffmpeg')
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Logitech c270 webcam and pi

Postby WarheadsSE » Wed Sep 19, 2012 7:12 pm

He appears to be using Debian.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Logitech c270 webcam and pi

Postby reinaldoaf » Wed Sep 19, 2012 7:14 pm

Debian lenny arm
running on TS7500 embeddedarm
Board -> http://wiki.embeddedarm.com/wiki/TS-7500
AuxBoard -> http://wiki.embeddedarm.com/wiki/TS-752

now I has changed motion.conf to
ffmpeg_video_codec msmpeg4
after is
ffmpeg_video_codec swf

have this error

$this->bbcode_second_pass_code('', '

[1] 3 length=153600
[1] Using V4L2
[1] Started stream webcam server in port 8081
[1] Codec not found: Invalid argument
[1] ffopen_open error creating (new) file [/tmp/motion/01-20120919160952.avi]: Invalid argument
[0] httpd - Finishing: Success
[0] httpd Closing
[1] File of type 1 saved to: /tmp/motion/01-20120919160952-00.jpg
[1] Thread exiting
[0] Motion terminating

')
reinaldoaf
 
Posts: 5
Joined: Wed Sep 19, 2012 2:37 pm

Re: Logitech c270 webcam and pi

Postby xenoxaos » Wed Sep 19, 2012 7:18 pm

You do realize which forums you're on...right?
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Logitech c270 webcam and pi

Postby reinaldoaf » Wed Sep 19, 2012 7:23 pm

yes but, it is only place I found with correctly informations,

sorry for this, and sorry my english,

I read hundreds of other forums and tutorials, most aimed at linux not arm, and unsuccessfully, on of you can run the program and it gives me a screen shot, no longer generates the video stream.

with informations on another posts and this post I make one run, no correctly but run...

really sorry for that.

tks
reinaldoaf
 
Posts: 5
Joined: Wed Sep 19, 2012 2:37 pm

Re: Logitech c270 webcam and pi

Postby WarheadsSE » Wed Sep 19, 2012 7:30 pm

http://en.wikipedia.org/wiki/List_of_AR ... ssor_cores

ARM9 generation, ARMv4T instructions, ARM922T variant.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Logitech c270 webcam and pi

Postby permitivity » Tue Jun 11, 2013 2:55 am

$this->bbcode_second_pass_quote('hydro', 'T')he webcam worked fine with motion on my dockstar, but since a few weeks I have similar problems. My workaround is to first capture a single dummy picture using fswebcam before starting motion.
$this->bbcode_second_pass_code('', '
fswebcam -r 320x240 -d /dev/video0 -v /dev/null
')


The latest version of Motion seems to have solved this issue. I have a Logitech c310 that had the same issue, but now doesn't with the latest Motion.

EDIT: No, nevermind. Still not fixed, I guess I was just lucky with a few restarts.
permitivity
 
Posts: 141
Joined: Mon Feb 18, 2013 3:08 am

Previous

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 7 guests