Ask Your Question
1

Can I create a new parameter for video_mode of camera1394

asked 2012-12-05 05:55:13 -0600

AdrianPeng gravatar image

Currently, I have my firefly mv usb camera working with camera1394 package. The problem is that the maximum resolution of my camera is 1328x1048, but there is no parameter for 1328x1048 in video_mode. I am wondering can I create or modify a mode to enable 1328x1048 resolution works? Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-12-05 06:09:20 -0600

joq gravatar image

updated 2012-12-08 07:10:41 -0600

The IIDC 1394 standard defines the available modes. Each camera provides some subset of those standard settings. So, no: you can't define your own video mode.

However, the standard also provides Format 7, which allows the camera to provide additional non-standard resolutions. Please consult your device-specific specifications to see if it provides a Format 7 option that supports the full resolution. Most do, often using Format 7 Mode 0.

EDIT:

Because Format 7 behavior is not specified by the standard, individual devices vary widely. Most cameras I have tested display full device resolution, generally when using Format 7 Mode 0.

The driver provides special parameters only used in Format 7 modes. You can experiment with them, but the default values normally provide the behavior you want. You can also try Format 7 Mode 1, Mode 2, etc.

To experiment with those parameters while the driver is running, use the reconfigure GUI. Unfortunately, many cameras behave badly in Format 7 mode when given unexpected parameter values. If the device hangs while you are experimenting with those parameters, you may need to perform various resets to get it working again.

If that does not work, run coriander on the device. See what parameters it supports. Then set the equivalent values in camera1394.

edit flag offensive delete link more

Comments

Hi joq, I remember Format 7 Mode 0 works for my camera in the morning. But the problem is that the resolution still keeps low. How can I define the resolution of Format 7 Mode 0 in camera1394 package?

AdrianPeng gravatar imageAdrianPeng ( 2012-12-06 14:38:12 -0600 )edit

Thanks, I got it works.

AdrianPeng gravatar imageAdrianPeng ( 2012-12-08 08:22:47 -0600 )edit

Good. For the record: what modes and parameters did it take?

joq gravatar imagejoq ( 2012-12-08 08:30:50 -0600 )edit

I just use format7_mode0 and change the encoding method to raw8.

AdrianPeng gravatar imageAdrianPeng ( 2012-12-08 09:35:00 -0600 )edit

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-12-05 05:55:13 -0600

Seen: 222 times

Last updated: Dec 08 '12