Summary of the invention
At above-mentioned defective, the object of the present invention is to provide a kind of system, terminal and method that reduces video-data transmission delay of visual phones, make video telephone smooth in the process of transmitting video data, postpone little.
To achieve these goals, the invention provides a kind of system that reduces video-data transmission delay of visual phones, described system is arranged in the portable terminal, and described system comprises at least:
Delay feature is provided with module, is used to open the minimizing video-data transmission delay of visual phones function of described portable terminal;
The I/P frame sends administration module, be used for after described delay feature is provided with module and opens the minimizing video-data transmission delay of visual phones function of described portable terminal, adjust the transmission time interval of I frame according to the network signal intensity of current described portable terminal, and send described P frame and I frame according to described transmission time interval.
According to system of the present invention, described I/P frame sends administration module and comprises:
The network signal processing sub is used to detect the network signal intensity of current described portable terminal, and described network signal intensity information is sent to encoder encodes and sends submodule;
Encoder encodes and transmission submodule, be used for video data encoding and decoding with described video telephone, and the network signal intensity information of the current described portable terminal that sends according to described network signal processing sub, adjust the time interval that the I frame sends, and according to described adjusted time interval transmission P frame and I frame; Wherein, N P frame of every transmission then sends 1 I frame, and the N value is determined according to described network signal intensity.
According to system of the present invention, described I/P frame sends administration module and also comprises:
Transmitting time management submodule, whether the time that is used to detect described encoder encodes and sends submodule N P frame of transmission and 1 I frame is above predefined threshold value, if surpass the transmission time interval that then strengthens described encoder encodes and send submodule transmission I frame.
According to system of the present invention, the network signal that described network signal processing sub detects current described portable terminal is divided into 5 grades, and wherein, 1 grade and 2 grades is that described network signal is strong, and 3 grades is that described network signal is medium, and 4 grades and 5 grades is a little less than the described network signal.
According to system of the present invention, described encoder encodes and transmission submodule send N P frame and 1 I frame, are that 20 the P frames in every interval send an I frame under the strong situation of described network signal; Be that 35 the P frames in every interval send an I frame under the medium situation of described network signal; Be that 50 the P frames in every interval send an I frame under the situation a little less than the described network signal.
According to system of the present invention, described predefined threshold value is 4 seconds;
When detecting described encoder encodes and send submodule, described transmitting time management submodule sends the time of N P frame and 1 I frame above 4 seconds, the transmission time interval that then described encoder encodes and transmission submodule send P frame and I frame is N+10 P frame of every transmission, then sends 1 I frame.
According to system of the present invention, described delay feature is provided with module and comprises a user interface, selects to enter described delay feature by the menu of this user interface module is set, and opens the minimizing video-data transmission delay of visual phones function of described portable terminal.
According to system of the present invention, the coded format standard of described video telephone is a H263 coded format standard.
The present invention also provides a kind of portable terminal that comprises described system, and described system comprises at least:
Delay feature is provided with module, is used to open the minimizing video-data transmission delay of visual phones function of described portable terminal;
The I/P frame sends administration module, be used for after described delay feature is provided with module and opens the minimizing video-data transmission delay of visual phones function of described portable terminal, adjust the transmission time interval of I frame according to the network signal intensity of current described portable terminal, and send described P frame and I frame according to described transmission time interval.
The present invention also provides a kind of method that reduces video-data transmission delay of visual phones, and described method comprises:
A, delay feature are provided with the minimizing video-data transmission delay of visual phones function that module is opened described portable terminal;
B, I/P frame send administration module after described delay feature is provided with module and opens the minimizing video-data transmission delay of visual phones function of described portable terminal, adjust the transmission time interval of I frame according to the network signal intensity of current described portable terminal, and send described P frame and I frame according to described transmission time interval.
The present invention is by detecting the network signal intensity of portable terminal, and adjusts the transmission time interval of P frame and I frame according to this network signal intensity, to adapt to the influence of different network signal intensities to the video telephone transmitting video data.On the other hand, the present invention also is provided with the threshold value that transmits N P frame and 1 I frame, overtime when the time of finding N P frame of transmission and 1 I frame, then strengthen the time interval value that sends the I frame, make the video Data Transmission smoothness of video telephone, through the video Data Transmission delay technology of experiment minimizing video telephone provided by the invention, the video Data Transmission of video telephone can be postponed be reduced to about 2 seconds, effectively raise the fluency of the video Data Transmission of video telephone.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Basic thought of the present invention is: according to the mobile terminal network situation, adjust the time interval that sends the I frame, provide video telephone smooth in the process of transmitting video data, postpone little.
In the present invention, the power value of mobile terminal network signal sends to high-rise from low layer, generally sent and once keep supplying a layer display network signal, in portable terminal, when receiving this signal, pass through to send message informing encoder current network conditions every 1 second.Encoder sends the interval of I frame according to the transmission number decision of current network conditions and binding time and P frame.
Fig. 1 is the structural representation of the system 1 of minimizing video data on mobile terminal provided by the invention propagation delay, is described below: the system 1 that reduces video-data transmission delay of visual phones is arranged in the portable terminal 2, and described system 1 comprises at least:
Delay feature is provided with module 11, is used to open the minimizing video-data transmission delay of visual phones function of portable terminal 2;
The I/P frame sends administration module 12, be used for after delay feature is provided with the minimizing video-data transmission delay of visual phones function of module 11 unlatching portable terminals 2, adjust the transmission time interval of I frame according to the network signal intensity of current mobile terminal 2, and send described P frame and I frame according to described transmission time interval.
It is the foreground modules that run on portable terminal 2 that delay feature is provided with module 11, and I/P frame transmission administration module 12 is the background modules that run on portable terminal 2.Delay feature is provided with module 11 and comprises a UI (User Interface, user interface), selects to enter delay feature by the menu at this UI interface module 11 is set, and opens the minimizing video-data transmission delay of visual phones function of portable terminal 2.After the minimizing video-data transmission delay of visual phones function of module 11 unlatching portable terminals 2 is set at delay feature, the I/P frame sends the intensity that administration module 12 detects current mobile terminal 2 network signals, and be set the time interval that sends P frame and I frame, and according to this time interval transmission P frame and I frame according to detected network signal intensity.
Delay feature is provided with the operational flow diagram of module 11 shown in 2, delay feature is provided with module 11 function singlenesses, its function is that user's setting option is write into database, when portable terminal 2 starts, initialize routine is with accessing database and check this setting, according to whether opening this function, carry out the respective coding flow process.
Among the step S201, start delay function setting module 11.
Among the step S202,, judge whether to open that delay feature is provided with module 11 reduces video data propagation delay function according to the selection of user at the UI interface.
Among the step S203, that no matter whether opens that delay feature is provided with module 11 reduces video data propagation delay function, the result all will be set be written in the database.
When opening portable terminal 2 in the process I/P frame to send administration module 12 are the background modules that always move, be responsible for the Code And Decode of the video data of portable terminal 2.Simultaneously, also be responsible for the data interaction with video protocols stack module, this I/P frame sends administration module 12 local coded datas is delivered to video protocols stack module, and by video protocols stack module protocol stack.
As shown in Figure 3, in one embodiment of the invention, the I/P frame sends administration module 12 and comprises:
Network signal processing sub 121 is used to detect the network signal intensity of current mobile terminal 2, and network signal intensity information is sent to encoder encodes and sends submodule 122;
Encoder encodes and transmission submodule 122, be used for video data encoding and decoding with portable terminal 2, and the network signal intensity information of the current mobile terminal 2 that sends according to network signal processing sub 121, adjust the time interval that the I frame sends, and send P frame and I frame wherein according to adjusted time interval, N P frame of every transmission then sends 1 I frame, and the N value is determined according to network signal intensity.In one embodiment of the present of invention, encoder encodes and transmission submodule 122 send N P frame and 1 I frame is that 20 the P frames in every interval send an I frame under the strong situation of network signal; Be that 35 the P frames in every interval send an I frame under the medium situation of network signal; Be that 50 the P frames in every interval send an I frame under the situation a little less than the network signal.
Since between network and the portable terminal 2 according to regular time at interval, be generally and sent and received current state information in 1 second, portable terminal 2 is ceaselessly received the current network conditions that network side sends, and network condition is presented on the signal hurdle of portable terminal 2 screens.The present invention makes corresponding adjustment according to network condition notice encoder to the coding of video data by receiving and handle current network signal message.Therefore, network signal processing sub 121 detects the network signal intensity of current mobile terminal 2, the network signal that network signal processing sub 121 is detected current mobile terminal 2 is divided into 5 grades in the present invention, wherein, 1 grade and 2 grades is that network signal is strong, 3 grades is that network signal is medium, and 4 grades and 5 grades is a little less than the network signal.After network signal processing sub 121 is classified as certain grade with the intensity of network signal, this network signal intensity information is sent to encoder encodes and sends submodule 122.
As shown in Figure 4, in another one embodiment of the present invention, the I/P frame sends administration module 12 and also comprises:
Transmitting time management submodule 123, whether the time that is used to detect encoder encodes and sends submodule 122 N P frames of transmission and 1 I frame is above predefined threshold value, if surpass the transmission time interval that then strengthens encoder encodes and send submodule 122 transmission I frames.In the standard of portable terminal 2, encoding and decoding speed is per second 15 frames.Therefore, under the situation a little less than the network signal, send N P frame and 1 I frame, promptly send 50 P frames and an I frame time is 51/15=3.4 second.So set in advance a threshold value in the present invention, described predefined threshold value is 4 seconds.If these frames all can not send and finish in 4 seconds, illustrate that this subzone network relatively blocks up, perhaps there is other problems, need to strengthen the time interval that sends the I frame.Through actual test, what add 10 P frames is more reasonable at interval.Be N+10 P frame of every transmission, send 1 I frame again.
In one embodiment of the invention, when detecting encoder encodes and send submodule 122, transmitting time management submodule 123 sends the time of N P frame and 1 I frame above 4 seconds, then the transmission time interval of encoder encodes and transmission submodule 122 transmission P frames and I frame is N+10 P frame of every transmission, then sends 1 I frame.Under the strong situation of network signal, 30 the P frames in every interval send an I frame; Under the medium situation of network signal, 45 the P frames in every interval send an I frame; Under the situation a little less than the network signal, 60 the P frames in every interval send an I frame.
In a plurality of embodiment of the present invention, the coded format standard of its portable terminal 2 is a H263 coded format standard.
In one embodiment of the invention, provide a kind of Fig. 1 of utilization~Fig. 2, system shown in Figure 4 to realize reducing the portable terminal of video-data transmission delay of visual phones, the system 1 that reduces video-data transmission delay of visual phones is arranged in the portable terminal 2, and the system 1 that reduces video-data transmission delay of visual phones comprises at least:
Delay feature is provided with module 11, is used to open the minimizing video-data transmission delay of visual phones function of portable terminal 2;
The I/P frame sends administration module 12, be used for after delay feature is provided with the minimizing video-data transmission delay of visual phones function of module 11 unlatching portable terminals 2, adjust the transmission time interval of I frame according to the network signal intensity of current mobile terminal 2, and send described P frame and I frame according to described transmission time interval.In above-mentioned a plurality of embodiment, all there is description in the system 1 of the minimizing video-data transmission delay of visual phones in the portable terminal 2, does not repeat them here.
In one embodiment of the invention, provide a kind of Fig. 1 of utilization~system shown in Figure 4 to realize reducing the method for video-data transmission delay of visual phones, the system 1 that reduces video-data transmission delay of visual phones is arranged in the portable terminal 2, and described method comprises:
Delay feature is provided with the minimizing video-data transmission delay of visual phones function that module 11 is opened portable terminal 2;
After I/P frame transmission administration module 12 is provided with the minimizing video-data transmission delay of visual phones function of module 11 unlatching portable terminals 2 at delay feature, adjust the transmission time interval of I frame according to the network signal intensity of current mobile terminal 2, and send described P frame and I frame according to described transmission time interval.
As shown in Figure 6, in one embodiment of the invention, utilize the system 1 that reduces video-data transmission delay of visual phones to realize that the method flow that reduces video-data transmission delay of visual phones comprises:
Among the step S601, system platform report network state.The network state that current mobile terminal 2 is in how, is reported to network signal processing sub 121 by system platform.
Among the step S602, network signal processing sub 121 is judged the network state of current mobile terminal 2, and the present invention is divided into 5 grades with the network signal intensity of portable terminal 2, is 1~2 grade when network signal is strong, execution in step S603; Be 3 grades when network signal is medium, execution in step S604; When time a little less than the network signal is 4~5 grades, execution in step S605.
Among the step S603,20 P frames of encoder encodes and transmission submodule 122 every intervals send an I frame.
Among the step S604,35 P frames of encoder encodes and transmission submodule 122 every intervals send an I frame.
Among the step S605,50 P frames of encoder encodes and transmission submodule 122 every intervals send an I frame.
Among the step S606, transmitting time management submodule 123 judges whether the time of encoder encodes and one section frame of video of transmission submodule 122 transmissions surpasses 4 seconds threshold value, one section frame of video of described transmission is meant that under the good situation of network signal 20 the P frames in every interval send an I frame; Under the medium situation of network signal, 35 the P frames in every interval send an I frame; Perhaps, under the situation a little less than the network signal, 50 the P frames in every interval send an I frame; If the threshold value above 4 seconds is execution in step S607 then; If not have above 4 seconds threshold value execution in step S608 then.
Among the step S607, according to original time interval transmission P frame and I frame.
Among the step S608, add 10 P frame times and send the I frame at interval; Promptly under the good situation of network signal, 30 the P frames in every interval send an I frame; Under the medium situation of network signal, 45 the P frames in every interval send an I frame; Under the situation a little less than the network signal, 60 the P frames in every interval send an I frame.
Among the step S609, video protocols stack module with the frame of video that receives according to the H324 protocol stack.
Among the step S610, the frame of video of video protocols stack module after with the H324 protocol stack sends to 3G network.
In sum, the present invention is by detecting the network signal intensity of portable terminal, and adjusts the transmission time interval of P frame and I frame according to this network signal intensity, to adapt to the influence of different network signal intensities to the video telephone transmitting video data.On the other hand, the present invention also is provided with the threshold value that transmits N P frame and 1 I frame, overtime when the time of finding N P frame of transmission and 1 I frame, then strengthen the time interval value that sends the I frame, make the video Data Transmission smoothness of video telephone, through the video Data Transmission delay technology of experiment minimizing video telephone provided by the invention, the video Data Transmission of video telephone can be postponed be reduced to about 2 seconds, effectively raise the fluency of the video Data Transmission of video telephone.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.