Skip to contentSkip to conversation

New v4l2-compliance features

ANN Hans Verkuil 1 participant 2 messages Mar 13, 2015 – Mar 15, 2015 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi all,

I've just updated v4l2-compliance with some important new features.

First of all v4l2-compliance will store the driver state before it starts testing and it will restore it before the streaming tests start and when the application exits (including exit due to Ctrl-C).

This makes it possible to setup the driver for the streaming tests by selecting the right input/output, frequency, format, etc. so that that will be used by the streaming test.

The current -i, -o and -f options to set the input/output/frequency have been dropped since they are no longer needed.

Secondly a new option has been added: --stream-all-formats (-f). This will iterate over all pixelformats, all frame sizes, all frame intervals and all v4l2_field values and tries to stream 1 second worth of video.

It is normally quite difficult to check if a driver can really handle all combinations that it advertises, and this option should help.

It uses MMAP streaming or read/write if MMAP streaming is not supported.

Note that only video capture and output devices are supported. No support for memory-to-memory devices exists currently.

Enjoy!

Hans

#1 lore raw
Quoted 19 lines · Hans Verkuil

Hi all,

I've just updated v4l2-compliance with some important new features.

First of all v4l2-compliance will store the driver state before it starts testing and it will restore it before the streaming tests start and when the application exits (including exit due to Ctrl-C).

This makes it possible to setup the driver for the streaming tests by selecting the right input/output, frequency, format, etc. so that that will be used by the streaming test.

The current -i, -o and -f options to set the input/output/frequency have been dropped since they are no longer needed.

Secondly a new option has been added: --stream-all-formats (-f). This will iterate over all pixelformats, all frame sizes, all frame intervals and all v4l2_field values and tries to stream 1 second worth of video.

Quoted 7 lines

It is normally quite difficult to check if a driver can really handle all combinations that it advertises, and this option should help.

It uses MMAP streaming or read/write if MMAP streaming is not supported.

Note that only video capture and output devices are supported. No support for memory-to-memory devices exists currently.

I've made some more improvements where the selection (crop/compose) API is also tested in various combinations while streaming.

This covers most of the selection API. The main selection-related thing that is still missing is testing of the various selection flags.

Regards,

Hans