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.

decode demo problem ( dm365, dvsdk demo )

Hello!

I got a probblem when running decode demo.

When dm365 boot, the first time execution of "decode" runs well. But executed again, it failed. one execution - one reset required.

The command sequence is as follows.

# ./loadmodules_sd.sh   or ./loadmodules_hd.sh

# ./decode -v test.mpeg4     // 720x480 encoded with encode demo using composite input

The only clue that I found is that there are differences in log output from module ( or kernel ? )

1. when failed

layer.pix_fmt.bytesperline = 32
layer.pix_fmt.width = 32
layer.pix_fmt.height = 2
layer.pix_fmt.sizeimage =96

pixfmt->width = 32
layer->layer_info.config.line_length = 32

2. when it works

layer.pix_fmt.bytesperline = 736
layer.pix_fmt.width = 720
layer.pix_fmt.height = 480
layer.pix_fmt.sizeimage =529920

pixfmt->width = 720
layer->layer_info.config.line_length = 736

 

Thanks in advance.

 

  • The DVSDK software for DM365 is still considered beta, I have seen various unusual crashes like this in the demos before, but I have also been able to run decode repeatedly with success, even now I was able to decode a test clip mpeg4 file 5 times in a row stabily. I am currently running DVSDK 2.10.00.13, what version are you using? Note there should be a new release of the DVSDK software coming soon.

  • Hi.

    I am using dvsdk_2_10_00_13, the same version as yours.

    I followed the step "GSG : DM365 DVEVM Software setup". 

    My configuration is

    - Kenel in NAND ( I have tried newly compiled kernel using tftp boot )

    - file system in NFS host.

    - decode demo from source compilation.

    The reason why I tested the decode demo deeply is that I have to port my old dm6446 application which is targeted as "mpeg4 decoder" settop.

    Could you guess where the wrong parameter log are from? ( which function cause log to come out ? )

    Thank you.

     

     

  • I have the same problem to.

    when I run ./decode -v test.264 ,it run well and i can see the video on the TV,but when I use Ctrl+c to stop the decode and run ./decode -v test.264.

    then I can no see the video,I have to reboot or run ./encode -v test.264 -r 720x576 .

    Can help me?

  • Hi.

    Use the latest version of DVSDK. You can download it from TI web. In my case, I updated all the software it provides including kernel.

    Maybe you can trace the device driver ( which prints the message above ) and fix it if you are interested.

    I hope this help.

    Wan.

  • In encode Demo they use Capture_create(bTabBuf...  to create bTabBuf, But in decode and encodedecode they use BufTabcreate ,when cleanup ,Capture_delete auto delete bTabBuf,

    so encode have no this problem ,but in encode they use BufTabDelete ,

    I want to find out this problem?

    My sdk version is newest version !

  • what dvsdk version are you using?  2.0.0.13 mentioned earlier in the thread is an older beta release which was quickly superseded by the more stable 2.00.00.18 which has been around for quite some time now.   I just tried doing decode of a 720p h.264 stream several times and braking each time via ctrl-C without any issues in the 2.00.00.18 DVSDK.  Also, is this problem intermitent or does it happen all the time? ... I was not able to easily reproduce this with our latest DVSDK

  • The sdk version is DVSDK 2.10.01.18 on dm365 ,this problem happen all the time,( we mount the filesystem from hostPC or use the filesystem on the board). I have tryed to change the filesystem and rebuild kernel(.ko), maybe I will try the version 2.00.00.18 .we have two dm365 boards ,we buy the boards at 2009-08 ,they have the same problem.

    but your reply have help me , I think our kernel(.ko) may be have some problem. I  will try the version 2.00.00.18 and update the  UImage  to the board;

    Thanks you very much!

  • Apologies, I am afraid I made a typo, for DM365 you should be using dvsdk_2_10_00_18; actually I do not even think dvsdk_2_00_00_18 even exists, :)

  • Thanks juan Gonzales,bernie Thompson and suw.
     I have solve the problem. the problem is from the Display_create, but the Display_create have no bug,
    the usage method of Display_create is wrong in Demo.
    now I can use ./decode -v a.264 many times, and I can see the video on the tv all the times.
    thanks you very much!

     

  • Hi all, sorry my bad english

    I want run davincieffect.mpeg4 on the TV display
    I am trying to run decode that demo file of DVSDK on dm365. But I get an error when I execute:
     
     ./loadmodules.sh
    ./decode -v ./data/videos/davincieffect.mpeg4 -y 2 -O composite


    Decode demo started.
    DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
     layer.pix_fmt.bytesperline = 736,
     layer.pix_fmt.width = 720,
     layer.pix_fmt.height = 480,
     layer.pix_fmt.sizeimage =529920
    DavinciDisplay DavinciDisplay.1: pixfmt->width = 720,
     layer->layer_info.config.line_length= 736
    Error: Failed to decode video buffer


    My bootargs:
    setenv bootargs mem=76M console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=$(nfshost):$(rootpath) ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off video=davincifb:vid0=0,2500K:vid1=0,2500K:osd0=720x576x16,2025K dm365_imp.oper_mode=0 davinci_capture.device_type=4 davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=PAL

    Anybody, Help me please!

    Thanks

  • HI dehui lin,

    I have the same problem with you.

    I saw the above reply that you have already solved this problem.

    May I ask how to solve this problem.

    thx.

    Jeffrey