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.

Qt Widget Overlay on Video with qtInterface

Other Parts Discussed in Thread: OMAP3530

Hi, all

since i had read more here,and  here,(i have to move the post here cus no one is there :) sorry about this)

but i still get problem to get the target:

display qt widget overlay the video (yuv or h264 )  with color key enable.

i had tryed with qtInterface:

 

i had tired with 's suggestion and after a small modifications to fit my LCD 800x480, i run the app as

./qtInterface -y 8 -O 6  -bg transparent -qws

-y 8 is add to support the custom LCD.

And i think "-bg transparent" is useless here,so i change the source code with

#ifdef Platform_omap3530
    QWSServer::setBackground(QBrush(QColor(0, 0, 0, 0)));
#endif
 //mike add to test transparence
 QWSServer::setBackground(QBrush(QColor(0, 0, 0, 0)));

cus we are using dm365 custom borad.

and then we get the picture you can see above. i think the transparent is already done, but..

after the pen skiing on  the left part of LCD, the left pad shows with some kinds  of "patterned"...see here

i dont konw why.

i thought the background is already black and if  it(fb0=osd0) is transparent, the part without any widget there must be filled with the video lay (vid0=fb1) which i had tryed to use dd command to write some yuv files into

dd if=/linux.yuv of=/dev/fb1

 and.. i had tryed to use

blend 15

form dvsdk\psp\linux-driver-examples-psp03.01.01.38\fbdev\blend

any ideas ???

by the way, why there is not such a file there in our custom borad ? ?/sys/devices/platform/omapdss/manager0/alpha_blending_enabled

 regards, Mike.

 

 

  • now im trying to use decode

    here is what i had done :

     

    ./decode -o -v ../data/videos/waterfall.264
    Decode demo started.
    Error: Failed to create display device

    -o means display on OSD.

    kernel command line

    video=davincifb:rotation=90:vid0=800x480x32,4050K:vid1=800x480x32,4050K:osd0=800x480x32,4050K:osd1=off dm365_imp.oper_mode=0 davinci_enc_mngr.ch0_output=LCD davinci_enc_mngr.ch0_mode=800x480

    now im using

    ./decode -v ../data/videos/waterfall.264
    Decode demo started.
    Error: Failed to create attribute window device

    this time i get an other problem.

    cat /proc/fb
    0 dm_osd0_fb
    1 dm_vid0_fb
    2 dm_osd1_fb
    3 dm_vid1_fb

    ls /dev/fb* -l
    lrwxrwxrwx    1 1003     root            3 Jun  1  2011 /dev/fb -> fb0
    crw-------    1 1003     root      29,   0 Jan 13  2011 /dev/fb0
    crw-r--r--    1 1003     root      29,   1 Jun  1  2011 /dev/fb1
    crw-r--r--    1 1003     root      29,   2 Jun  1  2011 /dev/fb2
    crw-r--r--    1 1003     root      29,   3 Jun  1  2011 /dev/fb3

    then i have to change my code to fit my LCD...

  • after a little search of here http://e2e.ti.com/support/embedded/f/354/p/74491/272336.aspx#272336, i just found:

     

    DMAI_DEBUG=2 ./decode -v ../data/videos/water
    fall.264 -O LCD
    Using video output: Display_Output_LCD
    Decode demo started.
    @0x00031d7f:[T:0x4001f060] ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to DMAI tracing behavior.
    @0x00038f89:[T:0x4001f060] ti.sdo.dmai - [Display] Found width=720 height=480, yres_virtual=480,xres_virtual=720, line_length=384
    @0x0003918d:[T:0x4001f060] ti.sdo.dmai - [Display] Setting width=720 height=576, yres_virtual=576, xres_virtual=720
    @0x0003ce6d:[T:0x4001f060] ti.sdo.dmai - [Display] Failed FBIOPUT_VSCREENINFO on /dev/fb2 (Invalid argument)
    Error: Failed to create attribute window device

  • it seems that  the dirver are using

    width=720 height=480

    but we are trying to set as:

    Setting width=720 height=576

    so it is problem there.

  • DMAI_DEBUG=2 ./decode -v ../data/videos/davincieffect.264   -y 1


    Decode demo started.
    launchInterface
    CERuntime_init
    @0x0009d672:[T:0x4001f060] ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to DMAI tracing behavior.
    Dmai_init
    uiAttrs.videoStd = 5
    @0x000a4f8c:[T:0x4001f060] ti.sdo.dmai - [Display] Found width=320 height=240, yres_virtual=240,xres_virtual=320, line_length=160
    @0x000a517b:[T:0x4001f060] ti.sdo.dmai - [Display] Setting width=720 height=480, yres_virtual=480, xres_virtual=720
    @0x000a535c:[T:0x4001f060] ti.sdo.dmai - [Display] New width=720, height=480, yres_virtual=480,xres_virtual=720, line_length=384
    @0x000a54bc:[T:0x4001f060] ti.sdo.dmai - [BufTab] Allocating BufTab for 1 buffers
    @0x000a5719:[T:0x4001f060] ti.sdo.dmai - [Buffer] Set user pointer 0x40300000 (physical 0x82200000)
    @0x000a5c90:[T:0x4001f060] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x40300000 has physical address 0xc240
    UI_create
    validateArgs
    uiSetup
    Pause_create
    @0x000a9125:[T:0x40b2c490] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffers
    @0x000a9344:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40b2d000 (0x83c00000 phys)
    @0x000a95e8:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40baf000 (0x83c82000 phys)
    @0x000a9838:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40c31000 (0x83d04000 phys)
    @0x000a9a5d:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40cb3000 (0x83d86000 phys)
    Display_create1
    @0x000cb041:[T:0x41534490] ti.sdo.dmai - [Vdec2] Video decoder instance created
    @0x000cb2a3:[T:0x41534490] ti.sdo.dmai - [Vdec2] Made XDM_SETPARAMS control call
    @0x000cb3f5:[T:0x41534490] ti.sdo.dmai - [Vdec2] Made XDM_GETBUFINFO control call
    @0x000cb4d4:[T:0x41534490] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffers
    @0x000cb745:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42146000 (0x847c3000 phys)
    @0x000cb9d5:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x421e9000 (0x84866000 phys)
    @0x000cbc62:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x4228c000 (0x84909000 phys)
    @0x000cbec8:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x4232f000 (0x849ac000 phys)
    @0x000cc030:[T:0x41534490] ti.sdo.dmai - [Loader] Creating Loader for ../data/videos/davincieffect.264 with buffer size 1637824, window size 518912, alignment -1
    @0x000ce61d:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 1637824 at 0x423d2000 (0x84a4f000 phys)
    @0x000d06fb:[T:0x40b2c490] ti.sdo.dmai - [Display] Failed to determine video display format
    Display_create2
    Error: Failed to create display device
    @0x000f873c:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d2000 (physical 0x84a4f000)
    @0x000f94d6:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 0 inUse 0 consumed 725
    @0x000f95d8:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x000f972d:[T:0x41534490] ti.sdo.dmai - [Vdec2] Made XDM_GETBUFINFO control call
    @0x000f99f1:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42d62000 (0x84bdf000 phys)
    @0x000f9c63:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42e05000 (0x84c82000 phys)
    @0x000f9ef9:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42ea8000 (0x84d25000 phys)
    @0x000fa170:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42f4b000 (0x84dc8000 phys)
    @0x000fa42b:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42fee000 (0x84e6b000 phys)
    @0x000fa69c:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43091000 (0x84f0e000 phys)
    @0x000fa92f:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43134000 (0x84fb1000 phys)
    @0x000fabc2:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x431d7000 (0x85054000 phys)
    @0x000fae55:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x4327a000 (0x850f7000 phys)
    @0x000fb0bb:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x4331d000 (0x8519a000 phys)
    @0x000fb375:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x433c0000 (0x8523d000 phys)
    @0x000fb5e5:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43463000 (0x852e0000 phys)
    @0x000fb95c:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43506000 (0x85383000 phys)
    @0x000fbbf0:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x435a9000 (0x85426000 phys)
    @0x000fbe8c:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x4364c000 (0x854c9000 phys)
    @0x000fc0f8:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x436ef000 (0x8556c000 phys)
    @0x000fc3cd:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43792000 (0x8560f000 phys)
    @0x000fc4ef:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d22d5 (physical 0x84a4f2d5)
    @0x000fc87e:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 1 inUse 0 consumed 246
    @0x000fc9a4:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x280d
    @0x000fca84:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d23cb (physical 0x84a4f3cb)
    @0x000fccee:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 2 inUse 0 consumed 41
    @0x000fcde4:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x280d
    @0x000fcf03:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d23f4 (physical 0x84a4f3f4)
    @0x000fd1a9:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 3 inUse 0 consumed 34
    @0x000fd29b:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x000fd3a8:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d2416 (physical 0x84a4f416)
    @0x000fd5f6:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 4 inUse 0 consumed 7
    @0x000fd6e8:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x000fd7c7:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d241d (physical 0x84a4f41d)
    @0x000fda9e:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 5 inUse 0 consumed 34
    @0x000fdb90:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x000fdc70:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d243f (physical 0x84a4f43f)
    @0x000fdf76:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 6 inUse 0 consumed 7
    @0x000fe073:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x000fe157:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d2446 (physical 0x84a4f446)
    @0x000fe434:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 7 inUse 0 consumed 34
    @0x000fe527:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x000fe60b:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d2468 (physical 0x84a4f468)
    @0x0014fa6d:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 8 inUse 0 consumed 7
    @0x0014fb6e:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0014fc56:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d246f (physical 0x84a4f46f)
    @0x0014ff3c:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 9 inUse 0 consumed 34
    @0x00150034:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x00150115:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d2491 (physical 0x84a4f491)
    @0x00150399:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 10 inUse 0 consumed 7
    @0x00150496:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0015057c:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d2498 (physical 0x84a4f498)
    @0x0015086a:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 11 inUse 0 consumed 34
    @0x00150962:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x00150a3e:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d24ba (physical 0x84a4f4ba)
    @0x00150c9a:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 12 inUse 0 consumed 7
    @0x00150dc2:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x00150f4a:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d24c1 (physical 0x84a4f4c1)
    @0x00151233:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 13 inUse 0 consumed 34
    @0x00151356:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0015143e:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d24e3 (physical 0x84a4f4e3)
    @0x00151696:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 14 inUse 0 consumed 7
    @0x0015178f:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x00151899:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d24ea (physical 0x84a4f4ea)
    @0x00151b5f:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 15 inUse 0 consumed 34
    @0x00151c56:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x00151d39:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d250c (physical 0x84a4f50c)
    @0x00151fbf:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 16 inUse 0 consumed 7
    @0x001520b0:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x001521b9:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d2513 (physical 0x84a4f513)
    @0x001524a2:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 17 inUse 0 consumed 34
    @0x0015259b:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0015267d:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d2535 (physical 0x84a4f535)
    @0x00152905:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 18 inUse 0 consumed 7
    @0x001529f7:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x00152adc:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d253c (physical 0x84a4f53c)
    @0x00152d98:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 19 inUse 0 consumed 34
    @0x00152ec3:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x00152fa5:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d255e (physical 0x84a4f55e)
    @0x001531fd:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 20 inUse 0 consumed 7
    @0x001532ee:[T:0x41534490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x001533fe:[T:0x41534490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d2565 (physical 0x84a4f565)
    @0x001651fe:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x40b2d000 (0x83c00000 phys)
    @0x00165969:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x40baf000 (0x83c82000 phys)
    @0x001660ac:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x40c31000 (0x83d04000 phys)
    @0x001667d1:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x40cb3000 (0x83d86000 phys)
    @0x0016728d:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 1637824 at 0x423d2000 (0x84a4f000 phys)
    @0x001720ed:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42146000 (0x847c3000 phys)
    @0x00172959:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x421e9000 (0x84866000 phys)
    @0x0017329b:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x4228c000 (0x84909000 phys)
    @0x00173b01:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x4232f000 (0x849ac000 phys)
    @0x0017438f:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42d62000 (0x84bdf000 phys)
    @0x00174c28:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42e05000 (0x84c82000 phys)
    @0x001754b6:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42ea8000 (0x84d25000 phys)
    @0x00175dde:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42f4b000 (0x84dc8000 phys)
    @0x0017663d:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42fee000 (0x84e6b000 phys)
    @0x00176ee0:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43091000 (0x84f0e000 phys)
    @0x0017777d:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43134000 (0x84fb1000 phys)
    @0x0017808e:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x431d7000 (0x85054000 phys)
    @0x0017892f:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x4327a000 (0x850f7000 phys)
    @0x001ca3aa:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x4331d000 (0x8519a000 phys)
    @0x001cac44:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x433c0000 (0x8523d000 phys)
    @0x001cb563:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43463000 (0x852e0000 phys)
    @0x001cbdea:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43506000 (0x85383000 phys)
    @0x001cc658:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x435a9000 (0x85426000 phys)
    @0x001ccef4:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x4364c000 (0x854c9000 phys)
    @0x001cd824:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x436ef000 (0x8556c000 phys)
    @0x001ce07e:[T:0x41534490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43792000 (0x8560f000 phys)

    if i try with

    DMAI_DEBUG=2 ./decode -v ../data/videos/davincieffect.264   -y 1 -O LCD

                case 'O':
                    if (strcmp(optarg, "component") == 0) {
                        argsp->displayOutput = Display_Output_COMPONENT;
                    } else if (strcmp(optarg, "composite") == 0) {
                        argsp->displayOutput = Display_Output_COMPOSITE;
                    } else if (strcmp(optarg, "LCD") == 0) {//add by mike
         argsp->displayOutput = Display_Output_LCD;
                        fprintf(stderr, "Using video output: Display_Output_LCD\n");
                    }
        else {
                        fprintf(stderr, "Unknown video output: %s\n", optarg);
                        usage();
                        exit(EXIT_FAILURE);
                    }
                    break;

    it is the same problem :

     

    Using video output: Display_Output_LCD
    Decode demo started.
    launchInterface
    CERuntime_init
    @0x00088287:[T:0x4001f060] ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to DMAI tracing behavior.
    Dmai_init
    uiAttrs.videoStd = 5
    @0x0008e3c1:[T:0x4001f060] ti.sdo.dmai - [Display] Found width=320 height=240, yres_virtual=240,xres_virtual=320, line_length=160
    @0x0008e5b9:[T:0x4001f060] ti.sdo.dmai - [Display] Setting width=720 height=480, yres_virtual=480, xres_virtual=720
    @0x0008e79a:[T:0x4001f060] ti.sdo.dmai - [Display] New width=720, height=480, yres_virtual=480,xres_virtual=720, line_length=384
    @0x000918a3:[T:0x4001f060] ti.sdo.dmai - [BufTab] Allocating BufTab for 1 buffers
    @0x00091b38:[T:0x4001f060] ti.sdo.dmai - [Buffer] Set user pointer 0x40300000 (physical 0x82200000)
    @0x00092405:[T:0x4001f060] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x40300000 has physical address 0xc240
    UI_create
    validateArgs
    uiSetup
    Pause_create
    @0x0009a443:[T:0x40b2c490] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffers
    @0x0009a662:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40b2d000 (0x83c00000 phys)
    @0x0009b3f4:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x413af000 (0x83c82000 phys)
    @0x0009b613:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x41431000 (0x83d04000 phys)
    @0x0009b871:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x414b3000 (0x83d86000 phys)
    Using video output: Display_Output_LCD
    Display_create1
    @0x000adf49:[T:0x40b2c490] ti.sdo.dmai - [Display] Failed to determine video display format
    Display_create2
    Error: Failed to create display device
    @0x000e860c:[T:0x413ae490] ti.sdo.dmai - [Vdec2] Video decoder instance created
    @0x000e8873:[T:0x413ae490] ti.sdo.dmai - [Vdec2] Made XDM_SETPARAMS control call
    @0x000e89ca:[T:0x413ae490] ti.sdo.dmai - [Vdec2] Made XDM_GETBUFINFO control call
    @0x000e8aaf:[T:0x413ae490] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffers
    @0x000e8d1e:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42145000 (0x847c3000 phys)
    @0x000e8fa5:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x421e8000 (0x84866000 phys)
    @0x000e9238:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x4228b000 (0x84909000 phys)
    @0x000e949b:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x4232e000 (0x849ac000 phys)
    @0x000e960b:[T:0x413ae490] ti.sdo.dmai - [Loader] Creating Loader for ../data/videos/davincieffect.264 with buffer size 1637824, window size 518912, alignment -1
    @0x000ea7cc:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 1637824 at 0x423d1000 (0x84a4f000 phys)
    @0x00113d4c:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d1000 (physical 0x84a4f000)
    @0x0011a2ac:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 0 inUse 0 consumed 725
    @0x0011a414:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0011a57c:[T:0x413ae490] ti.sdo.dmai - [Vdec2] Made XDM_GETBUFINFO control call
    @0x0011a7fb:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42d61000 (0x84bdf000 phys)
    @0x0011aab0:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42e04000 (0x84c82000 phys)
    @0x0011ad19:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42ea7000 (0x84d25000 phys)
    @0x0011afac:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42f4a000 (0x84dc8000 phys)
    @0x0011b23c:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42fed000 (0x84e6b000 phys)
    @0x0011b562:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43090000 (0x84f0e000 phys)
    @0x0011b7cb:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43133000 (0x84fb1000 phys)
    @0x0011ba82:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x431d6000 (0x85054000 phys)
    @0x0011bcec:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43279000 (0x850f7000 phys)
    @0x0011bf7f:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x4331c000 (0x8519a000 phys)
    @0x0011c20b:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x433bf000 (0x8523d000 phys)
    @0x0011c49c:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43462000 (0x852e0000 phys)
    @0x0011c74a:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43505000 (0x85383000 phys)
    @0x0011ca0c:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x435a8000 (0x85426000 phys)
    @0x0011cc7b:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x4364b000 (0x854c9000 phys)
    @0x0011cf0e:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x436ee000 (0x8556c000 phys)
    @0x0011d19a:[T:0x413ae490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x43791000 (0x8560f000 phys)
    @0x00128dad:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d12d5 (physical 0x84a4f2d5)
    @0x00129172:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 1 inUse 0 consumed 246
    @0x0012929b:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x280d
    @0x001293ae:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d13cb (physical 0x84a4f3cb)
    @0x00129620:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 2 inUse 0 consumed 41
    @0x00129745:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x280d
    @0x00129836:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d13f4 (physical 0x84a4f3f4)
    @0x00129add:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 3 inUse 0 consumed 34
    @0x00129bd6:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x00129ce0:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d1416 (physical 0x84a4f416)
    @0x00129fd0:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 4 inUse 0 consumed 7
    @0x0012a0cd:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0012a1b3:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d141d (physical 0x84a4f41d)
    @0x0012a495:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 5 inUse 0 consumed 34
    @0x0012a587:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0012a669:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d143f (physical 0x84a4f43f)
    @0x0012a8d9:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 6 inUse 0 consumed 7
    @0x0012a9cc:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0012aab4:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d1446 (physical 0x84a4f446)
    @0x0012ad8c:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 7 inUse 0 consumed 34
    @0x0012ae7e:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0012af5f:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d1468 (physical 0x84a4f468)
    @0x0012b1aa:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 8 inUse 0 consumed 7
    @0x0012b2c7:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0012b3ae:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d146f (physical 0x84a4f46f)
    @0x0012b657:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 9 inUse 0 consumed 34
    @0x0012b74c:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0012b86d:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d1491 (physical 0x84a4f491)
    @0x0012bab2:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 10 inUse 0 consumed 7
    @0x0017cc7a:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017cd82:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d1498 (physical 0x84a4f498)
    @0x0017d149:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 11 inUse 0 consumed 34
    @0x0017d245:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017d328:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d14ba (physical 0x84a4f4ba)
    @0x0017d56d:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 12 inUse 0 consumed 7
    @0x0017d68e:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017d77f:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d14c1 (physical 0x84a4f4c1)
    @0x0017da31:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 13 inUse 0 consumed 34
    @0x0017db27:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017dc31:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d14e3 (physical 0x84a4f4e3)
    @0x0017de87:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 14 inUse 0 consumed 7
    @0x0017df78:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017e05c:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d14ea (physical 0x84a4f4ea)
    @0x0017e332:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 15 inUse 0 consumed 34
    @0x0017e427:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017e509:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d150c (physical 0x84a4f50c)
    @0x0017e77e:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 16 inUse 0 consumed 7
    @0x0017e876:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017e955:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d1513 (physical 0x84a4f513)
    @0x0017ec33:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 17 inUse 0 consumed 34
    @0x0017ed30:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017ee16:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d1535 (physical 0x84a4f535)
    @0x0017f064:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 18 inUse 0 consumed 7
    @0x0017f19c:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017f292:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d153c (physical 0x84a4f53c)
    @0x0017f5e9:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 19 inUse 0 consumed 34
    @0x0017f711:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017f807:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d155e (physical 0x84a4f55e)
    @0x0017fa59:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() ret -1 inId 20 inUse 0 consumed 7
    @0x0017fb53:[T:0x413ae490] ti.sdo.dmai - [Vdec2] VIDDEC2_process() non-fatal error 0x200d
    @0x0017fc34:[T:0x413ae490] ti.sdo.dmai - [Buffer] Set user pointer 0x423d1565 (physical 0x84a4f565)
    @0x0017fea9:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x40b2d000 (0x83c00000 phys)
    @0x001805d9:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x413af000 (0x83c82000 phys)
    @0x00180d27:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x41431000 (0x83d04000 phys)
    @0x00181452:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Free Buffer of size 529920 at 0x414b3000 (0x83d86000 phys)
    @0x001843fb:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 1637824 at 0x423d1000 (0x84a4f000 phys)
    @0x0018f396:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42145000 (0x847c3000 phys)
    @0x0018fc31:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x421e8000 (0x84866000 phys)
    @0x00190492:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x4228b000 (0x84909000 phys)
    @0x00190dbc:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x4232e000 (0x849ac000 phys)
    @0x00191653:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42d61000 (0x84bdf000 phys)
    @0x00191eaf:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42e04000 (0x84c82000 phys)
    @0x0019273f:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42ea7000 (0x84d25000 phys)
    @0x00193060:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42f4a000 (0x84dc8000 phys)
    @0x001938ea:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x42fed000 (0x84e6b000 phys)
    @0x0019418b:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43090000 (0x84f0e000 phys)
    @0x001949e4:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43133000 (0x84fb1000 phys)
    @0x001e6389:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x431d6000 (0x85054000 phys)
    @0x001e6c26:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43279000 (0x850f7000 phys)
    @0x001e7484:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x4331c000 (0x8519a000 phys)
    @0x001e7d1b:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x433bf000 (0x8523d000 phys)
    @0x001e866d:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43462000 (0x852e0000 phys)
    @0x001e8edc:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43505000 (0x85383000 phys)
    @0x001e9767:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x435a8000 (0x85426000 phys)
    @0x001e9fdc:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x4364b000 (0x854c9000 phys)
    @0x001ea872:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x436ee000 (0x8556c000 phys)
    @0x001eb192:[T:0x413ae490] ti.sdo.dmai - [Buffer] Free Buffer of size 663552 at 0x43791000 (0x8560f000 phys)

  • the code is here :

     

        if (ioctl(hDisplay->fd, VIDIOC_G_FMT, &fmt) == -1) {
            Dmai_err0("Failed to determine video display format\n");
            cleanup(hDisplay);
            return NULL;
        }

    may be the problem is form the driver.

  • we  found the problem

    ls -l /dev/video2
    crw-r--r--    1 root     root      29,   1 Jun 14  2011 /dev/video2

    change to :

    mknod /dev/video2 c 81 0
    mknod /dev/video3 c 81 1

    ls /dev/vide* -l
    crw-r--r--    1 root     root      81,   0 Jun 14  2011 /dev/video2
    crw-r--r--    1 root     root      81,   1 Jun 14  2011 /dev/video3

    now we donot get that problem.. but we donnot get any v4l device so..

    DMAI_DEBUG=2  ./decode -v ../data/videos/davi
    ncieffect.264   -y 1
    Decode demo started.
    launchInterface
    CERuntime_init
    @0x000cdc6c:[T:0x4001f060] ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to DMAI tracing behavior.
    Dmai_init
    uiAttrs.videoStd = 5
    @0x000d9a6e:[T:0x4001f060] ti.sdo.dmai - [Display] Found width=720 height=480, yres_virtual=480,xres_virtual=720, line_length=384
    @0x000d9c65:[T:0x4001f060] ti.sdo.dmai - [Display] Setting width=720 height=480, yres_virtual=480, xres_virtual=720
    @0x000d9dab:[T:0x4001f060] ti.sdo.dmai - [Display] New width=720, height=480, yres_virtual=480,xres_virtual=720, line_length=384
    @0x000d9ef3:[T:0x4001f060] ti.sdo.dmai - [BufTab] Allocating BufTab for 1 buffers
    @0x000da149:[T:0x4001f060] ti.sdo.dmai - [Buffer] Set user pointer 0x40300000 (physical 0x82200000)
    @0x000da6b6:[T:0x4001f060] ti.sdo.dmai - [Display] Display buffer 0 mapped to 0x40300000 has physical address 0xc240
    UI_create
    validateArgs
    uiSetup
    Pause_create
    @0x000deab4:[T:0x40b2c490] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffers
    @0x000ded07:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40b2d000 (0x83c00000 phys)
    @0x000defaf:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40baf000 (0x83c82000 phys)
    @0x000df201:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40c31000 (0x83d04000 phys)
    @0x000df42a:[T:0x40b2c490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 529920 at 0x40cb3000 (0x83d86000 phys)
    Display_create1
    @0x0010201a:[T:0x41534490] ti.sdo.dmai - [Vdec2] Video decoder instance created
    @0x0010227d:[T:0x41534490] ti.sUnable to handle kernel NULL pointer dereference at virtual address 00000068
    do.dmai - [Vdec2pgd = c0018000
    ] Made XDM_SETPA[00000068] *pgd=82dc5031RAMS control cal, *pte=00000000l
    @0x001023ce:[, *ppte=00000000T:0x41534490] ti
    .sdo.dmai - [VdeInternal error: Oops: 17 [#1] PREEMPT
    last sysfs file:
    Modules linked in: dm365mmap edmak irqk cmemk
    CPU: 0    Not tainted  (2.6.32.17-davinci1 #182)
    PC is at vpfe_config_ccdc_image_format+0x50/0xf8
    LR is at vpfe_config_ccdc_image_format+0x54/0xf8
    pc : [<c028cc30>]    lr : [<c028cc34>]    psr: 60000013
    sp : c11a1c08  ip : c11a1c20  fp : c11a1c1c
    r10: c10df320  r9 : c20b2af8  r8 : c044d528
    r7 : c20b2814  r6 : 00000000  r5 : c049f300  r4 : c20b2800
    r3 : 00000000  r2 : 00000000  r1 : c11a1cf0  r0 : 59565955
    Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    Control: 0005317f  Table: 80018000  DAC: 00000015
    Process decode (pid: 1204, stack limit = 0xc11a0270)
    Stack: (0xc11a1c08 to 0xc11a2000)
    1c00:                   c20b2800 c20b2814 c11a1d14 c11a1c20 c028ce84 c028cbf0
    1c20: c2014bf4 00000001 000002d0 000001e0 59565955 00000004 000005a0 000a8c00
    1c40: 00000001 00000000 c044865c c04eb400 c11a1c8c c11a1c60 c00f3eb4 c01d97fc
    1c60: c207e0c0 c04e8f60 c11a1ca4 c11a1c78 c00f3eb4 c01d97fc c21a0800 c22c2400
    1c80: c11a1c9c c207b820 c2066600 c037a3e8 c207b820 c22c2400 c11a1cb4 c11a1ca8
    1ca0: c00d0abc c00f3e74 c11a1cd4 c00bf278 c11a0000 c20b2af8 c11a1cfc c11a1cc8
    1cc0: c03512d8 c00941a0 22222222 22222222 22222222 22222222 c11a1d14 c20b2af8
    1ce0: c20b2800 c2c24100 c2cac338 c2c24100 c11a1d14 c2c24100 c20b2800 c2c24100
    1d00: c2cac338 c2c24100 c11a1e14 c11a1d18 c029009c c028cce8 c216ba00 c11a1d50
    1d20: c037a3e8 00000000 00000000 000922b2 00000000 c22c2400 c22c2400 c2cac338
    1d40: c11a1d88 c11a1d88 c2cac240 c22c2400 c2e3a000 00000003 c11a1d7c c11a1d68
    1d60: c017adbc c00941a0 00000000 c2cac338 c11a1e34 c11a1d80 c017b074 c017ad80
    1d80: c2c2a080 c2c2a090 00007d7f c00bf278 c11a0000 c0455c70 c22dd580 00000000
    1da0: c11a1dc4 c11a1db0 c01d02fc c00bf278 c11a0000 c046cbd4 c11a1dfc c11a1dc8
    1dc0: c03512d8 c00941a0 22222222 22222222 c2169000 c046cbd4 c11a1e04 c11a1de8
    1de0: c0350ec8 c00beef4 c2169000 c2169000 c2169008 c2c24100 c2cac338 c2c24100
    1e00: c2e3a000 c2c2a080 c11a1e34 c11a1e18 c0281728 c028fedc 00000000 00000000
    1e20: c22dd580 c2cac338 c11a1e64 c11a1e38 c00faa78 c02816c4 c2cac338 00000000
    1e40: c11a1e64 00000000 c2c24100 c2cac338 c00fa8a0 c216f080 c11a1e8c c11a1e68
    1e60: c00f59e0 c00fa8b0 c2c24100 c2fa7000 c2e3a000 ffffff9c c00870c4 00000003
    1e80: c11a1eac c11a1e90 c00f5be0 c00f5864 00000000 c2fa7000 00000000 c11a1ec8
    1ea0: c11a1f5c c11a1eb0 c0103d7c c00f5ba0 00000000 00000002 c044aaa0 4153b000
    1ec0: 00000000 c11a1ed0 c216f080 c2c2a080 4153c000 c0019050 c0082b0c 00000000
    1ee0: c2018f80 00000101 00000001 00000000 c00f3eb4 c01d97fc c04486f0 00000000
    1f00: c11a1f3c c11a1f10 00000010 00000000 c2f1ea80 00000003 00000000 c2c24100
    1f20: c11a1f5c c11a1f30 c010e2dc c00941a0 00000000 00000002 00000000 ffffff9c
    1f40: 00000000 c00870c4 c2e3a000 00000010 c11a1f94 c11a1f60 c00f5740 c010397c
    1f60: 00000026 00000001 c11a1f84 00000002 00000002 40b2c684 00000005 c00870c4
    1f80: c11a0000 00000001 c11a1fa4 c11a1f98 c00f5830 c00f56ec 00000000 c11a1fa8
    1fa0: c0086f40 c00f581c 00000002 00000002 000aeba8 00000002 00000000 000aeba8
    1fc0: 00000002 00000002 40b2c684 00000005 00000000 beb3aba4 00000001 40b2bd04
    1fe0: 00000000 40b2bbe0 400344dc 400357b4 80000010 000aeba8 00000000 40970030
    Backtrace:
    [<c028cbe0>] (vpfe_config_ccdc_image_format+0x0/0xf8) from [<c028ce84>] (vpfe_config_image_format+0x1ac/0x1f8)
     r5:c20b2814 r4:c20b2800
    [<c028ccd8>] (vpfe_config_image_format+0x0/0x1f8) from [<c029009c>] (vpfe_open+0x1d0/0x42c)
     r8:c2c24100 r7:c2cac338 r6:c2c24100 r5:c20b2800 r4:c2c24100
    [<c028fecc>] (vpfe_open+0x0/0x42c) from [<c0281728>] (v4l2_open+0x74/0x90)
    [<c02816b4>] (v4l2_open+0x0/0x90) from [<c00faa78>] (chrdev_open+0x1d8/0x1f8)
     r7:c2cac338 r6:c22dd580 r5:00000000 r4:00000000
    [<c00fa8a0>] (chrdev_open+0x0/0x1f8) from [<c00f59e0>] (__dentry_open+0x18c/0x2a8)
     r8:c216f080 r7:c00fa8a0 r6:c2cac338 r5:c2c24100 r4:00000000
    [<c00f5854>] (__dentry_open+0x0/0x2a8) from [<c00f5be0>] (nameidata_to_filp+0x50/0x68)
    [<c00f5b90>] (nameidata_to_filp+0x0/0x68) from [<c0103d7c>] (do_filp_open+0x410/0x824)
     r5:c11a1ec8 r4:00000000
    [<c010396c>] (do_filp_open+0x0/0x824) from [<c00f5740>] (do_sys_open+0x64/0x11c)
    [<c00f56dc>] (do_sys_open+0x0/0x11c) from [<c00f5830>] (sys_open+0x24/0x28)
    [<c00f580c>] (sys_open+0x0/0x28) from [<c0086f40>] (ret_fast_syscall+0x0/0x28)
    Code: 01a00002 e59f50a4 e5953000 e1a0e00f (e593f068)
    <vpbe_encoder_getmode>
    <vpbe_encoder_getmode/>
    osd _RGB888, fb: 32


    <vpbe_encoder_getmode>
    <vpbe_encoder_getmode/>
    osd _RGB888, fb: 32


    c2] Made XDM_GETBUFINFO control call
    @0x001024b3:[T:0x41534490] ti.sdo.dmai - [BufTab] Allocating BufTab for 4 buffers
    @0x0010271d:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x42146000 (0x847c3000 phys)
    @0x001029a6:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x421e9000 (0x84866000 phys)
    @0x00102c37:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 663552 at 0x4228c000 (0x84909000 phys)
    @0x00102f44:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Bu---[ end trace 0a8c22bc6c95503d ]---
    ffer of size 663552 at 0x4232f000 (0x849ac000 phys)
    @0x001030d9:[T:0x41534490] ti.sdo.dmai - [Loader] Creating Loader for ../data/videos/davincieffect.264 with buffer size 1637824, window size 518912, alignment -1
    @0x0017820f:[T:0x41534490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 1637824 at 0x423d2000 (0x84a4f000 phys)

     

    i think it is the reasons ...

  • but ... we i want to display the video on osd... i as i just used  it as the first post :

    DMAI_DEBUG=2  ./decode -v ../data/videos/davi
    ncieffect.264   -y 1  -o
    Decode demo started.
    launchInterface
    CERuntime_init
    @0x000d4584:[T:0x4001f060] ti.sdo.dmai - [Dmai] Dmai log level set to '2'. Note that calling CERuntime_init after this point may cause unexpected change to DMAI tracing behavior.
    Dmai_init
    uiAttrs.videoStd = 5
    Failed to open /sys/devices/platform/omapdss/overlay0/enabled for writing

    i dont konw what's the problem :

    Failed to open /sys/devices/platform/omapdss/overlay0/enabled for writing

     

    now it seems successful,but nothing change on the lcd.

     

     

  • after we select  <*>   Virtual Video Driver 

    the problem cames back :

    @0x000fff78:[T:0x40b2c490] ti.sdo.dmai - [Display] Failed to determine video display format

  • then  i change the inode:

     

    # ls /dev/v* -atl
    crw-r--r--    1 root     root      81,   3 Jun 15  2011 /dev/video3
    crw-r--r--    1 root     root      81,   2 Jun 15  2011 /dev/video2

    and not the  problem change to

    DMAI_DEBUG=2  /usr/share/ti/dvsdk-demos/decode -v  /usr/share/ti/data
    /videos/waterfall.264   -y 1

    @0x000cb411:[T:0x415b0490] ti.sdo.dmai - [Loader] Creating Loader for /usr/share/ti/data/videos/waterfall.264 with buffer size 1637824, window size 518912, alignment -1
    @0x000cc127:[T:0x40ba8490] ti.sdo.dmai - [Display] Video output set to size 800x480 pitch 736 imageSize 529920
    @0x000ce524:[T:0x40ba8490] ti.sdo.dmai - [Display] Failed VIDIOC_S_FMT on /dev/video2 (Device or resource busy)

  • we found the problem :

    if we disable the cursor used by mouse,the problem disappeared !!

    it is the problem of QT ! it just takes me too much time to find it out!

    and after i correct the fstab.. (i wouldnot find out the problem just after i check the sys system!! )

    hao wen said:

    by the way, why there is not such a file there in our custom borad ? ?/sys/devices/platform/omapdss/manager0/alpha_blending_enabled

    # mount -a
    mount: mount point /tmp is a symbolic link to nowhere
    # rm /tmp

    # mkdir /tmp
    # mount -a

    after i change the fstab to :

    rootfs               /                    auto       defaults              1  1
    proc                 /proc                proc       defaults              0  0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0  0
    usbfs                /proc/bus/usb        usbfs      defaults              0  0
    tmpfs                /var/volatile        tmpfs      defaults,size=16M     0  0
    tmpfs                /dev/shm             tmpfs      mode=0777             0  0
    tmpfs                /media/ram           tmpfs      defaults,size=16M     0  0
    sysfs                /sys                 sysfs      defaults              0  0
    none                 /tmp                 tmpfs      defaults              0  0

    then the decode demo changed now !

    i even check both arago-base-tisdk-image-dm365-evm.tar.gz and  dvsdk-dm365-evm-rootfs.tar.gz, they dont contain those lines...

  • this form the decode demo:

    # /usr/share/ti/dvsdk-demos/decode -v  /usr/share/ti/data/videos/davinc
    ieffect.264 -y 4 -O LCD
    Using video output: Display_Output_LCD
    Decode demo started.
    launchInterface
    CERuntime_init
    Dmai_init
    uiAttrs.videoStd = Mode 800x480
    17
    mgr->current_mode.name 480P-60

     

    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_enumoutput>
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_enumoutput>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_enumoutput>
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_enumoutput>
    Jan  1 00:06:41 10 user.debug kernel: VPBE Encoder de-initialized
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_setoutput>
    Jan  1 00:06:41 10 user.debug kernel: Setting output to parallel LCD
    Jan  1 00:06:41 1mgr->current_mode.name 1080I-30

    some info is added just to debug the previous issue...

    0 user.debug kernel: Start of vpbe_encoder_setmode..
    Jan  1 00:06:41 10 user.err kernel: Mode 800x480
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_setmode>
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_setoutput>
    Jan  1 00:06:41 10 user.debug kernel: VPBE Encoder initialized
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_setoutput>
    Jan  1 00:06:41 10 user.debug kernel: Setting output to Component Video
    Jan  1 00:06:41Mode 800x480
     10 user.debug kmgr->current_mode.name 800x480

     

    ernel: Start of davinci_enc_set_prgb : pinmux1  calling


    vpbe_encoder_setmode..
    Jan  1 0Invalid id...
    0:06:41 10 user.debug kernel: </vpbe_encoder_setmode>
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_setoutput>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode/>
    Jan  1 00:06:41 10 user.warn kernel: mgr->current_mode.name 480P-60
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getoutput>
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_getoutput>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode/>
    Jan  1 00:06:41 10 user.debug kernel: Start of vpbe_encoder_setmode..
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_setmode>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode/>
    Jan  1 00:06:41 10 user.warn kernel: mgr->current_mode.name 1080I-30
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode/>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode/>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode/>
    UI_create
    validateArgs
    uiSetup
    Pause_create
    Using video output: Display_Output_LCD
    Display_create1
    Display_create2
    Error: Failed to create display device
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_enumoutput>
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_enumoutput>
    Jan  1 00:06:41 10 user.debug kernel: VPBE Encoder de-initialized
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_setoutput>
    Jan  1 00:06:41 10 user.debug kernel: Setting output to Component Video
    Jan  1 00:06:41 10 user.debug kernel: Start of vpbe_encoder_setmode..
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_setmode>
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_setoutput>
    Jan  1 00:06:41 10 user.debug kernel: VPBE Encoder initialized
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_setoutput>
    Jan  1 00:06:41 10 user.debug kernel: Setting output to parallel LCD
    Jan  1 00:06:41 10 user.debug kernel: Start of vpbe_encoder_setmode..
    Jan  1 00:06:41 10 user.err kernel: Mode 800x480
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_setmode>
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_setoutput>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode/>
    Jan  1 00:06:41 10 user.warn kernel: mgr->current_mode.name 800x480
    Jan  1 00:06:41 10 user.warn kernel: davinci_enc_set_prgb : pinmux1  calling
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getoutput>
    Jan  1 00:06:41 10 user.debug kernel: </vpbe_encoder_getoutput>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode/>
    Jan  1 00:06:41 10 user.debug kernel: Start of vpbe_encoder_setmode..
    Jan  1 00:06:41 10 user.err kernel: Invalid id...
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode>
    Jan  1 00:06:41 10 user.debug kernel: <vpbe_encoder_getmode/>