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.

DISPLAY SECTON OF DM8168

Hi,

I am working on an DM8168 customized board with EZSDK running on it. I have some doubts regarding video output path of DM8168. My requirement is to display captured video on the SD display (Composite OUT) of DM8168. I am using gstreamer pipelines for capture and display. I am able to get video in the HDMI but i was not able to get on SD (compsite) video OUT.

As far as i know output section is controlled by omx_display sink (gstreamer element ). Which by by default is driving the HDMI display.. So to drive the video to SD(composite) do i need to modify the omx_display sink. 

Please correct me if i am going wrong.

Regards

Sourabh

  • Hello,

    Here is an example for LCD display.

    ... ! ... ! 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  display-device=LCD

    For display mode you have:

       if (!strcmp (str, "OMX_DC_MODE_PAL"))

       {

           *mode = OMX_DC_MODE_PAL;

           *maxWidth = 720;

           *maxHeight = 576;

           return;

       }

       if (!strcmp (str, "OMX_DC_MODE_NTSC"))

       {

           *mode = OMX_DC_MODE_NTSC;

           *maxWidth = 720;

           *maxHeight = 480;

           return;

       }

    This also means that the  resolution in the caps should be changed.

    Check these files : gstomx_base_ctrl.c, gstomx_videosink.c.

    Best Regards,

    Margarita

  • Thank for quick reply Margarita.

    May be my question was not clear.

    My requirement is to get Composite(NTSC/PAL) and Component(YPbPr) video out using omx_display sink.

    Most of the places, example or refecence is given for HDMI and LCD use-case only.
    I didn't find any reference regarding Composite and Component video out use-case using omx_display sink.


    Can u guide us how to achive this requirement using omx_display sink.
    Use-case
    1. Composite out(NTSC/PAL)
    2. Component out (YPbPr)
  • Hello,

    You could try to use driverId.nDrvInstID = OMX_VIDEO_DISPLAY_ID_SD0 the input format should be 420 so you should use omx_noisefilter or ffmpegcolorspace element (the second one is not recommended since is software conversion) to convert it to 420. The   usage of omx_noisefilter will depends on which one will be the previous element is it will be omx_scaler/omx_mdeiscaler etc. 
    I have not try to add it so I should recheck it again. You could try to use v4l2sink.

    Best Regards,
    Margarita