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.

Error: Failed to create video encoder: h264enc

Other Parts Discussed in Thread: TVP5151

Hi, all

 I have a problem about the H264ENC.version.2_10_01_18.

It run well when i run the encode demo at first. But, When  I used a new h264enc replaced by DVSDK old h264enc.   I run the encode demo,it occurs:

 root@192.168.3.156:/opt/dvsdk#  ./encode -v test.264 -y 2
Encode demo started.
tvp5151 devid=0x51,should be 0x51
tvp5151 devid=0x51,should be 0x51
VIDIOC_S_STD
davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:108
davinci_previewer davinci_previewer.2: ipipe_set_preview_config
davinci_previewer davinci_previewer.2: ipipe_set_preview_config
vpfe ccdc capture vpfe ccdc capture.1: IMP chained
vpfe ccdc capture vpfe ccdc capture.1: Resizer present
Error: Failed to create video encoder: h264enc
tvp5151 devid=0x0,should be 0x51
tvp5151 devid=0x51,should be 0x51
VIDIOC_S_STD
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 576, bpp = 1
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 576, bpp = 1
Starting ccdc_config_ycbcr...<7>
starting ccdc_reset...<7>
End of ccdc_reset...<7>
Starting ccdc_setwin...<7>ipipe_set_resizer, resizer - A enabled
DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
layer.pix_fmt.bytesperline = 736,
 layer.pix_fmt.width = 720,
 layer.pix_fmt.height = 576,
 layer.pix_fmt.sizeimage =635904
DavinciDisplay DavinciDisplay.1: pixfmt->width = 720,
 layer->layer_info.config.line_length= 736
root@192.168.3.156:/opt/dvsdk#

When I use CE for help,it occurs:

root@192.168.3.156:/opt/dvsdk# CE_DEBUG=1  ./encode -v test.264 -y 2

..............................

vpfe ccdc capture vpfe ccdc capture.1: Resizer present
@1,326,906us: [+7 T:0x413ff490] ti.sdo.ce.alg.Algorithm - Algorithm_create> Assignment of alg resources through RMAN FAILED (0x8)
@1,337,616us: [+7 T:0x413ff490] ti.sdo.dmai - [Venc1] Failed to open video encode algorithm: h264enc (0x0)
Error: Failed to create video encoder: h264enc
tvp5151 devid=0x0,should be 0x51

.............................

I see someone say it maybe  either insufficient memory or incorrect creaition (static) parameters.

I modify the kernel space size in U-BOOT and the loadmodules.sh file, but it can't help.

how to modify the parameters, I don't know the way.

Can someone help me?

Best Regards;