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.

Problem with decode and display on cvbs

Other Parts Discussed in Thread: TVP5158

Hi,

Working on DM8148 , ti-ezsdk / omx_05_02_00_46 . 

I use the application decode_display. 

My project is to decode h264 file and disply it on CVBS channel. For this I omitted the Scalar component, 

so that the disply component will receive yuv420. 

The problem was that the DEC component receive the h264 frame (activate IL_ClientCbEmptyBufferDone call back function)  but did not continue with the process (did not activate IL_ClientCbFillBufferDone) and nothing was displayed . No error was reported.

Best Regards,

S.W

  • Hello,


    You could run ./loggerSMDump.out 0x9e400000 0x100000 all
    to obtain more debugging logs.
    This is available at /usr/share/ti/ti-uia folder in filesystem.
    Did you try dec->sc->nf->dis?

    BR
    Margarita
  • hi Margarita,

    1)
    I also tried dec->sc->nf->dis it works with high bitrate and not incase of 50000bps. Thats why I tried not to use nf .
    2)
    I run the logger and got the following: but did not understand the problem
    .VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:VPSS P:2 #:02949 T:0000000e46fff743 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09858 T:0000000e472d1a51 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:VPSS P:2 #:02950 T:0000000e47009d29 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09859 T:0000000e472d9505 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09860 T:0000000e472dfd75 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09861 T:0000000e472e6b1b M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09862 T:0000000e472ef1ad M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09863 T:0000000e47a55c3b M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09864 T:0000000e47a5dc97 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09865 T:0000000e47a64d37 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09866 T:0000000e47a6d1bb M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09867 T:0000000e47a74c6f M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09868 T:0000000e47a7b261 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09869 T:0000000e47a81d81 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09870 T:0000000e47a8a4ff M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:VPSS P:2 #:02951 T:0000000e47f2cc65 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:VPSS P:2 #:02952 T:0000000e47f360c9 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:VPSS P:2 #:02953 T:0000000e47f3da05 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:VPSS P:2 #:02954 T:0000000e47f47c57 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09871 T:0000000e481fa46d M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09872 T:0000000e482033fb M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09873 T:0000000e4820a7e7 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09874 T:0000000e482133c1 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09875 T:0000000e4821ae63 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09876 T:0000000e48221651 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09877 T:0000000e482284b7 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09878 T:0000000e48230b81 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09879 T:0000000e4899c29f M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09880 T:0000000e489a542d M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09881 T:0000000e489ac88b M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09882 T:0000000e489b5437 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09883 T:0000000e489bcf67 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09884 T:0000000e489c372b M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09885 T:0000000e489ca4bb M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09886 T:0000000e489d2aad M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:VPSS P:2 #:02955 T:0000000e48e722cb M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:VPSS P:2 #:02956 T:0000000e48e7bfeb M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:VPSS P:2 #:02957 T:0000000e48e83943 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:VPSS P:2 #:02958 T:0000000e48e8de13 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09887 T:0000000e4913c0a5 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09888 T:0000000e49145565 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09889 T:0000000e4914c783 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09890 T:0000000e491555d3 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09891 T:0000000e4915d177 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09892 T:0000000e491637d9 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09893 T:0000000e4916a613 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09894 T:0000000e49172bfb M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09895 T:0000000e498da041 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09896 T:0000000e498e1fc3 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09897 T:0000000e498e8fe9 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09898 T:0000000e498f157d M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09899 T:0000000e498f9027 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09900 T:0000000e498ff619 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09901 T:0000000e49906251 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09902 T:0000000e4990e8f5 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:Video P:1 #:09903 T:0000000e4a07eed7 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:VPSS P:2 #:02959 T:0000000e49db23c1 M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Entering<OMX_BASE_DIO_GetCount> @line<512>
    N:Video P:1 #:09904 T:0000000e4a087eef M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:VPSS P:2 #:02960 T:0000000e49dbbe9f M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Entering<OMX_BASE_DIO_GetPort> @line<593>
    N:Video P:1 #:09905 T:0000000e4a08f363 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:VPSS P:2 #:02961 T:0000000e49dc38db M:xdc.runtime.Main S:Module<OMX.TI.VPSSM3.VFDC> Leaving<OMX_BASE_DIO_GetPort> @line<599> with error<0:ErrorNone>
    N:Video P:1 #:09906 T:0000000e4a098047 M:xdc.runtime.Main S:Module<OMX.TI.DUCATI.VIDDEC> Leaving<OMX_BASE_DIO_GetCount> @line<532> with error<0:ErrorNone>
    N:VPSS P:2 #:02962 T:0000000e49dcdf29 M:xdc.runtime.Main S:Module<OMX.TI.V
  • Hello,

    In the log it seems like it hangs.
    Could you try with higher bitrate like 1Mbps or 2Mbps or higher is it working with NF ?
    Could you try with gstreamer but not to use omx_videosink which is using VFCD component? Try with v4l2sink element.
    Here is example:

    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_noisefilter ! gstperf ! v4l2sink device="/dev/video3" show-preroll-frame=false sync=false min-queued-bufs=2



    BR
    Margarita
  • Hello,

    >>>>>>>>>>>Could you try with higher bitrate like 1Mbps or 2Mbps or higher is it working with NF ?

    Yes, I have worked with NF with higher bitrate 1Mbps- 25fps and it works. the problem arises when I am working with 10fps, 5fps. The problem is that the colors red and blue are not synchronized with the green color.

    >>>>>>>>>>>Could you try with gstreamer but not to use omx_videosink which is using VFCD component? Try with v4l2sink element

    I am not familiar with gstreamer. 

    BR

    S.W

  • Hi,

    I activate the gst-launch and I got the following error:

    root@gvc:~# gst-launch filesrc location=/usr/share/ti/data/videos/dm816x_1080p_d
    emo.264 ! 'video/x-h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler
    ! omx_noisefilter ! gstperf ! v4l2sink device="/dev/video3" show-preroll-frame=
    false sync=false min-queued-bufs=2
    Setting pipeline to PAUSED ...
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Cannot identify device '/dev/video3'.
    Additional debug info:
    v4l2_calls.c(493): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0:
    system error: No such file or directory
    Setting pipeline to NULL ...
    Freeing pipeline ...

    Could you help me with defining the device /dev/video3

    What is v4l2sink? Is it one of the omx components?

    Does the the display componets relate to the ducati?

    BR

    S.W

  • Hello,

    Shlomo Weiss said:
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Cannot identify device '/dev/video3'.

    Did you load the v4l2 firmware(dm816x_hdvpss_v4l2.xem3)?

    Shlomo Weiss said:
    What is v4l2sink? Is it one of the omx components?

    No, no it is not OMX component. It is using v4l2 display driver. That is why I asked to try since you had suspicious regarding omx display component.

    Shlomo Weiss said:
    Does the the display componets relate to the ducati?

    Not sure what you mean.

    In OMX we have component for capture(vfcc), display (vfdc), codecs (vdec,venc), processing components (vfpc) like NF SC etc.

    BR
    Margarita

  • Hi Margarita,

    First I need to know how to load dm816x_hdvpss_v4l2.xem3. I suppose that I can load it by 

    /usr/share/ti/ti-media-controller-utils/load-hd-v4l2-firmware.sh. But the problem is that, our problem is CVBS. and not HDMI

    As I mentioned we use a file 720x480 ntsc, or 720x576 pal. we also use capturing pal or ntsc and display it on cvbs output channel.

    For this we need TVP5158. so load-hd-v4l2-firmware.sh is not relevant for us.

    Second, How I can use the  v4l2sink in the omx software. For example in streamer application or decode_display application?

    B.R

    S.W

  • Hi,

    Have you tried the latest EZSDK release v5.05.02.00?

    Thank you

    Cesar

  • Hi Cesar,

    No. We are using the release : ti-ezsdk_dm814x-evm_5_05_01_04.

    Why do you think that the latest release will solve our specific problem.

    The upgrade will require from me a lot of work.

    B.R

    W.S