Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VH-Q1: How use Gstreamer pipline to get video stream and play

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: TDA4VH

Tool/software:

Dear Exbert

My hw and sw environment:

HW: J784S4-EVM(TDA4VH)

SW: Official SDK  (tda4vh-linux-sdk-j784s4-evm-09_00_01_01)

I am trying to capture the video stream from sensor (pipline: ar0220=>ub953=>ub960=>CSI2...), and I have already captured video data successfully by below command:

v4l2-ctl -d /dev/video4 --set-fmt-video=width=960,height=948,pixelformat=BA12 --stream-mmap=8 --stream-skip=3 --stream-to=/opt/camera-data-cap/output.raw --stream-count=200 --stream-poll

The data captured by above command has a format raw12(bayer GRBG).

Now, I want to use gstreamer and its plugins to cature the video data and covert it to rgb and encode it to h264(or other), and sent video tream to remote PC for display(192.168.10.100, port 5000). 

So, what gstreamer plugins are necessary and are they all included in the offical SDK (tda4vh-linux-sdk-j784s4-evm-09_00_01_01), if they have all included, then could you help provide the gstreamer1.0 command pipline according to my requirement? If any gstreamer plugins missed in SDK, please also share some methods to cross-compile it.

Thank you~

Best Regards

Jason

  • Hello, I am out of office and will get to this when available.

    Thanks,
    Sarabesh S.

  • Hi 

    Please try these commands:

    remote display:
    on pc, this must be run first:
    gst-launch-1.0 udpsrc port=5001 ! 'application/x-rtp, encoding-name=H264, payload=96' ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! videorate ! video/x-raw,framerate=30/1 ! autovideosink

    On evm, must be run later
    GST_DEBUG_FILE=/run/trace.log GST_DEBUG_NO_COLOR=1 GST_DEBUG=2,"GST_TRACER:7" GST_TRACERS="latency(flags=element)" gst-launch-1.0 -v v4l2src device=/dev/video-imx390-cam0 io-mode=dmabuf-import ! video/x-bayer, width=1936, height=1100, framerate=30/1, format=rggb12 ! queue leaky=2 ! \
    tiovxisp sink_0::device=/dev/v4l-imx390-subdev0 sensor-name=SENSOR_SONY_IMX390_UB953_D3 dcc-isp-file=/opt/imaging/imx390/linear/dcc_viss.bin \
    sink_0::dcc-2a-file=/opt/imaging/imx390/linear/dcc_2a.bin format-msb=11 sink_0::pool-size=8 src_0::pool-size=8 ! queue ! \
    video/x-raw, format=NV12, width=1936, height=1100, framerate=30/1 ! tiovxmultiscaler ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! queue ! \
    video/x-raw, width=1920, height=1080 ! queue ! tee name=t \
    t. ! queue ! kmssink driver-name=tidss sync=false force-modesetting=true \
    t. ! queue ! v4l2h264enc ! rtph264pay ! udpsink port=5001 host=157.87.36.61

    Regards,

    Adam