Hi,
I am using the AM572x evm with the default TI linux rt image and I am trying to use libdce with ffmpeg. I am running into an EACCESS error in the Engine_open() command.
#include <dce/libdce.h>
#include <dce/xdc/std.h>
#include <dce/ti/sdo/ce/Engine.h>
#include <dce/ti/sdo/ce/video3/viddec3.h>
#include <drm/omap_drm.h>
#include <libdrm/omap_drmif.h>
self->device = dce_init();
if (self->device == NULL)
{
goto fail;
}
self->engine = Engine_open((String) "ivahd_vidsvr", NULL, &rc);
if (self->engine == NULL)
{
goto fail;
}
If I follow the code, I find that I am getting an error from the ioctl in:
libdrm/omap/omap_drm.c: omap_bo_new_impl()
drmCommandWriteRead(dev->fd, DRM_OMAP_GEM_NEW, &req, sizeof(req))
The ioctl is failing with -13 (#define EACCES 13 /* Permission denied */).
Is there a reason I might be getting a permission error for DRM_OMAP_GEM_NEW? I see from the debug I have added that ioctls from dce_init are succeeding.
I also see that Engine_open() succeeds when trying samples to test the ducati engine as below.
gst-launch-1.0 -e videotestsrc num-buffers=640 is-live=true ! 'video/x-raw,format=(string)NV12,width=720,height=420,framerate=(fraction)30/1' ! ducatimpeg4enc ! fakesink sync=true
Thanks,
Matt
