1944
- 收藏
- 点赞
- 分享
- 举报
求助高手,解码时间戳u64pts问题。
Sample_comm_vdec.c 中在代码中
if(pstVdecThreadParam->enType == PT_MJPEG)
{
s32UsedBytes = s32UsedBytes +s32ReadLen;
}
else
{
s32UsedBytes = s32UsedBytes +s32ReadLen + start;
}
u64pts += pstVdecThreadParam->u64PtsIncrease;
}
usleep(1000);
}
pstVdecThreadParam->u64PtsIncrease改为对应的帧率数值后,实际运行后的帧率不对,如改为33333,应该帧率是30,但是运行后是13。为什么没起作用呢,是那里没设置?
----CHN ATTR & PARAMS-------------------------------------------------------
ID TYPE Prior MaxW MaxH Width Height StrmInputMode VideoFmt Compress STATE
0 H265 5 1280 720 1280 720 FRAME/ BLOCK TILE64 Y START
1 H265 5 1280 720 0 0 FRAME/NOBLOCK TILE64 Y START
2 H265 5 1280 720 0 0 FRAME/NOBLOCK TILE64 Y START
3 H265 5 1280 720 0 0 FRAME/NOBLOCK TILE64 Y START
4 H265 5 1280 720 0 0 FRAME/NOBLOCK TILE64 Y START
5 H265 5 1280 720 0 0 FRAME/NOBLOCK TILE64 Y START
ID VfmwID RefNum MvpEnable DispNum BufSize MaxSlice MaxSPS MaxPPS MaxVPS DisplayMode
0 6 2 Yes 2 2764800 100 2 55 10 PlayBack
1 0 2 Yes 2 2764800 100 2 55 10 PlayBack
2 1 2 Yes 2 2764800 100 2 55 10 PlayBack
3 2 2 Yes 2 2764800 100 2 55 10 PlayBack
4 3 2 Yes 2 2764800 100 2 55 10 PlayBack
5 4 2 Yes 2 2764800 100 2 55 10 PlayBack
ID ErrThr StrmThr DecMode OutMode SetUserPic Rotate PicPoolId PmvPoolId PriVbCnt
0 30 0 IP Dec N 0 -1 -1 -1
1 30 0 IP Dec N 0 -1 -1 -1
2 30 0 IP Dec N 0 -1 -1 -1
3 30 0 IP Dec N 0 -1 -1 -1
4 30 0 IP Dec N 0 -1 -1 -1
5 30 0 IP Dec N 0 -1 -1 -1
-----CHN STATE-----------------------------------------------------------------
ID PrtclErr StrmUnSP StrmError RefNumErr PicSizeErr fmterror PicBufSizeErr StrmNotRls Notify
0 0 0 0 0 0 0 0 0 2244
1 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0 0 0
5 0 0 0 0 0 0 0 0 0
ID fps TimerCnt BufFLen DataLen UsrFLen UsrLen ptsBufF ptsBufU StreamEnd
0 13 1440 2508803 0 4064 0 39 0 0
1 0 1440 3227616 0 4064 0 39 0 0
2 0 1439 3227616 0 4064 0 39 0 0
3 0 1439 3227616 0 4064 0 39 0 0
4 0 1439 3227616 0 4064 0 39 0 0
5 0 1438 3227616 0 4064 0 39 0 0
----- Detail Stream STATE -----------------------------------------------------------
ID MpiSndNum MpiSndLen VdecNum VdecLen FmGetNum FmGetLen FmRlsNum FmRlsLen FmLstGet FmRlsFail
0 1413 1351990 1413 22608 1413 1374598 625 655785 636 0
1 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0 0 0 0
5 0 0 0 0 0 0 0 0 0 0
----- Detail FrameStore STATE -----------------------------------------------------------
ID FmNewPic GetFromFm Discard UsrSnd KerSnd KerRls MeetEnd FrmInVdec CurPicPts RedDiff MaxRedDiff DecDiff MaxDecDiff
0 182 182 0 0 182 177 182 1231 6033273 97 7688 12302279 12302279
1 0 0 0 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0 0 0 0 0 0 0
5 0 0 0 0 0 0 0 0 0 0 0 0 0
ID FreeNode VfmwNode VgsNode VgsWorkingNode BusyNode UserNode RefNum IsAvalible VbCnt MaxVbCnt GetPicVbFail GetMvpVbFail NoDisplay
0 35 0 0 0 0 5 2 0 5 5 0 0 0
1 40 0 0 0 0 0 0 0 0 5 0 0 0
2 40 0 0 0 0 0 0 0 0 5 0 0 0
3 40 0 0 0 0 0 0 0 0 5 0 0 0
4 40 0 0 0 0 0 0 0 0 5 0 0 0
5 40 0 0 0 0 0 0 0 0 5 0 0 0
----- Detail UserData STATE -----------------------------------------------------------
ID MpiGet MpiGetLen MpiRls MpiRlsLen Discard DiscardLen GetFromFm GetFromFmLen UsrFLen UsrLen
0 0 0 0 0 0 0 0 0 4064 0
1 0 0 0 0 0 0 0 0 4064 0
2 0 0 0 0 0 0 0 0 4064 0
3 0 0 0 0 0 0 0 0 4064 0
4 0 0 0 0 0 0 0 0 4064 0
5 0 0 0 0 0 0 0 0 4064 0
if(pstVdecThreadParam->enType == PT_MJPEG)
{
s32UsedBytes = s32UsedBytes +s32ReadLen;
}
else
{
s32UsedBytes = s32UsedBytes +s32ReadLen + start;
}
u64pts += pstVdecThreadParam->u64PtsIncrease;
}
usleep(1000);
}
pstVdecThreadParam->u64PtsIncrease改为对应的帧率数值后,实际运行后的帧率不对,如改为33333,应该帧率是30,但是运行后是13。为什么没起作用呢,是那里没设置?
----CHN ATTR & PARAMS-------------------------------------------------------
ID TYPE Prior MaxW MaxH Width Height StrmInputMode VideoFmt Compress STATE
0 H265 5 1280 720 1280 720 FRAME/ BLOCK TILE64 Y START
1 H265 5 1280 720 0 0 FRAME/NOBLOCK TILE64 Y START
2 H265 5 1280 720 0 0 FRAME/NOBLOCK TILE64 Y START
3 H265 5 1280 720 0 0 FRAME/NOBLOCK TILE64 Y START
4 H265 5 1280 720 0 0 FRAME/NOBLOCK TILE64 Y START
5 H265 5 1280 720 0 0 FRAME/NOBLOCK TILE64 Y START
ID VfmwID RefNum MvpEnable DispNum BufSize MaxSlice MaxSPS MaxPPS MaxVPS DisplayMode
0 6 2 Yes 2 2764800 100 2 55 10 PlayBack
1 0 2 Yes 2 2764800 100 2 55 10 PlayBack
2 1 2 Yes 2 2764800 100 2 55 10 PlayBack
3 2 2 Yes 2 2764800 100 2 55 10 PlayBack
4 3 2 Yes 2 2764800 100 2 55 10 PlayBack
5 4 2 Yes 2 2764800 100 2 55 10 PlayBack
ID ErrThr StrmThr DecMode OutMode SetUserPic Rotate PicPoolId PmvPoolId PriVbCnt
0 30 0 IP Dec N 0 -1 -1 -1
1 30 0 IP Dec N 0 -1 -1 -1
2 30 0 IP Dec N 0 -1 -1 -1
3 30 0 IP Dec N 0 -1 -1 -1
4 30 0 IP Dec N 0 -1 -1 -1
5 30 0 IP Dec N 0 -1 -1 -1
-----CHN STATE-----------------------------------------------------------------
ID PrtclErr StrmUnSP StrmError RefNumErr PicSizeErr fmterror PicBufSizeErr StrmNotRls Notify
0 0 0 0 0 0 0 0 0 2244
1 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0 0 0
5 0 0 0 0 0 0 0 0 0
ID fps TimerCnt BufFLen DataLen UsrFLen UsrLen ptsBufF ptsBufU StreamEnd
0 13 1440 2508803 0 4064 0 39 0 0
1 0 1440 3227616 0 4064 0 39 0 0
2 0 1439 3227616 0 4064 0 39 0 0
3 0 1439 3227616 0 4064 0 39 0 0
4 0 1439 3227616 0 4064 0 39 0 0
5 0 1438 3227616 0 4064 0 39 0 0
----- Detail Stream STATE -----------------------------------------------------------
ID MpiSndNum MpiSndLen VdecNum VdecLen FmGetNum FmGetLen FmRlsNum FmRlsLen FmLstGet FmRlsFail
0 1413 1351990 1413 22608 1413 1374598 625 655785 636 0
1 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0 0 0 0
5 0 0 0 0 0 0 0 0 0 0
----- Detail FrameStore STATE -----------------------------------------------------------
ID FmNewPic GetFromFm Discard UsrSnd KerSnd KerRls MeetEnd FrmInVdec CurPicPts RedDiff MaxRedDiff DecDiff MaxDecDiff
0 182 182 0 0 182 177 182 1231 6033273 97 7688 12302279 12302279
1 0 0 0 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0 0 0 0 0 0 0
5 0 0 0 0 0 0 0 0 0 0 0 0 0
ID FreeNode VfmwNode VgsNode VgsWorkingNode BusyNode UserNode RefNum IsAvalible VbCnt MaxVbCnt GetPicVbFail GetMvpVbFail NoDisplay
0 35 0 0 0 0 5 2 0 5 5 0 0 0
1 40 0 0 0 0 0 0 0 0 5 0 0 0
2 40 0 0 0 0 0 0 0 0 5 0 0 0
3 40 0 0 0 0 0 0 0 0 5 0 0 0
4 40 0 0 0 0 0 0 0 0 5 0 0 0
5 40 0 0 0 0 0 0 0 0 5 0 0 0
----- Detail UserData STATE -----------------------------------------------------------
ID MpiGet MpiGetLen MpiRls MpiRlsLen Discard DiscardLen GetFromFm GetFromFmLen UsrFLen UsrLen
0 0 0 0 0 0 0 0 0 4064 0
1 0 0 0 0 0 0 0 0 4064 0
2 0 0 0 0 0 0 0 0 4064 0
3 0 0 0 0 0 0 0 0 4064 0
4 0 0 0 0 0 0 0 0 4064 0
5 0 0 0 0 0 0 0 0 4064 0
我来回答
回答7个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2016-06-24 17:32:36
-
182013-12-16 15:44:47
-
2014-11-21 14:44:08
-
2022-07-19 09:52:28
-
52018-06-19 11:28:40
-
2017-03-16 19:11:42
-
2018-11-15 09:02:04
-
2017-10-25 14:44:41
-
2017-01-10 14:08:33
-
2020-10-29 11:20:08
-
2018-10-08 17:23:08
-
2015-04-02 17:59:23
-
2019-03-20 17:33:21
-
2014-04-14 21:08:01
-
2019-01-18 19:10:29
-
2016-11-08 13:43:18
-
2017-06-19 14:38:34
-
2019-09-20 16:32:04
-
2017-10-11 14:19:41
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
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
-
5有偿求HI3516DV500 + OV5647驱动
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认