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.

The encode demo cannot work well when I use the dvsdk 2.10.

Other Parts Discussed in Thread: TVP5146

-The encode demo cannot work when I use the dvsdk 2.10.

-it can work well when I use the dvsdk 4.02,but it doesn't support facedetect. I want to use the facedetect.

 

dvsdk_2_10_01_18

dm368    Cores: ARM 432 MHz DDR:   340 MHz

composite -> TVP5146 -> DM368zcdef

bootargs console=ttyS0,115200n8 rw mem=76M video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0 davinci_capture.device_type=1    vpfe_capture.cont_bufsize=6291456 root=/dev/nfs nfsroot=192.168.0.138:/root/targetfs ip=192.168.0.60:192.168.0.1:255.255.255.0

root@192.168.0.60:/opt/dvsdk# ./loadmodules.sh

cmemk: no version for "struct_module" found: kernel tainted.

CMEMK module: built on Nov 27 2012 at 09:17:51

Reference Linux version 2.6.18   File /home/yq/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c

ioremap_nocache(0x85000000, 50331648)=0xc6000000

allocated heap buffer 0xc6000000 of size 0x134000

cmem initialized 20 pools between 0x85000000 and 0x88000000

CMEM Range Overlaps Kernel Physical - allowing overlap

CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x84c00000)

ioremap_nocache(0x1000, 28672)=0xc5088000

no remaining memory for heap, no heap created for memory block 1

cmem initialized 1 pools between 0x1000 and 0x8000

IRQK module: built on Nov 27 2012 at 09:20:41  

Reference Linux version 2.6.18   File /home/yq/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c irqk initialized EDMAK module: built on Nov 27 2012 at 09:20:40  

Reference Linux version 2.6.18   File /home/yq/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c

davinci_interrupt 354: VBUS error workaround (delay coming)

root@192.168.0.60:/opt/dvsdk# ./encode -v 2.264

Encode demo started.

vpfe ccdc capture vpfe ccdc capture.1: IMP chained

vpfe ccdc capture vpfe ccdc capture.1: Resizer present

MUX: initialized GPIO40

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

vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 480, bpp = 1

vpfe ccdc capture vpfe ccdc capture.1: hpitch = 720, vpitch = 480, 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 = 480, 

layer.pix_fmt.sizeimage =529920

DavinciDisplay DavinciDisplay.1: pixfmt->width = 720,  layer->layer_info.config.line_length= 736

ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:01 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:02 Demo: Encode Display: D1 NTSC Video Codec: H.264 HP Resolution: 720x480 Sound Codec: N/A Sampling Freq: N/A

 

  • root@192.168.0.60:/opt/dvsdk# ./loadmodules_sd.sh

     CMEMK module: built on Nov 30 2012 at 19:04:41   Reference Linux version 2.6.18   File /home/yq/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c ioremap_nocache(0x85000000, 50331648)=0xc6000000 allocated heap buffer 0xc6000000 of size 0x134000 cmem initialized 20 pools between 0x85000000 and 0x88000000 CMEM Range Overlaps Kernel Physical - allowing overlap CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x84c00000) ioremap_nocache(0x1000, 28672)=0xc5088000 no remaining memory for heap, no heap created for memory block 1 cmem initialized 1 pools between 0x1000 and 0x8000 IRQK module: built on Nov 30 2012 at 19:04:43   Reference Linux version 2.6.18   File /home/yq/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c irqk initialized EDMAK module: built on Nov 30 2012 at 19:04:42   Reference Linux version 2.6.18   File /home/yq/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c root@192.168.0.60:/opt/dvsdk# ./encode -v 1.264 -y 2 Encode demo started. MUX: initialized GPIO40 i2c_adapter i2c-0: tvp514x_setinput:lost lock] i2c_adapter i2c-0: tvp514x_setinput:lost lock] i2c_adapter i2c-0: tvp514x: no input connected vpfe ccdc capture vpfe ccdc capture.1: Unable to get standard from decoder vpfe ccdc capture vpfe ccdc capture.1: Error in initializing channel Error: Failed to detect video standard, video input connected? Error: Failed to create video encoder: h264enc root@192.168.0.60:/opt/dvsdk# root@192.168.0.60:/opt/dvsdk# ./encode -v 1.264 -y 2

    Encode demo started. 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 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

     

     ARM Load: 67% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:01 Demo: Encode Display: D1 PAL Video Codec: H.264 HP Resolution: 720x576 Sound Codec: N/A Sampling Freq: N/A

    ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:02 Demo: Encode Display: D1 PAL Video Codec: H.264 HP Resolution: 720x576 Sound Codec: N/A Sampling Freq: N/A

    ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:03 Demo: Encode Display: D1 PAL Video Codec: H.264 HP Resolution: 720x576 Sound Codec: N/A Sampling Freq: N/A

    ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:04 Demo: Encode Display: D1 PAL Video Codec: H.264 HP Resolution: 720x576 Sound Codec: N/A Sampling Freq: N/A

    ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:06 Demo: Encode Display: D1 PAL Video Codec: H.264 HP Resolution: 720x576 Sound Codec: N/A Sampling Freq: N/A

    ARM Load: 0% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:07 Demo: Encode Display: D1 PAL Video Codec: H.264 HP Resolution: 720x576 Sound Codec: N/A Sampling Freq: N/A