4044
- 收藏
- 点赞
- 分享
- 举报
svc_t h264 encoding profile
Hello!
I am using hi3519v101 and 030 last SDK.
How to use svc_t h.264 encoding profile. When I setup it like this:
[code]
stVencChnAttr.stVeAttr.enType = PT_H264;
stH264Attr.u32MaxPicWidth = 1920;//4000;
stH264Attr.u32MaxPicHeight = 1080;//3000;
stH264Attr.u32PicWidth = 1920;//3840;//4000;/*the picture width*/
stH264Attr.u32PicHeight = 1080;//2160;//3000;/*the picture height*/
stH264Attr.u32BufSize = 1920*1080*2;//4000 * 3000 * 2;/*stream buffer size*/
stH264Attr.u32Profile = 3;/*0: baseline; 1:MP; 2:HP; 3:svc_t */
stH264Attr.bByFrame = HI_TRUE;//HI_FALSE;//HI_TRUE;//HI_TRUE;/*get stream mode is slice mode or frame mode?*/
//stH264Attr.u32BFrameNum = 0;/* 0: not support B frame; >=1: number of B frames */
//stH264Attr.u32RefNum = 1;/* 0: default; number of refrence frame*/
memcpy(&stVencChnAttr.stVeAttr.stAttrH264e, &stH264Attr, sizeof(VENC_ATTR_H264_S));
stVencChnAttr.stRcAttr.enRcMode = VENC_RC_MODE_H264CBR;
stH264Cbr.u32Gop = FPS*2;//30*3;
stH264Cbr.u32StatTime = 1;
stH264Cbr.u32SrcFrmRate = FPS;//30;// input (vi) frame rate
stH264Cbr.fr32DstFrmRate = FPS;//30;// target frame rate
stH264Cbr.u32BitRate = 1024*1;//1024*1;//1024*1;//30;
stH264Cbr.u32FluctuateLevel = 1; // average bit rate
memcpy(&stVencChnAttr.stRcAttr.stAttrH264Cbr, &stH264Cbr, sizeof(VENC_ATTR_H264_CBR_S));
[/code]
Venc channel can be created only when GOP mode is NORMALP
[code]
stVencChnAttr.stGopAttr.enGopMode = VENC_GOPMODE_NORMALP;
stVencChnAttr.stGopAttr.stNormalP.s32IPQpDelta = 2;[/code]
according /proc/umap/venc no frames are processed:
[code]# cat /proc/umap/venc
[VENC] Version: [Hi3519V101_MPP_V1.0.3.0 B060 Release], Build Time[May 13 2017, 16:51:55]
-----MODULE PARAM--------------------------------------------------------------
VencBufferCache FrameBufRecycle
0 0
-----VENC CHN ATTR 1-----------------------------------------------------------
ID Width Height Type ByFrame Sequence LeftBytes LeftFrm CurPacks GopMode Prio
0 3840 2160 96 Y 1688 0 0 1 NormalP 0
1 1920 1080 96 Y 1688 0 0 1 NormalP 0
2 1920 1080 96 Y 0 0 0 0 NormalP 0
3 3840 2160 26 Y 68 0 0 2 NormalP 0
-----VENC CHN ATTR 2-----------------------------------------------------------
VeStr SrcFr TarFr Timeref PixFmt PicAddr
Y -1 -1 3376 YUV420 0x90e70000
Y -1 -1 3376 YUV420 0x96e10000
N -1 -1 1 NA 0x 0
Y -1 -1 3352 YUV420 0x90e70000
-----VENC CHN RECEIVE STAT-----------------------------------------------------
ID Start StartEx RecvLeft EncLeft
0 1 0 0 0
1 1 0 0 0
2 1 0 0 0
3 1 0 0 0
-----VENC VPSS QUERY-----------------------------------------------------------
ID Query QueryOk QueryFR Invld Full VbFail QueryFail InfoErr Stop
0 0 0 0 0 0 0 0 0 0
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
-----VENC SEND1----------------------------------------------------------------
ID VpssSnd VInfErr OthrSnd OInfErr Send Stop Full CropErr DrectSnd SizeErr
0 1688 0 0 0 1688 0 0 0 1688 0
1 1688 0 0 0 1688 0 0 0 1688 0
2 0 0 0 0 0 0 0 0 0 0
3 68 0 0 0 68 0 0 0 68 0
-----VENC SEND2----------------------------------------------------------------
ID SendVgs StartOk StartFail IntOk IntFail SrcAdd SrcSub DestAdd DestSub
0 0 0 0 0 0 0 0 0 0
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
-----VENC PIC QUEUE STATE------------------------------------------------------
ID Free Busy Vgs
0 6 0 0
1 6 0 0
2 6 0 0
3 6 0 0
-----VENC CHNL INFO------------------------------------------------------------
ID Inq InqOk Start StartOk Config VencInt ChaResLost OverLoad Skip
0 5809 1704 1704 1704 1704 1704 0 0 0
1 5633 1705 1705 1705 1705 1705 0 0 0
2 6562 0 0 0 0 0 0 0 0
3 6775 68 68 68 68 68 0 0 0
-----VENC CROP INFO------------------------------------------------------------
ID CropEn StartX StartY Width Height
0 N 0 0 0 0
1 N 0 0 0 0
2 N 0 0 0 0
3 N 0 0 0 0
-----ROI INFO------------------------------------------------------------------
ID Index bRoiEn bAbsQp Qp Width Height StartX StartY
-----VENC STREAM STATE---------------------------------------------------------
ID FreeCnt BusyCnt UserCnt UserGet UserRls GetTimes Interval FrameRate
0 1 0 0 1790 1790 1688 39995 25
1 1 0 0 1790 1790 1688 39990 25
2 0 0 0 0 0 0 0 0
3 1 0 0 136 136 68 999997 1
[/code]
I am using hi3519v101 and 030 last SDK.
How to use svc_t h.264 encoding profile. When I setup it like this:
[code]
stVencChnAttr.stVeAttr.enType = PT_H264;
stH264Attr.u32MaxPicWidth = 1920;//4000;
stH264Attr.u32MaxPicHeight = 1080;//3000;
stH264Attr.u32PicWidth = 1920;//3840;//4000;/*the picture width*/
stH264Attr.u32PicHeight = 1080;//2160;//3000;/*the picture height*/
stH264Attr.u32BufSize = 1920*1080*2;//4000 * 3000 * 2;/*stream buffer size*/
stH264Attr.u32Profile = 3;/*0: baseline; 1:MP; 2:HP; 3:svc_t */
stH264Attr.bByFrame = HI_TRUE;//HI_FALSE;//HI_TRUE;//HI_TRUE;/*get stream mode is slice mode or frame mode?*/
//stH264Attr.u32BFrameNum = 0;/* 0: not support B frame; >=1: number of B frames */
//stH264Attr.u32RefNum = 1;/* 0: default; number of refrence frame*/
memcpy(&stVencChnAttr.stVeAttr.stAttrH264e, &stH264Attr, sizeof(VENC_ATTR_H264_S));
stVencChnAttr.stRcAttr.enRcMode = VENC_RC_MODE_H264CBR;
stH264Cbr.u32Gop = FPS*2;//30*3;
stH264Cbr.u32StatTime = 1;
stH264Cbr.u32SrcFrmRate = FPS;//30;// input (vi) frame rate
stH264Cbr.fr32DstFrmRate = FPS;//30;// target frame rate
stH264Cbr.u32BitRate = 1024*1;//1024*1;//1024*1;//30;
stH264Cbr.u32FluctuateLevel = 1; // average bit rate
memcpy(&stVencChnAttr.stRcAttr.stAttrH264Cbr, &stH264Cbr, sizeof(VENC_ATTR_H264_CBR_S));
[/code]
Venc channel can be created only when GOP mode is NORMALP
[code]
stVencChnAttr.stGopAttr.enGopMode = VENC_GOPMODE_NORMALP;
stVencChnAttr.stGopAttr.stNormalP.s32IPQpDelta = 2;[/code]
according /proc/umap/venc no frames are processed:
[code]# cat /proc/umap/venc
[VENC] Version: [Hi3519V101_MPP_V1.0.3.0 B060 Release], Build Time[May 13 2017, 16:51:55]
-----MODULE PARAM--------------------------------------------------------------
VencBufferCache FrameBufRecycle
0 0
-----VENC CHN ATTR 1-----------------------------------------------------------
ID Width Height Type ByFrame Sequence LeftBytes LeftFrm CurPacks GopMode Prio
0 3840 2160 96 Y 1688 0 0 1 NormalP 0
1 1920 1080 96 Y 1688 0 0 1 NormalP 0
2 1920 1080 96 Y 0 0 0 0 NormalP 0
3 3840 2160 26 Y 68 0 0 2 NormalP 0
-----VENC CHN ATTR 2-----------------------------------------------------------
VeStr SrcFr TarFr Timeref PixFmt PicAddr
Y -1 -1 3376 YUV420 0x90e70000
Y -1 -1 3376 YUV420 0x96e10000
N -1 -1 1 NA 0x 0
Y -1 -1 3352 YUV420 0x90e70000
-----VENC CHN RECEIVE STAT-----------------------------------------------------
ID Start StartEx RecvLeft EncLeft
0 1 0 0 0
1 1 0 0 0
2 1 0 0 0
3 1 0 0 0
-----VENC VPSS QUERY-----------------------------------------------------------
ID Query QueryOk QueryFR Invld Full VbFail QueryFail InfoErr Stop
0 0 0 0 0 0 0 0 0 0
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
-----VENC SEND1----------------------------------------------------------------
ID VpssSnd VInfErr OthrSnd OInfErr Send Stop Full CropErr DrectSnd SizeErr
0 1688 0 0 0 1688 0 0 0 1688 0
1 1688 0 0 0 1688 0 0 0 1688 0
2 0 0 0 0 0 0 0 0 0 0
3 68 0 0 0 68 0 0 0 68 0
-----VENC SEND2----------------------------------------------------------------
ID SendVgs StartOk StartFail IntOk IntFail SrcAdd SrcSub DestAdd DestSub
0 0 0 0 0 0 0 0 0 0
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
-----VENC PIC QUEUE STATE------------------------------------------------------
ID Free Busy Vgs
0 6 0 0
1 6 0 0
2 6 0 0
3 6 0 0
-----VENC CHNL INFO------------------------------------------------------------
ID Inq InqOk Start StartOk Config VencInt ChaResLost OverLoad Skip
0 5809 1704 1704 1704 1704 1704 0 0 0
1 5633 1705 1705 1705 1705 1705 0 0 0
2 6562 0 0 0 0 0 0 0 0
3 6775 68 68 68 68 68 0 0 0
-----VENC CROP INFO------------------------------------------------------------
ID CropEn StartX StartY Width Height
0 N 0 0 0 0
1 N 0 0 0 0
2 N 0 0 0 0
3 N 0 0 0 0
-----ROI INFO------------------------------------------------------------------
ID Index bRoiEn bAbsQp Qp Width Height StartX StartY
-----VENC STREAM STATE---------------------------------------------------------
ID FreeCnt BusyCnt UserCnt UserGet UserRls GetTimes Interval FrameRate
0 1 0 0 1790 1790 1688 39995 25
1 1 0 0 1790 1790 1688 39990 25
2 0 0 0 0 0 0 0 0
3 1 0 0 136 136 68 999997 1
[/code]
我来回答
回答1个
时间排序
认可量排序
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2016-11-23 16:30:41
-
2017-06-28 11:24:25
-
2018-04-24 09:58:27
-
12024-03-15 15:47:47
-
2020-03-24 11:56:33
-
2020-10-06 12:17:39
-
392015-12-18 15:47:06
-
42014-09-30 11:20:02
-
2014-10-25 08:36:59
-
2017-05-24 10:58:20
-
2016-03-15 20:35:37
-
2014-06-22 21:48:04
-
2016-08-18 17:41:33
-
2017-09-06 21:08:11
-
2021-01-11 15:38:38
-
2020-10-06 12:15:42
-
142020-05-06 11:10:40
-
2020-04-08 18:19:13
-
2016-09-20 15:47:30
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
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板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认