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.

Trouble getting demo decode works on DM355

Dear all;

I have trouble getting dvsdk_1_30_00_40 demo decode works.

At my DM355 target prompt, I did :

./loadmodules.sh

./decode -s ./data/sounds/davincieffect.g711 -v ./data/videos/davincieffect_ntsc.mpeg4

I got :

Decode Error: Failed FBIOPUT_VSCREENINFO on /dev/fb/3 (Invalid argument)

The following is the problem area:

    varInfo.xres = D1_WIDTH;
    varInfo.yres = D1_HEIGHT;
    varInfo.yres_virtual = NUM_DISPLAY_BUFS * D1_HEIGHT;
     varInfo.bits_per_pixel = SCREEN_BPP;

    /* Set video display format */
    if (ioctl(fd, FBIOPUT_VSCREENINFO, &varInfo) == -1) {
        ERR("Failed FBIOPUT_VSCREENINFO on %s (%s)\n", FBVID_DEVICE,
                                                       strerror(errno));
        return FAILURE;
    }

It seems that the problem on this line:    varInfo.yres_virtual = NUM_DISPLAY_BUFS * D1_HEIGHT;

Please note I have changed the bootargs :

from: (as the manual says):

video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500k:osd0=720x576x16,2025K

To:

video=davincifb:vid0=720x480x16,2500K:vid1=720x480x16,2500k:osd0=720x480x16,2025K

Can anyone help me about the problem ?

 

Thanks   for your help.

Jason

 

  • My bootargs look like the following

    bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=156.117.95.17:/home/user/dm355/dvsdk_1_30_00_40/filesys,nolock mem=116M video=davincifb:vid0=720x576x16,2500K:video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K:osd0=720x576x16,2025K

    and I am able to run the demos without any issues.

  • I know i'm late but ...

     

    you made a mistake :

     

    Jason Chang said:

    video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500k:osd0=720x576x16,2025K

    To:

    video=davincifb:vid0=720x480x16,2500K:vid1=720x480x16,2500k:osd0=720x480x16,2025K

    its not k but K

     

  • i had check the code but just find that it is corrcet:

     

    video=davincifb:vid0=720x576x16,2500K:
    video=davincifb:vid0=720x576x16,2500K:
    vid1=720x576x16,2500K:
    osd0=720x576x16,2025K:
    osd0=720x576x16,2025K

     

    no k but all K.