WO2015168973A1 - 无线视频处理方法、装置、媒体服务器、监控终端及系统 - Google Patents

无线视频处理方法、装置、媒体服务器、监控终端及系统 Download PDF

Info

Publication number
WO2015168973A1
WO2015168973A1 PCT/CN2014/079526 CN2014079526W WO2015168973A1 WO 2015168973 A1 WO2015168973 A1 WO 2015168973A1 CN 2014079526 W CN2014079526 W CN 2014079526W WO 2015168973 A1 WO2015168973 A1 WO 2015168973A1
Authority
WO
WIPO (PCT)
Prior art keywords
monitoring terminal
media server
video data
time
signal
Prior art date
Application number
PCT/CN2014/079526
Other languages
English (en)
French (fr)
Inventor
赵亚来
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015168973A1 publication Critical patent/WO2015168973A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Definitions

  • Wireless video processing method device, media server, monitoring terminal and system
  • the present invention relates to the field of video surveillance, and in particular, to a wireless video processing method, apparatus, media server, monitoring terminal, and system. Background technique
  • Wireless video surveillance is based on the wide coverage, high bandwidth and mobility of 3G networks. It provides integrated application systems such as audio and video surveillance, GPS positioning, IP data transmission, and intelligent image analysis and alarm. As long as there is a place where you can access the Internet, you can monitor the images transmitted from the front end in real time, analyze the images in real time and perform linkage alarms. This perfectly compensates for the congenital deficiency of traditional monitoring; it is the organic security, suddenness and urgency of modern security. reflect. It has already had more applications at home and abroad, and it also has a very large market potential, especially in the field of vehicle network applications.
  • the embodiments of the present invention provide a wireless video processing method, device, media server, monitoring terminal, and system, which at least solves problems such as a card screen or a black screen when a mobile monitoring terminal is temporarily interrupted due to a network signal interruption.
  • An embodiment of the present invention provides a wireless video processing method, which is applied to a media server, and includes: Obtaining, by the monitoring terminal, the first video data that is sent by the monitoring terminal, and is cached in a local cache; wherein the first video data is sent at a first moment before the monitoring terminal is connected to the media server to interrupt the signal;
  • the method further includes:
  • the video data is cached in a local cache; wherein, the fourth time is a time when the second video data and the third video data stored in the local cache are all played.
  • the second video data and the third video data are played during a time period from the second time to the fourth time.
  • the playing the first video data stored in the cache includes:
  • the sorting the data packets of the first video data stored in the cache according to a timestamp includes:
  • Encoding the decoded data so that the encoded frame data is subjected to real-time transmission protocol RTP packet;
  • the encapsulated packets are sorted by timestamp.
  • the time period T is a signal connection between the monitoring terminal and the media server. Interrupt duration;
  • the interruption duration ⁇ is obtained by analyzing the signal strength or geographic information within a preset distance.
  • the interruption duration obtained by the analysis signal strength includes:
  • Obtaining a preset interrupt duration sent by the monitoring terminal where the preset interrupt duration is that the monitoring terminal compares the strength of the signal with a preset threshold, and when the strength of the signal is less than the preset threshold, the signal is obtained. Will be sent after the interruption.
  • the interruption duration obtained by the geographic information in the preset distance includes: acquiring an interruption duration of the signal sent by the monitoring terminal;
  • the interruption duration of the signal is the geographic information of the monitoring terminal according to the preset distance in front of the monitoring terminal.
  • the geographic information according to the signal barrier is obtained after the signal is interrupted.
  • the moving speed of the monitoring terminal is currently monitored, and the interruption duration of the signal is obtained.
  • the monitoring terminal obtains a signal obstacle in front of the geographic information display according to the geographic information in the preset distance in front of the monitoring terminal, and obtains the geographic information according to the signal obstacle and the movement of the current monitoring terminal after the signal is interrupted.
  • L is the distance between the first location geographic information at the time when the monitoring terminal and the media server are disconnected, and the second location geographic information at the time when the monitoring terminal and the media server resume the signal connection;
  • V is the current monitoring terminal The speed of movement.
  • the playing the second video data and the third video data includes:
  • the sorted data packets are quickly played at a second code rate in chronological order.
  • the sorting the data packets of the second video data and the third video data stored in the cache according to a timestamp includes: Decoding the second video data stored in the cache and the data packet of the third video data;
  • Encoding the decoded data so that the encoded frame data is subjected to real-time transmission protocol RTP packet;
  • the encapsulated packets are sorted by timestamp.
  • the embodiment of the invention further provides a wireless video processing device, including:
  • the first processing module is configured to acquire the first video data sent by the monitoring terminal, and cache the data in the local cache, where the first video data is the first before the monitoring terminal and the media server interrupt signal are connected. Sent at any time;
  • the second processing module is configured to play the first video data stored in the cache in a second time period when the monitoring terminal and the media server resume signal connection.
  • the device further includes:
  • a third processing module configured to acquire, by the monitoring terminal, the collected second video data between the third moment and the second moment that is connected to the media server by the monitoring terminal, and the second moment to The third video data collected at the fourth time is cached in the local cache.
  • the fourth time is the time when the second video data and the third video data stored in the local cache are all played.
  • the fourth processing module is configured to play the second video data and the third video data in a time period from the second time to the fourth time.
  • the first processing module, the second processing module, the third processing module, and the fourth processing module may use a central processing unit (CPU) and a digital signal processor when performing processing.
  • CPU central processing unit
  • DSP Digital Singnal Processor
  • FPGA Field - Programmable Gate Array
  • An embodiment of the present invention further provides a media server, where the media server is configured to obtain And acquiring the first video data sent by the monitoring terminal, and buffering the buffer in the local buffer; and playing the second time period when the monitoring terminal and the media server resume the signal connection at the first moment The first video data stored in the cache; wherein the first video data is sent at a first moment before the monitoring terminal is connected to the media server interrupt signal.
  • the media server is further configured to acquire, by the monitoring terminal, the collected second video data between the third moment and the second moment that are connected to the media server by the monitoring terminal, and the first
  • the third video data collected from the second time to the fourth time is cached in the local cache; and the second video data and the third video data are played in the time period from the second time to the fourth time;
  • the fourth time is a time when the second video data and the third video data stored in the local cache are all played.
  • the embodiment of the invention further provides a wireless video processing method, which is applied to a monitoring terminal, and includes:
  • Controlling by the video capture device of the monitoring terminal, the second video data between the second moment and the second moment when the monitoring terminal is connected to the recovery signal of the media server, when the monitoring terminal and the media server are disconnected from the signal. And send it to the media server.
  • the present invention further provides a wireless video processing device, which is applied to a monitoring terminal, and includes: a first detecting module configured to detect a signal connection state between the monitoring terminal and the media server in real time;
  • the fifth processing module is configured to acquire the first video data at a first moment before the monitoring terminal and the media server interrupt signal connection, and send the first video data to the media server;
  • a sixth processing module configured to: when the monitoring terminal and the media server interrupt the signal connection, control the video capture device of the monitoring terminal to obtain the third time to the monitoring terminal and The media server restores the second video data between the second moments of the signal connection and sends it to the media server.
  • the first detection module, the fifth processing module, and the sixth processing module may use a central processing unit (CPU), a digital signal processor (DSP, Digital Singnal Processor), or Programmable Array (FPGA) implementation.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Programmable Array
  • the embodiment of the present invention further provides a monitoring terminal, where the monitoring terminal is configured to detect a signal connection state between the monitoring terminal and the media server in real time; and acquire the first time at the first moment before the monitoring terminal and the media server interrupt the signal connection
  • the video data is sent to the media server; when the monitoring terminal and the media server interrupt the signal connection, the video capture device of the monitoring terminal is controlled to acquire the second connection to the recovery terminal of the monitoring terminal and the media server.
  • the second video data between the moments is sent to the media server.
  • the monitoring terminal is further configured to acquire the strength of the signal and compare it with a preset threshold. When the strength of the signal is less than the preset threshold, the preset interrupt duration is obtained after the signal connection is interrupted.
  • the embodiment of the present invention further provides a monitoring system, including: a media server, a monitoring client communicatively coupled to the media server, and a video monitoring platform communicatively coupled to the media server;
  • the media server is configured to acquire the first video data sent by the monitoring terminal, and cache the data in the local cache; and when the monitoring terminal and the media server resume the signal connection, the second time is Controlling, by the monitoring client, the first video data stored in the cache; wherein the first video data is the monitoring terminal and the The media server sends the first time before the interrupt signal is connected.
  • the monitoring terminal is configured to detect a signal connection state between the monitoring terminal and the media server in real time; and acquire the first video data at a first moment before the monitoring terminal and the media server interrupt the signal connection, and Sending to the media server; when the monitoring terminal and the media server interrupt the signal connection, controlling the video capture device of the monitoring terminal to obtain the third time to the second time when the monitoring terminal and the media server resume the signal connection
  • the second video data is sent to the media server.
  • the wireless video processing method of the embodiment of the present invention acquires the first video data sent by the monitoring terminal, and caches the data in the local cache.
  • the first video data is before the monitoring terminal and the media server interrupt signal are connected. And transmitting, by the first moment, the first video data stored in the cache in a second time period when the monitoring terminal resumes signal connection with the media server.
  • the media server is capable of local dynamic caching. Therefore, the first moment before the monitoring terminal and the media server interrupt signal connection, the monitoring terminal determines that a signal interruption will occur to the time between the middle segments of the signal, so that the monitoring terminal can be The first video data collected in real time is cached in the cache of the media server.
  • the cached video will be played, and the playing time is the second time when the monitoring terminal and the media server resume the signal connection, so that if a signal interruption occurs during the playing of the video, the video will not be affected. Fluency. During the time when the signal is interrupted, the first video data that is buffered into the media server before the signal is interrupted is played.
  • FIG. 1 is a schematic flowchart of a wireless video processing method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram showing a first application scenario of a wireless video processing method according to an embodiment of the present invention
  • FIG. 3 is a diagram showing an application of a wireless video processing method according to an embodiment of the present invention
  • Schematic diagram of time analysis of scene one 4 is a network switching model diagram of a scenario 2 of a wireless video processing method according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram showing a third application scenario of a wireless video processing method according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a wireless video processing device according to an embodiment of the present invention. detailed description
  • the invention is directed to the existing wireless video monitoring, the video data is collected by the monitoring terminal in real time, and is synchronously played by the network media server on the client side.
  • a video redirection occurs, such as a card screen or a black screen.
  • a wireless video processing method is applied to a media server, including:
  • Step 11 Acquire a first video data sent by the monitoring terminal, and cache the data in a local cache.
  • the first video data is sent at a first moment before the monitoring terminal is connected to the media server.
  • Step 12 Play the first video data stored in the cache in a second time period when the monitoring terminal and the media server resume signal connection.
  • the media server is capable of local dynamic caching. Therefore, the first moment before the monitoring terminal and the media server interrupt signal connection, the monitoring terminal determines that a signal interruption will occur to the time between the middle segments of the signal, so that the monitoring terminal can be
  • the first video data collected in real time is cached in the cache of the media server.
  • the cached video will be played, and the playing time is the second time when the monitoring terminal and the media server resume the signal connection, so that if a signal interruption occurs during the playing of the video, the video will not be affected. Fluency.
  • the first video data buffered to the media server before the signal is interrupted is played.
  • the monitoring terminal information is received at time a, a signal interruption occurs, the signal connection interruption time is b time, and the signal connection is resumed at time c. Then, in the ab time period, the video collected by the monitoring terminal is dynamically cached to the media according to the above steps.
  • the media server does not play the video captured by the monitoring terminal in real time from the moment a, but the video buffered in the played media server until the time when the signal connection time c is resumed. Therefore, during the interruption period of the bc signal connection, the video seen by the client is smooth.
  • the step of playing the first video data stored in the cache includes:
  • Step 111 Perform, according to a timestamp, a data packet of the first video data stored in the cache.
  • the timestamp is capable of uniquely identifying the time of a certain time, sorting the data packets by timestamp, avoiding the disorder of the time of the cached data, and ensuring the quality of the video.
  • Step 112 Perform slow playback on the sorted data packets in a chronological order at a first code rate.
  • the first code rate is based on a time period between the third time and the second time. T obtained.
  • the first code rate can be obtained by v ⁇ A/T.
  • step 111 includes:
  • Step 1111 Decode the data packet of the first video data stored in the cache.
  • Step 1112 encode the decoded data, and perform the real-time transmission protocol RTP packet by using the encoded frame data.
  • Step 1113 Sort the encapsulated data packets according to timestamps.
  • the data packet of the first video data stored in the buffer is decoded, and then encoded, so that the encoded frame data is subjected to real-time transmission protocol RTP packet, so that the client receives the media stream data directly, and can directly play.
  • the packetized packets are then arranged according to the timestamp. After the sequence, the slow playback is performed at the first code rate obtained in chronological order, and the video delay playback is realized.
  • the time period T is an interruption duration of a signal connection between the monitoring terminal and the media server, and the interruption duration is obtained by analyzing signal strength or geographic information within a preset distance.
  • the step of obtaining the interruption duration T by analyzing the signal strength includes:
  • Step 13a Obtain a preset interrupt duration sent by the monitoring terminal, where the preset interrupt duration is that the monitoring terminal compares the strength of the signal with a preset threshold, and when the strength of the signal is less than the preset threshold, The signal will be sent after an interruption.
  • the monitoring terminal compares the strength of the signal with the preset threshold, and obtains that the strength of the signal is less than the preset threshold, the preset interrupt duration that has been set in advance can be sent and the media server can The preset interrupt duration received.
  • the step of obtaining the interruption duration T by the geographic information within the preset distance includes: Step 13b: acquiring an interruption duration of the signal sent by the monitoring terminal, where the interruption duration of the signal is within a preset distance of the monitoring terminal according to the front distance thereof Geographic information, obtained when there is a signal barrier in front of the geographic information display, obtained after the signal is interrupted, according to the geographic information of the signal barrier and the moving speed of the current monitoring terminal.
  • the monitoring terminal can obtain the geographical information within the preset distance by GPS positioning, and there is a signal obstacle in front of the geographic information display to determine that the signal will be interrupted, and the information can be interrupted according to the geographical information of the signal obstacle and the moving speed of the current monitoring terminal. Duration and send.
  • the media server receives the interrupt duration of the signal sent by the monitoring terminal.
  • step 13b includes:
  • T L/V
  • L refers to the first location geographic information at the time when the monitoring terminal and the media server interrupt the signal connection, and the second location geographic information when the monitoring terminal and the media server resume the signal connection.
  • the distance between the values; V refers to the speed of the current monitoring terminal.
  • the method for obtaining the interrupt duration T is only a preferred implementation manner, and the recording of the interrupt duration of the region where the signal interruption has occurred may be directly obtained, and other implementation manners are not enumerated here.
  • the wireless video processing method in the embodiment of the present invention further includes:
  • Step 14 Acquire acquired second video data between the third time and the second time that the monitoring terminal sends the interrupt signal connection with the media server, and collect the second time to the fourth time
  • the third video data is cached in a local cache; wherein, the fourth time is a time when the second video data and the third video data stored in the local cache are all played.
  • the second video data is collected between the third time and the second time when the monitoring terminal is connected to the media server interrupt signal, that is, the video data collected during the time period in which the interrupt signal is connected; the third video data is The monitoring terminal collects the video collected from the second time to the fourth time, that is, the video captured by the monitoring terminal after the signal is restored.
  • Step 15 Play the second video data and the third video data in a time period from the second time to the fourth time.
  • the monitoring terminal can collect video data in real time when the signal connection is interrupted, but the interruption of the signal connection cannot be transmitted to the media server, but the second video data stored in the local space, so the second moment when the signal connection is restored , the media server will receive the second The video data and the third video data collected by the monitoring terminal in real time, and dynamically cache the two parts of the data. At the same time, the media server also plays the cached part of the video data until the play and the acquisition are synchronized, and the video data is not present in the cache.
  • the signal connection interruption time is b time
  • the signal connection is resumed at time c
  • the video is synchronized with the acquisition at time d, and the video data no longer exists in the buffer.
  • the video data collected by the monitoring terminal is not played in real time, but the video data collected by the monitoring terminal in the bc time period and the video data collected by the monitoring terminal in real time after the c time are performed in the cd time period. Play, until the playback and capture are synchronized, there is no video data in the cache.
  • the steps of playing the second video data and the third video data include:
  • Step 141 Sort the data packets of the second video data and the third video data stored in the cache according to a timestamp.
  • Step 142 The sorted data packets are quickly played at a second code rate in chronological order.
  • the second code rate is a preset code rate, and the code rate is faster than the normal playback speed.
  • step 141 includes:
  • Step 1411 Decode the second video data stored in the cache and the data packet of the third video data.
  • Step 1412 Encode the decoded data, so that the encoded frame data is subjected to a real-time transmission protocol RTP packet;
  • Step 1413 Sort the encapsulated data packets according to timestamps.
  • the second video data and the third video data stored in the buffer are decoded, and then encoded, so that the encoded frame data is subjected to a real-time transmission protocol RTP packet, so that the client receives the direct Media stream data can be played directly.
  • RTP packet real-time transmission protocol
  • the data packets are sorted according to the timestamp, the data packets are quickly played in the chronological order at the obtained second bit rate, thereby realizing the video advance playback.
  • the video data collected by the receiving monitoring terminal is played at the third rate, so that the video collection speed of the monitoring terminal is synchronized with the video playback speed of the monitoring client, and the real-time performance of the monitoring video is restored.
  • scenario 1 a signal interruption scenario when a wireless vehicle monitoring terminal passes through a tunnel
  • the monitoring terminal proposed in the embodiment of the present invention supports an interface that interfaces with the GPS navigation map. Through this interface, the corresponding situation of the tunnel on the history line of the vehicle line 3, such as the tunnel length and the tunnel position, can be grasped.
  • the wireless vehicle monitoring system includes a mobile monitoring terminal mainly responsible for collecting video information; the media server is mainly responsible for storing and forwarding media data; and the video monitoring platform is mainly responsible for monitoring terminal and client information maintenance and authentication operations;
  • the monitoring client is mainly responsible for monitoring the video collected by the terminal for display, which is convenient for customers to watch.
  • the mobile monitoring terminal detects that the signal connection is to be interrupted, and notifies the media server to request that it slow down the video bit rate. If the 50-second video is played back to 60 seconds, the network detection module needs to notify the media server to slow down the video bit rate 5T before entering the tunnel, that is, the -5T time point in Figure 3 begins, and the media server caches.
  • the media stream data collected by the mobile monitoring terminal of the T second is dynamically cached to ensure that the video of the monitoring client is not interrupted during the T second of the mobile monitoring terminal network signal interruption.
  • the monitoring terminal After the monitoring terminal enters the tunnel signal interruption, the monitoring terminal triggers the pre-recording process ( Figure 3 At the time point of the tunnel entrance, 0), the video data during the interruption of the signal is stored locally in the monitoring terminal to avoid the loss of video information when the wireless network signal is interrupted.
  • the wireless network signal is also restored, and the data pre-recorded by the monitoring terminal and the currently collected media stream data are sent to the media server for combination and speed up the video bit rate processing, if the video is 60 seconds. Accelerate to 50 seconds to play, then the pre-recorded and current media stream data can be played within 5T after the tunnel is out of the tunnel. That is, the 6T time point in Figure 3 needs to be synchronized, ensuring that the monitoring client is at 6T. The real-time nature of post-video playback.
  • the video loss of the signal interruption (0, T) period and the video redirection caused by the client redirection are solved by sacrificing the real-time performance of the client video during the (-5T, 6T) time period.
  • the problem As shown in FIG. 2, in the embodiment of the present invention, the video loss of the signal interruption (0, T) period and the video redirection caused by the client redirection are solved by sacrificing the real-time performance of the client video during the (-5T, 6T) time period.
  • Scenario 2 Application scenario when a network is switched between mobile monitoring terminals
  • the mobile monitoring terminal proposed in the embodiment of the present invention supports the mobile IPv6 protocol, and supports the network switching when the mobile monitoring terminal moves out of the home network; at the same time, the monitoring terminal can call the time required for the network switching according to the current access network signal strength, and the network switching
  • the model is shown in Figure 4.
  • the monitoring terminal calls the duration T seconds required for the network switching preset in advance, where T represents the interruption duration mentioned in the embodiment of the present invention.
  • the monitoring terminal notifies the media server that it is required to perform slow video bit rate processing. Similar to scenario 1, the monitoring terminal needs to notify the media server to slow down the video bit rate processing 5T before the network switching, and cache the T second media stream data in the media server dynamic cache. In order to ensure that the mobile monitoring terminal network signal is interrupted, the video of the monitoring client will not be interrupted during the T seconds.
  • the workflow of the network handover occurs as follows:
  • the mobile monitoring terminal moves to the foreign link, the home address of the mobile monitoring terminal remains unchanged, and a temporary IP address (ie, the care-of address) is obtained.
  • the mobile monitoring terminal informs the home agent HA of the mapping of the home address and the care-of address.
  • Media server SS communicates with mobile monitoring terminal Still using the home address of the mobile monitoring terminal, the data packet is still sent to the home network segment of the mobile monitoring terminal; the home agent HA intercepts the data packets, and forwards the data packet to the care-of address of the mobile monitoring terminal according to the obtained mapping relationship. .
  • the mobile monitoring terminal can communicate directly with the media server SS.
  • the mobile monitoring terminal also informs the media server SS of the mapping relationship between the home address and the care-of address, and when the media server SS knows the care-of address of the mobile node, it can directly forward the data packet to the foreign network segment where the care-of address is located. In this way, normal communication can be directly performed between the media server SS and the mobile monitoring terminal.
  • the monitoring terminal triggers the pre-recording process, and stores the media stream during the interruption of the signal in the monitoring terminal to avoid the loss of the video information when the wireless network signal is interrupted.
  • the mobile monitoring terminal completes the network switching, the data pre-recorded by the monitoring terminal and the currently collected media stream data are sent to the streaming media server for combination and speeding up the video bit rate processing. Similar to the scenario 1, after the pre-recording and the current media stream data are played, synchronization processing is required to ensure that the monitoring client enters the live video playback in a short time.
  • the P2P monitoring system directly connects the monitoring client to the monitoring terminal to complete the basic function of video surveillance.
  • the dynamic buffering of the media stream (video data dynamic buffer) and the code rate processing proposed in the embodiment of the present invention can be implemented in the monitoring client, and the functions of network detection, video collection, and media stream pre-recording of the mobile monitoring terminal remain unchanged.
  • the invention can be extended to the wireless P2P monitoring system to solve the problem of the client video redirection caused by the abnormality of the network signal of the mobile monitoring terminal.
  • the structure of the wireless P2P monitoring system is shown in Figure 5.
  • the embodiment of the present invention further provides a wireless video processing device, including:
  • the first processing module 10 is configured to acquire the first video data sent by the monitoring terminal, and cache the data in the local cache.
  • the first video data is the monitoring terminal and the media service. Transmitted at the first moment before the signal is disconnected;
  • the second processing module 20 is configured to play the first video data stored in the cache in a second time period when the monitoring terminal and the media server resume signal connection.
  • a third processing module configured to acquire, by the monitoring terminal, the collected second video data between the third moment and the second moment that is connected to the media server by the monitoring terminal, and the second moment to The third video data collected at the fourth time is cached in the local cache.
  • the fourth time is the time when the second video data and the third video data stored in the local cache are all played.
  • the fourth processing module is configured to play the second video data and the third video data in a time period from the second time to the fourth time.
  • the first processing module includes:
  • a first processing unit configured to sort the data packets of the first video data stored in the cache according to a timestamp
  • the second processing unit is configured to perform the slow playback of the sorted data packets in a chronological order at a first code rate; wherein, the first code rate is according to the third time and the second time The time period T between them is obtained.
  • the first processing unit includes:
  • a first processing subunit configured to decode a data packet of the first video data stored in the cache
  • the second processing sub-unit is configured to encode the decoded data, so that the encoded frame data is subjected to a real-time transmission protocol RTP packet;
  • the third processing subunit is configured to sort the encapsulated data packets according to a timestamp.
  • the time period T is a signal connection between the monitoring terminal and the media server.
  • Interrupt duration which is obtained by analyzing the signal strength or geographic information within a preset distance.
  • the wireless video processing device further includes:
  • the first acquiring module is configured to acquire a preset interrupt duration sent by the monitoring terminal, where the preset interrupt duration is that the monitoring terminal compares the strength of the signal with a preset threshold, and the strength of the signal is less than the preset valve. When the value is obtained, it is sent that the signal will be interrupted.
  • the wireless video processing device further includes:
  • the second obtaining module is configured to obtain an interrupt duration of the signal sent by the monitoring terminal, where the interruption duration of the signal is that the monitoring terminal obtains a signal obstacle in front of the geographic information display according to the geographic information within the preset distance
  • the signal will be obtained after the interruption according to the geographical information of the signal barrier and the moving speed of the current monitoring terminal.
  • the second obtaining module includes:
  • the server restores the distance value between the geographic information of the second location at the time of the signal connection; V refers to the moving speed of the current monitoring terminal.
  • the third processing module includes:
  • a third processing unit configured to sort the data packets of the second video data and the third video data stored in the cache according to a timestamp
  • the fourth processing unit is configured to perform fast playback of the sorted data packets in a chronological order at a second code rate.
  • the third processing unit includes:
  • a fourth processing subunit configured to decode the second video data and the data packet of the third video data stored in the cache
  • a fifth processing sub-unit configured to encode the decoded data to obtain a number of encoded frames According to the real-time transmission protocol RTP packet;
  • the sixth processing subunit is configured to sort the encapsulated data packets according to a timestamp.
  • the device is a device to which the above-described wireless video processing method is applied, and the implementation method of the wireless video processing method is applicable to the device, and the same technical effect can be achieved.
  • the embodiment of the present invention further provides a media server, where the media server is configured to acquire the first video data sent by the monitoring terminal, and cache the data in the local cache; and to the monitoring terminal and the device at the first moment.
  • the first video data stored in the cache is played during a second time period when the media server resumes the signal connection; wherein the first video data is the monitoring terminal and the media server interrupt signal connection Sent before the first moment.
  • the media server is further configured to acquire, by the monitoring terminal, the collected second video data and the second time between the third moment and the second moment that are connected to the media server by the monitoring terminal.
  • the third video data collected from the timed to the fourth time is cached in the local cache; and the second video data and the third video data are played in the time period from the second time to the fourth time;
  • the fourth time is the time when the second video data and the third video data stored in the local cache are all played.
  • the media server is a device to which the above wireless video processing method is applied, and the implementation method of the wireless video processing method is applicable to the media server, and the same technical effect can be achieved.
  • the embodiment of the invention further provides a wireless video processing method, which is applied to a monitoring terminal, and includes:
  • Step 21 Real-time detection of the signal connection status between the monitoring terminal and the media server
  • Step 22 Acquire the first video data at a first moment before the monitoring terminal and the media server interrupt signal are connected, and send the first video data to the media server;
  • Step 23 When the monitoring terminal and the media server interrupt the signal connection, control the video capture device of the monitoring terminal to obtain the second time between the third time and the second time when the monitoring terminal and the media server resume the signal connection. Video data, and sent to the media server.
  • the wireless video processing method of the embodiment of the present invention can detect the signal connection status between the monitoring terminal and the media server in real time, and pre-record the video in the interruption period after the signal is interrupted, and send the signal after the recovery signal is connected.
  • the media server ensures the smoothness of the surveillance video.
  • the wireless video processing method further includes:
  • Step 24a Obtain an intensity of the signal and compare it with a preset threshold. When the strength of the signal is less than the preset threshold, the interrupted duration is sent to the media server after the signal connection is interrupted. ; or
  • Step 24b Obtain geographic information in a preset distance in front, and a signal barrier exists in front of the geographic information indication, and obtain the signal according to the geographic information of the signal barrier and the current vehicle speed after the signal is interrupted. The interruption time is sent to the media server.
  • the wireless video processing method of the embodiment of the present invention can obtain the interrupt duration according to different situations and send it to the media server, and cooperate with the media server to ensure the smoothness of the monitoring video.
  • the present invention further provides a wireless video processing device, which is applied to a monitoring terminal, and includes: a first detecting module configured to detect a signal connection state between the monitoring terminal and the media server in real time;
  • the fifth processing module is configured to acquire the first video data at a first moment before the monitoring terminal and the media server interrupt signal connection, and send the first video data to the media server;
  • a sixth processing module configured to: when the monitoring terminal is connected to the media server to interrupt the signal, control the video capture device of the monitoring terminal to obtain the second moment from the third time to the connection between the monitoring terminal and the media server recovery signal The second video data is sent to the media server.
  • the wireless video processing device further includes:
  • a third obtaining module configured to acquire a strength of the signal and compare it with a preset threshold, in the letter The intensity of the number is less than the preset threshold, and the interrupted duration is sent to the media server after the signal connection is interrupted;
  • the fourth obtaining module is configured to obtain geographic information within a preset distance, and a signal barrier exists in front of the geographic information indication, and the obtained information is interrupted according to the geographical information of the signal barrier and the current vehicle speed. The interruption time of the signal is sent to the media server.
  • the device is a device to which the above-described wireless video processing method is applied, and the implementation method of the wireless video processing method is applicable to the device, and the same technical effect can be achieved.
  • the embodiment of the present invention further provides a monitoring terminal, where the monitoring terminal detects a signal connection state between the monitoring terminal and the media server in real time; and acquires the first video data at a first moment before the monitoring terminal connects with the media server to interrupt the signal. And sending to the media server; when the monitoring terminal and the media server interrupt the signal connection at the third moment, controlling the video collection device of the monitoring terminal to acquire the second moment from the third moment to the connection between the monitoring terminal and the media server recovery signal The second video data is sent to the media server.
  • the monitoring terminal is further configured to acquire the strength of the signal and compare it with a preset threshold. When the strength of the signal is less than the preset threshold, the preset interrupt duration is obtained after the signal connection is interrupted.
  • the monitoring terminal is communicatively connected with the media server.
  • the network signal state monitoring function can also be performed, and the media server is triggered to perform data processing and local pre-recording when the signal is to be interrupted, and the media server is used to ensure monitoring of the client.
  • Its video capture device can be implemented by a camera.
  • the monitoring terminal is a monitoring terminal to which the above wireless video processing method is applied,
  • the implementation of the line video processing method is applicable to the monitoring terminal, and can achieve the same technical effect.
  • An embodiment of the present invention further provides a monitoring system, including: a media server, a monitoring client communicatively coupled to the media server, and a video monitoring platform communicatively coupled to the media server;
  • the media server is configured to acquire the first video data sent by the monitoring terminal, and cache the data in the local cache; and when the monitoring terminal and the media server resume the signal connection, the second time is Controlling, by the monitoring client, the first video data stored in the cache, where the first video data is sent at a first time before the monitoring terminal is connected to the media server of.
  • the monitoring terminal further includes: detecting, by the monitoring terminal, the signal connection status between the monitoring terminal and the media server in real time; acquiring the first video data at the first moment before the monitoring terminal and the media server interrupting the signal connection, and sending the first video data to the monitoring terminal a media server; when the monitoring terminal and the media server interrupt the signal connection at a third moment, controlling the video capture device of the monitoring terminal to obtain a second time between the third moment and the second moment when the monitoring terminal and the media server resume the signal connection Video data, and sent to the media server.
  • the monitoring system is a system to which the above-described wireless video processing method is applied, and the implementation method of the above wireless video processing method is applicable to the monitoring system, and can achieve the same technical effect.
  • the wireless video processing method of the embodiment of the present invention acquires the first video data sent by the monitoring terminal, and caches the data in the local cache.
  • the first video data is before the monitoring terminal and the media server interrupt signal are connected. Transmitted at the first moment; during the second time period when the monitoring terminal resumes signal connection with the media server, broadcast
  • the first video data stored in the cache is placed.
  • the media server is capable of local dynamic caching. Therefore, the first moment before the monitoring terminal and the media server interrupt signal connection, the monitoring terminal determines that a signal interruption will occur to the time between the middle segments of the signal, so that the monitoring terminal can be
  • the first video data collected in real time is cached in the cache of the media server.
  • the cached video will be played, and the playing time is the second time when the monitoring terminal and the media server resume the signal connection, so that if a signal interruption occurs during the playing of the video, the video will not be affected. Fluency.
  • the first video data buffered to the media server before the signal is interrupted is played.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种无线视频处理方法、装置、媒体服务器、监控终端及系统,涉及视频监控领域。其中无线视频处理方法,应用于一媒体服务器,包括:获取监控终端发送的第一视频数据,并缓存于本地的缓存中;其中,所述第一视频数据是所述监控终端与所述媒体服务器中断信号连接之前的第一时刻发送的;在所述第一时刻到所述监控终端与所述媒体服务器恢复信号连接时的第二时刻时间段内,播放所述缓存中存储的所述第一视频数据。

Description

无线视频处理方法、 装置、 媒体服务器、 监控终端及系统 技术领域
本发明涉及视频监控领域, 尤其涉及一种无线视频处理方法、 装置、 媒体服务器、 监控终端及系统。 背景技术
无线视频监控是充分依托 3G网络的广泛覆盖、 高带宽、 可移动性的特 点, 提供音视频监控、 GPS定位、 IP数据传输、 智能图像分析报警等多功能 为一体的综合应用系统。 只要有能上网的地方都可以实时监控前端传来的 图像、 实时智能分析图像并进行联动报警, 完美的弥补了传统监控的先天 性不足; 是现代安防移动性、 突发性、 紧迫性的有机体现。 在国内外已经 有了较多的应用, 同时还具有非常大的市场潜力, 特别是在车载网络应用 方面。
但是, 在车辆行驶过程中, 随车的监控终端在移动到无线信号较弱甚 至没有无线信号覆盖的区域时, 会由于网络中断导致客户端视频重定向, 破坏了视频的流畅性, 引起客户端视频卡屏或黑屏等问题, 从而影响了用 户的满意度和用户体验。 发明内容
有鉴于此, 本发明实施例提供无线视频处理方法、 装置、 媒体服务器、 监控终端及系统, 至少解决了移动监控终端因网络信号临时中断而发生的 视频重定向时卡屏或黑屏等问题。
本发明的实施例提供一种无线视频处理方法, 应用于一媒体服务器, 包括: 获取监控终端发送的第一视频数据, 并緩存于本地的緩存中; 其中, 所述第一视频数据是所述监控终端与所述媒体服务器中断信号连接之前的 第一时刻发送的;
在所述第一时刻到所述监控终端与所述媒体服务器恢复信号连接时的 第二时刻时间段内 , 播放所述緩存中存储的所述第一视频数据。
其中, 所述方法还包括:
获取监控终端发送的所述监控终端与所述媒体服务器中断信号连接的 第三时刻与所述第二时刻之间的采集的第二视频数据以及所述第二时刻到 第四时刻采集的第三视频数据, 并緩存于本地的緩存中; 其中, 所述第四 时刻是本地的所述緩存中存储的所述第二视频数据以及第三视频数据全部 播放完成的时刻;
在第二时刻到第四时刻的时间段内, 播放所述第二视频数据以及第三 视频数据。
其中 , 播放所述緩存中存储的所述第一视频数据包括:
将所述緩存中存储的所述第一视频数据的数据包按照时间戳进行排 序;
将排序后的所述数据包按时间先后顺序以第一码率进行慢速播放; 其 中, 所述第一码率根据所述第三时刻与所述第二时刻之间的时间段 T获得。
其中, 将所述緩存中存储的所述第一视频数据的数据包按照时间戳进 行排序包括:
将所述緩存中存储的所述第一视频数据的数据包进行解码;
对解码后的数据进行编码, 使编码后的帧数据进行实时传输协议 RTP 封包;
将经封包后的数据包按照时间戳进行排序。
其中, 所述时间段 T为所述监控终端与所述媒体服务器的信号连接的 中断时长;
通过分析信号强度或者预设距离内的地理信息得到所述中断时长 τ。 其中, 通过所述分析信号强度得到所述中断时长 Τ包括:
获取监控终端发送的预设中断时长, 所述预设中断时长是监控终端将 其信号的强度与预设阀值比较, 在所述信号的强度小于所述预设阀值时, 得到所述信号将会发生中断后发送的。
其中, 通过所述预设距离内的地理信息得到中断时长 Τ包括: 获取监控终端发送的信号的中断时长;
所述信号的中断时长是监控终端根据其前方预设距离内的地理信息, 在所述地理信息显示前方存在信号障碍时, 得到所述信号将会发生中断后 根据所述信号障碍的地理信息及当前监控终端的移动速度, 获得所述信号 的中断时长。
其中, 监控终端根据其前方预设距离内的地理信息, 在所述地理信息 显示前方存在信号障碍时, 得到所述信号将会发生中断后根据所述信号障 碍的地理信息及当前监控终端的移动速度, 获得信号的中断时长包括: 通过公式: T = L/V, 获得信号的中断时长 T;
其中, L是指在监控终端与媒体服务器中断信号连接时刻的第一位置地 理信息和在监控终端与媒体服务器恢复信号连接时刻的第二位置地理信息 之间的距离值; V是指当前监控终端的移动速度。
其中, 所述播放所述第二视频数据以及第三视频数据包括:
将所述緩存中存储的所述第二视频数据以及第三视频数据的数据包按 照时间戳进行排序;
将排序后的所述数据包按时间先后顺序以第二码率进行快速播放。 其中, 将所述緩存中存储的所述第二视频数据以及第三视频数据的数 据包按照时间戳进行排序包括: 将所述緩存中存储的第二视频数据以及第三视频数据的数据包进行解 码;
对解码后的数据进行编码, 使编码后的帧数据进行实时传输协议 RTP 封包;
将经封包后的数据包按照时间戳进行排序。
本发明实施例还提供了一种无线视频处理装置, 包括:
第一处理模块, 配置为获取监控终端发送的第一视频数据, 并緩存于 本地的緩存中; 其中, 所述第一视频数据是所述监控终端与所述媒体服务 器中断信号连接之前的第一时刻发送的;
第二处理模块, 配置为在所述第一时刻到所述监控终端与所述媒体服 务器恢复信号连接时的第二时刻时间段内, 播放所述緩存中存储的所述第 一视频数据。
其中, 所述装置还包括:
第三处理模块, 配置为获取监控终端发送的所述监控终端与所述媒体 服务器中断信号连接的第三时刻与所述第二时刻之间的采集的第二视频数 据以及所述第二时刻到第四时刻采集的第三视频数据, 并緩存于本地的緩 存中; 其中, 所述第四时刻是本地的所述緩存中存储的所述第二视频数据 以及第三视频数据全部播放完成的时刻;
第四处理模块, 配置为在第二时刻到第四时刻的时间段内, 播放所述 第二视频数据以及第三视频数据。
所述第一处理模块、 所述第二处理模块、 所述第三处理模块、 所述第 四处理模块在执行处理时, 可以采用中央处理器(CPU, Central Processing Unit )、 数字信号处理器(DSP, Digital Singnal Processor )或可编程逻辑阵 歹 'J ( FPGA, Field - Programmable Gate Array ) 实现。
本发明实施例还提供了一种媒体服务器, 所述媒体服务器, 配置为获 取监控终端发送的第一视频数据, 并緩存于本地的緩存中; 并在所述第一 时刻到所述监控终端与所述媒体服务器恢复信号连接时的第二时刻时间段 内, 播放所述緩存中存储的所述第一视频数据; 其中, 所述第一视频数据 是所述监控终端与所述媒体服务器中断信号连接之前的第一时刻发送的。
其中, 所述媒体服务器, 还配置为获取监控终端发送的所述监控终端 与所述媒体服务器中断信号连接的第三时刻与所述第二时刻之间的采集的 第二视频数据以及所述第二时刻到第四时刻采集的第三视频数据 , 并緩存 于本地的緩存中; 并在第二时刻到第四时刻的时间段内, 播放所述第二视 频数据以及第三视频数据; 其中, 所述第四时刻是本地的所述緩存中存储 的所述第二视频数据以及第三视频数据全部播放完成的时刻。
本发明实施例还提供了一种无线视频处理方法, 应用于监控终端, 包 括:
实时检测监控终端与媒体服务器之间的信号连接状态;
在监控终端与媒体服务器中断信号连接前的第一时刻, 获取第一视频 数据, 并发送给媒体服务器;
在监控终端与媒体服务器中断信号连接的第三时刻时, 控制所述监控 终端的视频采集装置, 获取第三时刻至监控终端与媒体服务器恢复信号连 接的第二时刻之间的第二视频数据, 并发送给媒体服务器。
本发明还提供一种无线视频处理装置, 应用于监控终端, 包括: 第一检测模块, 配置为实时检测监控终端与媒体服务器之间的信号连 接状态;
第五处理模块, 配置为在监控终端与媒体服务器中断信号连接前的第 一时刻, 获取第一视频数据, 并发送给媒体服务器;
第六处理模块, 配置为在监控终端与媒体服务器中断信号连接的第三 时刻时, 控制所述监控终端的视频采集装置, 获取第三时刻至监控终端与 媒体服务器恢复信号连接的第二时刻之间的第二视频数据, 并发送给媒体 服务器。
所述第一检测模块、 所述第五处理模块、 所述第六处理模块在执行处 理时, 可以采用中央处理器(CPU, Central Processing Unit ), 数字信号处 理器(DSP, Digital Singnal Processor )或可编程逻辑阵列 (FPGA, Field - Programmable Gate Array ) 实现。
本发明实施例还提供了一种监控终端, 所述监控终端配置为实时检测 监控终端与媒体服务器之间的信号连接状态; 在监控终端与媒体服务器中 断信号连接前的第一时刻, 获取第一视频数据, 并发送给媒体服务器; 在 监控终端与媒体服务器中断信号连接的第三时刻时, 控制所述监控终端的 视频采集装置, 获取第三时刻至监控终端与媒体服务器恢复信号连接的第 二时刻之间的第二视频数据, 并发送给媒体服务器。
其中, 所述监控终端还配置为获取信号的强度并与预设阀值比较, 在 所述信号的强度小于所述预设阀值, 得到所述信号连接将会发生中断后将 预设中断时长发送至所述媒体服务器; 获取前方预设距离内的地理信息, 在所述地理信息指示前方存在信号障碍, 得到所述信号将会发生中断后根 据所述信号障碍的地理信息及当前车速, 获得所述信号的中断时长并发送 至所述媒体服务器。
本发明实施例还提供了一种监控系统, 包括: 媒体服务器, 与所述媒 体服务器通信连接的监控客户端以及与所述媒体服务器通信连接的视频监 控平台;
其中, 所述媒体服务器配置为获取监控终端发送的第一视频数据, 并 緩存于本地的緩存中; 并在所述第一时刻到所述监控终端与所述媒体服务 器恢复信号连接时的第二时刻时间段内 , 控制监控客户端播放所述緩存中 存储的所述第一视频数据; 其中, 所述第一视频数据是所述监控终端与所 述媒体服务器中断信号连接之前的第一时刻发送的。
其中, 还包括: 监控终端, 所述监控终端配置为实时检测监控终端与 媒体服务器之间的信号连接状态; 在监控终端与媒体服务器中断信号连接 前的第一时刻, 获取第一视频数据, 并发送给媒体服务器; 在监控终端与 媒体服务器中断信号连接的第三时刻时, 控制所述监控终端的视频采集装 置, 获取第三时刻至监控终端与媒体服务器恢复信号连接的第二时刻之间 的第二视频数据, 并发送给媒体服务器。
本发明的上述技术方案的有益效果如下:
本发明实施例的无线视频处理方法, 获取监控终端发送的第一视频数 据, 并緩存于本地的緩存中; 其中, 所述第一视频数据是所述监控终端与 所述媒体服务器中断信号连接之前的第一时刻发送的; 在所述第一时刻到 所述监控终端与所述媒体服务器恢复信号连接时的第二时刻时间段内, 播 放所述緩存中存储的所述第一视频数据。 该媒体服务器是能够进行本地动 态緩存的, 因此在监控终端与媒体服务器中断信号连接之前的第一时刻, 是指监控终端判断将会发生信号中断到信号中段之间的时刻 , 这样能够将 监控终端实时采集到的第一视频数据緩存到媒体服务器的緩存中。 同时又 会将緩存的视频进行播放, 而播放时间是截止到监控终端与媒体服务器恢 复信号连接的第二时刻, 这样, 在播放视频的时间段内一旦发生了信号中 断, 也不会影响视频的流畅性。 信号中断的时间内, 播放的是信号中断前 緩存到媒体服务器内的第一视频数据。 附图说明
图 1为图 1表示本发明实施例的无线视频处理方法的流程示意图; 图 2表示本发明实施例的无线视频处理方法应用场景一的示意图; 图 3表示本发明实施例的无线视频处理方法应用场景一的时间分析示 意图; 图 4表示本发明实施例的无线视频处理方法应用场景二的网络切换模 型图;
图 5表示本发明实施例的无线视频处理方法应用场景三的示意图; 图 6表示本发明实施例的无线视频处理装置的结构示意图。 具体实施方式
为使本发明要解决的技术问题、 技术方案和优点更加清楚, 下面将结 合附图及具体实施例进行详细描述。
本发明针对现有的无线视频监控中, 视频数据是由监控终端实时采集 的, 经网络媒体服务器在客户端同步播放, 然而一旦网络信号临时中断, 就会发生视频重定向出现卡屏或黑屏等问题, 因此, 提供了一种无线视频 处理方法、 装置、 媒体服务器、 监控终端及系统。
如图 1 所示, 本发明实施例的一种无线视频处理方法, 应用于一媒体 服务器, 包括:
步骤 11 , 获取监控终端发送的第一视频数据, 并緩存于本地的緩存中; 其中, 所述第一视频数据是所述监控终端与所述媒体服务器中断信号连接 之前的第一时刻发送的;
步骤 12, 在所述第一时刻到所述监控终端与所述媒体服务器恢复信号 连接时的第二时刻时间段内 , 播放所述緩存中存储的所述第一视频数据。
该媒体服务器是能够进行本地动态緩存的, 因此在监控终端与媒体服 务器中断信号连接之前的第一时刻, 是指监控终端判断将会发生信号中断 到信号中段之间的时刻 , 这样能够将监控终端实时采集到的第一视频数据 緩存到媒体服务器的緩存中。 同时又会将緩存的视频进行播放, 而播放时 间是截止到监控终端与媒体服务器恢复信号连接的第二时刻, 这样, 在播 放视频的时间段内一旦发生了信号中断, 也不会影响视频的流畅性。 信号 中断的时间内, 播放的是信号中断前緩存到媒体服务器内的第一视频数据。 例如, 在 a 时刻接收到监控终端信息将要发生信号中断, 信号连接中 断时刻为 b时刻, 在 c时刻恢复信号连接, 那么在 a-b时间段内, 按照上述 步骤监控终端采集的视频实时动态緩存到媒体服务器中,而媒体服务器从 a 时刻并不是实时播放监控终端采集的视频 , 而是播放的媒体服务器中緩存 的视频, 直至恢复信号连接时刻 c时刻。 因此, 在 b-c信号连接中断时间段 内, 客户端看到的视频都是流畅的。
众所周知, 要想将较短时间内的视频延时播放, 那么需要降低播放速 度 , 故播放所述緩存中存储的所述第一视频数据的步骤包括:
步骤 111 ,将所述緩存中存储的所述第一视频数据的数据包按照时间戳 进行 ^非序;
时间戳是能够唯一标识某一时刻时间, 将数据包按时间戳排序, 避免 了緩存数据出现时间上的无序, 保证了视频的质量。
步骤 112,将排序后的所述数据包按时间先后顺序以第一码率进行慢速 播放; 其中, 所述第一码率根据所述第三时刻与所述第二时刻之间的时间 段 T获得。
由于媒体服务器的动态緩存数量为 A的视频数据, 第一码率能够通过 v^A/T来获得。
其中, 步骤 111包括:
步骤 1111 ,将所述緩存中存储的所述第一视频数据的数据包进行解码; 步骤 1112, 对解码后的数据进行编码, 使编码后的帧数据进行实时传 输协议 RTP封包;
步骤 1113, 将经封包后的数据包按照时间戳进行排序。
将緩存中存储的第一视频数据的数据包进行解码, 然后进行编码, 使 编码后的帧数据进行实时传输协议 RTP封包 , 这样 , 客户端收到的就直接 是媒体流数据, 可以直接播放。 再将经封包后的数据包按照时间戳进行排 序后按时间先后顺序以得到的第一码率进行慢速播放, 实现了视频延时播 放。
其中, 所述时间段 T为所述监控终端与所述媒体服务器的信号连接的 中断时长, 该中断时长通过分析信号强度或者预设距离内的地理信息得到 的。
其中, 所述通过分析信号强度得到中断时长 T的步骤包括:
步骤 13a, 获取监控终端发送的预设中断时长, 所述预设中断时长是监 控终端将其信号的强度与预设阀值比较, 在所述信号的强度小于所述预设 阀值时, 得到所述信号将会发生中断后发送的。
在监控终端将其信号的强度与预设阀值比较后, 得到所述信号的强度 小于所述预设阀值时, 就可将已提前设置好的预设中断时长并发送, 媒体 服务器就可接收到发送的预设中断时长。
其中, 所述通过预设距离内的地理信息得到中断时长 T的步骤包括: 步骤 13b, 获取监控终端发送的信号的中断时长, 所述信号的中断时长 是监控终端根据其前方预设距离内的地理信息, 在所述地理信息显示前方 存在信号障碍时 , 得到所述信号将会发生中断后根据所述信号障碍的地理 信息及当前监控终端的移动速度, 获得的。
监控终端能够通过 GPS定位获取到前方预设距离内的地理信息, 在地 理信息显示前方存在信号障碍判断得到信号将会发生中断, 即可根据信号 障碍的地理信息及当前监控终端的移动速度获得中断时长并发送。 媒体服 务器就接收到监控终端发送的信号的中断时长。
其中, 步骤 13b包括:
通过公式: T = L/V, 获得信号的中断时长 T;
其中, L是指在监控终端与媒体服务器中断信号连接时刻的第一位置地 理信息和在监控终端与媒体服务器恢复信号连接时刻的第二位置地理信息 之间的距离值; V是指当前监控终端的移动速度。
监控终端能够通过 GPS定位获取到前方预设距离内的地理信息, 那么 就可以定位中断信号连接时刻的第一位置地理信息和恢复信号连接时刻的 第二位置地理信息之间的距离值 L, 以及检测到当前监控终端的移动速度 V, 那么通过公式: T = L/V, 就可以获得信号的中断时长 T了。
当然, 上述中断时长 T的获得方法仅是一种较佳的实现方式, 还可以 通过直接获取曾经出现信号中断的区域的中断时长的记录, 对其他的实现 方式在此不——列举。
应该了解到的是, 上述步骤保证了信号连接中断时仍有视频播放, 但 此时播放的视频还是中断前的, 要使得视频的完整, 本发明实施例的无线 视频处理方法, 还包括:
步骤 14, 获取监控终端发送的所述监控终端与所述媒体服务器中断信 号连接的第三时刻与所述第二时刻之间的采集的第二视频数据以及所述第 二时刻到第四时刻采集的第三视频数据, 并緩存于本地的緩存中; 其中, 所述第四时刻是本地的所述緩存中存储的所述第二视频数据以及第三视频 数据全部播放完成的时刻;
其中, 第二视频数据是监控终端在其与媒体服务器中断信号连接的第 三时刻与所述第二时刻之间采集的, 即中断信号连接的时间段内采集的视 频数据; 第三视频数据是监控终端在第二时刻到第四时刻采集的, 即恢复 信号连接后监控终端实时采集的视频。
步骤 15 , 在第二时刻到第四时刻的时间段内, 播放所述第二视频数据 以及第三视频数据。
监控终端在信号连接中断的情况下能够实时采集视频数据 , 但是由于 信号连接的中断并不能传送到媒体服务器 , 而是存储在本地的空间的第二 视频数据, 因此在恢复信号连接时第二时刻, 媒体服务器就会接收到第二 视频数据和监控终端实时采集的第三视频数据, 并动态緩存这两部分数据。 同时, 媒体服务器也播放緩存的连部分视频数据, 直至播放与采集同步, 緩存中不在存在视频数据。
延续上例, 在 a时刻接收到监控终端信息将要发生信号中断, 信号连 接中断时刻为 b时刻, 在 c时刻恢复信号连接, 在 d时刻播放与采集同步, 緩存中不再存在视频数据。 那么在恢复信号连接的 c 时刻, 也不是实时播 放监控终端采集的视频数据, 而是 c-d时间段内, 将 b-c时间段内监控终端 采集的视频数据和 c 时刻后监控终端实时采集的视频数据进行播放, 直至 播放与采集同步, 緩存中不在存在视频数据。
要想将较长时间内的视频超前播放, 那么需要加快播放速度, 播放所 述第二视频数据以及第三视频数据的步骤包括:
步骤 141 ,将所述緩存中存储的所述第二视频数据以及第三视频数据的 数据包按照时间戳进行排序;
步骤 142,将排序后的所述数据包按时间先后顺序以第二码率进行快速 播放。
其中, 第二码率为一预设码率, 此码率要快于正常的播放速度。
其中, 步骤 141包括:
步骤 1411 , 将所述緩存中存储的第二视频数据以及第三视频数据的数 据包进行解码;
步骤 1412, 对解码后的数据进行编码, 使编码后的帧数据进行实时传 输协议 RTP封包;
步骤 1413, 将经封包后的数据包按照时间戳进行排序。
同样的, 将緩存中存储的第二视频数据和第三视频数据的数据包进行 解码, 然后进行编码, 使编码后的帧数据进行实时传输协议 RTP封包, 这 样, 客户端收到的就直接是媒体流数据, 可以直接播放。 再将经封包后的 数据包按照时间戳进行排序后按时间先后顺序以得到的第二码率进行快速 播放, 实现了视频超前播放。
快速播放完成即第四时刻后, 将接收的监控终端采集的视频数据以第 三速率播放, 使监控终端的视频采集速度与监控客户端的视频播放速度同 步, 恢复监控视频的实时性。
下面结合具体应用场景说明本发明实施例的无线视频处理方法: 场景一: 无线车载监控终端穿过隧道时信号中断场景
本发明实施例中提出的监控终端支持与 GPS导航地图对接的接口, 通 过此接口, 可以掌握车辆行 3史路线上隧道的相应情况, 如隧道长度、 隧道 位置等。 其中如图所示, 无线车载监控系统包括移动监控终端主要负责视 频信息的采集; 媒体服务器主要负责媒体数据的存储及转发; 视频监控平 台主要负责监控终端与客户端信息维护、 鉴权等操作; 监控客户端主要负 责监控终端采集上来的视频进行展示, 方便客户观看。
在移动监控终端进入隧道前可提前预测出穿过隧道的所需要的时长 T 等于隧道长度(L ) 除以穿过隧道时的预测车速(V ), 其中 T表示本发明 中提到的中断时长, 即中断时长 T = L/V, 假设中断时长 T为 10秒, 其中 隧道长度可以通过连接的 GPS导航地图得到, 车速也即是监控终端的移动 速度。
如图 2所述, 在移动监控终端进入隧道前, 移动监控终端探测到将要 中断信号连接, 通知媒体服务器要求其放緩视频码率。 若 50秒的视频放緩 到 60秒的时间播放, 则网络探测模块需要在进入隧道前 5T的时间通知媒 体服务器放緩视频码率, 即图 3中的 -5T时间点开始, 在媒体服务器緩存中 动态緩存 T秒的移动监控终端采集的媒体流数据, 以保证移动监控终端网 络信号中断 T秒的过程中监控客户端的视频不会中断。
在监控终端进入隧道信号中断后, 监控终端触发进行预录处理(图 3 中隧道入口所在时间点 0 ), 将信号中断这段时间的视频数据存储在监控终 端本地, 避免无线网络信号中断时视频信息的丟失。
当监控终端移动到隧道出口时, 此时无线网络信号也已恢复, 监控终 端预录的数据和当前采集到的媒体流数据发往媒体服务器进行组合及加快 视频码率处理, 若 60秒的视频加速到 50秒的时间播放, 则在穿出隧道后 5T的时间内可完成预录和当前媒体流数据的播放, 即图 3中的 6T时间点 开始需要进行同步处理, 保证监控客户端在 6T后视频播放的实时性。
如图 2所示, 本发明实施例的是通过牺牲 (-5T, 6T)时间段客户端视频 的实时性来解决信号中断 (0, T)时间段的视频丟失和客户端重定向导致视频 中断的问题。
场景二: 移动监控终端发生网络切换时的应用场景
本发明实施例中提出的移动监控终端支持移动 IPv6协议, 当移动监控 终端移出家乡网络时支持网络切换; 同时, 监控终端可根据当前接入网络 信号强度提前调用出网络切换所需要时间 , 网络切换模型如图 4所示。
当移动监控终端当前接入网络信号强度小于某阀值 a 时, 则判定即将 发生网络切换。此时, 由监控终端调用提前预设的网络切换所需要的时长 T 秒, 其中 T表示本发明实施例中提到的中断时长。 同时, 监控终端通知媒 体服务器要求其进行放緩视频码率处理。 与场景一类似, 监控终端需要在 进入网络切换前 5T的时间通知媒体服务器进行放緩视频码率处理,在媒体 服务器动态緩存中緩存 T秒的媒体流数据。 以保证移动监控终端网络信号 中断 T秒的过程中监控客户端的视频不会中断。
当移动监控终端离开家乡网络, 发生网络切换的工作流程如下: 当移动监控终端移动到外地链路时, 移动监控终端的家乡地址保持不 变, 同时获得一个临时的 IP地址 (即转交地址)。 移动监控终端把家乡地址 与转交地址的映射告知家乡代理 HA。 媒体服务器 SS与移动监控终端通信 仍然使用移动监控终端的家乡地址, 数据包仍然发往移动监控终端的家乡 网段; 家乡代理 HA截获这些数据包, 并根据已获得的映射关系通过隧道 方式将其转发给移动监控终端的转交地址。 移动监控终端则可以直接和媒 体服务器 SS进行通信。
同时, 移动监控终端也会将家乡地址与转交地址的映射关系告知媒体 服务器 SS, 当媒体服务器 SS知道了移动节点的转交地址就可以直接将数 据包转发到其转交地址所在的外地网段。这样媒体服务器 SS与移动监控终 端之间就可以直接进行正常通信。
在移动监控终端发生网络切换时, 监控终端触发进行预录处理, 将信 号中断这段时间的媒体流存储在监控终端本地, 避免无线网络信号中断时 视频信息的丟失。 当移动监控终端完成网络切换时, 将监控终端预录的数 据和当前采集到的媒体流数据发往流媒体服务器进行组合及加快视频码率 处理。 与场景一类似, 当完成预录和当前媒体流数据的播放后, 需要进行 同步处理, 保证监控客户端在短时间内进入实时视频的播放。
场景三: 扩展到对等网络 P2P监控系统的应用
P2P监控系统是将监控客户端与监控终端进行直连来完成视频监控基 本功能。 本发明实施例中提出的媒体流动态緩存 (视频数据动态緩存)及 码率处理可在监控客户端实现, 移动监控终端的网络探测、 视频采集、 媒 体流预录等功能保持不变, 这样, 本发明可扩展到无线 P2P监控系统中来 解决移动监控终端因网络信号异常导致客户端视频重定向问题。 无线 P2P 监控系统的结构示意图如图 5所示。
为了解决上述问题, 如图 6所示, 本发明实施例还提供了一种无线视 频处理装置, 包括:
第一处理模块 10, 配置为获取监控终端发送的第一视频数据, 并緩存 于本地的緩存中; 其中, 所述第一视频数据是所述监控终端与所述媒体服 务器中断信号连接之前的第一时刻发送的;
第二处理模块 20, 配置为在所述第一时刻到所述监控终端与所述媒体 服务器恢复信号连接时的第二时刻时间段内 , 播放所述緩存中存储的所述 第一视频数据。
其中, 还包括:
第三处理模块, 配置为获取监控终端发送的所述监控终端与所述媒体 服务器中断信号连接的第三时刻与所述第二时刻之间的采集的第二视频数 据以及所述第二时刻到第四时刻采集的第三视频数据, 并緩存于本地的緩 存中; 其中, 所述第四时刻是本地的所述緩存中存储的所述第二视频数据 以及第三视频数据全部播放完成的时刻;
第四处理模块, 配置为在第二时刻到第四时刻的时间段内, 播放所述 第二视频数据以及第三视频数据。
其中, 所述第一处理模块包括:
第一处理单元, 配置为将所述緩存中存储的所述第一视频数据的数据 包按照时间戳进行排序;
第二处理单元, 配置为将排序后的所述数据包按时间先后顺序以第一 码率进行慢速播放; 其中, 所述第一码率根据所述第三时刻与所述第二时 刻之间的时间段 T获得。
其中, 所述第一处理单元包括:
第一处理子单元, 配置为将所述緩存中存储的所述第一视频数据的数 据包进行解码;
第二处理子单元, 配置为对解码后的数据进行编码, 使编码后的帧数 据进行实时传输协议 RTP封包;
第三处理子单元, 配置为将经封包后的数据包按照时间戳进行排序。 其中, 所述时间段 T为所述监控终端与所述媒体服务器的信号连接的 中断时长, 该中断时长通过分析信号强度或者预设距离内的地理信息得到 的。
其中, 所述无线视频处理装置还包括:
第一获取模块, 配置为获取监控终端发送的预设中断时长, 所述预设 中断时长是监控终端将其信号的强度与预设阀值比较, 在所述信号的强度 小于所述预设阀值时 , 得到所述信号将会发生中断后发送的。
其中, 所述无线视频处理装置还包括:
第二获取模块, 配置为获取监控终端发送的信号的中断时长, 所述信 号的中断时长是监控终端根据其前方预设距离内的地理信息, 在所述地理 信息显示前方存在信号障碍时, 得到所述信号将会发生中断后根据所述信 号障碍的地理信息及当前监控终端的移动速度, 获得的。
其中, 所述第二获取模块包括:
第一获取单元, 配置为通过公式: T = L/V, 获得信号的中断时长 T; 其中, L是指在监控终端与媒体服务器中断信号连接时刻的第一位置地 理信息和在监控终端与媒体服务器恢复信号连接时刻的第二位置地理信息 之间的距离值; V是指当前监控终端的移动速度。
其中, 所述第三处理模块包括:
第三处理单元, 配置为将所述緩存中存储的所述第二视频数据以及第 三视频数据的数据包按照时间戳进行排序;
第四处理单元, 配置为将排序后的所述数据包按时间先后顺序以第二 码率进行快速播放。
其中, 所述第三处理单元包括:
第四处理子单元, 配置为将所述緩存中存储的第二视频数据以及第三 视频数据的数据包进行解码;
第五处理子单元, 配置为对解码后的数据进行编码, 使编码后的帧数 据进行实时传输协议 RTP封包;
第六处理子单元, 配置为将经封包后的数据包按照时间戳进行排序。 需要说明的是, 该装置是应用了上述无线视频处理方法的装置, 无线 视频处理方法的实现方式适用于该装置, 也能达到同样的技术效果。
本发明实施例还提供了一种媒体服务器, 所述媒体服务器配置为获取 监控终端发送的第一视频数据, 并緩存于本地的緩存中; 并在所述第一时 刻到所述监控终端与所述媒体服务器恢复信号连接时的第二时刻时间段 内, 播放所述緩存中存储的所述第一视频数据; 其中, 所述第一视频数据 是所述监控终端与所述媒体服务器中断信号连接之前的第一时刻发送的。
其中, 所述媒体服务器还配置为获取监控终端发送的所述监控终端与 所述媒体服务器中断信号连接的第三时刻与所述第二时刻之间的采集的第 二视频数据以及所述第二时刻到第四时刻采集的第三视频数据 , 并緩存于 本地的緩存中; 并在第二时刻到第四时刻的时间段内, 播放所述第二视频 数据以及第三视频数据; 其中, 所述第四时刻是本地的所述緩存中存储的 所述第二视频数据以及第三视频数据全部播放完成的时刻。
同样的, 该媒体服务器是应用了上述无线视频处理方法的装置, 无线 视频处理方法的实现方式适用于该媒体服务器, 也能达到同样的技术效果。
本发明实施例还提供了一种无线视频处理方法, 应用于监控终端, 包 括:
步骤 21 , 实时检测监控终端与媒体服务器之间的信号连接状态; 步骤 22, 在监控终端与媒体服务器中断信号连接前的第一时刻, 获取 第一视频数据, 并发送给媒体服务器;
步骤 23 , 在监控终端与媒体服务器中断信号连接的第三时刻时, 控制 所述监控终端的视频采集装置, 获取第三时刻至监控终端与媒体服务器恢 复信号连接的第二时刻之间的第二视频数据, 并发送给媒体服务器。 通过上述步骤, 本发明实施例的无线视频处理方法能够实时检测监控 终端与媒体服务器之间的信号连接状态, 在信号中断后将中断时间段内的 视频进行预录, 并在恢复信号连接后发送至媒体服务器, 配合媒体服务器 保证了监控视频的流畅性。
在本发明实施例中, 无线视频处理方法还包括:
步骤 24a, 获取信号的强度并与预设阀值比较, 在所述信号的强度小于 所述预设阀值, 得到所述信号连接将会发生中断后将预设中断时长发送至 所述媒体服务器; 或
步骤 24b, 获取前方预设距离内的地理信息, 在所述地理信息指示前方 存在信号障碍, 得到所述信号将会发生中断后根据所述信号障碍的地理信 息及当前车速, 获得所述信号的中断时长并发送至所述媒体服务器。
通过上述步骤, 本发明实施例的无线视频处理方法能够根据不同情况 获得中断时长并发送至所述媒体服务器, 配合媒体服务器保证了监控视频 的流畅性。
本发明还提供一种无线视频处理装置, 应用于监控终端, 包括: 第一检测模块, 配置为实时检测监控终端与媒体服务器之间的信号连 接状态;
第五处理模块, 配置为在监控终端与媒体服务器中断信号连接前的第 一时刻, 获取第一视频数据, 并发送给媒体服务器;
第六处理模块, 配置为在监控终端与媒体服务器中断信号连接的第三 时刻时, 控制所述监控终端的视频采集装置, 获取第三时刻至监控终端与 媒体服务器恢复信号连接的第二时刻之间的第二视频数据, 并发送给媒体 服务器。
其中, 所述无线视频处理装置还包括:
第三获取模块, 配置为获取信号的强度并与预设阀值比较, 在所述信 号的强度小于所述预设阀值, 得到所述信号连接将会发生中断后将预设中 断时长发送至所述媒体服务器;
第四获取模块, 配置为获取前方预设距离内的地理信息, 在所述地理 信息指示前方存在信号障碍, 得到所述信号将会发生中断后根据所述信号 障碍的地理信息及当前车速, 获得所述信号的中断时长并发送至所述媒体 服务器。
需要说明的是, 该装置是应用了上述无线视频处理方法的装置, 无线 视频处理方法的实现方式适用于该装置, 也能达到同样的技术效果。
本发明实施例还提供了一种监控终端, 所述监控终端实时检测监控终 端与媒体服务器之间的信号连接状态; 在监控终端与媒体服务器中断信号 连接前的第一时刻, 获取第一视频数据, 并发送给媒体服务器; 在监控终 端与媒体服务器中断信号连接的第三时刻时, 控制所述监控终端的视频采 集装置, 获取第三时刻至监控终端与媒体服务器恢复信号连接的第二时刻 之间的第二视频数据 , 并发送给媒体服务器。
其中, 所述监控终端还配置为获取信号的强度并与预设阀值比较, 在 所述信号的强度小于所述预设阀值, 得到所述信号连接将会发生中断后将 预设中断时长发送至所述媒体服务器; 获取前方预设距离内的地理信息, 在所述地理信息指示前方存在信号障碍, 得到所述信号将会发生中断后根 据所述信号障碍的地理信息及当前车速, 获得所述信号的中断时长并发送 至所述媒体服务器。
所述监控终端与媒体服务器通信连接 , 在视频数据采集功能的基础上 , 还能够进行网络信号状态监控功能, 在信号将要中断时触发媒体服务器进 行数据处理及本地预录, 配合媒体服务器保证监控客户端接收到视频的完 整性。 其视频采集装置可以通过摄像头实现。
同样的, 该监控终端是应用了上述无线视频处理方法的监控终端, 无 线视频处理方法的实现方式适用于该监控终端, 也能达到同样的技术效果。 本发明实施例还提供了一种监控系统, 包括: 媒体服务器, 与所述媒 体服务器通信连接的监控客户端以及与所述媒体服务器通信连接的视频监 控平台;
其中, 所述媒体服务器配置为获取监控终端发送的第一视频数据, 并 緩存于本地的緩存中; 并在所述第一时刻到所述监控终端与所述媒体服务 器恢复信号连接时的第二时刻时间段内 , 控制监控客户端播放所述緩存中 存储的所述第一视频数据; 其中, 所述第一视频数据是所述监控终端与所 述媒体服务器中断信号连接之前的第一时刻发送的。
其中, 还包括: 监控终端, 所述监控终端实时检测监控终端与媒体服 务器之间的信号连接状态; 在监控终端与媒体服务器中断信号连接前的第 一时刻, 获取第一视频数据, 并发送给媒体服务器; 在监控终端与媒体服 务器中断信号连接的第三时刻时, 控制所述监控终端的视频采集装置, 获 取第三时刻至监控终端与媒体服务器恢复信号连接的第二时刻之间的第二 视频数据, 并发送给媒体服务器。
需要说明的是, 该监控系统是应用了上述的无线视频处理方法的系统, 上述无线视频处理方法实现方式适用于该监控系统, 也能达到相同的技术 效果。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 工业实用性
本发明实施例的无线视频处理方法, 获取监控终端发送的第一视频数 据, 并緩存于本地的緩存中; 其中, 所述第一视频数据是所述监控终端与 所述媒体服务器中断信号连接之前的第一时刻发送的; 在所述第一时刻到 所述监控终端与所述媒体服务器恢复信号连接时的第二时刻时间段内, 播 放所述緩存中存储的所述第一视频数据。 该媒体服务器是能够进行本地动 态緩存的, 因此在监控终端与媒体服务器中断信号连接之前的第一时刻, 是指监控终端判断将会发生信号中断到信号中段之间的时刻 , 这样能够将 监控终端实时采集到的第一视频数据緩存到媒体服务器的緩存中。 同时又 会将緩存的视频进行播放 , 而播放时间是截止到监控终端与媒体服务器恢 复信号连接的第二时刻, 这样, 在播放视频的时间段内一旦发生了信号中 断, 也不会影响视频的流畅性。 信号中断的时间内, 播放的是信号中断前 緩存到媒体服务器内的第一视频数据。

Claims

权利要求书
1. 一种无线视频处理方法, 应用于一媒体服务器, 包括:
获取监控终端发送的第一视频数据, 并緩存于本地的緩存中; 其中, 所述第一视频数据是所述监控终端与所述媒体服务器中断信号连接之前的 第一时刻发送的;
在所述第一时刻到所述监控终端与所述媒体服务器恢复信号连接时的 第二时刻时间段内 , 播放所述緩存中存储的所述第一视频数据。
2. 根据权利要求 1所述的无线视频处理方法, 其中, 所述方法还包括: 获取监控终端发送的所述监控终端与所述媒体服务器中断信号连接的 第三时刻与所述第二时刻之间的采集的第二视频数据、 以及所述第二时刻 到第四时刻采集的第三视频数据, 并緩存于本地的緩存中; 其中, 所述第 四时刻是本地的所述緩存中存储的所述第二视频数据以及第三视频数据全 部播放完成的时刻;
在第二时刻到第四时刻的时间段内, 播放所述第二视频数据以及第三 视频数据。
3. 根据权利要求 1所述的无线视频处理方法, 其中, 所述播放所述緩 存中存储的所述第一视频数据包括:
将所述緩存中存储的所述第一视频数据的数据包按照时间戳进行排 序;
将排序后的所述数据包按时间先后顺序以第一码率进行慢速播放; 其 中, 所述第一码率根据所述第三时刻与所述第二时刻之间的时间段 T获得。
4.根据权利要求 3所述的无线视频处理方法, 其中, 所述将所述緩存 中存储的所述第一视频数据的数据包按照时间戳进行排序包括:
将所述緩存中存储的所述第一视频数据的数据包进行解码;
对解码后的数据进行编码, 使编码后的帧数据进行实时传输协议 RTP 封包;
将经封包后的数据包按照时间戳进行排序。
5.根据权利要求 3所述的无线视频处理方法, 其中, 所述时间段 T为 所述监控终端与所述媒体服务器的信号连接的中断时长;
通过分析信号强度或者预设距离内的地理信息得到所述中断时长 T。
6. 根据权利要求 5所述的无线视频处理方法, 其中, 通过所述分析信 号强度得到所述中断时长 Τ包括:
获取监控终端发送的预设中断时长, 所述预设中断时长是监控终端将 其信号的强度与预设阀值比较, 在所述信号的强度小于所述预设阀值时, 得到所述信号将会发生中断后发送的。
7. 根据权利要求 5所述的无线视频处理方法, 其中, 通过所述预设距 离内的地理信息得到所述中断时长 Τ包括:
获取监控终端发送的信号的中断时长;
监控终端根据其前方预设距离内的地理信息, 在所述地理信息显示前 方存在信号障碍时, 得到所述信号将会发生中断后根据所述信号障碍的地 理信息及当前监控终端的移动速度, 获得所述信号的中断时长。
8. 根据权利要求 7所述的无线视频处理方法, 其中, 所述监控终端根 据其前方预设距离内的地理信息, 在所述地理信息显示前方存在信号障碍 时 , 得到所述信号将会发生中断后根据所述信号障碍的地理信息及当前监 控终端的移动速度, 获得信号的中断时长包括:
通过公式: T = L/V, 获得信号的中断时长 T;
其中, L是指在监控终端与媒体服务器中断信号连接时刻的第一位置地 理信息和在监控终端与媒体服务器恢复信号连接时刻的第二位置地理信息 之间的距离值; V是指当前监控终端的移动速度。
9. 根据权利要求 2所述的无线视频处理方法, 其中, 所述播放所述第 二视频数据以及第三视频数据包括:
将所述緩存中存储的所述第二视频数据以及第三视频数据的数据包按 照时间戳进行排序;
将排序后的所述数据包按时间先后顺序以第二码率进行快速播放。
10. 根据权利要求 9所述的无线视频处理方法, 其中, 所述将所述緩存 中存储的所述第二视频数据以及第三视频数据的数据包按照时间戳进行排 序包括:
将所述緩存中存储的第二视频数据以及第三视频数据的数据包进行解 码;
对解码后的数据进行编码, 使编码后的帧数据进行实时传输协议 RTP 封包;
将经封包后的数据包按照时间戳进行排序。
11. 一种无线视频处理装置, 包括:
第一处理模块, 配置为获取监控终端发送的第一视频数据, 并緩存于 本地的緩存中; 其中, 所述第一视频数据是所述监控终端与所述媒体服务 器中断信号连接之前的第一时刻发送的;
第二处理模块, 配置为在所述第一时刻到所述监控终端与所述媒体服 务器恢复信号连接时的第二时刻时间段内, 播放所述緩存中存储的所述第 一视频数据。
12. 根据权利要求 11所述的无线视频处理装置, 其中, 所述装置还包 括:
第三处理模块, 配置为获取监控终端发送的所述监控终端与所述媒体 服务器中断信号连接的第三时刻与所述第二时刻之间的采集的第二视频数 据、 以及所述第二时刻到第四时刻采集的第三视频数据, 并緩存于本地的 緩存中; 其中, 所述第四时刻是本地的所述緩存中存储的所述第二视频数 据以及第三视频数据全部播放完成的时刻;
第四处理模块, 配置为在第二时刻到第四时刻的时间段内, 播放所述 第二视频数据以及第三视频数据。
13. 一种媒体服务器, 所述媒体服务器, 配置为获取监控终端发送的第 一视频数据, 并緩存于本地的緩存中; 并在所述第一时刻到所述监控终端 与所述媒体服务器恢复信号连接时的第二时刻时间段内, 播放所述緩存中 存储的所述第一视频数据; 其中, 所述第一视频数据是所述监控终端与所 述媒体服务器中断信号连接之前的第一时刻发送的。
14. 根据权利要求 13所述的媒体服务器, 其中, 所述媒体服务器, 还 配置为获取监控终端发送的所述监控终端与所述媒体服务器中断信号连接 的第三时刻与所述第二时刻之间的采集的第二视频数据、 以及所述第二时 刻到第四时刻采集的第三视频数据, 并緩存于本地的緩存中; 并在第二时 刻到第四时刻的时间段内, 播放所述第二视频数据以及第三视频数据; 其 中, 所述第四时刻是本地的所述緩存中存储的所述第二视频数据以及第三 视频数据全部播放完成的时刻。
15. 一种无线视频处理方法, 应用于监控终端, 包括:
实时检测监控终端与媒体服务器之间的信号连接状态;
在监控终端与媒体服务器中断信号连接前的第一时刻, 获取第一视频 数据, 并发送给媒体服务器;
在监控终端与媒体服务器中断信号连接的第三时刻时, 控制所述监控 终端的视频采集装置, 获取第三时刻至监控终端与媒体服务器恢复信号连 接的第二时刻之间的第二视频数据, 并发送给媒体服务器。
16. 一种无线视频处理装置, 应用于监控终端, 包括:
第一检测模块, 配置为实时检测监控终端与媒体服务器之间的信号连 接状态; 第五处理模块, 配置为在监控终端与媒体服务器中断信号连接前的第 一时刻, 获取第一视频数据, 并发送给媒体服务器;
第六处理模块, 配置为在监控终端与媒体服务器中断信号连接的第三 时刻时, 控制所述监控终端的视频采集装置, 获取第三时刻至监控终端与 媒体服务器恢复信号连接的第二时刻之间的第二视频数据, 并发送给媒体 服务器。
17. 一种监控终端, 所述监控终端, 配置为实时检测监控终端与媒体服 务器之间的信号连接状态; 在监控终端与媒体服务器中断信号连接前的第 一时刻, 获取第一视频数据, 并发送给媒体服务器; 在监控终端与媒体服 务器中断信号连接的第三时刻时, 控制所述监控终端的视频采集装置, 获 取第三时刻至监控终端与媒体服务器恢复信号连接的第二时刻之间的第二 视频数据, 并发送给媒体服务器。
18. 一种监控系统, 包括: 媒体服务器, 与所述媒体服务器通信连接 的监控客户端以及与所述媒体服务器通信连接的视频监控平台;
其中, 所述媒体服务器, 配置为获取监控终端发送的第一视频数据, 并緩存于本地的緩存中; 并在所述第一时刻到所述监控终端与所述媒体服 务器恢复信号连接时的第二时刻时间段内 , 控制监控客户端播放所述緩存 中存储的所述第一视频数据; 其中, 所述第一视频数据是所述监控终端与 所述媒体服务器中断信号连接之前的第一时刻发送的。
19. 根据权利要求 18所述的监控系统, 其中, 所述系统还包括: 监控 终端, 所述监控终端配置为实时检测监控终端与媒体服务器之间的信号连 接状态; 在监控终端与媒体服务器中断信号连接前的第一时刻, 获取第一 视频数据, 并发送给媒体服务器; 在监控终端与媒体服务器中断信号连接 的第三时刻时, 控制所述监控终端的视频采集装置, 获取第三时刻至监控 终端与媒体服务器恢复信号连接的第二时刻之间的第二视频数据, 并发送 给媒体服务
PCT/CN2014/079526 2014-05-06 2014-06-09 无线视频处理方法、装置、媒体服务器、监控终端及系统 WO2015168973A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410189242.XA CN105100685A (zh) 2014-05-06 2014-05-06 无线视频处理方法、装置、媒体服务器、监控终端及系统
CN201410189242.X 2014-05-06

