Hi,
I'm trying to decode MJPEG stream from IP camera but I'm getting VPU errors. I have enable the VPU wrapper debugging and I get this message:
The Jpeg Image must be another profile
What does this mean?
It is clear that vpu_DecStartOneFrame() is returning RETCODE_JPEG_BIT_EMPTY but I'm not sure why!
Here is the full log:
Media type image/jpeg, width=(int)640, height=(int)480 found, probability 100%
calling vpu_DecOpen() : filePlayEnable: 0 , format: 7
[INFO] bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0
calling vpu_DecGetBitstreamBuffer()
calling vpu_DecGetBitstreamBuffer()
calling vpu_DecGetBitstreamBuffer()
Wr: 0x16000000, Rd: 0x16000000, space: 3145727
calling vpu_DecUpdateBitstreamBuffer(): 41121
calling vpu_DecSetEscSeqInit(): 1
calling vpu_DecGetInitialInfo()
[INFO] The Jpeg Image must be another profile
calling vpu_DecSetEscSeqInit(): 0, interlace: 0 , errcode: 0x0
VpuSeqInit:vpu init OK: [width x heigh]=[640 x 480]
hwbuf allocator zone(462848) created
input register frame 0: (phy) Y:0x19F80000, U:0x19FCB000, V:0x19FDDC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
input register frame 0: (virt) Y:0x3752B000, U:0x37576000, V:0x37588C00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
vpu register frame 0: (phy) Y:0x19F80000, U:0x19FCB000, V:0x19FDDC00
register mv 0: (phy) 0x37C52D00, (virt) 0x2B94EEFC
input register frame 1: (phy) Y:0x19780000, U:0x197CB000, V:0x197DDC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
input register frame 1: (virt) Y:0x3759C000, U:0x375E7000, V:0x375F9C00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
vpu register frame 1: (phy) Y:0x19780000, U:0x197CB000, V:0x197DDC00
register mv 1: (phy) 0x37C52D00, (virt) 0x2B94EEFC
input register frame 2: (phy) Y:0x18580000, U:0x185CB000, V:0x185DDC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
input register frame 2: (virt) Y:0x3760D000, U:0x37658000, V:0x3766AC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
vpu register frame 2: (phy) Y:0x18580000, U:0x185CB000, V:0x185DDC00
register mv 2: (phy) 0x37C52D00, (virt) 0x2B94EEFC
input register frame 3: (phy) Y:0x16700000, U:0x1674B000, V:0x1675DC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
input register frame 3: (virt) Y:0x3767E000, U:0x376C9000, V:0x376DBC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
vpu register frame 3: (phy) Y:0x16700000, U:0x1674B000, V:0x1675DC00
register mv 3: (phy) 0x37C52D00, (virt) 0x2B94EEFC
input register frame 4: (phy) Y:0x16600000, U:0x1664B000, V:0x1665DC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
input register frame 4: (virt) Y:0x376EF000, U:0x3773A000, V:0x3774CC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
vpu register frame 4: (phy) Y:0x16600000, U:0x1664B000, V:0x1665DC00
register mv 4: (phy) 0x37C52D00, (virt) 0x2B94EEFC
input register frame 5: (phy) Y:0x16680000, U:0x166CB000, V:0x166DDC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
input register frame 5: (virt) Y:0x37760000, U:0x377AB000, V:0x377BDC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
vpu register frame 5: (phy) Y:0x16680000, U:0x166CB000, V:0x166DDC00
register mv 5: (phy) 0x37C52D00, (virt) 0x2B94EEFC
input register frame 6: (phy) Y:0x16500000, U:0x1654B000, V:0x1655DC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
input register frame 6: (virt) Y:0x377D1000, U:0x3781C000, V:0x3782EC00 , Y_TileBot: 0x0, Cb_TileBot: 0x0
vpu register frame 6: (phy) Y:0x16500000, U:0x1654B000, V:0x1655DC00
register mv 6: (phy) 0x37C52D00, (virt) 0x2B94EEFC
calling vpu_DecRegisterFrameBuffer()
vpu_DecGiveCommand: SET_ROTATION_ANGLE: 0
vpu_DecGiveCommand: SET_MIRROR_DIRECTION: 0
vpu_DecGiveCommand: SET_ROTATOR_STRIDE: 640
vpu_DecGiveCommand: SET_ROTATOR_OUTPUT: 0
calling vpu_DecStartOneFrame(): 41121, skipmode: 0
[INFO] The Jpeg Image must be another profile
MJPG: BIT EMPTY
calling vpu_DecGetBitstreamBuffer()
Wr: 0x1600A0A1, Rd: 0x16000000, space: 3104606
vdecode.c(924): App Source Queue is full for decoder 0
calling vpu_DecUpdateBitstreamBuffer(): 41662
vpu_DecGiveCommand: SET_ROTATOR_OUTPUT: 0
calling vpu_DecStartOneFrame(): 41662, skipmode: 0
[INFO] The Jpeg Image must be another profile
MJPG: BIT EMPTY
Solved! Go to Solution.
Hi Vlandan,
The video container is MKV, from our release document, mkv doesn't support MJPEG, you should find *.avi or *.mp4 mjpeg file.
Jack
Hi Vlandan,
The video container is MKV, from our release document, mkv doesn't support MJPEG, you should find *.avi or *.mp4 mjpeg file.
Jack