Home > Software engineering >  TCP receive video fuzzy, how to change
TCP receive video fuzzy, how to change

Time:09-22


Linux send camera image
The android receive image data, display interface

CodePudding user response:

Baidu search relevant keywords,

CodePudding user response:

How to teach, I am searching for quite a long time didn't see this information

CodePudding user response:

A post said receiving FOPEN images, and then accept complete, not timely FCLOSE, then began to read the picture and display images, the result is always in the bottom of the image display distortion,
Accept the picture, in a timely manner after the FCLOSE, pictures will be updated to complete picture, I close the file on the android is the same as the input stream

CodePudding user response:

Determining the problem first, look at the problem is receiving or play
Received data written to the file, and check whether is the same as sent?
Play the local video streaming is normal?

CodePudding user response:

reference 4 floor zgl7903 response:
problem determination point first, look at problem is receiving or play
Received data written to the file, and check whether is the same as sent?
Play the local video streaming is normal?

I am send image frame by frame, receives the detected data is consistent with the actual length, local write data images show no problem

CodePudding user response:

I use @ @ + file length + data + # # format, judge file same length and # # to receive success, from the point of accepting, no packet loss, but there are still part of the image distortion

reference 4 floor zgl7903 response:
problem determination point first, look at problem is receiving or play
Received data written to the file, and check whether is the same as sent?
Play the local video streaming is normal?

CodePudding user response:

1. Check the data integrity
2. Review after receiving the data parsing and present problems

CodePudding user response:

From the point of accept section, data length is consistent, there was no confusion of information should be complete,
Information right after I use the most stupid data first deposited in the image file, and then read the image file is displayed in the control on

refer to 7th floor jason_wentzel response:
1. Check the data integrity
2. Review after receiving the data parsing and the problem of present

CodePudding user response:

Is it because the tree blackberry and android phone is not the same as the JPG file encoding?

refer to 7th floor jason_wentzel response:
1. Check the data integrity
2. Review after receiving the data parsing and the problem of present

CodePudding user response:

Looks belongs to the decoding problem, there is no connection with TCP, TCP will only be slightly affected transmission speed

CodePudding user response:

1) the sending data, and the data received, stored, and then compare, whether,
2) then the file, it receives with decoder, whether normal,
3) from the image point of view, should be a frame has a problem,

CodePudding user response:

This should not problem of TCP, the image decoding seems is not correct

CodePudding user response:

Resolved caton may arise due to the TCP transport, caton followed by the transmission of data may order next time, using every 1024 byte, error retransmission, otherwise continue to transmit

CodePudding user response:

But I want to ask next transmission speed a bit slow, how to read how mat in opencv image data into a bitmap image data, is the image data read from the mat, use TCP transport, converted to bitmap after receiving

CodePudding user response:

The more involved,
: 1) image data read from the image of the chip hardware, generally there is a strict reading,, especially high pixel image (the main factors of image and marseille)
2) : the integrity of the communication data:
Include A: package sequence; B: fault tolerance.
  • Related