Hi Simen,

Sorry I think this issue has been reported as:

https://opencast.jira.com/browse/MH-5404

Can you see the video properly if you launch the following command:
gst-launch v4l2src device=/dev/video0 ! queue ! videorate ! video/x-raw-rgb
! ffmpegcolorspace ! ffenc_mpeg2video ! mpegtsmux ! filesink
location=/tmp/test.mpg

The issue was that the card was dumping rgb (so you have to set the caps) vs
yuv so your
"video/x-raw-yuv" will become " video/x-raw-rgb".

Thanks,
Adam

On Fri, Jan 28, 2011 at 1:29 PM, Simen Bragen <[email protected]> wrote:

> Hi!
> We are two students working with matterhorn on Gjøvik University College in
> Norway.
>
> When we record from a bluecherry pv-149 the video turns up green when we
> view it in Matterhorn.
> We have narrowed it down to being a problem with the resolution of the
> video. Therefor we want to set the properties for the camera to be something
> like this:
>
> *
> capture.device.BT878_input0.type=CUSTOM_VIDEO_SRC
> capture.device.BT878_input0.customProducer=v4l2src device=/dev/video0 !
> video/x-raw-yuv,width=720,height=576 ! ffmpegcolorspace ! queue
> capture.device.BT878_input0.flavor=presenter/source
> capture.device.BT878_input0.outputfile=Kamera0.mpg
> capture.device.BT878_input0.codec=ffenc_mpeg2video
> *
>
> When we do this, Matterhorn cant find BT878_input0. We have read that this
> can be fixed with adding a src-property like the example under:
>
> *
> capture.device.BT878_input0.type=CUSTOM_VIDEO_SRC
> capture.device.BT878_input0.customProducer=v4l2src device=/dev/video0 !
> video/x-raw-yuv,width=720,height=576 ! ffmpegcolorspace ! queue
> *capture.device.BT878_input0.src=/dev/video0*
> capture.device.BT878_input0.flavor=presenter/source
> capture.device.BT878_input0.outputfile=Kamera0.mpg
> capture.device.BT878_input0.codec=ffenc_mpeg2video
> *
>
> When we do this Matterhorn finds BT878_input0, but we get the same green
> output as when we set the properties to this:
>
> *
> capture.device.BT878_input0.type=CUSTOM_VIDEO_SRC
> capture.device.BT878_input0.src=/dev/video0
> capture.device.BT878_input0.flavor=presenter/source
> capture.device.BT878_input0.outputfile=Kamera0.mpg
> capture.device.BT878_input0.codec=ffenc_mpeg2video
> *
>
> It seems like when the src-property is set, it overrides the
> customProducer-property.
>
> We know that the pipeline (v4l2src device=/dev/video0 !
> video/x-raw-yuv,width=720,height=576 ! ffmpegcolorspace ! queue) is correct.
>
> Our system:
>
> We run Ubuntu 9.10 on both Matterhorn-server and capture-agent.
> linux kernel 2.6.31-22-generic-pae
> gstreamer version: 0.10.25-2ubuntu1
> Matterhorn 1.0 binary
> Capture agent 1.0.0
>
> Any ideas?
>
> Best regards
> Simen
>
>
>
> _______________________________________________
> 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

Reply via email to