Skip to main content

x2600e_vast_linux_h264解码

一 技术背景

x2600 H264解码性能:

  • Maximum resolution: 2560x2048
  • Decoding capabilities: 1920x1080@60fps
  • Output data format: NV12

本文档展示将h264视频经过x2600的硬件解码单元H264来解码,并显示到屏幕上。

使用vast开发板:x2600e + nand

使用配置文件:x2600e_nand_5.10_defconfig

二 确保屏幕可以正常显示

如果屏幕已经能正常显示,可以忽略本步骤。

8

8

8

8

8

8

8

8

9

10

11

12

使用如下命令测试屏幕是否可以正常显示,正常应该显示整屏的绿色:

cmd_fb enable /dev/fb0                       #使能屏幕设备节点
cmd_fb clear /dev/fb0 color=0xff00ff00 #清屏:将屏幕上所有像素点颜色均设为绿色
cmd_fb display /dev/fb0 #显色:使颜色在屏幕上显现出来
cmd_fb disable /dev/fb0

三 配置rmem命令

13

四 配置vpu

8

8

五 编译烧录

xy@vb:~/job/linux/x2600/build$ make x2600e_nand_5.10_defconfig
xy@vb:~/job/linux/x2600/build$ make

六 测试

将测试文件通过adb 推送到开发板:

adb push 720_1252.h264     /tmp/

在开发板的串口终端进行测试:

cd /tmp/
cmd_h264_decode infile=720_1252.h264 width=720 height=1252

16

此时,屏幕上应该有视频播放,测试完成。