CN104486688B - A kind of Vehicular video transmission method and device - Google Patents

A kind of Vehicular video transmission method and device Download PDF

Info

Publication number
CN104486688B
CN104486688B CN201410856209.8A CN201410856209A CN104486688B CN 104486688 B CN104486688 B CN 104486688B CN 201410856209 A CN201410856209 A CN 201410856209A CN 104486688 B CN104486688 B CN 104486688B
Authority
CN
China
Prior art keywords
video image
bit rate
video
encoder bit
real time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410856209.8A
Other languages
Chinese (zh)
Other versions
CN104486688A (en
Inventor
庄少华
陈文明
江常杯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN HUABAO ELECTRONIC TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN HUABAO ELECTRONIC TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN HUABAO ELECTRONIC TECHNOLOGY Co Ltd filed Critical SHENZHEN HUABAO ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN201410856209.8A priority Critical patent/CN104486688B/en
Publication of CN104486688A publication Critical patent/CN104486688A/en
Application granted granted Critical
Publication of CN104486688B publication Critical patent/CN104486688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention is suitable for Vehicular video technical field, and providing a kind of Vehicular video transmission method and device, the Vehicular video transmission method includes: to cache current video image in the case where unstable networks;According to the data volume that the video image caches in real time, the encoder bit rate of the video image is adjusted in real time;According to the encoder bit rate, the video image is encoded, generates video data packet;Transmit the video data packet.The present invention solves in the case where unstable networks, it cannot be guaranteed that the reliability of Vehicular video real-time data transmission, the problem of reducing the quality of Vehicular video, packet loss when reducing real-time video transmission can be maximized, obtain stable live video stream, to both ensure that the reliability of Vehicular video real-time data transmission, the quality of Vehicular video is also improved.

Description

A kind of Vehicular video transmission method and device
Technical field
The invention belongs to Vehicular video technical field more particularly to a kind of Vehicular video transmission methods and device.
Background technique
With popularizing for monitoring device, it is fitted with monitoring device on many vehicles, passes through monitoring device, records vehicle row Information during sailing generates Vehicular video.When traffic accident occurring or when traffic dispute, can by check Vehicular video come Judge responsible party, therefore Vehicular video is the vaild evidence for solving traffic accident or traffic dispute.
However, existing Vehicular video monitoring system, in the case where unstable networks, it cannot be guaranteed that Vehicular video data The reliability of real-time Transmission reduces the quality of Vehicular video.The reason is that in vehicle travel process, it can be by difference Base station, switch between different base stations, the unstable of network can be caused, bandwidth fluctuation, delay jitter and packet loss etc. occur Phenomenon, therefore cannot be guaranteed the reliability of Vehicular video real-time data transmission, therefore reduce the Vehicular video after real-time Transmission Quality.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of Vehicular video transmission method, it is intended to existing Vehicular video monitoring System, in the case where unstable networks, it cannot be guaranteed that the reliability of Vehicular video real-time data transmission, reduces Vehicular video Quality the problem of.
The embodiments of the present invention are implemented as follows, a kind of Vehicular video transmission method, comprising:
In the case where unstable networks, current video image is cached;
According to the data volume that the video image caches in real time, the encoder bit rate of the video image is adjusted in real time;
According to the encoder bit rate, the video image is encoded, generates video data packet;
Transmit the video data packet.
The another object of the embodiment of the present invention is to provide a kind of Vehicular video transmitting device, comprising:
Video image cache module, for caching current video image in the case where unstable networks;
Encoder bit rate adjusts module, and the data volume for being cached in real time according to the video image adjusts the view in real time The encoder bit rate of frequency image;
Video data packet generation module generates view for being encoded to the video image according to the encoder bit rate Frequency data packet;
Video data packet transmission module is used for transmission the video data packet.
In embodiments of the present invention, the data volume cached in real time according to video image adjusts the video image in real time Encoder bit rate;According to encoder bit rate, video image is encoded, generates video data packet;Transmitting video data packet.It avoids In the case where unstable networks, there is the reliability it cannot be guaranteed that Vehicular video real-time data transmission, reduce Vehicular video Quality the problem of, can maximize reduce real-time video transmission when packet loss, stable live video stream is obtained, to both protect The reliability for having demonstrate,proved Vehicular video real-time data transmission also improves the quality of Vehicular video.
Detailed description of the invention
Fig. 1 is the implementation flow chart of Vehicular video transmission method provided in an embodiment of the present invention;
Fig. 2 is the implementation process figure of Vehicular video transmission method step S102 provided in an embodiment of the present invention;
Fig. 3 is the implementation process figure of step S201 provided in an embodiment of the present invention;
Fig. 4 is the implementation process figure of step S202 provided in an embodiment of the present invention;
Fig. 5 is the structural block diagram of Vehicular video transmitting device provided in an embodiment of the present invention;
Fig. 6 is the structural block diagram of encoder bit rate adjustment module in Vehicular video transmitting device provided in an embodiment of the present invention;
Fig. 7 is the structural block diagram that encoder bit rate reduces unit in Vehicular video transmitting device provided in an embodiment of the present invention;
Fig. 8 is the structural block diagram that unit is turned up in encoder bit rate in Vehicular video transmitting device provided in an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Embodiment one
Fig. 1 is the implementation flow chart of Vehicular video transmission method provided in an embodiment of the present invention, and details are as follows:
In step s101, in the case where unstable networks, current video image is cached;
Wherein, described in the case where unstable networks, current video image is cached, specifically:
In the case where unstable networks, buffer area is established, current video image is cached by the buffer area.
Wherein, by buffer area, the video image not sent in time due to network congestion can be cached.
In step s 102, the data volume cached in real time according to the video image adjusts the video image in real time Encoder bit rate;
Wherein, the data volume cached in real time indicates levels of accumulation data cached in buffer area, directly using in buffer area Data cached levels of accumulation, real-time coding code rate adapt to the variation of network bandwidth with this, without increase network added flow, It can reach the purpose for increasing reliability.
In step s 103, according to the encoder bit rate, the video image is encoded, generates video data packet;
Any one existing video format can be used, the video image is encoded, generate video data packet, herein With no restrictions.
In step S104, the video data packet is transmitted.
Using the scheduled network transmission protocol, the video data packet is transmitted, the network transmission protocol includes but unlimited In transmission control protocol (Transmission Control Protocol, TCP).
In embodiments of the present invention, the data volume cached in real time according to video image adjusts the video image in real time Encoder bit rate;According to encoder bit rate, video image is encoded, generates video data packet;Transmitting video data packet.It avoids In the case where unstable networks, there is the reliability it cannot be guaranteed that Vehicular video real-time data transmission, reduce Vehicular video Quality the problem of, can maximize reduce real-time video transmission when packet loss, stable live video stream is obtained, to both protect The reliability for having demonstrate,proved Vehicular video real-time data transmission also improves the quality of Vehicular video.
Embodiment two
Fig. 2 is the implementation process figure of Vehicular video transmission method step S102 provided in an embodiment of the present invention, and details are as follows:
In step s 201, when the data volume cached in real time according to the video image increases, the view is reduced in real time The encoder bit rate of frequency image, until the data volume is close to preset data amount;
Wherein, when the data volume cached in real time according to the video image increases, the video image is reduced in real time Encoder bit rate, and according to the corresponding relationship of the customized encoder bit rate and frame per second, reduce frame per second, accordingly to guarantee to pass in real time Defeated video quality.
In step S202, when the data volume cached in real time according to the video image reduces, institute is turned up in real time The encoder bit rate of video image is stated, until the data volume is close to preset data amount.
Wherein, when the data volume cached in real time according to the video image reduces, the video figure is turned up in real time The encoder bit rate of picture, and according to the corresponding relationship of the customized encoder bit rate and frame per second, frame per second is turned up, accordingly to guarantee reality When the video quality that transmits.
In embodiments of the present invention, the data volume cached in real time according to video image adjusts the video image in real time Encoder bit rate;According to encoder bit rate, video image is encoded, generates video data packet;Transmitting video data packet.It can be maximum Change packet loss when reducing real-time video transmission, obtain stable live video stream, to both ensure that Vehicular video data were real When the reliability transmitted, also improve the quality of Vehicular video.
Embodiment three
Fig. 3 is the implementation process figure of step S201 provided in an embodiment of the present invention, and details are as follows:
In step S301, the difference between the real-time writing speed of the video image and reading speed is obtained;
In step s 302, whether the difference is greater than preset difference value within a preset time for judgement;
In step S303, when whether the difference is greater than preset difference value within a preset time, the video figure is indicated As the data volume increase cached in real time, the encoder bit rate of the video image is reduced in real time, until the data volume is close default Data volume.
Wherein, within the sampling time for reducing encoder bit rate, the difference of read-write needle and read pointer is sampled and is counted, By sampling statistics, when whether the difference is greater than preset difference value within a preset time, indicate that the video image delays in real time The data volume deposited increases, and reduces the encoder bit rate of the video image in real time.
For purposes of illustration only, details are as follows by taking practical application as an example:
Wherein, buffer area is made of multiple cache units, the video data write-in that H264 encoder generates per unit time To one or more cache units of buffer area, data writing position is indicated with write pointer, and the size of each cache unit is one Fixed value, such as 1024byte;
Read pointer is once sent to TCP transmit queue for a unit cache unit as a data packet, if writing finger Less than one unit of the difference of needle and read pointer, then read pointer is set to wait state;
The movement speed of write pointer is influenced by encoder bit rate, and the speed of read pointer is sent code rate by TCP and influenced, network State is poorer, and expression is given out a contract for a project, and speed is slower, and the probability of packet loss tends to increase, then turns encoder bit rate down, that is, reduces coding code Rate.
In embodiments of the present invention, stable as far as possible and smooth for real-time video, it is quick for reducing encoder bit rate Response, therefore the sampling time for reducing encoder bit rate is shorter than the sampling time for increasing encoder bit rate, encodes code by reducing Rate can maximize packet loss when reducing real-time video transmission, stable live video stream be obtained, to both ensure that vehicle-mounted view The reliability of frequency real-time data transmission also improves the quality of Vehicular video.
Example IV
Fig. 4 is the implementation process figure of step S202 provided in an embodiment of the present invention, and details are as follows:
In step S401, the difference between the real-time writing speed of the video image and reading speed is obtained;
Writing speed is the value of write pointer, and reading speed is the value of read pointer.
In step S402, whether the difference is not more than preset difference value within a preset time for judgement;
In step S403, when whether the difference is not more than preset difference value within a preset time, the video is indicated The data volume that image caches in real time reduces, and the encoder bit rate of the video image is turned up in real time, until the data volume is close in advance If data volume.
Wherein, within the sampling time for increasing encoder bit rate, the difference of read-write needle and read pointer is sampled and is counted, By sampling statistics, when whether the difference is not more than preset difference value within a preset time, indicate that the video image is real-time The data volume of caching reduces, and the encoder bit rate of the video image is turned up in real time.
Wherein, the sampling time for increasing encoder bit rate is longer than the sampling time for reducing encoder bit rate.
For purposes of illustration only, details are as follows by taking practical application as an example:
Wherein, buffer area is made of multiple cache units, the video data write-in that H264 encoder generates per unit time To one or more cache units of buffer area, data writing position is indicated with write pointer, and the size of each cache unit is one Fixed value, such as 1024byte;
Read pointer is once sent to TCP transmit queue for a unit cache unit as a data packet, if writing finger Less than one unit of the difference of needle and read pointer, then read pointer is set to wait state;
The movement speed of write pointer is influenced by encoder bit rate, and the speed of read pointer is sent code rate by TCP and influenced, if Network state is better, then the speed of TCP transmission video data is faster, and the speed for reading video data is faster, allows for encoder More video datas are encoded, i.e. encoder bit rate can be adjusted to bigger, and frame per second can also tune up;
If the difference of write pointer and read pointer is greater than 0 and is similar to the size of entire buffer area, then it represents that the unit time The video data volume that interior TCP is sent is less than the video data that coding generates, it should reduce encoder bit rate;If write pointer and reading refer to The difference of needle is 0, and it is 0 that difference is kept in a period of time, then increases encoder bit rate;
In embodiments of the present invention, stable as far as possible and smooth for real-time video, increasing encoder bit rate is at a slow speed Response, therefore the sampling time for increasing encoder bit rate is longer than the sampling time for reducing encoder bit rate, encodes code by increasing Rate, can packet loss when reducing real-time video transmission in the case where, improve transmission speed, obtain stable live video stream, To both ensure that the reliability of Vehicular video real-time data transmission, the quality of Vehicular video is also improved.
Embodiment five
The present embodiment essentially describes the implementation process of Vehicular video transmission in practical applications, and details are as follows:
1, vehicle-mounted DVR is installed onboard, connects camera and 3G antenna, plug wireless 3G card, to equipment it is normal on Electricity, vehicle-mounted DVR normally start;
2, after the normal electrifying startup of equipment, 3G dialup networking is carried out, and register and be networked to video server;
3, real-time video client is opened, by client application equipment end real-time video, carries out real-time video monitoring;
4, device coding generates real time video data, is sent to server by wireless 3G, and server is forwarded to client, Client is decoded playback;
5, when device coding code rate starts, an initial bit rate value can be defaulted first, it then can be according to the real-time of 3G network Situation carries out self-adaption code rate adjustment, makes full use of wireless network resource to reach, guarantees the transmission quality of real-time video;
6, device coding, which generates, regards real-time frequency after, is sent to server by Transmission Control Protocol, caches in application layer application Area, and the read-write pointer of set buffer area respectively, the difference of buffer area read-write pointer is sent according to real time video data application layer, I.e. using the data cached levels of accumulation of buffer area is sent, the encoder bit rate of transmitting terminal is adjusted in real time, network bandwidth is adapted to this Variation, without increase network added flow;
7, it sends buffer area to be made of multiple cache units, the video data write-in that H264 encoder generates per unit time To one or more cache units in Circular buffer area, data writing position is indicated with write pointer, the size of each cache unit For a fixed value, such as 1024byte, every a certain amount of encoded video data of write-in, write pointer carries out corresponding shifting function;
8, read pointer is once sent to TCP transmit queue for a unit cache unit as a data packet, if write Less than one unit of the difference of pointer and read pointer, then read pointer is set to wait state;
9, the movement speed of write pointer is influenced by encoder bit rate, and the speed of read pointer is sent code rate by TCP and influenced, such as Fruit network state is better, then the speed of TCP transmission video data is faster, and the speed for reading video data is faster, allows for encoding Device encodes more video datas, i.e. code rate can be adjusted to bigger, and frame per second can also tune up;On the contrary, network state is poorer, indicate Speed of giving out a contract for a project is slower, and the probability of packet loss tends to increase, then turns code rate down, reduces frame per second;
If 10, the difference of write pointer and read pointer is greater than 0 and is similar to the size of entire buffer area, then it represents that when unit The video data volume that interior TCP is sent is less than the video data that coding generates, it should reduce encoder bit rate;If write pointer and reading The difference of pointer is 0, and it is 0 that difference is kept in a period of time, then should increase encoder bit rate;
11, it reduces encoder bit rate and increases two kinds of adjustable strategies that encoder bit rate is this self-adaption code rate adjustment algorithm, when When the encoder bit rate of real-time video is greater than the transmission code rate of network, carry out reducing encoder bit rate adjustment, when Video Coding is small When network transmission code rate, raised encoder bit rate adjustment is carried out.In practice, for the peace stable as far as possible of real-time video Sliding, reducing encoder bit rate is quick response, but increasing encoder bit rate is slow response, i.e. raising encoder bit rate is to need To network, steadily certain period is just adjusted;
Although 12, reducing encoder bit rate is quick response, and increasing encoder bit rate is slow response, and two kinds of codings are adjusted Whole strategy requires to carry out sampling statistics, i.e., by the sampling statistics of the read-write pointer position difference of certain period, to judge to be No progress encoder bit rate adjustment response, and the sampling time of encoder bit rate is increased than reducing the sampling time of encoder bit rate It is long;
13, it while taking encoder bit rate to adjust, in order to guarantee real-time video quality, mutually copes with frame per second and is also adjusted, Code rate reduces frame per second when reducing, code rate increases frame per second when increasing;
Embodiment six
Fig. 5 is the structural block diagram of Vehicular video transmitting device provided in an embodiment of the present invention, which can run on vehicle It carries in video monitoring equipment.For ease of description, only the parts related to this embodiment are shown.
Referring to Fig. 5, the Vehicular video transmitting device, comprising:
Video image cache module 51, for caching current video image in the case where unstable networks;
Encoder bit rate adjusts module 52, the data volume for caching in real time according to the video image, in real time described in adjustment The encoder bit rate of video image;
Video data packet generation module 53 is generated for being encoded to the video image according to the encoder bit rate Video data packet;
Video data packet transmission module 54 is used for transmission the video data packet.
In a kind of implementation of the present embodiment, in the Vehicular video transmitting device, the video image caches mould Block 51 is specifically used in the case where unstable networks, establishes buffer area, current video image is cached by the buffer area.
It is that Vehicular video provided in an embodiment of the present invention passes with reference to Fig. 6, Fig. 6 in a kind of implementation of the present embodiment The structural block diagram of encoder bit rate adjustment module 52 in defeated device, in the Vehicular video transmitting device, the encoder bit rate adjustment Module 52 includes:
Encoder bit rate reduces unit 521, for when the data volume that is cached in real time according to the video image increases, in real time The encoder bit rate of the video image is reduced, until the data volume is close to preset data amount;
Unit 522 is turned up in encoder bit rate, for when the data volume that is cached in real time according to the video image reduces, The encoder bit rate of the video image is turned up in real time, until the data volume is close to preset data amount.
It is that Vehicular video provided in an embodiment of the present invention passes with reference to Fig. 7, Fig. 7 in a kind of implementation of the present embodiment Encoder bit rate reduces the structural block diagram of unit 521 in defeated device, and in the Vehicular video transmitting device, the encoder bit rate is reduced Unit 521 includes:
First obtains subelement 5211, for obtaining between the real-time writing speed of the video image and reading speed Difference;
First judgment sub-unit 5212, for judging whether the difference is greater than preset difference value within a preset time;
Encoder bit rate reduces subelement 5213, for when whether the difference is greater than preset difference value within a preset time, It indicates that the data volume that the video image caches in real time increases, reduces the encoder bit rate of the video image in real time, until described Data volume is close to preset data amount.
It is that Vehicular video provided in an embodiment of the present invention passes with reference to Fig. 8, Fig. 8 in a kind of implementation of the present embodiment The structural block diagram of unit 522 is turned up in encoder bit rate in defeated device, and in the Vehicular video transmitting device, the encoder bit rate is turned up Unit 522 includes:
Second obtains subelement 5221, for obtaining between the real-time writing speed of the video image and reading speed Difference;
Second judgment sub-unit 5222, for judging whether the difference is not more than preset difference value within a preset time;
Subelement 5223 is turned up in encoder bit rate, for that the difference whether ought be not more than preset difference value within a preset time When, it indicates that the data volume that the video image caches in real time reduces, the encoder bit rate of the video image is turned up in real time, until institute Data volume is stated close to preset data amount.
Device provided in an embodiment of the present invention can be applied in aforementioned corresponding embodiment of the method, and details are referring to above-mentioned reality The description of example is applied, details are not described herein.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow Help software that the mode of required common hardware is added to realize.The program can store in read/write memory medium, described Storage medium, as random access memory, flash memory, read-only memory, programmable read only memory, electrically erasable programmable storage Device, register etc..The storage medium is located at memory, and processor reads the information in memory, executes this hair in conjunction with its hardware Method described in bright each embodiment.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (8)

1. a kind of Vehicular video transmission method characterized by comprising
In the case where unstable networks, current video image is cached;
According to the data volume that the video image caches in real time, the encoder bit rate of the video image is adjusted in real time;
According to the encoder bit rate, the video image is encoded, generates video data packet;
Transmit the video data packet;
The data volume cached in real time according to the video image, adjusts the encoder bit rate of the video image, specifically in real time Are as follows:
When the data volume cached in real time according to the video image increases, the encoder bit rate of the video image is reduced in real time, And according to the corresponding relationship of the customized encoder bit rate and frame per second, reduce frame per second, until the data volume is close to present count According to amount;
When the data volume cached in real time according to the video image reduces, the coding code of the video image is turned up in real time Rate, and according to the corresponding relationship of the customized encoder bit rate and frame per second, frame per second is turned up, until the data volume is close default Data volume, wherein the sampling time that the encoder bit rate is turned up is greater than the sampling time for reducing the encoder bit rate.
2. Vehicular video transmission method as described in claim 1, which is characterized in that it is described in the case where unstable networks, Current video image is cached, specifically:
In the case where unstable networks, buffer area is established, current video image is cached by the buffer area.
3. Vehicular video transmission method as described in claim 1, which is characterized in that described when real-time according to the video image When the data volume of caching increases, the encoder bit rate of the video image is reduced in real time, until the data volume is close to preset data Amount, specifically:
Obtain the difference between the real-time writing speed of the video image and reading speed;
Whether the difference is greater than preset difference value within a preset time for judgement;
When whether the difference is greater than preset difference value within a preset time, the data volume that the video image caches in real time is indicated Increase, reduce the encoder bit rate of the video image in real time, until the data volume is close to preset data amount.
4. Vehicular video transmission method as described in claim 1, which is characterized in that described when described according to the video image When the data volume cached in real time reduces, the encoder bit rate of the video image is turned up in real time, until the data volume is close default Data volume, specifically:
Obtain the difference between the real-time writing speed of the video image and reading speed;
Whether the difference is not more than preset difference value within a preset time for judgement;
When whether the difference is not more than preset difference value within a preset time, the data that the video image caches in real time are indicated Amount reduces, and the encoder bit rate of the video image is turned up in real time, until the data volume is close to preset data amount.
5. a kind of Vehicular video transmitting device characterized by comprising
Video image cache module, for caching current video image in the case where unstable networks;
Encoder bit rate adjusts module, and the data volume for being cached in real time according to the video image adjusts the video figure in real time The encoder bit rate of picture;
Video data packet generation module generates video counts for being encoded to the video image according to the encoder bit rate According to packet;
Video data packet transmission module is used for transmission the video data packet;
The encoder bit rate adjusts module, comprising:
Encoder bit rate reduces unit, for reducing institute in real time when the data volume cached in real time according to the video image increases The encoder bit rate of video image is stated, and according to the corresponding relationship of the customized encoder bit rate and frame per second, reduces frame per second, until The data volume is close to preset data amount;
Unit is turned up in encoder bit rate, for being adjusted in real time when the data volume cached in real time according to the video image reduces The encoder bit rate of the high video image, and according to the corresponding relationship of the customized encoder bit rate and frame per second, frame per second is turned up, Until the data volume is close to preset data amount, wherein the sampling time that the encoder bit rate is turned up, which is greater than, reduces the coding The sampling time of code rate.
6. Vehicular video transmitting device as claimed in claim 5, which is characterized in that the video image cache module is specifically used for In the case where unstable networks, buffer area is established, current video image is cached by the buffer area.
7. Vehicular video transmitting device as claimed in claim 5, which is characterized in that the encoder bit rate reduces unit, comprising:
First obtains subelement, for obtaining the difference between the real-time writing speed of the video image and reading speed;
First judgment sub-unit, for judging whether the difference is greater than preset difference value within a preset time;
Encoder bit rate reduces subelement, for when whether the difference is greater than preset difference value within a preset time, described in expression The data volume that video image caches in real time increases, and reduces the encoder bit rate of the video image in real time, until the data volume connects Nearly preset data amount.
8. Vehicular video transmitting device as claimed in claim 5, which is characterized in that unit is turned up in the encoder bit rate, comprising:
Second obtains subelement, for obtaining the difference between the real-time writing speed of the video image and reading speed;
Second judgment sub-unit, for judging whether the difference is not more than preset difference value within a preset time;
Subelement is turned up in encoder bit rate, for indicating institute when whether the difference is not more than preset difference value within a preset time It states the data volume that video image caches in real time to reduce, the encoder bit rate of the video image is turned up in real time, until the data volume Close to preset data amount.
CN201410856209.8A 2014-12-31 2014-12-31 A kind of Vehicular video transmission method and device Active CN104486688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410856209.8A CN104486688B (en) 2014-12-31 2014-12-31 A kind of Vehicular video transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410856209.8A CN104486688B (en) 2014-12-31 2014-12-31 A kind of Vehicular video transmission method and device

Publications (2)

Publication Number Publication Date
CN104486688A CN104486688A (en) 2015-04-01
CN104486688B true CN104486688B (en) 2018-12-25

Family

ID=52761178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410856209.8A Active CN104486688B (en) 2014-12-31 2014-12-31 A kind of Vehicular video transmission method and device

Country Status (1)

Country Link
CN (1) CN104486688B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744342B (en) 2016-01-28 2019-04-12 腾讯科技(深圳)有限公司 The data transmission method and device of mobile terminal
CN107295423B (en) * 2016-04-05 2020-11-10 南京微特喜网络科技有限公司 Self-adaptive coding and transmission method for mobile terminal video live broadcast
CN106060571A (en) * 2016-05-30 2016-10-26 湖南纽思曼导航定位科技有限公司 Automobile travelling data recorder and live video streaming method
CN108093257A (en) * 2017-12-05 2018-05-29 北京小米移动软件有限公司 Bit rate control method, electronic equipment and the storage medium of Video coding
CN109905424A (en) * 2017-12-08 2019-06-18 浙江舜宇智能光学技术有限公司 Wireless data uniform transmission method and its application
CN108495142B (en) * 2018-04-11 2021-05-25 腾讯科技(深圳)有限公司 Video coding method and device
CN110418175B (en) * 2018-04-28 2021-10-26 华为技术有限公司 Method for dynamically adjusting video transmission parameters through V2X and related product
CN114640886B (en) * 2022-02-28 2023-09-15 深圳市宏电技术股份有限公司 Self-adaptive bandwidth audio/video transmission method, device, computer equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222296A (en) * 2008-01-31 2008-07-16 上海交通大学 Self-adapting transmission method and system in ascending honeycomb video communication
CN101771492A (en) * 2008-12-29 2010-07-07 华为技术有限公司 Method and device for adjusting streaming media bit rate

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100442796C (en) * 2004-09-09 2008-12-10 上海川海信息科技有限公司 A speed control method in stream media transmission system
US8804508B1 (en) * 2009-07-16 2014-08-12 Teradici Corporation Method and apparatus for using a network appliance to manage media communications
CN102143377A (en) * 2010-11-30 2011-08-03 华为技术有限公司 Video stream delay factor monitoring method and video stream delay factor monitoring device
CN102413379B (en) * 2011-11-29 2014-04-02 中国传媒大学 Starting delaying method for streaming media live broadcasting system
CN103763216A (en) * 2014-01-24 2014-04-30 深圳市华宝电子科技有限公司 System and method for adjusting data transmission

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222296A (en) * 2008-01-31 2008-07-16 上海交通大学 Self-adapting transmission method and system in ascending honeycomb video communication
CN101771492A (en) * 2008-12-29 2010-07-07 华为技术有限公司 Method and device for adjusting streaming media bit rate

Also Published As

Publication number Publication date
CN104486688A (en) 2015-04-01

Similar Documents

Publication Publication Date Title
CN104486688B (en) A kind of Vehicular video transmission method and device
CN106488175A (en) A kind of video transmission method
CN104125429B (en) The adjusting method and device of video data transmission
CN106488176A (en) A kind of video frequency transmitter
US8625443B2 (en) System for measuring transmission bandwidth for media streaming and method for same
WO2019154221A1 (en) Method for sending streaming data and data sending device
US8725128B2 (en) Pre-fetching of assets to user equipment
US10484750B2 (en) Methods, radio communication device and base station device for managing a media stream
CN110149299B (en) Video optimization method, device and system, terminal and network equipment
EP3047627B1 (en) Dash representations adaptations in network
CN113037697B (en) Video frame processing method and device, electronic equipment and readable storage medium
CN111107017A (en) Method, equipment and storage medium for processing switch message congestion
CN109511011B (en) YouTube DASH encrypted video-oriented fingerprint database construction method
CN113068001B (en) Data processing method, device, equipment and medium based on cascade camera
US10020916B2 (en) Method and apparatus for data communication of vehicle
EP2922337A1 (en) Method for distinguishing type of communication network and method for providing content using same
CN108401190B (en) Method and equipment for real-time labeling of video frames
CN204929081U (en) Video transmission device
US8660000B2 (en) Admission and eviction policies for mobile devices with non-telephonic functionality
Islam et al. Performance analysis of video data transmission for telemedicine applications with 5G enabled Internet of Things
CN110784742B (en) Method and system for preventing historical video playback data from being tampered
Bagade et al. Efficient data transmission over 5G Networks with improved accuracy using 802.11 p
CN103401792A (en) Adaptive upload acceleration apparatus for mobile terminal
Kashihara et al. Rate adaptation mechanism with available data rate trimming and data rate information provision for V2I communications
CN110417826B (en) File caching method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant