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.

Linux: Procedural issues



Tool/software: Linux

our command:   filevpedisplay 2.yuv 1920 1080 nv12 1920 1080 nv12 0 0 0 0 0 0 -s 26:1920x1080

We have no problem with the implementtation of filevpedisplay before we have made a little change to the program. 

Now we have the following error:

vpe:/dev/video0 open success!!!
using 1 connectors, 1920x1080 display, multiplanar: 1
vpe i/p: G_FMT: width = 1920, height = 1080, 4cc = NV12
vpe o/p: G_FMT: width = 1920, height = 1080, 4cc = NV12
ERROR:post_vid_buffer:418: failed to enable plane 31: Permission denied
disp post vid buf failed

  • Hi Hongying Wu,

    Could you attach a file describing your changes? Also could you specify which kernel version and SDK you are using?

    BR
    Tsvetolin Shulev
  • Thank you for your reply, the last question I've solved. But I have a question below that need to ask you for help;

    We have tested the program filevpedispla, It can normally read the video from the file and display. Now we want to add the image processing process to the program, 

    but we don't know where the Y, U, V component  of image are stored. At the beginning, we think that the Y component is stored in the variable srcBuffers[index] and U, V components

    are stored in the variable srcBuffers_uv[index], so we only take out the Y component  and then sent out to show. However, we find that the display

    effect is the same as before, not gray image. We want to ask how to extract the Y, U, V components of image.4834.omapdrmtest.zip

  • Hello,

    Filevpedisplay is a file based application. It reads yuv data from a file and then does vpe processing and posts the processed frames to display. In case of NV12, read only WxH size into Y buffers and WxH/2 data to UV buffers.
    The Y plane will use srcBuffers, UV srcBuffers_uv.

    Hope this helps.

    BR
    Margarita
  • But I'm still confused,when I only send the Y component to display and the UV component is set to 128, the displayed image is not a grayscale image but still a color image as before. And I am also confused, I have commented out the "printf("frames completed %d\n\n", num_frames);" in main function, but it will still print when running. At the same time, the program statements which we added weren't performed.

  • Hello,

    user4871605 said:
    I have commented out the "printf("frames completed %d\n\n", num_frames);" in main function, but it will still print when running.

    It seems like your changes are not applied.

    You should recompile it.

    What is the device and software that you are using?

    BR
    Margarita