iMX6SX: VADC & CPU load

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

iMX6SX: VADC & CPU load

1,479 Views
JohnDoe1z
Contributor III


Hello,

I'm using the VADC of the iMX6 SoloX (Sabre board) to capture and show an analog camera signal with following Gstreamer pipeline:

gst-launch-1.0 imxv4l2src device=/dev/video1 ! imxv4l2sink device=/dev/video0

The pipeline works, i.e. the picture is shown correctly, but I get a CPU load of nearly 100% while the pipeline is running, which, of course, is not acceptable. I would expect a one-digit cpu-load. What am I doing wrong?

I'm using kernel 4.1.x.

Labels (1)
Tags (2)
0 Kudos
Reply
4 Replies

1,162 Views
joanxie
NXP TechSupport
NXP TechSupport

could you confim if high cpu loading is caused by only playing video?

high cpu loading depends on what usage cpu use.

0 Kudos
Reply

1,162 Views
JohnDoe1z
Contributor III

Yes I can confirm that; gst-launch is eating up all the cpu-cycles. When I terminate the process, the cpu-load is close to 0%.

I'm pretty sure you can easily repdroduce this behavior.

0 Kudos
Reply

1,162 Views
joanxie
NXP TechSupport
NXP TechSupport

how about add "sync=false " in the command?

0 Kudos
Reply

1,162 Views
JohnDoe1z
Contributor III

I've tried with gst-launch-1.0 imxv4l2src device=/dev/video1 ! imxv4l2sink device=/dev/video0 sync=false and still the same result (output from top):

PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND

597   568 root     S    52064   5%  99% gst-launch-1.0 imxv4l2src device=/dev/video1 ! imxv4l2sink device=/dev/video0 sync=false

I've also tried to set the sync property on the imxv4l2src, but the property apparently does not exist there.

0 Kudos
Reply