VS-RK3399 主板调试Linux 驱动硬解码功能分享

1 Mpp (Media Process Platform)
代码位置 : external/mpp,库文件:device/rockchip/rk3399/lib/mpp
mpp 详细介绍请参考 external/mpp/readme.txt
相关接口调用demo,请查看extermal/mpp/test 目录
mpp vpu 编解码测试:
mpi_dec_test (vpu 解码测试)
mpi_dec_test -i /mnt/udisk/sintel.h264 -o /mnt/udisk/out.yuv -w 640 -h 360 -t
7
mpi_enc_test(vpu编码测试)
mpi_enc_test -i /mnt/udisk/out.yuv -o /mnt/udisk/out.h264 -w 640 -h 360 -t 7
export mpi_debug=1
打开mpi debug 开关
2 Gstreamer 调试简介
export XDG_RUNTIME_DIR=/tmp/.xdg
设置XDG_RUNTIME_DIR环境变量
gst-inspect-1.0 vpudec
查询vpudec 详细信息
gst-launch-1.0 filesrc location=/mnt/h265-720p.mp4 ! qtdemux ! h265parse ! vp
udec ! waylandsink
创建pipeline,指定需要调试的插件播放视频
gst-launch-1.0 playbin uri=file:///mnt/h265-720p.mp4 video-sink=waylandsink
使用playbin 播放视频
gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12, width=1920,height=1080
! waylandsink
使用videotestsrc 输出指定格式数据进行测试
export GST_DEBUG=*sink:5
打开所有所有sink 插件log

你可能感兴趣的:(瑞芯微,linux,服务器)