minimize latency in video streaming

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

minimize latency in video streaming

1,528 Views
zohargolan
Contributor III

Hi All,

I am in the evaluation phase of the i.mx8m plus for a camera application. I am using boundary device nitrogen8mp for the evaluation purpose.

I am running the following GStream command: gst-launch-1.0 v4l2sink ! waylandsrc

I can stream video from the camera to display with several issues:

1. The video is not occupying the whole display and I still have the desktop header shown on the top

2. I have a latency of about 1/4 sec from camera to display. This is a critical parameter for me and will not work for my requirements. 

Is there a way to reduce the latency to a sub frame latency?

I appreciate any comment,

Zohar

0 Kudos
5 Replies

1,475 Views
zohargolan
Contributor III

This doesn't work in the configuration I have and I am getting

 

root@nitrogen8mp:~# gst-launch-1.0 v4l2src latency=50 ! waylandsink
WARNING: erroneous pipeline: no property "latency" in element "v4l2src0"

0 Kudos

1,315 Views
EESTE
Contributor I

I'm running into the same issue.

Did you get a solution to this by any chance?

0 Kudos

1,519 Views
b36401
NXP Employee
NXP Employee

As far as I know default latency in gstreamer is 200ms as a compromise between realtime and quality.
You can set something like latency=100 to low the latency.

0 Kudos

1,516 Views
zohargolan
Contributor III

Hi b36401, 

Thank you for your answer. 

I would you go about setting the latency to latency =100 like you've mentioned?  Where would you set it up?

 

Zohar

0 Kudos

1,500 Views
b36401
NXP Employee
NXP Employee

I mean you can add "latency=100" into the commandline parameters you pass to gstreamer.

0 Kudos