Publications (1)

Publication Number Publication Date
WO2015168973A1 true WO2015168973A1 (zh) 2015-11-12

Family

ID=54392038

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079526 WO2015168973A1 (zh) 2014-05-06 2014-06-09 无线视频处理方法、装置、媒体服务器、监控终端及系统

Country Status (2)

Country Link
CN (1) CN105100685A (zh)
WO (1) WO2015168973A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935490A (zh) * 2019-05-13 2020-11-13 深圳市茁壮网络股份有限公司 一种直播录流容灾处理方法及系统

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107306359A (zh) * 2016-04-18 2017-10-31 零度智控(北京)智能科技有限公司 一种无人机视频播放装置及方法
CN108512874A (zh) * 2017-02-27 2018-09-07 上海谦问万答吧云计算科技有限公司 一种在线答疑数据的同步方法及装置
CN106997300B (zh) * 2017-03-31 2020-04-10 Oppo广东移动通信有限公司 软件升级处理方法、装置和音频设备
WO2020000493A1 (zh) * 2018-06-30 2020-01-02 华为技术有限公司 一种媒体播放方法及播放设备
CN113518014A (zh) * 2020-04-10 2021-10-19 华为技术有限公司 一种数据传输方法以及通信设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200413926A (en) * 2003-01-23 2004-08-01 Pinsia Technologies Inc Method for preventing interruption of playing video/audio data
CN101552909A (zh) * 2009-04-28 2009-10-07 山东大学 基于无线视频监控的帧率控制方法
CN101640625A (zh) * 2008-07-30 2010-02-03 天津天地伟业数码科技有限公司 无线宽带网络条件下的监控系统
CN102439578A (zh) * 2009-03-18 2012-05-02 丛林网络公司 动态可变速率媒体传送系统
CN102572409A (zh) * 2011-12-19 2012-07-11 中山爱科数字科技股份有限公司 一种应用于移动视频监控防止扇区切换过程视频中断的方法
US8358345B1 (en) * 2007-03-19 2013-01-22 Monitoring Technology Corporation System and method of video capture for sports applications
CN103096028A (zh) * 2011-11-02 2013-05-08 中国移动通信集团公司 一种无线视频监控方法和设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200413926A (en) * 2003-01-23 2004-08-01 Pinsia Technologies Inc Method for preventing interruption of playing video/audio data
US8358345B1 (en) * 2007-03-19 2013-01-22 Monitoring Technology Corporation System and method of video capture for sports applications
CN101640625A (zh) * 2008-07-30 2010-02-03 天津天地伟业数码科技有限公司 无线宽带网络条件下的监控系统
CN102439578A (zh) * 2009-03-18 2012-05-02 丛林网络公司 动态可变速率媒体传送系统
CN101552909A (zh) * 2009-04-28 2009-10-07 山东大学 基于无线视频监控的帧率控制方法
CN103096028A (zh) * 2011-11-02 2013-05-08 中国移动通信集团公司 一种无线视频监控方法和设备
CN102572409A (zh) * 2011-12-19 2012-07-11 中山爱科数字科技股份有限公司 一种应用于移动视频监控防止扇区切换过程视频中断的方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935490A (zh) * 2019-05-13 2020-11-13 深圳市茁壮网络股份有限公司 一种直播录流容灾处理方法及系统
CN111935490B (zh) * 2019-05-13 2023-12-05 深圳市茁壮网络股份有限公司 一种直播录流容灾处理方法及系统

Also Published As

Publication number Publication date
CN105100685A (zh) 2015-11-25

Similar Documents

Publication Publication Date Title
WO2015168973A1 (zh) 无线视频处理方法、装置、媒体服务器、监控终端及系统
CN110248256B (zh) 数据的处理方法及装置、存储介质和电子装置
CN103237191B (zh) 在视频会议中同步推送音视频的方法
US9585062B2 (en) System and method for implementation of dynamic encoding rates for mobile devices
JP2020502873A (ja) パケット送信方法および装置、チップ、ならびに端末
JPWO2003041341A1 (ja) 映像伝送システムにおいて利用されるサーバ装置及び端末装置
WO2015058590A1 (zh) 一种视频直播控制方法、设备及系统和存储介质
CN107517410B (zh) 视频业务质量评估的方法及装置
CN104954633A (zh) 一种直播导播的方法、客户端及系统
KR20130122196A (ko) 핸드오버를 고려한 모바일 컨텐츠 제공 방법 및 이를 위한 장치
KR101749006B1 (ko) 화상 전화에서의 비디오 정지 표시
CN108924485B (zh) 客户端实时视频流中断处理方法及系统、监控系统
CN108600318B (zh) 监控视频调取方法、装置及服务器
US8301795B1 (en) Method and system for managing abnormal disconnects during a streaming media session
WO2019196158A1 (zh) 一种转码任务的处理方法、系统及任务管理服务器
CN109729438B (zh) 一种发送视频包、接收视频包的方法及装置
US9603039B2 (en) Opportunistic media patching for a communication session
KR20180031673A (ko) 영상 통화에서의 디스플레이 디바이스들의 스위칭
CN102572409A (zh) 一种应用于移动视频监控防止扇区切换过程视频中断的方法
WO2017114436A1 (zh) 一种用户连接的建立方法及装置
JP2003230125A (ja) ストリーム配信自動切り替え制御方法及びシステム
CN111131840A (zh) 一种视频业务系统切换网络的方法及装置
WO2014082294A1 (zh) 一种媒体流传输方法及相关设备、系统
WO2019070476A1 (en) REMOTE RELEASE OF COMMUNICATION THROUGH A COMPUTER DEVICE
JP2014143496A (ja) 送信装置、送信装置の制御方法およびプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14891290

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14891290

Country of ref document: EP

Kind code of ref document: A1