A dynamic
code rate adjustment
data transmission method based on
HDMI comprises the following steps: initializing a sending end MJPEG video
encoder and a PCM audio
encoder, and requesting to allocate an
IP address; monitoring a
multicast message sent by a receiving end, obtaining a paired receiving end and storing an
IP address of the paired receiving end; starting an MJPEG video
encoder and a PCM audio encoder, and setting a
video encoding code rate, a
frame rate, an audio encoding format and a
bit rate; an
HDMI input source
signal is detected, if the
HDMI input
signal is detected, MJPEG and PCM
data buffer memories are allocated, a video
code rate code table is initialized and adjusted, and PCM coding and network sending
processing and MJPEG coding and network sending
processing are started; and circularly monitoring the
multicast message of the receiving end, updating the
IP address of the receiving end if the serial number in the received message is the same as the serial number in the sending end, and then continuously monitoring. Through congestion control in the
data transmission process, the HDMI
signal long-distance
transmission quality and stability can be effectively improved, and the problem that long-distance transmission wiring is difficult is solved.