[aravis] Re: asking for some examples

  • From: Emmanuel Pacaud <emmanuel@xxxxxxxxx>
  • To: aravis@xxxxxxxxxxxxx
  • Date: Wed, 01 Aug 2012 18:10:39 +0200

Hi Goran,

Le mercredi 01 août 2012 à 12:13 +0200, Goran a écrit :
> can someone post some short example how to stream into a file or to stdout?

I don't have a code sample to show, but still, it really depends on what
you want to do.

If you want to save raw data in a file, it should be quite trivial. You
just have to put the content of the image buffer into a file. The code
in test/arv-camera-test should help you to learn how to initialize a
camera and start streaming.

If you want something more complicated (like image cropping,
compression ...), I'd suggest you to use gstreamer, either the aravis
gstreamer plugin, which should allow you to save a video stream to a
file with the gst-launch command line, or using the GstAppSrc API (see
the gstreamer-base documentation) in a C or C++ program.

        Emmanuel.


Other related posts: