sample_venc 720p改1080p出错
2 E币
成为会员,免费下载资料
文件大小:2.83 KB
上传者:kibin
时间:2016-07-20 16:06:21
下载量:11
本帖最后由 kibin 于 2016-7-20 16:23 编辑
因为SENSOR为1080P的,MPP2下的sample_venc默认是720p,想改成1080p。MPP2版本1.0.8.1,程序可见附件。
将SAMPLE_VENC_720P_CLASSIC中
PIC_SIZE_E enSize[1] = {PIC_HD1080};
enSize[0] = PIC_HD1080;
做了这两个改动,运行时报time out 错误。请问哪里还需要改动吗?谢谢。
[SAMPLE_COMM_VENC_GetVencStreamProc]-920: get venc stream time out, exit thread
附上proc信息
# cat /proc/media-mem
+---ZONE: PHYS(0x82000000, 0x87FFFFFF), GFP=0, nBYTES=98304KB, NAME="anonymous"
|-MMB: phys(0x82000000, 0x8201FFFF), kvirt=0x (null), flags=0x00000000, length=128KB, name="FwReg"
|-MMB: phys(0x82020000, 0x820DFFFF), kvirt=0xc2b00000, flags=0x00000003, length=768KB, name="TDE_MEMPOOL_MMB"
|-MMB: phys(0x820E0000, 0x820E0FFF), kvirt=0x (null), flags=0x00000000, length=4KB, name="TDE_COEF_MMB0"
|-MMB: phys(0x820E1000, 0x82275FFF), kvirt=0xc2e00000, flags=0x00000001, length=1620KB, name="hifb_layer0"
|-MMB: phys(0x82276000, 0x8405CFFF), kvirt=0x (null), flags=0x00000000, length=30620KB, name="vb"
|-MMB: phys(0x8405D000, 0x84061FFF), kvirt=0x (null), flags=0x00000000, length=20KB, name="vb"
|-MMB: phys(0x84062000, 0x84064FFF), kvirt=0x (null), flags=0x00000000, length=12KB, name="Chnl"
|-MMB: phys(0x84065000, 0x84067FFF), kvirt=0x (null), flags=0x00000000, length=12KB, name="sclcoeffset"
|-MMB: phys(0x84068000, 0x84069FFF), kvirt=0x (null), flags=0x00000000, length=8KB, name="Chnl"
|-MMB: phys(0x8406A000, 0x8406CFFF), kvirt=0x (null), flags=0x00000000, length=12KB, name="Chnl"
|-MMB: phys(0x8406D000, 0x84074FFF), kvirt=0x (null), flags=0x00000000, length=32KB, name="IVE_QUEUE"
|-MMB: phys(0x84075000, 0x8407CFFF), kvirt=0x (null), flags=0x00000000, length=32KB, name="IVE_QUEUE"
|-MMB: phys(0x8407D000, 0x8408CFFF), kvirt=0x (null), flags=0x00000000, length=64KB, name="VirtReg0"
|-MMB: phys(0x8408D000, 0x8408FFFF), kvirt=0x (null), flags=0x00000000, length=12KB, name="ISPStat"
|-MMB: phys(0x84090000, 0x8409FFFF), kvirt=0x (null), flags=0x00000000, length=64KB, name="ISPProc"
|-MMB: phys(0x840A0000, 0x840A0FFF), kvirt=0x (null), flags=0x00000000, length=4KB, name="VirtReg1"
|-MMB: phys(0x840A1000, 0x840A1FFF), kvirt=0x (null), flags=0x00000000, length=4KB, name="VirtReg2"
|-MMB: phys(0x840A2000, 0x8470FFFF), kvirt=0x (null), flags=0x00000000, length=6584KB, name="Ref&Mad buf"
|-MMB: phys(0x84710000, 0x84710FFF), kvirt=0x (null), flags=0x00000000, length=4KB, name="HistRd buf"
|-MMB: phys(0x84711000, 0x84733FFF), kvirt=0x (null), flags=0x00000000, length=140KB, name="model buf"
|-MMB: phys(0x84734000, 0x84B2BFFF), kvirt=0x (null), flags=0x00000000, length=4064KB, name="h264e0_Str"
|-MMB: phys(0x84B2C000, 0x84B2EFFF), kvirt=0x (null), flags=0x00000000, length=12KB, name="h264e0_Ctx"
|-MMB: phys(0x84B2F000, 0x85128FFF), kvirt=0x (null), flags=0x00000000, length=6120KB, name="vb"
---MMZ_USE_INFO:
total size=98304KB(96MB),used=50340KB(49MB + 164KB),remain=47964KB(46MB + 860KB),zone_number=1,block_number=23
# cat /proc/umap/vi
[VIU] Version: [Hi3518_MPP_V1.0.8.1 ], Build Time: [Mar 18 2014, 11:52:09]
-----MODULE PARAM--------------------------------------------------------------
detect_err_frame drop_err_frame stop_int_level max_cas_gap
0 0 0 28000
-----VI DEV ATTR---------------------------------------------------------------
Dev IntfM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2 AD3 Seq DPath DType DRev
0 DC 1Mux ffc00000 0 P -1 -1 -1 -1 YUYV ISP RGB N
-----VI HIGH DEV ATTR---------------------------------------------------------------
Dev InputM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2 AD3 Seq CombM CompM ClkM Fix FldP DPath DType DRev
-----VI PHYCHN ATTR------------------------------------------------------------
PhyChn CapX CapY CapW CapH DstW DstH CapSel Mirror Flip IntEn PixFom SrcRat DstRat
0 0 0 1280 720 1280 720 both N N Y sp420 25 25
-----VI PHYCHN STATUS 1----------------------------------------------------------
PhyChn Dev IntCnt VbFail LosInt TopLos BotLos BufCnt IntT SendT Field Stride
0 0 2 0 2 0 2 2 107 0 frm 1280
-----VI PHYCHN STATUS 2---------------------------------------------------------
PhyChn MaxIntT IntGapT MaxGapT OverCnt LIntCnt ThrCnt AutoDis CasAutD TmgErr ccErrN IntRat
0 138 33875 33875 0 0 1 0 0 0 2 29
-----VI OTHER ATTR------------------------------------------------------------
LDC Mode Ratio COffX COffY Enable
-- All 0 0 0 0
Flash Mode StartTime DuraTime InterVal CapIdx Enable FlashedNum
-- Once 0 0 0 0 0 0
CSC Type HueVal ContrVal LumaVal StatuVal
-- 709 50 50 50 50
-----VI EXTCHN ATTR------------------------------------------------------------
ExtChn BindChn DstW DstH PixFom SrcRat DstRat
-----VI CHN STATUS-------------------------------------------------------------
ViChn bEnUsrP FrmTime FrmRate SendCnt SwLost Rotate
0 N 0 0 0 0 NONE
-----VI CHN CALL DSU STATUS 1-------------------------------------------------
ViChn UsrBgnNOk UsrCancel UsrEndOk UsrCbOk CvrBgnNOk CvrCancel CvrEndOk CvrCbOk
-----VI CHN CALL DSU STATUS 2-------------------------------------------------
ViChn OsdBgnNOk OsdCancel OsdEndOk OsdCbOk ScaleNOk SclCancel SclEndOk SclCbOk
-----VI CHN CALL DSU STATUS 3-------------------------------------------------
ViChn RotateNOk RotCancel RotEndOk RotCbOk LDCNOk LDCCancel LDCEndOk LDCCbOk
# cat /proc/umap/vb
[VB] Version: [Hi3518_MPP_V1.0.8.1 ], Build Time[Mar 18 2014, 11:52:07]
-----VB PUB CONFIG-------------------------------------------------------------
Max Count of Pools: 256
-----COMMON POOL CONFIG--------------------------------------------------------
PoolId 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Size 3135488 2832 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Count 10 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0
----- anony--------------------------------------------------------------------
PoolId PhysAddr VirtAddr IsComm BlkSz BlkCnt Free MinFree
0 0x82276000 0xc3000000 1 3135488 10 8(8) 8
BLK VIU VOU DSU VENC VDEC VDA H264E JPEGE MPEGE H264D JPEGD MPEGD VPSS GRP MPI PCIV AI AENC RC
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sum 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
----- anony--------------------------------------------------------------------
PoolId PhysAddr VirtAddr IsComm BlkSz BlkCnt Free MinFree
1 0x8405d000 0xc2820000 1 2832 6 6(6) 6
----- anony--------------------------------------------------------------------
PoolId PhysAddr VirtAddr IsComm BlkSz BlkCnt Free MinFree
2 0x84b2f000 0xc5800000 0 3133440 2 0(0) 0
BLK VIU VOU DSU VENC VDEC VDA H264E JPEGE MPEGE H264D JPEGD MPEGD VPSS GRP MPI PCIV AI AENC RC
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
Sum 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0
因为SENSOR为1080P的,MPP2下的sample_venc默认是720p,想改成1080p。MPP2版本1.0.8.1,程序可见附件。
将SAMPLE_VENC_720P_CLASSIC中
PIC_SIZE_E enSize[1] = {PIC_HD1080};
enSize[0] = PIC_HD1080;
做了这两个改动,运行时报time out 错误。请问哪里还需要改动吗?谢谢。
[SAMPLE_COMM_VENC_GetVencStreamProc]-920: get venc stream time out, exit thread
附上proc信息
# cat /proc/media-mem
+---ZONE: PHYS(0x82000000, 0x87FFFFFF), GFP=0, nBYTES=98304KB, NAME="anonymous"
|-MMB: phys(0x82000000, 0x8201FFFF), kvirt=0x (null), flags=0x00000000, length=128KB, name="FwReg"
|-MMB: phys(0x82020000, 0x820DFFFF), kvirt=0xc2b00000, flags=0x00000003, length=768KB, name="TDE_MEMPOOL_MMB"
|-MMB: phys(0x820E0000, 0x820E0FFF), kvirt=0x (null), flags=0x00000000, length=4KB, name="TDE_COEF_MMB0"
|-MMB: phys(0x820E1000, 0x82275FFF), kvirt=0xc2e00000, flags=0x00000001, length=1620KB, name="hifb_layer0"
|-MMB: phys(0x82276000, 0x8405CFFF), kvirt=0x (null), flags=0x00000000, length=30620KB, name="vb"
|-MMB: phys(0x8405D000, 0x84061FFF), kvirt=0x (null), flags=0x00000000, length=20KB, name="vb"
|-MMB: phys(0x84062000, 0x84064FFF), kvirt=0x (null), flags=0x00000000, length=12KB, name="Chnl"
|-MMB: phys(0x84065000, 0x84067FFF), kvirt=0x (null), flags=0x00000000, length=12KB, name="sclcoeffset"
|-MMB: phys(0x84068000, 0x84069FFF), kvirt=0x (null), flags=0x00000000, length=8KB, name="Chnl"
|-MMB: phys(0x8406A000, 0x8406CFFF), kvirt=0x (null), flags=0x00000000, length=12KB, name="Chnl"
|-MMB: phys(0x8406D000, 0x84074FFF), kvirt=0x (null), flags=0x00000000, length=32KB, name="IVE_QUEUE"
|-MMB: phys(0x84075000, 0x8407CFFF), kvirt=0x (null), flags=0x00000000, length=32KB, name="IVE_QUEUE"
|-MMB: phys(0x8407D000, 0x8408CFFF), kvirt=0x (null), flags=0x00000000, length=64KB, name="VirtReg0"
|-MMB: phys(0x8408D000, 0x8408FFFF), kvirt=0x (null), flags=0x00000000, length=12KB, name="ISPStat"
|-MMB: phys(0x84090000, 0x8409FFFF), kvirt=0x (null), flags=0x00000000, length=64KB, name="ISPProc"
|-MMB: phys(0x840A0000, 0x840A0FFF), kvirt=0x (null), flags=0x00000000, length=4KB, name="VirtReg1"
|-MMB: phys(0x840A1000, 0x840A1FFF), kvirt=0x (null), flags=0x00000000, length=4KB, name="VirtReg2"
|-MMB: phys(0x840A2000, 0x8470FFFF), kvirt=0x (null), flags=0x00000000, length=6584KB, name="Ref&Mad buf"
|-MMB: phys(0x84710000, 0x84710FFF), kvirt=0x (null), flags=0x00000000, length=4KB, name="HistRd buf"
|-MMB: phys(0x84711000, 0x84733FFF), kvirt=0x (null), flags=0x00000000, length=140KB, name="model buf"
|-MMB: phys(0x84734000, 0x84B2BFFF), kvirt=0x (null), flags=0x00000000, length=4064KB, name="h264e0_Str"
|-MMB: phys(0x84B2C000, 0x84B2EFFF), kvirt=0x (null), flags=0x00000000, length=12KB, name="h264e0_Ctx"
|-MMB: phys(0x84B2F000, 0x85128FFF), kvirt=0x (null), flags=0x00000000, length=6120KB, name="vb"
---MMZ_USE_INFO:
total size=98304KB(96MB),used=50340KB(49MB + 164KB),remain=47964KB(46MB + 860KB),zone_number=1,block_number=23
# cat /proc/umap/vi
[VIU] Version: [Hi3518_MPP_V1.0.8.1 ], Build Time: [Mar 18 2014, 11:52:09]
-----MODULE PARAM--------------------------------------------------------------
detect_err_frame drop_err_frame stop_int_level max_cas_gap
0 0 0 28000
-----VI DEV ATTR---------------------------------------------------------------
Dev IntfM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2 AD3 Seq DPath DType DRev
0 DC 1Mux ffc00000 0 P -1 -1 -1 -1 YUYV ISP RGB N
-----VI HIGH DEV ATTR---------------------------------------------------------------
Dev InputM WkM ComMsk0 ComMsk1 ScanM AD0 AD1 AD2 AD3 Seq CombM CompM ClkM Fix FldP DPath DType DRev
-----VI PHYCHN ATTR------------------------------------------------------------
PhyChn CapX CapY CapW CapH DstW DstH CapSel Mirror Flip IntEn PixFom SrcRat DstRat
0 0 0 1280 720 1280 720 both N N Y sp420 25 25
-----VI PHYCHN STATUS 1----------------------------------------------------------
PhyChn Dev IntCnt VbFail LosInt TopLos BotLos BufCnt IntT SendT Field Stride
0 0 2 0 2 0 2 2 107 0 frm 1280
-----VI PHYCHN STATUS 2---------------------------------------------------------
PhyChn MaxIntT IntGapT MaxGapT OverCnt LIntCnt ThrCnt AutoDis CasAutD TmgErr ccErrN IntRat
0 138 33875 33875 0 0 1 0 0 0 2 29
-----VI OTHER ATTR------------------------------------------------------------
LDC Mode Ratio COffX COffY Enable
-- All 0 0 0 0
Flash Mode StartTime DuraTime InterVal CapIdx Enable FlashedNum
-- Once 0 0 0 0 0 0
CSC Type HueVal ContrVal LumaVal StatuVal
-- 709 50 50 50 50
-----VI EXTCHN ATTR------------------------------------------------------------
ExtChn BindChn DstW DstH PixFom SrcRat DstRat
-----VI CHN STATUS-------------------------------------------------------------
ViChn bEnUsrP FrmTime FrmRate SendCnt SwLost Rotate
0 N 0 0 0 0 NONE
-----VI CHN CALL DSU STATUS 1-------------------------------------------------
ViChn UsrBgnNOk UsrCancel UsrEndOk UsrCbOk CvrBgnNOk CvrCancel CvrEndOk CvrCbOk
-----VI CHN CALL DSU STATUS 2-------------------------------------------------
ViChn OsdBgnNOk OsdCancel OsdEndOk OsdCbOk ScaleNOk SclCancel SclEndOk SclCbOk
-----VI CHN CALL DSU STATUS 3-------------------------------------------------
ViChn RotateNOk RotCancel RotEndOk RotCbOk LDCNOk LDCCancel LDCEndOk LDCCbOk
# cat /proc/umap/vb
[VB] Version: [Hi3518_MPP_V1.0.8.1 ], Build Time[Mar 18 2014, 11:52:07]
-----VB PUB CONFIG-------------------------------------------------------------
Max Count of Pools: 256
-----COMMON POOL CONFIG--------------------------------------------------------
PoolId 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Size 3135488 2832 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Count 10 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0
----- anony--------------------------------------------------------------------
PoolId PhysAddr VirtAddr IsComm BlkSz BlkCnt Free MinFree
0 0x82276000 0xc3000000 1 3135488 10 8(8) 8
BLK VIU VOU DSU VENC VDEC VDA H264E JPEGE MPEGE H264D JPEGD MPEGD VPSS GRP MPI PCIV AI AENC RC
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sum 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
----- anony--------------------------------------------------------------------
PoolId PhysAddr VirtAddr IsComm BlkSz BlkCnt Free MinFree
1 0x8405d000 0xc2820000 1 2832 6 6(6) 6
----- anony--------------------------------------------------------------------
PoolId PhysAddr VirtAddr IsComm BlkSz BlkCnt Free MinFree
2 0x84b2f000 0xc5800000 0 3133440 2 0(0) 0
BLK VIU VOU DSU VENC VDEC VDA H264E JPEGE MPEGE H264D JPEGD MPEGD VPSS GRP MPI PCIV AI AENC RC
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
Sum 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0
展开》
折叠》