Hi,
My system configuration consists of the following:
DM6467 900 MHz, 256 MB DDR2 400 MHz
TVP5158 configured to send 4 D1 (line interleaved) to DM6467 + 4 mono audio inputs (8kHz)
tlv320dac23 configured to output 2 mono audio outputs (8 kHz)
Video DAC used to output NTSC/PAL video
I am using my own proprietary OS and drivers on the DSP. I have integrated into my system the Ittiam H.264 MP Encoder (GA release 1.00).
My system acquires the super-frames from TVP5158, de-interleaves them to individual frames, potentially scales the video to appropriate size (i.e. scale down to CIF if necessary), H.264 encodes the video frames and then sends them out over the PCI bus to an host processor. In addition, I am acquiring 4 channels of audio, encoding them to G.711 and sending them out over PCI bus. I am also receiving audio, decompressing to raw from G.711 and playing these out. Finally, my system is outputting digital video (from the 4 input cameras) to a video DAC to output analog video.
My issue is that I get occasional errors in my acquired frames which I have debugged with the occurrence of VP_ERRINT (VPIF error interrupt that I have enabled). Those errors result in some lines missing in some of my video frames (it seems they were dropped by VPIF). From the documentation (spruer9d), it says in 2.8.1 that such an error can either be due to:
- Internal buffer overflow
- Length of eav2sav or sav2eav is not the same as the configured value
- Bit error detected on 4th field of TRC
But there does not seem to be a way to know which of those 3 are causing my errors – is there any way to confirm this?
In addition, I have been trying to debug this assuming this is due to internal buffer overflow (most likely cause in my case, potential system capacity issue) and I have tried the following so far with no success:
- Adjust MSTPRI registers to set VPIF to highest priority in the system (0) and lowering priority of others
- Changed DMA_SIZE register (was 0x80, tried 0x20)
Is there anything else someone would suggest in debugging this issue and ensure that those VPIF errors do not occur?
Thanks,
Christian