appsink is slow

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

appsink is slow

aircheese
Hi all. I'm newbie here.

I'm using fallowing pipelines. (with TX1 and IMX274 Camera)

Pipeline 1) 3840x2160, YUV, No Converting,  60 FPS(can get images)
nvcamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)3840,
height=(int)2160, format=(string)I420, framerate=(fraction)60/1 ! nvtee !
nvvidconv flip-method=0 ! video/x-raw, format=(string)I420 ! appsink

Pipeline 2) 3840x2160, RGB, Converting, 18 FPS (can get images)
nvcamerasrc  sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)3840,
height=(int)2160,format=(string)I420, framerate=(fraction)60/1 ! nvtee !
nvvidconv flip-method=2 ! video/x-raw, format=(string)BGRx ! videoconvert !
video/x-raw, format=(string)BGR ! appsink

Pipeline 3) 3840x2160, RGB, Converting, 60 FPS (Just Displaying, can't get
images)
nvcamerasrc fpsRange=\"60.0 60.0\" sensor-id=0 ! video/x-raw(memory:NVMM),
width=(int)3840, height=(int)2160, format=(string)I420,
framerate=(fraction)60/1 ! nvtee ! nvvidconv flip-method=0 !
video/x-raw(memory:NVMM), format=(string)I420 ! nvoverlaysink sync=false
name=mysink

I need to get camera images with 3840x2160, RGB, 60FPS. But,  I can't get
images with 60 fps.
When I use "Pipeline 3", I can see camera images with 60fps, however, it's
not possible to get raw data. just possible to display. I think the problem
is sink.(appsink, nvoverlaysink)

Could you please anybody help me?

thank you for reading.
Have a nice day everyone.

Regards,
Claude





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: appsink is slow

Nicolas Dufresne-5
Le mardi 10 octobre 2017 à 05:04 -0700, aircheese a écrit :

> Hi all. I'm newbie here.
>
> I'm using fallowing pipelines. (with TX1 and IMX274 Camera)
>
> Pipeline 1) 3840x2160, YUV, No Converting,  60 FPS(can get images)
> nvcamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)3840,
> height=(int)2160, format=(string)I420, framerate=(fraction)60/1 ! nvtee !
> nvvidconv flip-method=0 ! video/x-raw, format=(string)I420 ! appsink
>
> Pipeline 2) 3840x2160, RGB, Converting, 18 FPS (can get images)
> nvcamerasrc  sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)3840,
> height=(int)2160,format=(string)I420, framerate=(fraction)60/1 ! nvtee !
> nvvidconv flip-method=2 ! video/x-raw, format=(string)BGRx ! videoconvert !
> video/x-raw, format=(string)BGR ! appsink
>
> Pipeline 3) 3840x2160, RGB, Converting, 60 FPS (Just Displaying, can't get
> images)
> nvcamerasrc fpsRange=\"60.0 60.0\" sensor-id=0 ! video/x-raw(memory:NVMM),
> width=(int)3840, height=(int)2160, format=(string)I420,
> framerate=(fraction)60/1 ! nvtee ! nvvidconv flip-method=0 !
> video/x-raw(memory:NVMM), format=(string)I420 ! nvoverlaysink sync=false
> name=mysink
>
> I need to get camera images with 3840x2160, RGB, 60FPS. But,  I can't get
> images with 60 fps.
> When I use "Pipeline 3", I can see camera images with 60fps, however, it's
> not possible to get raw data. just possible to display. I think the problem
> is sink.(appsink, nvoverlaysink)
nvvidconv (which I believe is still proprietary) has a very slow
download path. The only way forward, is to get your hand on the NVMM
memory interface, and use the NVMM mmap interface to read/write the
data. Note that this path is not portable across NV supported
platforms.

Your other option is to try and do you work in Cuda. Again, all this is
downstream, and support should come from NVidia really.

>
> Could you please anybody help me?
>
> thank you for reading.
> Have a nice day everyone.
>
> Regards,
> Claude
>
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment