MattsProjects / pylon_gstreamer

A robust integration of Basler's Pylon API with GStreamer. Delivers applications as ready-to-run standalone compiled executables (gst-launch-1.0 is not needed). Designed for reliability and easy access to performance optimizations. Note: This is not a plugin. It is an intergration using GStreamer's GstAppSrc element.
Apache License 2.0
29 stars 18 forks source link

FPS in BaslerCamera #23

Open sabinagreen opened 3 years ago

sabinagreen commented 3 years ago

Hi, I 'am using simpleGrab example with Nvidia Jetson AGX evaluation board. I added performance parameters MaxTransferSize, DeviceLinkThroughtputLimit, MaxNumberBuffer, NumMaxQueuedUrbs, TransferLoopThreadPriority and MaxBufferSize and framerate to 100, but see 60 fps only. When i connect camera with the same parameters to PylonViewer I get FPS=100.

What is a problem here? what is wrong? Attached in simpleGrab example with above changes SimpleGrabMy.zip

Could you pls help with this problem?

MattsProjects commented 2 years ago

Hi there, I am sorry I am seeing this so late! I think I was not getting notifications from this repo :(. Is this still an issue for you? I think it must be some configuration, or perhaps the speed of the sample pipeline is not fast enough to keep up with the camera. It is not very optimized for performance in the sample. The camera will always run at the intended framerate, sending back images to the source element at that speed. But it is up to the pipeline to make requests for images from the source element. If a request is not made before the next image comes in, the next image will overwrite the previous one. The intended effect is that if the pipeline makes requests at 30fps, you get a video which is the equivalent of running the camera at 30fps (if we did not overwrite the image and used some FIFO buffer, you would see some "old" and "missing" frames in the final video)