Various problems encountered in the Video Monitoring Project

Source: Internet
Author: User

1 tried to create an RTP packet which whowould exceed the specified maximum packet size

2. Error src/rtptimeutilities. h invaild suffix ui64 on integer constant when jrtplib is compiled with cmake on Windows

Ui64-> ull
3. Same as above. during compilation, int jrtplib: rtpcomoundpacketbuilder: addreportblock (uint32_t, uint8_t ,...):
/Src/rtcpcompoundpacketbuilder. cpp: 239 error: no matching function for call to 'operator new [] (unsigned int, jrtplib: rtpmemorymanager *, INT )'

Finally, the compilation is successful in Linux.

4 The pointer must be new before use;

5 arm6410: pixmap. Load ("test1.jpg"); // the execution time is incorrect.

6 glibc detected ***./facecheck: malloc (): Memory upload uption: 0x000b2ac8
Cause: the array is out of bounds or this is the case for me: Glibc detected ***./facecheck: malloc (): memory failed uption: 0x000b2ac8

7 opencv error: bad argument (unknown array type) in cvarrtomat, file/home/src/OpenCV-2.3.1/modules/CORE/src/matrix. cpp, line 646
Terminate called after throwing an instance of 'cv: exception'
What ():/home/src/OpenCV-2.3.1/modules/CORE/src/matrix. cpp: 646: Error: (-5) unknown array type in function cvarrtomat

Aborted

8 This function is not available when using the RTP poll thread feature

9. RTP cannot receive data because the firewall is disabled.

10 when the QT application is packaged in Linux X11, the following error occurs: Error while loading shared libraries:
Libjrtp. so.3.9.1: cannot open shared object file: no such file or directory
The reason is that the. So of the arm version is used as the so of the x86 version.

11. Obtain the local IP qsting MSG = hostinfo. addresses (). First (). tostring () // The result is 127. 0. 0. 1
Clientsocket-> peeraddress (). tostring ();

12 session. adddestination (ADDR), the client does not receive data. The specified address is not a multicast address.

Before 13, when session. Poll () is called, an error is reported during running: this function is not available when using the RTP poll thead feature, probably because multicast is not supported.

14. RTP cannot be multicast because the transmitparams port number (not multicast port number) of the RTP sender is occupied by the TCP server. Note that the multicast IP address is 224.0.0.0 ~ 239.255.255.255, 224.0.0.0 ~ 224.0.0.255 is the reserved address.

15 unable to join the specified multicast group...

16 adddestination ("10.10.10.229: 8800"); adddestination ("10.10.10.230: 8880"); // only 10.10.10.229 can receive data.

17 when a v4l2 image is collected, the actual size of a frame is stored in the bytesused Member of the v4l2_burrer structure. However, the qimage displays the following errors:
Failed upt JPEG data: premature end of Data Segment: Invalid Data
Invalid JPEG file structure: Two SOI markers: Two images start marking smybol of image;
Bytes upt JPEG data: 17 extraneous bytes before marker 0xd9: The End mark is followed by 17 additional bytes

> This is caused by qnetworkreplyimplprivate never getting
"_ Q_copyreadyread ()"
> Triggered again after assigning the iodevice. If there's more than 32 K
Of
> Data, the function "nextdownstreamblocksize ()" still returns 32 K. So
One wocould
> Please CT this function to be called again until the whole copy is
Completed,
> It's not.
>
> This makes the cache useless because it cocould only be used on small
Files,
> Which defeat its purpose.
Finally, memcpy is used to solve the problem. The deep reasons are unclear.

18: RTP session 'portbase must be a even number.

19 configure FFMPEG: C Compiler Test faild. Check config. log and find that mcpu = arm is bad. Change CPU = arm to CPU = armv6.

20 in panitevent, The qpixmap-> loadfromdata & qpixmap-> drawpixmap segment is incorrect. It is estimated that the memory overflows. This is also true for using qimage instead. It is well used before intrusion detection is added.

21. The output AVI file cannot be played.
Using UE, I found that the AVI file header was not written, and the file header was written in the avi_close_output_file function. Why do I need to write the file header before closing the file? Some parameters of the AVI file, such as the number of frames, should be confirmed only when the file is closed. Opencv uses createvideowriter (first write the file header) and the cvwriteframe method, and finally the output file header such as releasevideo is correct.

22. After running the program for a period of time, the program unexpectedly exits opencv error: bad argument (unknown array type) in cvarrtomat, file/home/src/OpenCV-2.3.1/modules/CORE/src/matrix. CPP, line 646
Terminate called after throwing an instance of 'cv: exception'
What ():/home/src/OpenCV-2.3.1/modules/CORE/src/matrix. cpp: 646: Error: (-5) unknown array type in function cvarrtomat
Aborted
It appears you need to create your output matrix. in your example, change the declaration of MC from cvmat to cvmat * and initialize it: cvmat * MC = cvcreatemat (2, 2, cv_32fc1); I think this will work. the compiler can't catch uninitialized array, since static
Type checking will pass

23 when compiling a PWM driver test program, arm-Linux-gcc-o xxx-c xxx is compiled in this way. this error occurs when the C program runs on the arm: syntax error: Word unexpected (expecting ")")-C indicates that the target file is generated instead of the executable file, and-O specifies the target file name.

24 when the ARM application transmits a struct to the kernel driver, it finds that the value of the structure member is incorrect. For example, a structure of PWM {unsgined long ID, unsgind long freq, unsigned long duty} is sent to the kernel space. The following two parameters are incorrect. Solution: it is passed as a pointer.

The reason for the 25-segment incorrect compiler version.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.