can we start gstreamer from console ?


The short story:
We need to start gstreamer from serial console , and see the video on the display output (regular hdmi interface).

But on running:

gst-launch-1.0 -v v4l2src device=/dev/video0  ! 'video/x-raw,framerate=(fraction)50/1,format=RGB' ! videoconvert ! xvimagesink

we get:

"could not open display".

Note: the same command works very well if executed from terminal in the screen, but doing the same from serial console fails.

How should we run gstreamer to make it work ?

Thank you,

You shall miss

export DISPLAY=:1