Hi, Adam,

 I don't like to admit that I feel pretty lost. I attach the output of
v4l-info and the one of gst-inspect. Also, I can launch the cam with this
command gst-launch v4l2src device=/dev/video0 ! xvimagesink.

 Thanks a lot.

 Luis Galeana.

2012/8/2 McKenzie, Adam <[email protected]>

>  Hi Luis,
>
> There are a couple of things you can do to try to get more information
> about your device.
>
> Could you run
> "v4l-info /dev/video0"
>
> This will spit out a lot of information but the key part is the video
> capture part. For example I have a camera that outputs motion jpeg and the
> output of the video capture looks like this:
>
> video capture
>     VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
>         index                   : 0
>         type                    : VIDEO_CAPTURE
>         flags                   : 0
>         description             : "YUV 4:2:2 (YUYV)"
>         pixelformat             : 0x56595559 [YUYV]
>     VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
>         index                   : 1
>         type                    : VIDEO_CAPTURE
>         flags                   : 1
>        * description             : "MJPEG"*
>         pixelformat             : 0x47504a4d [MJPG]
>
> Could you attach the whole output to your reply so that I can perhaps
> change the custom pipeline for your particular device.
>
> If it does say that it uses h264 could you run
> "gst-inspect ffdec_h264"
>
> If it complains that the gstreamer-tools are not installed could you
> install them with
> "sudo apt-get install gstreamer-tools"
>
> You need this element to actually decode 264 streams in case your webcam
> actually outputs x264. If it isn't installed and complains it is missing
> you might need to run:
> "sudo apt-get install gstreamer0.10-ffmpeg"
>
> To enable it and try the custom pipeline again.
>
> Thanks,
> Adam
>
>   Adam McKenzie**
> *    Programmer Analyst, Education Applications
> *
>     Client Services, Information and Communications Technology
>      Ph: (306) 966-8241
>
>     [image: Description: Description: Description: Description:
> cid:[email protected]] <http://www.usask.ca/>
>   ------------------------------
> *From:* [email protected] [
> [email protected]] on behalf of Luis Galeana [
> [email protected]]
>
> *Sent:* Wednesday, August 01, 2012 6:29 PM
> *To:* Matterhorn Users
> *Subject:* Re: [Matterhorn-users] Capture Agent pipeline
>
>   Hi, Adam,
>
>  I changed my configuration to what you said, but I still get the internal
> error message. The log is below. Is there any information that could help
> determine the cause of the failure?
>
> Log:
> ----------------------------
> ...
> 20:19:47  INFO (GStreamerPipeline:430) - Successfully initialised 2
> devices.
> 20:19:47  INFO (CustomVideoProducer:73) - Custom Video Producer is using
> Pipeline: "v4l2src device=/dev/video0 ! queue ! decodebin ! queue"
> 20:19:48  INFO (GStreamerPipeline:96) - Initializing devices for capture.
> 20:19:51  INFO (ProducerBin:121) - Sending EOS to stop v4l2src0
> 20:19:51  WARN (GStreamerPipeline$2:144) - v4l2src0: Internal data flow
> error.
> 20:19:51  INFO (ProducerBin:121) - Sending EOS to stop alsasrc0
> 20:19:54  INFO (AgentStateJob:190) - #7 - State push to
> org.opencastproject.capture.impl.jobs.AgentStateJob@5d59d625 to
> http://localhost:8080/capture-admin/agents/Galeana failed with code 405.
> 20:19:54  INFO (AgentConfigurationJob:121) - #7 - Capabilities push to
> http://localhost:8080/capture-admin/agents/Galeana/configuration failed
> with code 405.
> 20:19:54  INFO (AgentStateJob:190) - #7 - State push to
> org.opencastproject.capture.impl.jobs.AgentStateJob@5d59d625 to
> http://localhost:8080/capture-admin/recordings/Unscheduled-Galeana-1343866787387failed
>  with code 405.
> ...
> 20:20:51 ERROR (CaptureAgentImpl:339) - Unable to start pipeline after 5
> seconds.  Aborting!
> ---------------------------------------
>
>  Thanks!
>
>  Luis Galeana.
>
>
> 2012/8/1 McKenzie, Adam <[email protected]>
>
>>  Hi Luis,****
>>
>> ** **
>>
>> I noticed in your log that it stated the problem is “Internal data flow
>> error” which combined with your comment earlier that your webcam captures
>> in h264 might be the culprit. Could you try changing your webcam capture
>> device settings to:****
>>
>> ** **
>>
>> capture.device.Webcam.type=CUSTOM_VIDEO_SRC****
>>
>> capture.device.Webcam.flavor=presenter/source****
>>
>> capture.device.Webcam.outputfile=Webcam.mpg****
>>
>> capture.device.Webcam.src=/dev/video0****
>>
>> capture.device.Webcam.customProducer=v4l2src device=/dev/video0 ! queue !
>> decodebin ! queue****
>>
>> ** **
>>
>> The type CUSTOM_VIDEO_SRC specifies that you want to write your own
>> gstreamer magic. The customProducer property is the actual gstreamer line
>> that it will run when it tries to capture from your webcam. Each of the
>> elements in the pipeline are separated with exclamation points “!”. The
>> “v4l2src device=/dev/video0” part just tells it to capture from the video 4
>> linux 2 device located at /dev/video0. The queues are just in case your
>> system needs a bit of a buffer to process and decode the video. Finally the
>> “decodebin” part is a gstreamer element that will try to determine what is
>> coming in, attach the correct decoder and pass on raw frames for the rest
>> of the pipeline. Please let me know if anything else is unclear. ****
>>
>> ** **
>>
>> Cheers,****
>>
>> Adam****
>>
>> ** **
>>
>> Adam McKenzie
>> ITS, University of Saskatchewan
>> Rm 61 Physics, 116 Science Place
>> Saskatoon SK S7N 5E2 Canada
>> (306) 966-8241****
>>
>> ** **
>>
>> *From:* [email protected] [mailto:
>> [email protected]] *On Behalf Of *Luis Galeana
>> *Sent:* Wednesday, August 01, 2012 9:29 AM
>> *To:* Matterhorn Users
>> *Subject:* Re: [Matterhorn-users] Capture Agent pipeline****
>>
>> ** **
>>
>>  Hi again,
>>
>>  Below is my device configuration and I'm getting some internal error...
>> The log is at the end. What do you think that could be the problem?
>>
>> #Create the presenter capture
>> capture.device.Webcam.type=V4L2SRC
>> capture.device.Webcam.flavor=presenter/source
>> capture.device.Webcam.outputfile=Webcam.mpg
>> capture.device.Webcam.src=/dev/video0
>>
>> #Create the audio capture
>> capture.device.test.src=hw:0
>> capture.device.test.outputfile=test.mp2
>> capture.device.test.flavor=presenter/source
>> capture.device.test.buffer.bytes=536870912
>> capture.device.names=Webcam, test
>>
>> Log:
>> ------------------
>> 21:55:41  INFO (AgentStateJob:190) - #4 - State push to
>> org.opencastproject.capture.impl.jobs.AgentStateJob@2e647edd to
>> http://localhost:8080/capture-admin/agents/Galeana failed with code 405.
>> 21:55:41  INFO (AgentConfigurationJob:121) - #4 - Capabilities push to
>> http://localhost:8080/capture-admin/agents/Galeana/configuration failed
>> with code 405.
>> 21:55:44  INFO (GStreamerPipeline:430) - Successfully initialised 2
>> devices.
>> 21:55:45  INFO (GStreamerPipeline:96) - Initializing devices for capture.
>> 21:55:48  INFO (ProducerBin:121) - Sending EOS to stop v4l2src0
>> 21:55:48  INFO (ProducerBin:121) - Sending EOS to stop alsasrc0
>> 21:55:48  WARN (GStreamerPipeline$2:144) - v4l2src0: Internal data flow
>> error.
>> 21:55:51  INFO (AgentStateJob:190) - #5 - State push to
>> org.opencastproject.capture.impl.jobs.AgentStateJob@7a7683b1 to
>> http://localhost:8080/capture-admin/agents/Galeana failed with code 405.
>> 21:55:51  INFO (AgentConfigurationJob:121) - #5 - Capabilities push to
>> http://localhost:8080/capture-admin/agents/Galeana/configuration failed
>> with code 405.
>> 21:55:51  INFO (AgentStateJob:190) - #5 - State push to
>> org.opencastproject.capture.impl.jobs.AgentStateJob@7a7683b1 to
>> http://localhost:8080/capture-admin/recordings/Unscheduled-Galeana-1343699744653failed
>>  with code 405.
>> ...
>> 21:56:48 ERROR (CaptureAgentImpl:339) - Unable to start pipeline after 5
>> seconds.  Aborting!
>> -------------------
>>
>>  P.S. I couldn't fix the push and capabilities errors. Could you
>> elaborate a little bit on what I should do? I see that both
>> config.properties files - the core and the capture agent - have the same
>> url, as well as the org.opencastproject.capture.core.url.
>>
>>  Thanks a lot!!
>>
>>  Luis Galeana.****
>>
>> ** **
>>
>> _______________________________________________
>> 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
>
>

Attachment: v4l-info
Description: Binary data

Attachment: gst-inspect
Description: Binary data

_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users

Reply via email to