TI中文支持网
TI专业的中文技术问题搜集分享网站

疑问:有关DM368是否支持720p60的疑问

大家好,

  疑问:大家有没有在DM368上调试通过720p60fps的YUV422视频呢?

 背景如下:

  最近在调试DM368的720p60,发现在使用DVSDK包内的dvsdk-demos_4_02_00_01的decode实例时,

场景1:设置参数为:

VideoStd_720P_60

函数videoThrFxn中:将framerate修改为:

if (envp->videoStd == VideoStd_D1_PAL) {params->maxFrameRate = 25000;}else if ( VideoStd_720P_60  == envp->videoStd ){	params->maxFrameRate = 60000;}
	else{params->maxFrameRate = 30000;}

然后:displayThrFxn里面,将演示设置为:333332/2,

  if (envp->videoStd == VideoStd_720P_60) {if (Time_delta(hTime, (UInt32*)&time) < 0) {ERR("Failed to get timer delta\n");cleanup(THREAD_FAILURE);}waitTime = DISPLAYLOOPLATENCY>>1 - time;if(waitTime > 0) {usleep(waitTime);}if(Time_reset(hTime) != Dmai_EOK) {ERR("Failed to reset timer\n");cleanup(THREAD_FAILURE);}}

这样尝试播放720p60的视频,系统自动监控打印如下:发现系统没达到60fps,而且在其中1s的解帧中,出现了处理器负荷大约90%。

ARM Load: 2% Video fps: 32 fps Video bit rate: 296 kbps Sound bit rate: 0 kbps Time: 00:00:01 Resolution: 1280x720 

ARM Load: 12% Video fps: 49 fps Video bit rate: 341 kbps Sound bit rate: 0 kbps Time: 00:00:02 Resolution: 1280x720 

ARM Load: 13% Video fps: 49 fps Video bit rate: 344 kbps Sound bit rate: 0 kbps Time: 00:00:03 Resolution: 1280x720 

ARM Load: 18% Video fps: 49 fps Video bit rate: 494 kbps Sound bit rate: 0 kbps Time: 00:00:04 Resolution: 1280x720 

ARM Load: 27% Video fps: 49 fps Video bit rate: 533 kbps Sound bit rate: 0 kbps Time: 00:00:06 Resolution: 1280x720 

ARM Load: 18% Video fps: 49 fps Video bit rate: 333 kbps Sound bit rate: 0 kbps Time: 00:00:07 Resolution: 1280x720 

ARM Load: 13% Video fps: 49 fps Video bit rate: 474 kbps Sound bit rate: 0 kbps Time: 00:00:08 Resolution: 1280x720 

ARM Load: 23% Video fps: 51 fps Video bit rate: 3314 kbps Sound bit rate: 0 kbps Time: 00:00:09 Resolution: 1280x720 

ARM Load: 29% Video fps: 49 fps Video bit rate: 3771 kbps Sound bit rate: 0 kbps Time: 00:00:10 Resolution: 1280x720 

ARM Load: 31% Video fps: 50 fps Video bit rate: 5076 kbps Sound bit rate: 0 kbps Time: 00:00:12 Resolution: 1280x720 

ARM Load: 90% Video fps: 49 fps Video bit rate: 4349 kbps Sound bit rate: 0 kbps Time: 00:00:13 Resolution: 1280x720 

ARM Load: 21% Video fps: 50 fps Video bit rate: 3927 kbps Sound bit rate: 0 kbps Time: 00:00:15 Resolution: 1280x720 

ARM Load: 31% Video fps: 51 fps Video bit rate: 3597 kbps Sound bit rate: 0 kbps Time: 00:00:16 Resolution: 1280x720 

ARM Load: 14% Video fps: 49 fps Video bit rate: 1695 kbps Sound bit rate: 0 kbps Time: 00:00:17 Resolution: 1280x720 

ARM Load: 22% Video fps: 49 fps Video bit rate: 1733 kbps Sound bit rate: 0 kbps Time: 00:00:18 Resolution: 1280x720 

ARM Load: 17% Video fps: 49 fps Video bit rate: 1352 kbps Sound bit rate: 0 kbps Time: 00:00:20 Resolution: 1280x720 

ARM Load: 13% Video fps: 49 fps Video bit rate: 1798 kbps Sound bit rate: 0 kbps Time: 00:00:21 Resolution: 1280x720 

ARM Load: 18% Video fps: 49 fps Video bit rate: 1680 kbps Sound bit rate: 0 kbps Time: 00:00:22 Resolution: 1280x720 

ARM Load: 12% Video fps: 49 fps Video bit rate: 1691 kbps Sound bit rate: 0 kbps Time: 00:00:23 Resolution: 1280x720 

ARM Load: 14% Video fps: 49 fps Video bit rate: 1669 kbps Sound bit rate: 0 kbps Time: 00:00:24 Resolution: 1280x720 

场景2:不做以上的修改,直接使用decode的默认参数,打印如下:可见,能够支持720p30fps的。处理器的负荷也没有超过50%。

ARM Load: 2% Video fps: 19 fps Video bit rate: 164 kbps Sound bit rate: 0 kbps Time: 00:00:01 Resolution: 1280x720 

ARM Load: 13% Video fps: 30 fps Video bit rate: 274 kbps Sound bit rate: 0 kbps Time: 00:00:02 Resolution: 1280x720 

ARM Load: 11% Video fps: 30 fps Video bit rate: 194 kbps Sound bit rate: 0 kbps Time: 00:00:03 Resolution: 1280x720 

ARM Load: 12% Video fps: 30 fps Video bit rate: 190 kbps Sound bit rate: 0 kbps Time: 00:00:04 Resolution: 1280x720 

ARM Load: 14% Video fps: 30 fps Video bit rate: 203 kbps Sound bit rate: 0 kbps Time: 00:00:06 Resolution: 1280x720 

ARM Load: 9% Video fps: 30 fps Video bit rate: 234 kbps Sound bit rate: 0 kbps Time: 00:00:07 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 468 kbps Sound bit rate: 0 kbps Time: 00:00:08 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 289 kbps Sound bit rate: 0 kbps Time: 00:00:09 Resolution: 1280x720 

ARM Load: 14% Video fps: 30 fps Video bit rate: 208 kbps Sound bit rate: 0 kbps Time: 00:00:10 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 160 kbps Sound bit rate: 0 kbps Time: 00:00:12 Resolution: 1280x720 

ARM Load: 9% Video fps: 30 fps Video bit rate: 63 kbps Sound bit rate: 0 kbps Time: 00:00:13 Resolution: 1280x720 

ARM Load: 12% Video fps: 30 fps Video bit rate: 1344 kbps Sound bit rate: 0 kbps Time: 00:00:14 Resolution: 1280x720 

ARM Load: 11% Video fps: 30 fps Video bit rate: 2115 kbps Sound bit rate: 0 kbps Time: 00:00:15 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 1746 kbps Sound bit rate: 0 kbps Time: 00:00:16 Resolution: 1280x720 

ARM Load: 14% Video fps: 30 fps Video bit rate: 2910 kbps Sound bit rate: 0 kbps Time: 00:00:18 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 3222 kbps Sound bit rate: 0 kbps Time: 00:00:19 Resolution: 1280x720 

ARM Load: 41% Video fps: 30 fps Video bit rate: 2697 kbps Sound bit rate: 0 kbps Time: 00:00:20 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 2726 kbps Sound bit rate: 0 kbps Time: 00:00:21 Resolution: 1280x720 

ARM Load: 11% Video fps: 30 fps Video bit rate: 2680 kbps Sound bit rate: 0 kbps Time: 00:00:23 Resolution: 1280x720 

ARM Load: 12% Video fps: 30 fps Video bit rate: 2252 kbps Sound bit rate: 0 kbps Time: 00:00:24 Resolution: 1280x720 

ARM Load: 14% Video fps: 30 fps Video bit rate: 2273 kbps Sound bit rate: 0 kbps Time: 00:00:25 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 2094 kbps Sound bit rate: 0 kbps Time: 00:00:26 Resolution: 1280x720 

ARM Load: 11% Video fps: 30 fps Video bit rate: 1009 kbps Sound bit rate: 0 kbps Time: 00:00:27 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 1032 kbps Sound bit rate: 0 kbps Time: 00:00:29 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 1118 kbps Sound bit rate: 0 kbps Time: 00:00:30 Resolution: 1280x720 

ARM Load: 9% Video fps: 30 fps Video bit rate: 939 kbps Sound bit rate: 0 kbps Time: 00:00:31 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 795 kbps Sound bit rate: 0 kbps Time: 00:00:32 Resolution: 1280x720 

ARM Load: 12% Video fps: 30 fps Video bit rate: 1321 kbps Sound bit rate: 0 kbps Time: 00:00:33 Resolution: 1280x720 

ARM Load: 10% Video fps: 30 fps Video bit rate: 809 kbps Sound bit rate: 0 kbps Time: 00:00:35 Resolution: 1280x720 

ARM Load: 12% Video fps: 30 fps Video bit rate: 934 kbps Sound bit rate: 0 kbps Time: 00:00:36 Resolution: 1280x720 

ARM Load: 12% Video fps: 30 fps Video bit rate: 1228 kbps Sound bit rate: 0 kbps Time: 00:00:37 Resolution: 1280x720 

ARM Load: 11% Video fps: 30 fps Video bit rate: 908 kbps Sound bit rate: 0 kbps Time: 00:00:38 Resolution: 1280x720 

ARM Load: 9% Video fps: 30 fps Video bit rate: 935 kbps Sound bit rate: 0 kbps Time: 00:00:39 Resolution: 1280x720 

ARM Load: 12% Video fps: 30 fps Video bit rate: 1069 kbps Sound bit rate: 0 kbps Time: 00:00:41 Resolution: 1280x720 

非常谢谢,:)

Chris Meng:

你好,

请问你使用的是close loop的decode,还是univerial的decode?如果你解码的是DM36x编码出来的码流使用close loop decoder可以得到更好的性能。

具体性能,请参考:http://processors.wiki.ti.com/index.php/DM365_Codec_Availability_Schedule。

赞(0)
未经允许不得转载:TI中文支持网 » 疑问:有关DM368是否支持720p60的疑问
分享到: 更多 (0)