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.

Linux/TMS320DM8148: How to display two outputs simultaneously

Part Number: TMS320DM8148

Tool/software: Linux

Hello

I'm using dm8148 evm with ti-ezsdk_dm814x-evm_5_05_02_00

and testing capture_encode / decode_display in OMX examples.

Two examples display with only one output.

But I want to capture one hdmi and display two outputs simultaneously.

 case 1 : hdmi and CVBS, 

 case 2 : hdmi and lcd (720x480 or 720x576)

Where can I get example source? (two simultaneous outputs).

Best Regards

David Seo

  • Hello,

    We does not have such example.
    Here is example with gstreamer
    gst-launch filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! gstperf ! omx_videosink sync=false filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_480P_60 display-device=LCD ! 'video/x-raw-yuv,width=(int)800,height=(int)480' ! gstperf ! omx_videosink sync=false display-device=LCD

    As you could see there are two decoder elements, two scalers etc.

    I would recommend you to check this thread:
    e2e.ti.com/.../426680

    Hope this helps.

    BR
    Margarita
  • Thank you for your fast reply :)

    Your recommended gst-launch command works well.

    So I tried to run the modified gst-launch command with yours to display HDMI and CVBS simultaneously (LCD->SD).
    But it doesn't work.

    Is it possible to display HDMI and CVBS simultaneously with gst-launch?

    [ My modified command]
    gst-launch filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! gstperf ! omx_videosink sync=false filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_NTSC display-device=SD ! 'video/x-raw-yuv,width=(int)720,height=(int)480' ! gstperf ! omx_videosink sync=false display-device=SD

    Best Regards
    David Seo
  • Hello,

    In this case I would recommend you to remove omx_ctrl element and replace omx_videosink element with v4l2sink. You must set device property of v4l2sink element where /dev/videoX is your display (ex. v4l2sink device=/dev/video2). In additional you must load the v4l2 firmware(refer the ezsdk user guide).
    Note: I have not tested this.

    I strongly recommend you to check the link in my previous post also.

    BR
    Margarita