Hi Sandeep and Luke, I will try to improve the docs on the website over the next couple of days but I think I have tracked down your particular problem (we actually have a C910 in the lab here so I was able to test it :) )
gst-launch v4l2src device=/dev/video1 ! image/jpeg,width=1920,framerate=30/1,rate=30 ! jpegdec ! ffmpegcolorspace ! xvimagesink Is the launch command you want to use to test the motion jpeg capabilities of the camera. The image/jpeg tells the camera to use motion jpeg and the jpegdec will change the jpeg frames to raw frames. The problem you were having with matterhorn is trying to use the webcam as a filesrc when it is actually a v4l2src. So for your customProducer your settings should look something like: capture.device.names=Webcam capture.device.Webcam.type=CUSTOM_VIDEO_SRC capture.device.Webcam.customProducer=v4l2src device=/dev/video1 ! image/jpeg,width=1920,framerate=30/1,rate=30 ! jpegdec ! ffmpegcolorspace capture.device.Webcam.flavor=presenter/source capture.device.Webcam.outputfile=Webcam.mpg The customProducer expects a raw yuv on the end, but a queue is optional. To attach the producer to a bunch of different consumers (filesink, confidence monitoring, streaming etc. ) we have to use a gstreamer element that requires a queue for each sink so it makes sense probably to leave the queue on that side. I hope this clears up the issues you have been having. Cheers, Adam On Wed, Jan 5, 2011 at 11:26 AM, Sandeep Tamrakar <[email protected]>wrote: > Hello, > > Here is the configuration for the webcam, > > capture.device.names=Webcam > capture.device.Webcam.type=CUSTOM_VIDEO_SRC > capture.device.Webcam.customProducer=filesrc location=/dev/video1 ! > ffdemux_mov_mp4_m4a_3gp_3g2_mj2 ! ffdec_h264 ! videoscale ! > video/x-raw-yuv,width=1024,h$ > capture.device.Webcam.flavor=presenter/source > capture.device.Webcam.outputfile=Webcam.mpg > > This is the what it is on the log file. > > 2011-01-05 10:15:06 ERROR (CaptureAgentImpl:414) - Capture > Unscheduled-smallCaptureAgent-1294244106754 could not start, pipeline was > null! > > Thanks, > > Sandeep Tamrakar > > ------------------------------ > Date: Tue, 4 Jan 2011 15:28:03 -0600 > From: [email protected] > To: [email protected]; [email protected] > > Subject: Re: [Matterhorn-users] Webcam Matterhorn > > Hello Adam, > > > > Sandeep is working with me at Texas A&M University-Commerce. Going off the > documentation in the wiki for the trunk capture agent there doesn’t seem to > be enough information to get a webcam working. Ideally the goal is to use > the Logitech C910 with a MPJEG stream which the camera can provide natively > at full resolution (1080P) at 30 FPS. > > > > > http://opencast.jira.com/wiki/display/MH/Install+Matterhorn+Capture+Agent+(Trunk) > > > > The example given for a webcam doesn’t work since the source is a filesrc > through a CUSTOM_VIDEO_SOURCE type property, and we’re not sure the > requirements of a pipeline for Matterhorn (is it supposed to end with a > queue, xvimagesink, filesink, something else?). We’ve tried plugging in > something that works in the command line but it doesn’t seem to be working > in Matterhorn. There’s also a V4L2SRC type property that says it can be used > for webcams like the C910, but how is the resolution and format (raw, mjpeg, > etc.) specified? > > > > We are running some more tests and will post some log files soon. Even > without the log files though, there isn’t a clear example of how to use a > webcam or full documentation for a V4L2SRC type property. I realize we’re > using the trunk and things are a working in progress. Should we hold off on > trying this until the documentation is further, or is there more > documentation somewhere else we’re missing? > > > > All the best, > > > > Luke > > > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Adam Mckenzie > *Sent:* Tuesday, January 04, 2011 2:26 PM > *To:* Matterhorn Users > *Subject:* Re: [Matterhorn-users] Webcam Matterhorn > > > > Hi Sandeep, > > Could you send the > $FELIX_DIR$/conf/services/org.opencastproject.capture.impl.ConfigurationManager.properties > file and the matterhorn log file you are getting when you try to start a > capture? > > Thanks, > Adam > > On Tue, Jan 4, 2011 at 1:19 PM, Sandeep Tamrakar <[email protected]> > wrote: > > Hello, > > > > Now that the we know webcam works in the server version as well, I have > been finding it hard to figure out why is it not working with the > matterhorn. > > > > We used this code to test the webcam. > > > > $ sudo gst-launch v4l2src device=/dev/video0 ! > 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! xvimagesink > > > > And it works successfully. > > > > The example configuration in the wiki for the trunk version does not work > with the webcams. > > > > Does anyone have working example of the configuration file for a camera > like logitech c910? > > > > Thanks, > > Sandeep Tamrakar > > > > > > > > > _______________________________________________ > Matterhorn-users mailing list > [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users > > > > > -- > Adam McKenzie > MSc Student > ARIES Laboratory, University of Saskatchewan > > Web: http://aries.usask.ca/aiwiki/Adam_McKenzie > Mail: Advanced Research in Intelligent Educational Systems Laboratory > Department of Computer Science > University of Saskatchewan > 176 Thorvaldson Building > 110 Science Place > Saskatoon, SK > S7N 5C9 > > _______________________________________________ Matterhorn-users mailing > list [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users > > _______________________________________________ > Matterhorn-users mailing list > [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users > > -- Adam McKenzie MSc Student ARIES Laboratory, University of Saskatchewan Web: http://aries.usask.ca/aiwiki/Adam_McKenzie Mail: Advanced Research in Intelligent Educational Systems Laboratory Department of Computer Science University of Saskatchewan 176 Thorvaldson Building 110 Science Place Saskatoon, SK S7N 5C9
_______________________________________________ Matterhorn-users mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
