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.

How to use viddec3test with KMSCUBE Display

Hi all,

I'm trying to use the viddec3test application with KMSCUBE display, but I have no luck at the moment. I'm able to run the kmscube aplication and I'm able to decode a video using the viddec3test application, but when I try to use the kmscube display i doesn't work.

The command I use is the following:

  viddec3test --kmscube myvideo.mov

And the error I finally get :

   ERROR:decoder_process:390: 0x1b070: process returned error: -1
   ERROR:decoder_process:391: 0x1b070: extendedError: 00000000
   ERROR:decoder_process:318: 0x1b070: fail: out of buffers
   Segmentation fault

I tried with different video formats and diferent video sizes.

There is something special to do in order to run the viddec3test application with kmscube ?

Regards,

   Enric

  • Hello,

    Running viddec3test application

    viddec3test is a demo application for decoder/video playback using hardware accelerators. The application currently runs on the kms display. The application requires the connector information for display. One can get the information of the display connected to the board by running the modetest application in the filesystem.

      target #  modetest
    

    To execute the application make sure the display is connected to the board.

    Running a decode on a display

    To run a hardware decode on a display connected to the board, execute the following command:

      target #  viddec3test -s <connector_id>:<display resolution> filename --fps 30
    
    e.g.: target # viddec3test -s 4:1920x1080 file.h264 --fps 30
    

    BR
    Margarita
  • Hi,

    Thanks for the answer, but this do not asks my question.

    I'm able to run viddec3test without problems using the KMS display, the question is if it's possible use KMSCUBE display instead of KMS display as help shows it's available:

    root@omap5-evm:~# viddec3test --help
    Usage: viddec3test [OPTIONS] INFILE
    Test of viddec3 decoder.

    viddec3test options:
        -h, --help: Print this help and exit.
        --loop    Restart playback at end of stream.
        --no-process    Do not actually call VIDDEC3_process method. For benchmarking.

    Generic Display options:
        --debug    Turn on debug messages.
        --fps <fps>    force playback rate (0 means "do not force")
        --no-post    Do not post buffers (disables screen updates) for benchmarking. Rate can still be controlled.
    KMSCUBE Display Options:
        --distance <float>    set cube distance (default 8.0)
        --fov <float>    set field of vision (default 45.0)
        --kmscube    Enable display kmscube (default: disabled)
    KMS Display Options:
        -1         force single-plane buffers
        -t <tiled-mode>    8, 16, 32, or auto
        -s <connector_id>:<mode>    set a mode
        -s <connector_id>@<crtc_id>:<mode>    set a mode

    Cheers,

       Enric