Tool/software:
Hi TI Experts,
On TDA4VM, We were able to run the OMX video encoder test application provided by openmax IL Component.
software-dl.ti.com/.../qnx_sdk_components_j721e.html
We have downloaded from the OPENMAX AL Examples Source code from QNX Software center. I have cross compiled the code. After cross compilation I want to run the video encoder test application on target(TDA4VM). But while running we were seeing the error like No supported encoder! .
Code: attached the small piece of code where the error is coming from the file:
source/openmaxal-examples-2.1.0/source_package_mm_openmaxal/lib/OpenMAXAL/apps/video-encode/recorder.c
log_info("Getting video encoder capabilities interface");
XAVideoEncoderCapabilitiesItf video_encoder_cap_itf;
res = (*(recorder->engine))->GetInterface(recorder->engine, XA_IID_VIDEOENCODERCAPABILITIES, (void *)&video_encoder_cap_itf);
if (res != XA_RESULT_SUCCESS) {
log_err("Failed to get video encoder capabilities interface! Error: %d", res);
return res;
}
/* Now that we have all the encoder interfaces, we'll set the desired settings for the encoder */
log_info("Getting number of available video encoders");
XAuint32 num_encoders=0;
res = (*video_encoder_cap_itf)->GetVideoEncoders(video_encoder_cap_itf, &num_encoders, NULL);
if (res != XA_RESULT_SUCCESS) {
log_err("Failed to get video encoder interface! Error: %d", res);
return res;
}
if (num_encoders == 0) {
log_err("No supported encoder!");
return XA_RESULT_FEATURE_UNSUPPORTED;
}
Basically, it is not able to fetch the available video encoders. But If you see the output of PS -A on target, we were seeing the vxe_enc service is running.
J7EVM@QNX:/ti_fs/vision_apps# ps -A PID TTY TIME CMD 1 ? 00:30:03 procnto-smp-instr 2 ? 00:00:00 slogger2 3 ? 00:00:00 pipe 4 ? 00:00:00 dumper 5 ? 00:00:00 random 6 ? 00:00:00 devc-seromap 7 ? 00:00:00 i2c-omap35xx 4104 ? 00:00:00 devb-sdmmc-am65x 4105 ? 00:00:00 devb-sdmmc-am65x 4106 ? 00:00:00 io-pkt-v6-hc 16395 ? 00:00:00 io-usb-otg 16396 ? 00:00:00 devc-pty 61453 ? 00:00:00 tisci-mgr 16398 ? 00:00:00 ksh 16399 ? 00:00:00 inetd 73744 ? 00:00:00 shmemallocator 77841 ? 00:00:00 tiipc-mgr 81938 ? 00:00:00 tiudma-mgr 86035 ? 00:00:00 vxe_enc 90132 ? 00:00:00 vxd_dec 94229 ? 00:00:00 screen 106518 ? 00:00:00 devf-j7-ospi 102423 ? 00:00:00 sshd 110616 ? 00:00:00 ksh 270361 ? 00:00:00 ps J7EVM@QNX:/ti_fs/vision_apps#
Does the OPENMAX AL applications can't use the OPENMAX IL interface which have the encoder?
Can you please help me to resolve this issue.
Regards,
Sesha Venkata Harikrishna.