环境:TI DVR RDK DM810X
输出模式:
音视频不同步以及视频的输出制式问题
采用NTSC输出,每秒30帧,每帧的时间是33ms
采用PAL输出,每秒25帧,每帧的时间40ms
也可以通过命令行查看模式 HDMI 对应 display0,PAL对应 display2
查看 前运行两个脚本 ./init.sh ./load.sh 否则找不到对应的设备
cat /sys/device/platform/vpss/display0/mode
cat/sys/device/platform/vpss/display2/mode
若修改先关闭使能->修改->开启(手册中)
echo0 > /sys/devices/platform/vpss/display0/enable
echopal > /sys/devices/platform/vpss/display0/enable
echo1 > /sys/devices/platform/vpss/display0/enable
这种方法失效,系统不保存参数。开机后直接按照程序的设计设置
输出分辨率设置 在demo_vdec_vdis.c中
vdisParams.deviceParams[VDIS_DEV_HDMI].resolution = DEMO_HD_DISPLAY_DEFAULT_STD;// VSYS_STD_1080P_50
/* Since HDCOMP and DVO2 are tied togetherthey must have same resolution */
vdisParams.deviceParams[VDIS_DEV_HDCOMP].resolution =DEMO_HD_DISPLAY_DEFAULT_STD;
vdisParams.deviceParams[VDIS_DEV_DVO2].resolution =
vdisParams.deviceParams[VDIS_DEV_HDMI].resolution;
vdisParams.deviceParams[VDIS_DEV_SD].resolution = VSYS_STD_PAL;//
音视频不同步,修改输出模式,相应每一帧的时间也需要改变。
在demo_vdec_vdis_bits_rd.c中
#defineVDEC_VDIS_FRAME_DURATION_MS (40) //33
实现视频的快放与慢放可以通过gVdecVdis_config.frameCnt[pEmptyBuf->chnId]来控制