我用的天漠DEVKIT8500的开发板dm3730的CPU,用TI最新的DVSDK403进行H264 720p高清解码实验,DVSDK403用的内核版本是2.6.37的,我用的是2.6.32的旧内核,在dvsdk_demo里运行解码指令,lcd可以正确显示图像,但是帧率只有2帧,不知道是什么原因,我的内存是512M的,所以内存分配如下:
# Start Addr Size Description
# ——————————————-
# 0x80000000 303 MB Linux
# 0x92f00000 128 MB CMEM
# 0x9af00000 81 MB CODEC SERVER–>
# 0x9af00000 4 KB RESET_VECTOR
# 0x9af01000 1MB-4K DSPLINKMEM
# 0x9b000000 64MB DDRALGHEAP
# 0x9f000000 16MB DDR2
# 0x48001000 16MB L4CORE
# 0x49001000 1MB L4PER
下面是出现的现象,帧率不足,码流太小:
root@dm37x-evm:/usr/share/ti/dvsdk-demos# ./loadmodules.shCMEMK module: built on Nov 18 2013 at 14:26:59
Reference Linux version 2.6.32
File /work/dvsdk403/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xd4000000 of size 0x1688000
cmemk initialized
DSPLINK Module (1.65.01.05_eng) created on Date: Nov 18 2013 Time: 14:28:08
SDMAK module: built on Nov 18 2013 at 14:27:21
Reference Linux version 2.6.32
File /work/dvsdk403/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
root@dm37x-evm:/usr/share/ti/dvsdk-demos# ./decode -O lcd -t 20 -v IPCAMDATA.264
Decode demo started.
ARM Load: 24% DSP Load: 27% Video fps: 0 fps Video bit rate: 0 kbps Sound bit rate: 0 kbps Time: 00:00:01 Demo: Decode Display: VGA Video Codec: H.264 HP Resolution: N/A Sound Codec: N/A Sampling Freq: N/A
ARM Load: 0% DSP Load: 26% Video fps: 0 fps Video bit rate: 211 kbps Sound bit rate: 0 kbps Time: 00:00:02 Demo: Decode Display: VGA Video Codec: H.264 HP Resolution: N/A Sound Codec: N/A Sampling Freq: N/A
ARM Load: 0% DSP Load: 26% Video fps: 0 fps Video bit rate: 118 kbps Sound bit rate: 0 kbps Time: 00:00:04 Demo: Decode Display: VGA Video Codec: H.264 HP Resolution: N/A Sound Codec: N/A Sampling Freq: N/A
ARM Load: 18% DSP Load: 18% Video fps: 0 fps Video bit rate: 116 kbps Sound bit rate: 0 kbps Time: 00:00:05 Demo: Decode Display: VGA Video Codec: H.264 HP Resolution: 1280×720 Sound Codec: N/A Sampling Freq: N/A
ARM Load: 0% DSP Load: 26% Video fps: 4 fps Video bit rate: 101 kbps Sound bit rate: 0 kbps Time: 00:00:06 Demo: Decode Display: VGA Video Codec: H.264 HP Resolution: 1280×720 Sound Codec: N/A Sampling Freq: N/A
ARM Load: 0% DSP Load: 26% Video fps: 2 fps Video bit rate: 115 kbps Sound bit rate: 0 kbps Time: 00:00:07 Demo: Decode Display: VGA Video Codec: H.264 HP Resolution: 1280×720 Sound Codec: N/A Sampling Freq: N/A
ARM Load: 0% DSP Load: 26% Video fps: 2 fps Video bit rate: 125 kbps Sound bit rate: 0 kbps Time: 00:00:08 Demo: Decode Display: VGA Video Codec: H.264 HP Resolution: 1280×720 Sound Codec: N/A Sampling Freq: N/A
ARM Load: 0% DSP Load: 26% Video fps: 2 fps Video bit rate: 115 kbps Sound bit rate: 0 kbps Time: 00:00:09 Demo: Decode Display: VGA Video Codec: H.264 HP Resolution: 1280×720 Sound Codec: N/A Sampling Freq: N/A
ARM Load: 0% DSP Load: 26% Video fps: 2 fps Video bit rate: 123 kbps Sound bit rate: 0 kbps Time: 00:00:11 Demo: Decode Display: VGA Video Codec: H.264 HP Resolution: 1280×720 Sound Codec: N/A Sampling Freq: N/A
有没有大神遇到过这种问题呢,研究了好几天了找不到原因,如有解决办法,万分感谢!!!
kooking:
建议移植使用DVSDK中自带的内核版本试试
spy spy:
回复 kooking:
我的devkit8500开发板和TI DVSDK测试用的开发板硬件差距很大,用新的内核得修改很多驱动,工作量比较巨大,所以用的旧的内核版本
xiaomin huang:
您好,我和您用的是同样的板子,才刚刚上手,想请教您一个问题啊,那个你的内存分配是怎么弄得啊?DVSDK默认的内存分配好像是按256MB分配的啊?
spy spy:
回复 xiaomin huang:
修改这个文件dvsdk403/codecs-omap3530/packages/ti/sdo/server/cs/memmap.tci,这个文件时管理内存分配的,DVSDK默认是按照128M进行分配的