Getting a camera frame

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting a camera frame

nss_327
Hello!

I'm developing an application for the nokia n900 and I need to get the frame from the camera (it doesn't matter the format) to process it later with openGL. I would like to know the fastest way to get the frame. I'm quite new to gstreamer.

Thanks!!

Reply | Threaded
Open this post in threaded view
|

Re: Getting a camera frame

Michael Joachimiak
Have you tried gst-launch command line tool ?

2010/6/1 nss_327 <[hidden email]>

Hello!

I'm developing an application for the nokia n900 and I need to get the frame
from the camera (it doesn't matter the format) to process it later with
openGL. I would like to know the fastest way to get the frame. I'm quite new
to gstreamer.

Thanks!!


--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Getting-a-camera-frame-tp2238707p2238707.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Your Sincerely
Michael Joachimiak

------------------------------------------------------------------------------


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Getting a camera frame

Stefan Sauer
In reply to this post by nss_327
Am 01.06.2010 18:24, schrieb nss_327:

>
> Hello!
>
> I'm developing an application for the nokia n900 and I need to get the frame
> from the camera (it doesn't matter the format) to process it later with
> openGL. I would like to know the fastest way to get the frame. I'm quite new
> to gstreamer.
>
> Thanks!!
>
>

Hi,

you can build a simple pipeline like v4l2camsrc ! appsink. Have a look at the
api docs for appsink to se how to get the frame.

Stefan


------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Getting a camera frame

Andrey Nechypurenko-2
In reply to this post by nss_327
Hi,

> I'm developing an application for the nokia n900 and I need to get the frame
> from the camera (it doesn't matter the format) to process it later with
> openGL. I would like to know the fastest way to get the frame. I'm quite new
> to gstreamer.

If the only thing you need is to get the frame, I would suggest to use
V4L2 API directly. Since you are targeting concrete hardware platform
(camera) and there is no need to support all possible variety, it
should be easy to accomplish. There are also a lot of examples on the
web illustrating how to do it.

Andrey.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Getting a camera frame

nss_327
In reply to this post by nss_327
Hello again!!

Thanks for all your replies!

I also thought about capturing the frame directly from the device with V4L2. However, as far as I know, in the Nokia n900 it is not possible to access the device. You are forced to use the Gstreamer.

I managed to create a pipeline like:

camera ! csp_filter ! appsink.

Now, I'm thinking to convert the data from yuv to rgb in the pipeline (now, I'm doing it manually afterwards). Do you think it is faster doing it myself than doing it in the pipeline?

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Getting a camera frame

Alexandre Quessy
Hello!
Since you want to render it to OpenGL, you could use gst-plugins-gl?
See http://bitbucket.org/aalex/toonloop1/src/3f8423d6d2f2/src/pipeline.cpp

a

2010/6/11 nss_327 <[hidden email]>:

>
> Hello again!!
>
> Thanks for all your replies!
>
> I also thought about capturing the frame directly from the device with V4L2.
> However, as far as I know, in the Nokia n900 it is not possible to access
> the device. You are forced to use the Gstreamer.
>
> I managed to create a pipeline like:
>
> camera ! csp_filter ! appsink.
>
> Now, I'm thinking to convert the data from yuv to rgb in the pipeline (now,
> I'm doing it manually afterwards). Do you think it is faster doing it myself
> than doing it in the pipeline?
>
> Thanks!
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Getting-a-camera-frame-tp2238707p2251725.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



--
Alexandre Quessy
http://alexandre.quessy.net/

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Getting a camera frame

Stefan Sauer
In reply to this post by nss_327
On 11.06.2010 15:14, nss_327 wrote:
> Hello again!!
>
> Thanks for all your replies!
>
> I also thought about capturing the frame directly from the device with V4L2.
> However, as far as I know, in the Nokia n900 it is not possible to access
> the device. You are forced to use the Gstreamer.
>  
Sorry, but thats non-sense. The N900 is one of the most open devices
out-there. You can happlity use v4l2 ioctls directly if you feel like.
> I managed to create a pipeline like:
>
> camera ! csp_filter ! appsink.
>
> Now, I'm thinking to convert the data from yuv to rgb in the pipeline (now,
> I'm doing it manually afterwards). Do you think it is faster doing it myself
> than doing it in the pipeline?
>  
v4l2src ! ffmpegcolorspace ! video/x-raw-rgb ! appsink

some conversion path are optimized with neon code, that is hard to beat
manually.

Stefan
> Thanks!
>  


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel