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.

dm365 use ti gstreamer output to lcd issue

Other Parts Discussed in Thread: OMAP3530

hi

I'm using monta vista kernel 2.6.32 and dvsdk_3_10_00_19, and ti gstreamer is the newest version down from svn.
my bootargs is 'mem=65M console=ttyS0,115200n8 root=/dev/mtdblock3 rootfstype=yaffs2 rw video=davincifb:vid0=OFF:vid1=OFF:osd0=800x480x16,4050K dm365_imp.oper_mode=0 davinci_enc_mngr.ch0_output=LCD davinci_enc_mngr.ch0_mode=800x480 vpfe_capture.cont_bufoffset=0 vpfe_capture.cont_bufsize=6291456'

The start up log message and image can be display on the lcd use /dev/fb0 device, and use ti gstreamer to decode video stream output to TV with ntsc/pal mode succesful.

my gstreamer scripts like this
gst-launch -v filesrc location=/opt/davincieffect_ntsc.mpeg4 ! TIViddec2 codecName=mpeg4dec engineName=codecServer ! dmaiperf print-arm-load=TRUE ! TIDmaiVideoSink useUserptrBufs=TRUE displayStd=v4l2 displayDevice=/dev/video2 videoStd=D1_NTSC videoOutput=composite sync=false
This scrpits works well, but when I use this scrpits:
gst-launch -v filesrc location=/opt/davincieffect_ntsc.mpeg4 ! TIViddec2 codecName=mpeg4dec engineName=codecServer ! dmaiperf print-arm-load=TRUE ! TIDmaiVideoSink  displayStd=fbdev displayDevice=/dev/fb0  videoStd=VGA videoOutput=LCD sync=false
it decoded failed, and show the error message like this,
.......................................
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstTIDmaiVideoSink:tidmaivideosink0:
Unable to initialize display
.............................
hence, I followed along with Eric's suggestion to modify gsttidmaivideosink.c to support LCD output at the case VAR_VIDEOUTPUT.
The orignal code:
            #if defined(Platform_omap3530)
            else if (!strcmp(sink->videoOutput, "DVI"))
                return Display_Output_DVI;
            else if (!strcmp(sink->videoOutput, "LCD"))
                return Display_Output_LCD;
            #endif
Does it mean that only omap3530 can support output to LCD?
I commented define Platform_omap3530, and recompiled it, but when I use "videoStd=VGA videoOutput=LCD" , show the same error message.

Any suggestion?
thanks a lot.

Robert

  • Robert,

    Do you mind if I ask what LCD are you using and how do you have it connected?  We are not as far along as you, but will be getting there soon.  Any tips you can provide regarding the LCD interface would be wonderful.

    Thank you,

    -David