Hi all,
We are working on DM368IPNC for an IP camera
We are trying to stream dual streams (H.264 + MJPEG) and we are struck with an Alignment Trap in av_server.out.
The arguments for the exe are ./av_server.out DM368 NTSC APPRO2A AEWB GE_4MP H264 1500000 VBR AUTO MJPEG 75 MENUOFF.
The problem seems to occur when the width of H.264 stream is more than 2048. The width is not a concern if we are configuring for H264 alone , but when configured to stream both H264 and MJPEG we are facing the problem when the H264 stream width is more than 2048. We already upgraded to 256M memory and I don’t think we are having any memory issues for this problem.
I got the Backtrace from GDB after the crash and copying that here.
Program received signal SIGBUS, Bus error.
[Switching to Thread 762.820]
0x000ad964 in ALG_activate ()
(gdb) bt
#0 0x000ad964 in ALG_activate ()
#1 0x000ad164 in Algorithm_activate ()
#2 0x000ab138 in VISA_enter ()
#3 0x000a6c7c in IMGENC1_process ()
#4 0x000694f0 in ALG_jpgEncRun (hndl=0x4c9ac8, prm=0x4557b470, runStatus=0x4557b4b4) at alg_jpgEnc.c:174
#5 0x00061cbc in ALG_vidEncRun (hndl=0x4c9888, prm=0x4557bc8c, runStatus=0x4557bc7c) at alg_vidEnc.c:702
#6 0x00036af4 in VIDEO_encodeTskRun (streamId=1) at videoEncodeThr.c:280
#7 0x00036fec in VIDEO_encodeTskMain (pTsk=0x3db330, pMsg=0x4f52e8, curState=0) at videoEncodeThr.c:385
#8 0x000975f4 in OSA_tskThrMain (pPrm=0x3db330) at osa_tsk.c:17
#9 0x4002a8f8 in ?? ()
Cannot access memory at address 0x1
#10 0x4002a8f8 in ?? ()
Cannot access memory at address 0x1
The trap message on the console is
Alignment trap: av_server.out (814) PC=0x000ad964 Instr=0xe5933004 Address=0x95949497 FSR 0x001
From the backtrace it looks like the problem is with JPEGEncRun, but this dissapears if I reduce the size of H264 from 2056x2056 to 2048x2056 and I could stream out both the stream
The MJpeg dimesnions are 528x480.
Is there any restriction at the codec level we should be aware of. Would apprectiate any thoughts.
Regards,
Vamsi