Ask Your Question
0

[solved] Scrambled image using gscam

asked 2012-09-19 04:36:17 -0500

gauthampdas gravatar image

updated 2012-09-20 02:05:49 -0500

I am trying to access canon vc-c50i on a pioneer. The onboard computer has Ubuntu 10.04 and diamondback installed in it. P2OS controls are working fine for the camera. I checked ptz functions.

I tried using gscam to get the video from the camera and see it in image_view.

$ roscd gscam/bin
$ export GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace"

$ rosrun gscam gscam

I am getting scrambled image in image view. I am accessing imageview using

$ rosrun image_view image_view image:=/gscam/image_raw

Cheese is also giving me the same video. Could someone help in this regard?


update 1:

I tried with player and I am getting the video stream properly.


update 2:

sorted with this environment variable setting. removed the device specification.

export GSCAM_CONFIG="v4l2src ! video/x-raw-yuv, width=320, height=240 ! ffmpegcolorspace"
edit retag flag offensive close merge delete

Comments

1

Instead of changing the title to include "[solved]" we have a mechanism for accepting the solutions to questions where you answer your own question, and then accept the answer. It'd be great if you could do that!

jbohren gravatar image jbohren  ( 2012-09-20 06:13:16 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-10-14 21:14:27 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

From @gauthampdas

sorted with this environment variable setting. removed the device specification.

export GSCAM_CONFIG="v4l2src ! video/x-raw-yuv, width=320, height=240 ! ffmpegcolorspace"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-09-19 04:36:17 -0500

Seen: 513 times

Last updated: Oct 14 '12