3468
- 收藏
- 点赞
- 分享
- 举报
H3531解码H264视频控制
使用HI3531解码H264可以通过VGA显示视频,结合QT实现视频的控制时,点击功能按钮实现后退2S有时可达到效果,但更多时候是点击之后当前输出画面并没有跳转,而是静止状态,一段时间之后就又继续播放,并没有后退。
后退功能的实现思路如下:将每一帧对应的PTS与数据包起始位置保存至本地文件,点击后退按钮之后获取当前帧PTS,之后根据当前帧PTS与后退时间确定最新的PTS与帧起始地址.根据现象推测是点击后退按钮之后解码通道在解码,并且是从新的帧地址解码,但并没有显示,调试信息如下:
# cat /proc/umap/vo
[VOU] Version: [Hi3531_MPP_V2.0.B.0 ], Build Time[Nov 30 2013, 18:28:56]
-----MODULE PARAM--------------------------------------------------------------
detectCycle
-----DEV CONFIG----------------------------------------------------------------
DevId DevEn Mux1 Mux2 Mux3 InfSync BkClr DevFrt DispFrt DoubFrm Toleration Vtth
0 Y VGA 720P@50 0 50 25 N 10000000 240
-----DEV VDAC STATUS----------------------------------------------------------
DevId VDAC
0 -
-----DEV VIDEO STATUS----------------------------------------------------------
DevId VideoEn PiP PixFmt ImgW ImgH DispW DispH
0 Y N 420 1280 720 1280 720
-----DEV VIDEO STATUS 2--------------------------------------------------------
DevId VideoEn PiP EnChNum Matrix Luma Cont Hue Satu
0 Y N 1 0 50 50 50 50
-----DEV VIDEO STATUS 3--------------------------------------------------------
DevId SetBeg SetEnd WBCEn bCasCfg bCasEn bCasSlv CasRgn CasMode CasPatn
0 N N N N N N 0
-----GRP STATUS----------------------------------------------------------------
GrpId OnDev ChNum FulFr TgtFr Start Resrv GrpGap BasePts
-----CHN BASE INFO-------------------------------------------------------------
DevId ChnId ChnEn Prio DeFlk ChnX ChnY ChnW ChnH DispX DispY bSnap Field DoubFrm bCas CcPos
0 0 Y 0 N 0 0 1280 720 -1 -1 N both N N 0
-----CHN PLAY INFO-------------------------------------------------------------
DevId ChnId Batch Show Pause Step Revrs Refsh Thrshd ChnFrt ChnGap
0 0 N Y N N N N 3 25 40000
-----CHN PLAY INFO-------------------------------------------------------------
DevId ChnId DisplayPts PrePts CurrPts ScalePts SetPts
0 0 3000000 3000000 2800000 3040000 -1
-----HD CHN STATUS1------------------------------------------------------------
DevId ChnId QCnt NewDo OldDo LCnt SCnt ChRpt BusyN ShouD Dsped Area AreaT
0 0 2846 76 0 45 76 590 0 1 570 0 0
-----HD CHN STATUS2------------------------------------------------------------
DevId ChnId Buf1 Buf2 Buf3 Buf4 DBuf Stat1 Stat2 QNodeAddr SNodeAddr DispAddr
0 0 F F F UseF 4 end end 86200800 86200800 86200800
-----SD CHN STATUS-------------------------------------------------------------
DevId ChnId Job Task LCnt SCnt ChRpt DRpt CBusy DBusy ShouD Dsped b2Scl ChnAddr DispAddr
-----CHN OTHER INFO------------------------------------------------------------
DevId ChnId bZoom ZmTyp ZoomX ZoomY ZoomW ZoomH SrcW SrcH FltTp HFlt VlFlt VcFlt
0 0 N 0 0 0 0 0 0 0 0 0 0 0
-----WBC INFO------------------------------------------------------------------
DevId WbcW WbcH PixFmt FrmRat RealRat Mode DataSrc Depth NotFin
-----GRAPHICS LAYER-------------------------------------------------------------
Layer BindDev
G4 0
HC0 0
HC1 2
-----LAYER CSC PARAM-----------------------------------------------------------------
LAYERID Matrix Luma Cont Hue Satu
0 5 50 50 50 50
4 5 50 50 50 50
5 5 50 50 50 50
-----VGA PARAM-----------------------------------------------------------------
DevId Matrix Luma Cont Hue Satu Gain
0 3 50 50 50 50 10
-----DEV Int Status----------------------------------------------------------------
DevId IntRate IntTime MaxIntT TimePrM IntGapT MaxGapT
0 50.0 34 51 421 20008 28881
cat /proc/umap/vdec
[VDEC] Version: [Hi3531_MPP_V2.0.B.0 ], Build Time[Nov 30 2013, 18:28:55]
-----MODULE PARAM--------------------------------------------------------------
obey_minCR
0
-----CHN ATTR & PARAMS-------------------------------------------------------
ID TYPE Prior MaxW MaxH Width Height StrmInputMode STATE
0 H264 1 1920 1080 1280 720 FRAME/BLOCK START
ID RefNum SupportB DispNum BufSize SCDBufSize MaxSlice MaxSPS MaxPPS
0 2 Yes 2 2073600 3110400 100 21 22
ID ErrThr StrmThr DecMode OutMode DnrDisp DnrTf
0 30 0 IP Dec N/A N/A
-----CHN STATE-----------------------------------------------------------------
ID PrtclErr StrmUnSP StrmError RefNumErr PicSizeErr fmterror PicBufSizeErr RlsFail Notify
0 0 0 0 0 0 0 0 0 259
ID fps TimerCnt BufFLen DataLen UsrFLen UsrLen ptsBufF ptsBufU
0 38 78053 3045855 0 5088 0 40 0
----- Detail Stream STATE -----------------------------------------------------------
ID MpiSndNum MpiSndLen VdecNum VdecLen FmGetNum FmGetLen FmRlsNum FmRlsLen FmLstGet FmRlsFail
0 121 8467492 121 1815 123 8469307 122 8402234 67073 0
----- Detail FrameStore STATE -----------------------------------------------------------
ID FmNewPic GetFromFm RlsToFm Discard UsrSnd KerSnd KerRls FreeNode BusyNode UserNode MeetEnd FrmInVdec
0 121 121 120 0 0 121 120 39 0 1 121 0
----- Detail UserData STATE -----------------------------------------------------------
ID MpiGet MpiGetLen MpiRls MpiRlsLen Discard DiscardLen GetFromFm GetFromFmLen UsrFLen UsrLen
0 0 0 0 0 0 0 0 0 5088 0
后退功能的实现思路如下:将每一帧对应的PTS与数据包起始位置保存至本地文件,点击后退按钮之后获取当前帧PTS,之后根据当前帧PTS与后退时间确定最新的PTS与帧起始地址.根据现象推测是点击后退按钮之后解码通道在解码,并且是从新的帧地址解码,但并没有显示,调试信息如下:
# cat /proc/umap/vo
[VOU] Version: [Hi3531_MPP_V2.0.B.0 ], Build Time[Nov 30 2013, 18:28:56]
-----MODULE PARAM--------------------------------------------------------------
detectCycle
-----DEV CONFIG----------------------------------------------------------------
DevId DevEn Mux1 Mux2 Mux3 InfSync BkClr DevFrt DispFrt DoubFrm Toleration Vtth
0 Y VGA 720P@50 0 50 25 N 10000000 240
-----DEV VDAC STATUS----------------------------------------------------------
DevId VDAC
0 -
-----DEV VIDEO STATUS----------------------------------------------------------
DevId VideoEn PiP PixFmt ImgW ImgH DispW DispH
0 Y N 420 1280 720 1280 720
-----DEV VIDEO STATUS 2--------------------------------------------------------
DevId VideoEn PiP EnChNum Matrix Luma Cont Hue Satu
0 Y N 1 0 50 50 50 50
-----DEV VIDEO STATUS 3--------------------------------------------------------
DevId SetBeg SetEnd WBCEn bCasCfg bCasEn bCasSlv CasRgn CasMode CasPatn
0 N N N N N N 0
-----GRP STATUS----------------------------------------------------------------
GrpId OnDev ChNum FulFr TgtFr Start Resrv GrpGap BasePts
-----CHN BASE INFO-------------------------------------------------------------
DevId ChnId ChnEn Prio DeFlk ChnX ChnY ChnW ChnH DispX DispY bSnap Field DoubFrm bCas CcPos
0 0 Y 0 N 0 0 1280 720 -1 -1 N both N N 0
-----CHN PLAY INFO-------------------------------------------------------------
DevId ChnId Batch Show Pause Step Revrs Refsh Thrshd ChnFrt ChnGap
0 0 N Y N N N N 3 25 40000
-----CHN PLAY INFO-------------------------------------------------------------
DevId ChnId DisplayPts PrePts CurrPts ScalePts SetPts
0 0 3000000 3000000 2800000 3040000 -1
-----HD CHN STATUS1------------------------------------------------------------
DevId ChnId QCnt NewDo OldDo LCnt SCnt ChRpt BusyN ShouD Dsped Area AreaT
0 0 2846 76 0 45 76 590 0 1 570 0 0
-----HD CHN STATUS2------------------------------------------------------------
DevId ChnId Buf1 Buf2 Buf3 Buf4 DBuf Stat1 Stat2 QNodeAddr SNodeAddr DispAddr
0 0 F F F UseF 4 end end 86200800 86200800 86200800
-----SD CHN STATUS-------------------------------------------------------------
DevId ChnId Job Task LCnt SCnt ChRpt DRpt CBusy DBusy ShouD Dsped b2Scl ChnAddr DispAddr
-----CHN OTHER INFO------------------------------------------------------------
DevId ChnId bZoom ZmTyp ZoomX ZoomY ZoomW ZoomH SrcW SrcH FltTp HFlt VlFlt VcFlt
0 0 N 0 0 0 0 0 0 0 0 0 0 0
-----WBC INFO------------------------------------------------------------------
DevId WbcW WbcH PixFmt FrmRat RealRat Mode DataSrc Depth NotFin
-----GRAPHICS LAYER-------------------------------------------------------------
Layer BindDev
G4 0
HC0 0
HC1 2
-----LAYER CSC PARAM-----------------------------------------------------------------
LAYERID Matrix Luma Cont Hue Satu
0 5 50 50 50 50
4 5 50 50 50 50
5 5 50 50 50 50
-----VGA PARAM-----------------------------------------------------------------
DevId Matrix Luma Cont Hue Satu Gain
0 3 50 50 50 50 10
-----DEV Int Status----------------------------------------------------------------
DevId IntRate IntTime MaxIntT TimePrM IntGapT MaxGapT
0 50.0 34 51 421 20008 28881
cat /proc/umap/vdec
[VDEC] Version: [Hi3531_MPP_V2.0.B.0 ], Build Time[Nov 30 2013, 18:28:55]
-----MODULE PARAM--------------------------------------------------------------
obey_minCR
0
-----CHN ATTR & PARAMS-------------------------------------------------------
ID TYPE Prior MaxW MaxH Width Height StrmInputMode STATE
0 H264 1 1920 1080 1280 720 FRAME/BLOCK START
ID RefNum SupportB DispNum BufSize SCDBufSize MaxSlice MaxSPS MaxPPS
0 2 Yes 2 2073600 3110400 100 21 22
ID ErrThr StrmThr DecMode OutMode DnrDisp DnrTf
0 30 0 IP Dec N/A N/A
-----CHN STATE-----------------------------------------------------------------
ID PrtclErr StrmUnSP StrmError RefNumErr PicSizeErr fmterror PicBufSizeErr RlsFail Notify
0 0 0 0 0 0 0 0 0 259
ID fps TimerCnt BufFLen DataLen UsrFLen UsrLen ptsBufF ptsBufU
0 38 78053 3045855 0 5088 0 40 0
----- Detail Stream STATE -----------------------------------------------------------
ID MpiSndNum MpiSndLen VdecNum VdecLen FmGetNum FmGetLen FmRlsNum FmRlsLen FmLstGet FmRlsFail
0 121 8467492 121 1815 123 8469307 122 8402234 67073 0
----- Detail FrameStore STATE -----------------------------------------------------------
ID FmNewPic GetFromFm RlsToFm Discard UsrSnd KerSnd KerRls FreeNode BusyNode UserNode MeetEnd FrmInVdec
0 121 121 120 0 0 121 120 39 0 1 121 0
----- Detail UserData STATE -----------------------------------------------------------
ID MpiGet MpiGetLen MpiRls MpiRlsLen Discard DiscardLen GetFromFm GetFromFmLen UsrFLen UsrLen
0 0 0 0 0 0 0 0 0 5088 0
我来回答
回答4个
时间排序
认可量排序
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2016-04-13 09:20:41
-
2016-08-18 17:41:33
-
2017-05-04 17:31:57
-
2020-04-08 18:19:13
-
2016-09-20 15:47:30
-
2014-10-25 08:36:59
-
2016-01-17 00:22:36
-
2013-04-23 17:41:31
-
2018-06-28 09:47:27
-
2018-03-23 17:37:55
-
2018-02-05 15:00:12
-
2021-01-11 15:38:38
-
2016-04-11 13:32:51
-
2018-08-10 16:39:24
-
2015-03-23 16:56:17
-
2017-12-20 14:59:13
-
2020-06-16 14:42:23
-
2020-10-06 12:20:58
-
2016-10-21 14:49:44
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
-
10求HI3519DV500_SDK_V2.0.1.1
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认