WO2016184332A1 - Video capturing method, and related device and system - Google Patents

Video capturing method, and related device and system Download PDF

Info

Publication number
WO2016184332A1
WO2016184332A1 PCT/CN2016/081657 CN2016081657W WO2016184332A1 WO 2016184332 A1 WO2016184332 A1 WO 2016184332A1 CN 2016081657 W CN2016081657 W CN 2016081657W WO 2016184332 A1 WO2016184332 A1 WO 2016184332A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
terminal
collection
capability
parameter
Prior art date
Application number
PCT/CN2016/081657
Other languages
French (fr)
Chinese (zh)
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 WO2016184332A1 publication Critical patent/WO2016184332A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/21805Source of audio or video content, e.g. local disk arrays enabling multiple viewpoints, e.g. using a plurality of cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting

Definitions

  • the present application relates to the field of video application technologies, and in particular, to a video collection method and related devices and systems.
  • a video real-time interaction scenario such as a video call or a video conference
  • the terminal participating in the interaction does not have a video capture unit such as a camera
  • the video capture cannot be achieved due to the inability to implement the corresponding video capture, so that the user's video is The application experience is lower.
  • the industry provides a video capture method using a camera phone as a computer camera to acquire video data, and the video capture method can be as follows:
  • the mobile phone having the camera function since the mobile phone having the camera function does not need to be connected to the computer through an interface such as a USB (Universal Serial Bus), the interface resources of the computer can be saved, and the connection of the device can be improved. Sex.
  • the video capture device that has been virtualized can be passively selected as the current video capture device of the computer, when the video capture capability of the virtualized video capture device is poor, There is a problem that the selected video capture device cannot meet the actual requirements of the application scenario, resulting in a low video capture effect and a poor video application experience of the user. At the same time, the device selection range is small and flexible. Poor question.
  • the virtual camera driver installed in the computer since for each mobile phone having a camera function, when the mobile phone is used as a video capture device of a computer device, the virtual camera driver installed in the computer needs to be virtualized accordingly. There is also the problem of increasing the complexity of the implementation.
  • the embodiment of the present invention provides a video collection method and related device and system, which are used to solve the problem that the current video acquisition mode of the terminal that does not have the video collection unit itself has poor collection effect and complicated implementation.
  • the embodiment of the present application provides a video collection method, including:
  • the other terminals that have the session connection connection with the terminal device that initiated the video collection request are selected as other terminals that have the video capture capability that meets the set video capture capability requirements.
  • the embodiment of the present application further provides a terminal, including:
  • a capability acquisition unit configured to acquire video capture capability of each other terminal that establishes a session connection with the terminal itself
  • a device selection unit configured to select, according to a video collection capability of each other terminal acquired by the capability acquisition unit, a video capture capability that meets the set selection from each other terminal that establishes a session connection with the terminal itself
  • Other terminals required by the video capture capability are used as collection terminals;
  • the device indication unit is configured to instruct the collection terminal selected by the device selection unit to collect video data based on the video collection parameters required by the terminal and the video collection capability of the collection terminal.
  • the embodiment of the present application further provides a video collection system, including:
  • the terminal device that initiates the video collection request is used to acquire the video collection capability of each other terminal that has established a session connection with itself, and based on the obtained video collection capability of each other terminal, each other terminal that establishes a session connection with itself
  • the other terminal that has the video capture capability that meets the set video capture capability requirements is selected as the collection terminal, and the collection terminal is instructed to select the video acquisition parameters and the collection based on the terminal device that initiates the video capture request.
  • the collection terminal is configured to: according to the video collection indication sent by the terminal device that initiates the video collection request, the video collection parameter required by the terminal device that initiates the video collection request, and the video collection capability of the collection terminal, The video data is collected, and the collected video data is transmitted to the terminal device that initiates the video collection request.
  • the embodiment of the present application provides a video collection method and related device and system.
  • the other terminal devices that have a session connection with the terminal device that initiates the video collection request may be established.
  • the video capture capability is selected by the other terminals that have the video capture capability to meet the set video capture capability requirements.
  • the video capture device selected by the current video capture mode is relatively fixed and cannot be compared.
  • the problem of low video capture is improved, and the video application experience of the user is improved.
  • the interface resources of the terminal device that initiates the video capture request are saved, and the utilization rate of the device is improved. Improve the flexibility of device selection.
  • FIG. 1 is a schematic flowchart diagram of a video collection method according to Embodiment 1 of the present application
  • FIG. 2 is a schematic structural diagram of a terminal according to Embodiment 2 of the present application.
  • FIG. 3 is a schematic structural diagram of a video collection system according to Embodiment 2 of the present application.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • a video capture method is provided in the first embodiment of the present application. As shown in FIG. 1 , it is a schematic flowchart of a video capture method according to the first embodiment of the present application.
  • the video capture method may include the following steps:
  • Step 101 Acquire a video collection capability of each other terminal that establishes a session connection with the terminal device that initiates the video collection request.
  • Step 102 Based on the obtained video collection capability of each other terminal, from the end of the initiation of the video collection request The other terminal that establishes the session connection by the end device selects another terminal that has the video capture capability to meet the set video capture capability requirement as the collection terminal;
  • Step 103 Instruct the collection terminal to collect video data based on video capture parameters required by the terminal device that initiates the video capture request and video capture capabilities of the collection terminal.
  • the video collection capability of each terminal connected with the session may be established based on the obtained terminal device (which may be referred to as the requesting terminal) that initiates the video collection request, and the selected location is selected.
  • the video capture device that meets the requirements of the set video capture capability is used as the collection terminal to collect video data.
  • the collection terminal can be selected from a plurality of other terminals that establish a session connection with the terminal device that initiates the video collection request, thereby improving the scope and flexibility of device selection.
  • the selected collection terminal does not need to be connected to the terminal device that initiates the video collection request through the interface such as the USB, thereby saving the interface resources of the terminal device that initiates the video collection request and improving the device connection. Flexibility.
  • the selected collection terminal may be a terminal with a video capture capability, such as a mobile phone, a tablet computer, a notebook computer, and the like, and thus the mobile phone may be improved. The effect of utilization of a terminal with a camera such as a tablet or a notebook computer.
  • the executor of the foregoing steps may be the terminal device itself that initiates the video collection request, or may be a device unit that is set in the terminal device that initiates the video collection request, which is not limited in this embodiment. .
  • the method may first be based on IP (Internet Protocol) multicast technology and point-to-point TCP.
  • IP Internet Protocol
  • TCP Transmission Control Protocol
  • IP multicast technology establishes a session connection between a terminal device that initiates a video capture request and each other terminal, or based on IP multicast technology and a Point-to-Point UDP (User Datagram Protocol) connection.
  • the technology establishes a session connection between the terminal device that initiates the video collection request and each other terminal.
  • IP multicast also known as multicast or multicast
  • TCP/IP network technology that allows one or more hosts (multicast sources) to send a single packet to multiple hosts.
  • hosts multicast sources
  • multicast as one-to-multipoint communication is one of the effective ways to save network bandwidth.
  • the terminal device that initiates the video collection request is used as an example.
  • the terminal device that initiates the video collection request may establish a session connection with other terminals by using the following steps:
  • the service of the session connection monitoring is started, and the connection request of each other terminal is awaited; at this time, each other terminal can also start the corresponding multicast session monitoring service;
  • the multicast message carries at least information such as an IP address of the terminal device that initiates the video capture request and a set interception port number, so that each other terminal receives the After the multicast message, an attempt is made to connect to the terminal device that initiated the video collection request by using the set interception port number in the multicast message in a TCP or UDP manner.
  • the terminal device that initiates the video collection request can complete the establishment of the session connection with other terminals, that is, complete the discovery and recognition of each other terminal.
  • the operation of acquiring the video collection capability of each terminal connected with the terminal device that initiates the video collection request, that is, the video collection parameter may be performed as described in step 101.
  • negotiation process the operation of acquiring the video collection capability of each terminal connected with the terminal device that initiates the video collection request, that is, the video collection parameter.
  • the acquiring the video collection capability of the other terminal that has the session connection with the terminal device that initiates the video collection request is performed as follows:
  • Step 1 Send a capability parameter acquisition request to each other terminal that establishes a session connection with the terminal device that initiates the video collection request.
  • the terminal when receiving the capability parameter acquisition request, if the terminal determines that it has a corresponding video collection device, such as a camera, the terminal may traverse to generate a video collection capability set corresponding to the terminal (special If the video capture device is not available, the video capture capability set may be empty, and the corresponding video capture capability set is answered to the terminal device that initiates the video capture request.
  • a video collection device such as a camera
  • the video collection capability set corresponding to the terminal is a parameter set composed of one or more sets of video collection parameters supported by the terminal. That is, for any terminal, each video capture capability possessed by the terminal can be represented by a corresponding set of video capture parameters (ie, a corresponding video capture parameter combination) that it supports.
  • each set of video acquisition parameters supported by the terminal may include at least a video resolution (specifically, a maximum video resolution, unit: pixel x pixels), a frame rate (specifically, a maximum frame rate, unit: frame per second) , fps), code rate (specifically, maximum code rate, unit: bits per second, bps), video format (such as MJPEG, H264, YUV, Any one or more of RGB24, RGB32, etc., or acquisition delay (specifically, maximum acquisition delay, unit: millisecond), and accordingly, corresponding to any terminal, such as a mobile phone, the terminal corresponds to
  • the video capture capability set can be expressed as:
  • the parameter comprehensive value corresponding to each group of video acquisition parameters can be calculated, and the video collection capability corresponding to each group of video acquisition parameters is quantized, and according to the comprehensive value of each parameter High or low, know the quality of the video capture capability corresponding to each group of video capture parameters or the quality of the video capture parameters supported by each group.
  • the weights assigned to the video acquisition parameter dimensions (such as video resolution dimension, frame rate dimension, video format dimension, acquisition delay dimension, etc.) and the The specific parameters of the video capture parameters of the terminal in each video capture parameter dimension are used for weighted summation calculation, and a parameter integrated value corresponding to the set of video capture parameters is obtained, corresponding to the set of video capture parameters.
  • the video capture capabilities are quantified.
  • the priority level corresponding to each video format may be taken as a corresponding specific parameter; in addition, for the collection delay dimension, the allocation is performed for the dimension.
  • the weights are usually negative, and the embodiments of the present application do not describe them in detail.
  • Step 2 Receive a capability parameter response message returned by each terminal that has a session connection with the terminal device that initiates the video collection request, where the capability parameter response message returned by each other terminal carries a video corresponding to the corresponding other terminal. Collection capability set.
  • Step 3 According to the received capability parameter response message, the video collection capability of each other terminal that establishes a session connection with the terminal device that initiates the video collection request is obtained.
  • the terminal may perform the calculation operation of the video capture capability in parallel during the initialization process of the service process, so as to subsequently obtain the capability parameter acquisition request sent by the terminal device that initiates the video capture request.
  • the corresponding video collection capability set can be directly returned to the terminal device that initiates the video collection request, so as to reduce the interaction delay of the actual response.
  • the acquired video collection capability of each other terminal may be selected, and which other terminal is responsible for the collection. That is, the operation described in step 102 is performed.
  • each other terminal that establishes a session connection with the terminal device that initiates the video collection request the selected video capture capability meets the set video capture capability requirement (the set video capture is selected.
  • the other terminal that can be flexibly adjusted according to the actual situation as the collection terminal can be specifically implemented as: selecting at least one video collection capability from among other terminals that establish a session connection with the terminal device that initiates the video collection request Any other terminal that meets the set video capture capability requirement (ie, not lower than the set video capture capability) is used as the collection terminal.
  • the video collection capability of each of the acquired other terminals according to step 102 is established from the terminal device that initiates the video collection request.
  • other terminals that have the video capture capability that meet the set video capture capability requirements are selected as the collection terminal, and can be specifically implemented as:
  • the optimal video acquisition parameter combination refers to a video capture parameter combination with the largest integrated parameter value.
  • the optimal video acquisition parameter combination is selected from all video acquisition parameter combinations supported by each other terminal that establishes a session connection with the terminal device that initiates the video collection request.
  • all corresponding acquisition frame rates supported by the other terminals that establish a session connection with the terminal device that initiates the video collection request are not less than that required by the terminal device that initiates the video collection request.
  • the video combination parameter combination with the largest parameter comprehensive value is selected as the optimal video collection parameter combination; or
  • the video resolution is the priority condition
  • all corresponding acquisition resolutions supported by the other terminals that establish a session connection with the terminal device that initiates the video collection request are not less than that required by the terminal device that initiates the video collection request.
  • a video combination parameter combination with the largest integrated parameter value is selected as the optimal video acquisition parameter combination.
  • the terminal needs to be a terminal that can meet the priority requirement of the setting, which is not described in detail in this embodiment of the present application.
  • the video collection parameters required by the terminal device that initiates the video collection request are: 1280x720, MJPEG, 25fps, and 10ms, and the video collection capability set replied by each other terminal that establishes a session connection with the terminal device that initiates the video collection request is as follows: Shown as follows:
  • the tablet computer can be selected as the collection terminal from the above terminal.
  • the optimal video collection parameter combination is selected from all the video collection parameter combinations supported by the other terminals that establish a session connection with the terminal device that initiates the video collection request, and may also be specific. Execution is:
  • determining an optimal video collection parameter combination supported by each other terminal that establishes a session connection with the terminal device that initiates the video collection request may be specifically implemented as:
  • the other collection terminal that is connected to the terminal device that initiates the video collection request is not less than the originating frame rate supported by the any other terminal.
  • the combination of the video acquisition parameters having the largest integrated parameter value is selected as the optimal video acquisition parameter combination supported by any other terminal; or
  • any other terminal that has a session connection with the terminal device that initiates the video collection request, and the corresponding acquisition resolution supported by the other terminal is not less than the initiation.
  • the video capture parameter combination with the largest integrated parameter value is selected as the optimal video acquisition parameter combination supported by any other terminal.
  • the method further includes:
  • the other terminal of the at least one auxiliary condition serves as an acquisition terminal.
  • two or more terminals have the video capture capability that meets the set video capture capability requirements, it can be combined with whether there is a fixed power supply, whether it is equipped with a fixed bracket or a fixed base, or whether it is equipped with a large
  • the selection of the collection terminal is performed by an auxiliary condition such as a screen, which is not described in detail in the embodiment of the present application.
  • the terminal device that initiates the video collection request may send a corresponding response success message to the terminal selected as the collection terminal, and send a corresponding response failure message to the not selected for collection.
  • Terminal of the terminal may terminate the session connection with the terminal device that initiates the video collection request according to the corresponding response failure message, so as to reduce the consumption of network resources, which is not described in detail in this embodiment of the present application.
  • the video acquisition parameter required by the collection terminal based on the terminal device that initiates the video collection request and the video collection capability of the collection terminal are performed, and the video is performed.
  • the collecting, by the collecting terminal, the video data collected by the terminal device that initiates the video capturing request and the video capturing capability of the collecting terminal to collect the video data may be specifically implemented as follows:
  • the video acquisition parameters required by the terminal device that initiates the video capture request include at least a video resolution (also referred to as an acquisition resolution), a frame rate (which may also be referred to as an acquisition frame rate), and a code rate (also Any one or more of an acquisition rate, a video format, or an acquisition delay;
  • the collection terminal may be instructed by the terminal device that initiates the video collection request according to the following manner.
  • the required video acquisition parameters and the video capture capability of the collection terminal are used to collect video data:
  • the video compression data format such as MJPEG, H264, etc.
  • the collecting terminal can directly send the video data to the terminal device that initiates the video collection request without performing corresponding compression processing, thereby saving network transmission resources to better adapt to the network transmission bandwidth.
  • the processing pressure of the collection terminal is greatly reduced, the real-time performance of the video collection is ensured, and the efficiency of video collection is improved.
  • the collection terminal if it determines that the built-in video compression data format is not supported, and the size of the collected video data can meet the set network transmission requirement, it may be based on The original video data format (such as YUV, RGB, etc.) transmits the collected video data to the terminal device that initiates the video acquisition request, to avoid the problem of increased processing pressure and increased transmission delay caused by video compression processing; or,
  • the original video data format such as YUV, RGB, etc.
  • the collected video data may be appropriately compressed according to actual needs. Then, the video data is transmitted to the terminal device that initiates the video collection request, so as to reduce the corresponding network transmission burden, which is not described in this embodiment of the present application.
  • the terminal device that initiates the video collection request may perform processing on the corresponding video service according to the received video data, such as performing video stream forwarding, decoding, and The operations of the present application are not described in detail in the embodiments of the present application.
  • the method may further include the following steps:
  • statistic_period represents a unit statistical period, for example, may be 5 seconds, etc.
  • number_of_frames represents the total number of video frames received from the collection terminal in a unit statistical period
  • feedback (such as servo feedback, etc.) may be fed back to the collection terminal to perform corresponding adjustment. That is, the collection terminal may be fed back to notify the collection terminal that there may be a problem that the processor is busy, the background service process is excessive, or the memory is tight, which affects the collection output performance, so that the collection terminal can respond according to the corresponding feedback. Adjust the actual collection frame rate to meet the acquisition frame rate required by the terminal device that initiated the video acquisition request.
  • the terminal device that initiates the video collection request may also be based on actual needs (for example, in determining that the video real-time acquisition frame rate of the collection terminal is smaller than the acquisition frame required by the terminal device that initiates the video collection request).
  • the collection terminal terminates the corresponding video collection at any time.
  • the collection terminal itself can terminate the corresponding video collection at any time according to actual needs, which is not described in this embodiment.
  • each communication terminal (including the collection terminal, the terminal device that initiates the video collection request, etc.) may be a terminal that is internal to the local area network topology; and, each communication terminal Data can be transmitted in an end-to-end (peer-to-peer) direct connection without the need for back-end server support, thereby reducing system complexity and reducing data transmission delay.
  • each communication terminal Data can be transmitted in an end-to-end (peer-to-peer) direct connection without the need for back-end server support, thereby reducing system complexity and reducing data transmission delay.
  • the method may further include:
  • the terminal device that initiates the video capture request does not have the video capture capability; or the terminal device that initiates the video capture request has the video capture capability, and the video capture capability of the terminal device that initiates the video capture request cannot meet the set video capture capability. skill requirements.
  • some devices with low video capture capability can use the video capture device of the virtual cloud to collect video data, but can request video data from a higher-end video capture device on the virtual cloud. The acquisition to pursue a better video capture experience.
  • the type of the terminal and the terminal device that initiates the video collection request are not limited, except that the limited collection terminal must be a terminal with video capture capability.
  • the commonality is a network protocol interface with a microprocessor and set computing power and support settings.
  • the terminal device that initiates the video capture request is a box terminal (TV Box, TVB for short)
  • the terminal can be another box terminal with a camera, or can be a mobile phone with a video capture capability, a tablet computer, a notebook computer, etc., so as to improve the utilization rate of the device and save the cost, which is not described in the embodiment of the present application.
  • the solution described in the embodiments of the present application has no limitation of language, software or hardware.
  • the performance of the high-performance programming language such as C, C++, or Java
  • the high-performance hardware are preferred.
  • the first embodiment of the present application provides a video collection method.
  • the video collection capability of each other terminal that has a session connection with the terminal device that initiates the video collection request may be established.
  • the other terminals that have the video capture capability to meet the set video capture capability are selected as the collection terminal to collect video data, thereby solving the current video capture mode.
  • the selected video capture device is relatively fixed and cannot be satisfactorily satisfied.
  • the actual requirements of the application scenario result in a low video capture effect, which improves the video application experience of the user.
  • it can also save the interface resources of the terminal device that initiates the video capture request, improve the utilization rate of the device, and improve the device selection. The effect of flexibility.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the second embodiment of the present application provides a terminal.
  • the terminal may be mainly include:
  • the capability acquisition unit 21 is configured to acquire video capture capability of each other terminal that establishes a session connection with the terminal itself;
  • the device selection unit 22 is configured to select, according to the video collection capability of each other terminal acquired by the capability acquiring unit 21, the video capture capability that is provided in the other terminals that have established a session connection with the terminal itself. Other terminals required by the specified video collection capability are used as collection terminals;
  • the device indication unit 23 is configured to instruct the collection terminal selected by the device selection unit 22 to collect video data based on the video collection parameters required by the terminal and the video collection capability of the collection terminal.
  • the terminal may further include a connection establishing unit 24:
  • the connection establishing unit 24 may be configured to establish a session connection with other terminals based on an IP multicast technology and a peer-to-peer TCP connection technology before acquiring video collection capabilities of each other terminal having a session connection with itself, or based on IP multicast technology and peer-to-peer UDP connection technology establish a session connection with other terminals.
  • the terminal may further include a capability determining unit 25:
  • the capability determining unit 25 may be configured to determine that the terminal does not have the video collection capability before acquiring the video collection capability of each other terminal that has a session connection with the terminal itself, or determine that the terminal itself has a video. The acquisition capability and the video capture capability that it has can't meet the set video capture capability requirements.
  • the capability acquiring unit 21 is specifically configured to send a capability parameter acquisition request to each other terminal that establishes a session connection with the terminal itself, and receive a return of each other terminal that establishes a session connection with the terminal itself.
  • the capability parameter response message wherein the capability parameter response message returned by each other terminal carries a video capture capability set corresponding to the corresponding other terminal, and, for any other terminal, the corresponding one of the other terminals
  • the video collection capability set is a parameter set composed of one or more sets of video collection parameters supported by any other terminal; and, according to the received capability parameter response message, acquires a session established with the terminal itself. Video capture capability of each connected terminal.
  • the device selecting unit 22 is specifically configured to select an optimal video collection parameter combination from all video collection parameter combinations supported by each terminal that establishes a session connection with the terminal itself, and support The other terminal of the selected optimal video acquisition parameter combination is used as the collection terminal; wherein the optimal video acquisition parameter combination refers to a video acquisition parameter combination with the largest integrated parameter value.
  • the device selecting unit 22 may be specifically configured to: if the video fluency is a priority condition, all corresponding collection frame rates supported by each other terminal that establishes a session connection with the terminal itself are not less than the In the video collection parameter combination of the acquisition frame rate required by the terminal, the combination of the video acquisition parameters with the largest integrated parameter value is selected as the optimal video collection parameter combination; or
  • all the corresponding acquisition resolutions supported by the other terminals that establish a session connection with the terminal itself are not less than the video collection parameter combinations of the acquisition resolution required by the terminal. And selecting, as the optimal video collection parameter combination, a combination of video acquisition parameters corresponding to the largest parameter comprehensive value.
  • the device instructing unit 23 is specifically configured to use the combined video capture parameter combination and the optimal video capture parameter combination supported by the collection terminal to select a video capture parameter combination with a corresponding integrated parameter minimum value. And each video acquisition parameter in the selected video collection parameter combination is used as an acquisition initialization parameter;
  • the device instructing unit 23 is specifically configured to instruct the collecting terminal to preferentially set the supported video compression data format based on the built-in support of the collection terminal itself.
  • the video compression data format is used to collect video data.
  • the terminal may further include an information feedback unit 26:
  • the information feedback unit 26 may be configured to determine a total number of video frames received from the collection terminal in a unit statistical period, and calculate a real-time video frame rate according to the total number of frames received in the unit statistical period; and If Determining that the calculated real-time frame rate of the video is smaller than the acquisition frame rate required by the terminal, and then feeding back to the collection terminal for corresponding adjustment.
  • terminal and the collection terminal are terminals with a microprocessor and having a set computing capability and a network protocol interface supporting setting.
  • the second embodiment of the present application further provides a video capture system.
  • the video capture system can mainly include:
  • the terminal device 31 that initiates the video collection request may be configured to acquire the video collection capability of each other terminal that has established a session connection with itself, and establish a session connection with itself based on the acquired video collection capability of each other terminal.
  • the other terminal that has the video capture capability that meets the set video capture capability is selected as the collection terminal 32, and the collection terminal 32 is instructed to select the video acquisition parameters required by the terminal device 31 that initiates the video capture request.
  • the collecting terminal 32 is configured to be used according to the video collection indication sent by the terminal device 31 that initiates the video collection request, based on the video collection parameters required by the terminal device 31 that initiates the video collection request, and the video collection capability of the collection terminal 32.
  • the video data is collected, and the collected video data is transmitted to the terminal device 31 that initiates the video collection request.
  • embodiments of the present application can be provided as a method, apparatus (device), or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory include instructions.
  • An article of manufacture of a device that implements the functions specified in a block or blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

Disclosed are a video capturing method, and a related device and system. In the technical solution of the present invention, another terminal having video capturing ability meeting a set video capturing ability requirement is selected as a capturing terminal to capture video data based on the obtained video capturing ability of all other terminals establishing a session connection with a terminal device initiating a video capturing request, thereby solving the problem of low video capturing effect due to the fact that a video capturing device selected by a current video capturing mode is relatively stationary and cannot preferably meet actual demands of an application scene, increasing video application experience of a user, and meanwhile, also being able to achieve the effects of saving interface resources of the terminal device initiating the video capturing request, increasing the utilization rate of the device and increasing the selection flexibility of the device.

Description

一种视频采集方法及相关设备与系统Video capture method and related equipment and system
本申请要求2015年5月18日递交的申请号为201510253322.1、发明名称为“一种视频采集方法及相关设备与系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application Serial No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本申请涉及视频应用技术领域,尤其涉及一种视频采集方法及相关设备与系统。The present application relates to the field of video application technologies, and in particular, to a video collection method and related devices and systems.
背景技术Background technique
在视频通话或视频会议等视频类实时交互场景中,如果参与交互的终端本身不具备摄像头等视频采集单元,则由于其无法实现相应的视频采集,因而无法实现相应的视频交互,使得用户的视频应用体验较低。In a video real-time interaction scenario such as a video call or a video conference, if the terminal participating in the interaction does not have a video capture unit such as a camera, the video capture cannot be achieved due to the inability to implement the corresponding video capture, so that the user's video is The application experience is lower.
具体地,为了解决上述问题,业界给出了一种采用照相手机作为计算机摄像头获取视频数据的视频采集方法,该视频采集方法可如下所述:Specifically, in order to solve the above problem, the industry provides a video capture method using a camera phone as a computer camera to acquire video data, and the video capture method can be as follows:
通过设置在计算机内的虚拟摄像头驱动程序将具有照相功能的手机虚拟为一个摄像头设备注册到计算机中,并将该已经注册的手机作为计算机的当前视频捕获设备,之后,计算机可通过虚拟摄像头驱动程序向作为当前视频捕获设备的手机发送获取视频数据命令,以通过所述手机来获取相应的视频数据。Virtually attaching a camera-enabled mobile phone to a computer via a virtual camera driver set in the computer, and registering the registered mobile phone as the current video capture device of the computer, after which the computer can pass the virtual camera driver A get video data command is sent to the mobile phone as the current video capture device to obtain corresponding video data through the mobile phone.
由上述内容可知,在上述视频采集方法中,由于具有照相功能的手机无需通过USB(Universal Serial Bus,通用串行总线)等接口与计算机相连,因而可以节省计算机的接口资源、提高设备连接的灵活性。但是,在上述视频采集方法中,由于仅能被动地选取已完成虚拟化的视频采集设备作为计算机的当前视频采集设备,因而,当已完成虚拟化的视频采集设备的视频采集能力较差时,会存在所选取的视频采集设备无法满足应用场景的实际需求,导致视频采集的效果较低、使得用户的视频应用体验较差的问题,同时,其还会存在设备选择的范围较小、灵活性较差的问题。再有,由于针对每一具有照相功能的手机,当将该手机作为计算机设备的视频采集设备时,均需要通过设置在计算机内的虚拟摄像头驱动程序来对该手机进行相应的虚拟化,因而,还会存在增大实施的复杂性的问题。It can be seen from the above that in the above video collection method, since the mobile phone having the camera function does not need to be connected to the computer through an interface such as a USB (Universal Serial Bus), the interface resources of the computer can be saved, and the connection of the device can be improved. Sex. However, in the above video collection method, since the video capture device that has been virtualized can be passively selected as the current video capture device of the computer, when the video capture capability of the virtualized video capture device is poor, There is a problem that the selected video capture device cannot meet the actual requirements of the application scenario, resulting in a low video capture effect and a poor video application experience of the user. At the same time, the device selection range is small and flexible. Poor question. Furthermore, since for each mobile phone having a camera function, when the mobile phone is used as a video capture device of a computer device, the virtual camera driver installed in the computer needs to be virtualized accordingly. There is also the problem of increasing the complexity of the implementation.
也就是说,在现有技术中,当参与视频类实时交互的终端本身不具备摄像头等视频采集单元时,尚无法为其提供一种实施简便、效果较佳的视频采集方式,导致用户的视 频应用体验较差。That is to say, in the prior art, when the terminal participating in the real-time interaction of the video class does not have a video capturing unit such as a camera, it is not possible to provide a video collection method with simple implementation and better effect, resulting in the user's view. The frequency application experience is poor.
发明内容Summary of the invention
本申请实施例提供了一种视频采集方法及相关设备与系统,用以解决目前适用于本身不具备视频采集单元的终端的视频采集方式的采集效果不佳以及实施较为复杂的问题。The embodiment of the present invention provides a video collection method and related device and system, which are used to solve the problem that the current video acquisition mode of the terminal that does not have the video collection unit itself has poor collection effect and complicated implementation.
本申请实施例提供了一种视频采集方法,包括:The embodiment of the present application provides a video collection method, including:
获取与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力;Obtaining a video collection capability of each other terminal that establishes a session connection with the terminal device that initiates the video collection request;
基于获取到的各其他终端的视频采集能力,从与发起视频采集请求的终端设备建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端;Based on the acquired video collection capabilities of the other terminals, the other terminals that have the session connection connection with the terminal device that initiated the video collection request are selected as other terminals that have the video capture capability that meets the set video capture capability requirements. Acquisition terminal
指示所述采集终端基于发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集。Instructing the collection terminal to perform video data collection based on video capture parameters required by the terminal device that initiates the video capture request and video capture capabilities of the collection terminal.
相应地,本申请实施例还提供了一种终端,包括:Correspondingly, the embodiment of the present application further provides a terminal, including:
能力获取单元,用于获取与所述终端自身建立有会话连接的各其他终端的视频采集能力;a capability acquisition unit, configured to acquire video capture capability of each other terminal that establishes a session connection with the terminal itself;
设备选取单元,用于基于所述能力获取单元获取到的各其他终端的视频采集能力,从与所述终端自身建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端;a device selection unit, configured to select, according to a video collection capability of each other terminal acquired by the capability acquisition unit, a video capture capability that meets the set selection from each other terminal that establishes a session connection with the terminal itself Other terminals required by the video capture capability are used as collection terminals;
设备指示单元,用于指示所述设备选取单元选取的采集终端基于所述终端所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集。The device indication unit is configured to instruct the collection terminal selected by the device selection unit to collect video data based on the video collection parameters required by the terminal and the video collection capability of the collection terminal.
相应地,本申请实施例还提供了一种视频采集系统,包括:Correspondingly, the embodiment of the present application further provides a video collection system, including:
发起视频采集请求的终端设备,用于获取与自身建立有会话连接的各其他终端的视频采集能力,并基于获取到的各其他终端的视频采集能力,从与自身建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端,并指示所述采集终端基于所述发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集;The terminal device that initiates the video collection request is used to acquire the video collection capability of each other terminal that has established a session connection with itself, and based on the obtained video collection capability of each other terminal, each other terminal that establishes a session connection with itself The other terminal that has the video capture capability that meets the set video capture capability requirements is selected as the collection terminal, and the collection terminal is instructed to select the video acquisition parameters and the collection based on the terminal device that initiates the video capture request. Video capture capability of the terminal to collect video data;
采集终端,用于根据发起视频采集请求的终端设备下发的视频采集指示,基于所述发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力, 进行视频数据的采集,并将采集到的视频数据传输至所述发起视频采集请求的终端设备。The collection terminal is configured to: according to the video collection indication sent by the terminal device that initiates the video collection request, the video collection parameter required by the terminal device that initiates the video collection request, and the video collection capability of the collection terminal, The video data is collected, and the collected video data is transmitted to the terminal device that initiates the video collection request.
本申请有益效果如下:The beneficial effects of the application are as follows:
本申请实施例提供了一种视频采集方法及相关设备与系统,在本申请实施例所述技术方案中,可基于获取到的与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端进行视频数据的采集,从而解决了目前的视频采集方式所选取的视频采集设备较为固定,无法较优地满足应用场景的实际需求,导致视频采集的效果较低的问题,提高了用户的视频应用体验,同时,还可达到节省发起视频采集请求的终端设备的接口资源、提高设备的利用率以及提高设备选取的灵活性的效果。The embodiment of the present application provides a video collection method and related device and system. In the technical solution of the embodiment of the present application, the other terminal devices that have a session connection with the terminal device that initiates the video collection request may be established. The video capture capability is selected by the other terminals that have the video capture capability to meet the set video capture capability requirements. The video capture device selected by the current video capture mode is relatively fixed and cannot be compared. The problem of low video capture is improved, and the video application experience of the user is improved. At the same time, the interface resources of the terminal device that initiates the video capture request are saved, and the utilization rate of the device is improved. Improve the flexibility of device selection.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following drawings will be briefly described in the description of the embodiments. It is obvious that the drawings in the following description are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1所示为本申请实施例一中所述视频采集方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a video collection method according to Embodiment 1 of the present application;
图2所示为本申请实施例二中所述终端的结构示意图;FIG. 2 is a schematic structural diagram of a terminal according to Embodiment 2 of the present application;
图3所示为本申请实施例二中所述视频采集系统的结构示意图。FIG. 3 is a schematic structural diagram of a video collection system according to Embodiment 2 of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The present invention will be further described in detail with reference to the accompanying drawings, in which FIG. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
实施例一:Embodiment 1:
本申请实施例一提供了一种视频采集方法,如图1所示,其为本申请实施例一中所述视频采集方法的流程示意图,所述视频采集方法可包括以下步骤:A video capture method is provided in the first embodiment of the present application. As shown in FIG. 1 , it is a schematic flowchart of a video capture method according to the first embodiment of the present application. The video capture method may include the following steps:
步骤101:获取与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力;Step 101: Acquire a video collection capability of each other terminal that establishes a session connection with the terminal device that initiates the video collection request.
步骤102:基于获取到的各其他终端的视频采集能力,从与发起视频采集请求的终 端设备建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端;Step 102: Based on the obtained video collection capability of each other terminal, from the end of the initiation of the video collection request The other terminal that establishes the session connection by the end device selects another terminal that has the video capture capability to meet the set video capture capability requirement as the collection terminal;
步骤103:指示所述采集终端基于发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集。Step 103: Instruct the collection terminal to collect video data based on video capture parameters required by the terminal device that initiates the video capture request and video capture capabilities of the collection terminal.
也就是说,在本申请实施例所述技术方案中,可基于获取到的与发起视频采集请求的终端设备(可简称为请求终端)建立有会话连接的各其他终端的视频采集能力,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端进行视频数据的采集,从而解决了目前的视频采集方式所选取的视频采集设备较为固定,无法较优地满足应用场景的实际需求,导致视频采集的效果较低的问题,提高了用户的视频应用体验。That is, in the technical solution of the embodiment of the present application, the video collection capability of each terminal connected with the session may be established based on the obtained terminal device (which may be referred to as the requesting terminal) that initiates the video collection request, and the selected location is selected. The video capture device that meets the requirements of the set video capture capability is used as the collection terminal to collect video data. This solves the problem that the video capture device selected by the current video capture mode is relatively fixed and cannot meet the application scenario. The actual demand, resulting in a lower effect of video capture, improves the user's video application experience.
同时,由于在本申请所述实施例中,可从与发起视频采集请求的终端设备建立有会话连接的多个其他终端中选取采集终端,因而,还可提高设备选取的范围以及灵活性。另外,由于在本申请所述实施例中,所选取的采集终端无需通过USB等接口与发起视频采集请求的终端设备相连,因而还可以节省发起视频采集请求的终端设备的接口资源、提高设备连接的灵活性。再有,由于在本申请所述实施例中,所选取的采集终端可以为具备视频采集能力的各终端,如手机、平板电脑、笔记本电脑等带有摄像头的终端,因而还可达到提高手机、平板电脑、笔记本电脑等带有摄像头的终端的利用率的效果。In the meantime, in the embodiment of the present application, the collection terminal can be selected from a plurality of other terminals that establish a session connection with the terminal device that initiates the video collection request, thereby improving the scope and flexibility of device selection. In addition, in the embodiment of the present application, the selected collection terminal does not need to be connected to the terminal device that initiates the video collection request through the interface such as the USB, thereby saving the interface resources of the terminal device that initiates the video collection request and improving the device connection. Flexibility. In addition, in the embodiment described in the present application, the selected collection terminal may be a terminal with a video capture capability, such as a mobile phone, a tablet computer, a notebook computer, and the like, and thus the mobile phone may be improved. The effect of utilization of a terminal with a camera such as a tablet or a notebook computer.
下面,将对本申请实施例中所述的各步骤进行具体说明:Hereinafter, each step described in the embodiment of the present application will be specifically described:
可选地,上述各步骤的执行主体可为发起视频采集请求的终端设备本身,或者,可为设置在发起视频采集请求的终端设备内部的某一设备单元,本申请实施例对此不作任何限定。Optionally, the executor of the foregoing steps may be the terminal device itself that initiates the video collection request, or may be a device unit that is set in the terminal device that initiates the video collection request, which is not limited in this embodiment. .
进一步地,在执行步骤101所述的获取与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力之前,可首先基于IP(Internet Protocol,网络协议)多播技术以及点对点TCP(Transmission Control Protocol,传输控制协议)连接技术建立发起视频采集请求的终端设备与各其他终端之间的会话连接,或者,基于IP多播技术以及点对点UDP(User Datagram Protocol,用户数据包协议)连接技术建立发起视频采集请求的终端设备与各其他终端之间的会话连接。Further, before performing the video collection capability of the other terminal that establishes the session connection with the terminal device that initiates the video collection request, the method may first be based on IP (Internet Protocol) multicast technology and point-to-point TCP. (Transmission Control Protocol) connection technology establishes a session connection between a terminal device that initiates a video capture request and each other terminal, or based on IP multicast technology and a Point-to-Point UDP (User Datagram Protocol) connection. The technology establishes a session connection between the terminal device that initiates the video collection request and each other terminal.
其中,IP多播(也称多址广播或组播)技术,是一种允许一台或多台主机(多播源)发送单一数据包到多台主机的TCP/IP网络技术。在网络音频/视频广播的应用中,当需要将一个节点的信号传送到多个节点时,无论是采用重复点对点通信方式,还是采用广 播方式,都会严重浪费网络带宽,而多播作为一点对多点的通信,则是节省网络带宽的有效方法之一。Among them, IP multicast (also known as multicast or multicast) technology is a TCP/IP network technology that allows one or more hosts (multicast sources) to send a single packet to multiple hosts. In network audio/video broadcasting applications, when it is necessary to transmit the signal of one node to multiple nodes, whether it is repeated point-to-point communication or wide Broadcast mode will seriously waste network bandwidth, and multicast as one-to-multipoint communication is one of the effective ways to save network bandwidth.
具体地,以上述各步骤的执行主体为发起视频采集请求的终端设备本身为例,发起视频采集请求的终端设备可通过以下步骤建立与其他终端之间的会话连接:Specifically, the terminal device that initiates the video collection request is used as an example. The terminal device that initiates the video collection request may establish a session connection with other terminals by using the following steps:
开启会话连接监听的服务,等待各其他终端的连接请求;此时,各其他终端也可开启相应的多播会话监听服务;The service of the session connection monitoring is started, and the connection request of each other terminal is awaited; at this time, each other terminal can also start the corresponding multicast session monitoring service;
向各其他终端发送多播消息,所述多播消息中至少携带有发起视频采集请求的终端设备的IP地址和设定的监听绑定端口号等信息,以使得各其他终端在接收到所述多播消息后,尝试使用所述多播消息中的该设定的监听绑定端口号以TCP或UDP的方式连接至所述发起视频采集请求的终端设备。Sending a multicast message to each of the other terminals, where the multicast message carries at least information such as an IP address of the terminal device that initiates the video capture request and a set interception port number, so that each other terminal receives the After the multicast message, an attempt is made to connect to the terminal device that initiated the video collection request by using the set interception port number in the multicast message in a TCP or UDP manner.
至此,发起视频采集请求的终端设备即可完成与其他终端之间的会话连接的建立,即完成各其他终端的发现和认识。At this point, the terminal device that initiates the video collection request can complete the establishment of the session connection with other terminals, that is, complete the discovery and recognition of each other terminal.
进一步地,在完成各其他终端的发现和认识之后,即可执行步骤101所述的获取与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力的操作,即视频采集参数的协商过程。Further, after completing the discovery and recognition of each other terminal, the operation of acquiring the video collection capability of each terminal connected with the terminal device that initiates the video collection request, that is, the video collection parameter, may be performed as described in step 101. Negotiation process.
可选地,步骤101所述的获取与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力,可具体执行为:Optionally, the acquiring the video collection capability of the other terminal that has the session connection with the terminal device that initiates the video collection request is performed as follows:
步骤一:向与发起视频采集请求的终端设备建立有会话连接的各其他终端发送能力参数获取请求。Step 1: Send a capability parameter acquisition request to each other terminal that establishes a session connection with the terminal device that initiates the video collection request.
具体地,针对任一终端,该终端在接收到所述能力参数获取请求时,若确定自身具备相应的视频采集设备,比如摄像头,则可遍历生成与该终端相对应的视频采集能力集(特殊地,若无相应的视频采集设备,则该视频采集能力集可为空),并将相应的视频采集能力集应答至发起视频采集请求的终端设备。Specifically, for any terminal, when receiving the capability parameter acquisition request, if the terminal determines that it has a corresponding video collection device, such as a camera, the terminal may traverse to generate a video collection capability set corresponding to the terminal (special If the video capture device is not available, the video capture capability set may be empty, and the corresponding video capture capability set is answered to the terminal device that initiates the video capture request.
其中,针对任一终端,该终端所对应的视频采集能力集是由该终端所支持的一组或多组视频采集参数所组成的参数集合。即,针对任一终端,该终端所具备的每一视频采集能力可由其所支持的相应的一组视频采集参数(即相应的一视频采集参数组合)来表示。For any terminal, the video collection capability set corresponding to the terminal is a parameter set composed of one or more sets of video collection parameters supported by the terminal. That is, for any terminal, each video capture capability possessed by the terminal can be represented by a corresponding set of video capture parameters (ie, a corresponding video capture parameter combination) that it supports.
进一步地,终端所支持的每一组视频采集参数至少可包括视频分辨率(具体可为最大视频分辨率,单位:像素x像素)、帧率(具体可为最大帧率,单位:帧每秒,fps)、码率(具体可为最大码率,单位:比特每秒,bps)、视频格式(如MJPEG、H264、YUV、 RGB24、RGB32等)、或采集时延(具体可为最大采集时延,单位:毫秒)等中的任意一种或多种,因而,相应地,针对任一终端,如手机,该终端所对应的视频采集能力集具体可表示为:Further, each set of video acquisition parameters supported by the terminal may include at least a video resolution (specifically, a maximum video resolution, unit: pixel x pixels), a frame rate (specifically, a maximum frame rate, unit: frame per second) , fps), code rate (specifically, maximum code rate, unit: bits per second, bps), video format (such as MJPEG, H264, YUV, Any one or more of RGB24, RGB32, etc., or acquisition delay (specifically, maximum acquisition delay, unit: millisecond), and accordingly, corresponding to any terminal, such as a mobile phone, the terminal corresponds to The video capture capability set can be expressed as:
{…{...
{手机(终端类型),640x480,YUV,30fps,10ms};{Mobile (terminal type), 640x480, YUV, 30fps, 10ms};
{手机(终端类型),1280x720,YUV,30fps,15ms};{Mobile (terminal type), 1280x720, YUV, 30fps, 15ms};
...
}。}.
进一步地,需要说明的是,针对任一终端,为了更直观地获知其所具备的与各组视频采集参数相对应的视频采集能力,或者,为了更直观地识别终端所支持的各组视频采集参数的优劣,可根据设定的计算规则,计算得到与各组视频采集参数相对应的参数综合值,即将各组视频采集参数所对应的视频采集能力进行量化,并根据各参数综合值的高低,获知其所具备的与各组视频采集参数相对应的视频采集能力的高低或者其所支持的各组视频采集参数的优劣。Further, it should be noted that, for any terminal, in order to more intuitively know the video collection capability corresponding to each group of video collection parameters, or to more intuitively identify each group of video collection supported by the terminal. According to the set calculation rules, the parameter comprehensive value corresponding to each group of video acquisition parameters can be calculated, and the video collection capability corresponding to each group of video acquisition parameters is quantized, and according to the comprehensive value of each parameter High or low, know the quality of the video capture capability corresponding to each group of video capture parameters or the quality of the video capture parameters supported by each group.
例如,针对终端所支持的任一组视频采集参数,可根据预先为各视频采集参数维度(如视频分辨率维度、帧率维度、视频格式维度、采集时延维度等)分配的权重、以及该终端的该组视频采集参数在各视频采集参数维度下的具体参数取值,进行加权求和计算,得到一个与该组视频采集参数相对应的参数综合值,以将该组视频采集参数所对应的视频采集能力进行量化。其中,针对视频格式维度,在对该维度下的视频格式参数进行量化时,可将各视频格式所对应的优先级别作为相应的具体参数取值;另外,针对采集时延维度,为其分配的权重通常可为负值,本申请实施例对此均不作赘述。For example, for any set of video collection parameters supported by the terminal, the weights assigned to the video acquisition parameter dimensions (such as video resolution dimension, frame rate dimension, video format dimension, acquisition delay dimension, etc.) and the The specific parameters of the video capture parameters of the terminal in each video capture parameter dimension are used for weighted summation calculation, and a parameter integrated value corresponding to the set of video capture parameters is obtained, corresponding to the set of video capture parameters. The video capture capabilities are quantified. For the video format dimension, when the video format parameter in the dimension is quantized, the priority level corresponding to each video format may be taken as a corresponding specific parameter; in addition, for the collection delay dimension, the allocation is performed for the dimension. The weights are usually negative, and the embodiments of the present application do not describe them in detail.
步骤二:接收与发起视频采集请求的终端设备建立有会话连接的各其他终端返回的能力参数应答消息,其中,每一其他终端返回的能力参数应答消息中携带有相应的其他终端所对应的视频采集能力集。Step 2: Receive a capability parameter response message returned by each terminal that has a session connection with the terminal device that initiates the video collection request, where the capability parameter response message returned by each other terminal carries a video corresponding to the corresponding other terminal. Collection capability set.
步骤三:根据接收到的各能力参数应答消息,得到与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力。Step 3: According to the received capability parameter response message, the video collection capability of each other terminal that establishes a session connection with the terminal device that initiates the video collection request is obtained.
进一步地,需要说明的是,针对任一终端,该终端可在服务进程初始化过程中并行进行自身视频采集能力的计算操作,以便后续在接收到发起视频采集请求的终端设备发送的能力参数获取请求时,可直接向发起视频采集请求的终端设备返回对应的视频采集能力集,以达到减少实际应答的交互时延的效果。 Further, it should be noted that, for any terminal, the terminal may perform the calculation operation of the video capture capability in parallel during the initialization process of the service process, so as to subsequently obtain the capability parameter acquisition request sent by the terminal device that initiates the video capture request. The corresponding video collection capability set can be directly returned to the terminal device that initiates the video collection request, so as to reduce the interaction delay of the actual response.
进一步地,在获取到与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力之后,即可结合获取到的各其他终端的视频采集能力,选定由哪个其他终端负责采集,即,执行步骤102所述操作。Further, after obtaining the video collection capability of each other terminal that establishes a session connection with the terminal device that initiates the video collection request, the acquired video collection capability of each other terminal may be selected, and which other terminal is responsible for the collection. That is, the operation described in step 102 is performed.
可选地,步骤102所述的从与发起视频采集请求的终端设备建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求(该设定的视频采集能力要求可根据实际情况灵活调整)的其他终端作为采集终端,可具体执行为:从与发起视频采集请求的终端设备建立有会话连接的各其他终端中,选取所具备的至少一个视频采集能力能够满足设定的视频采集能力要求(即不低于设定的视频采集能力)的任一其他终端作为采集终端。Optionally, in each other terminal that establishes a session connection with the terminal device that initiates the video collection request, the selected video capture capability meets the set video capture capability requirement (the set video capture is selected. The other terminal that can be flexibly adjusted according to the actual situation as the collection terminal can be specifically implemented as: selecting at least one video collection capability from among other terminals that establish a session connection with the terminal device that initiates the video collection request Any other terminal that meets the set video capture capability requirement (ie, not lower than the set video capture capability) is used as the collection terminal.
进一步地,为了优化所选取的采集终端、进而提高视频采集的效果,步骤102所述的基于获取到的各其他终端的视频采集能力,从与发起视频采集请求的终端设备建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端,可具体执行为:Further, in order to optimize the selected collection terminal and further improve the effect of the video collection, the video collection capability of each of the acquired other terminals according to step 102 is established from the terminal device that initiates the video collection request. In other terminals, other terminals that have the video capture capability that meet the set video capture capability requirements are selected as the collection terminal, and can be specifically implemented as:
从与发起视频采集请求的终端设备建立有会话连接的各其他终端所支持的所有视频采集参数组合中,选取最优的视频采集参数组合,并将支持所选取的最优的视频采集参数组合的其他终端作为所述采集终端;Selecting an optimal combination of video acquisition parameters from all combinations of video acquisition parameters supported by each other terminal that establishes a session connection with the terminal device that initiates the video collection request, and supporting the selected optimal video collection parameter combination Other terminals are used as the collection terminal;
其中,所述最优的视频采集参数组合是指对应的参数综合值最大的视频采集参数组合。The optimal video acquisition parameter combination refers to a video capture parameter combination with the largest integrated parameter value.
进一步地,为了进一步优化所选取的采集终端,所述从与发起视频采集请求的终端设备建立有会话连接的各其他终端所支持的所有视频采集参数组合中,选取最优的视频采集参数组合,可包括:Further, in order to further optimize the selected collection terminal, the optimal video acquisition parameter combination is selected from all video acquisition parameter combinations supported by each other terminal that establishes a session connection with the terminal device that initiates the video collection request. Can include:
若以视频流畅度为优先条件,则从与发起视频采集请求的终端设备建立有会话连接的各其他终端所支持的所有对应的采集帧率不小于所述发起视频采集请求的终端设备所需的采集帧率的视频采集参数组合中,选取对应的参数综合值最大的视频采集参数组合作为所述最优的视频采集参数组合;或者,If the video fluency is prioritized, all corresponding acquisition frame rates supported by the other terminals that establish a session connection with the terminal device that initiates the video collection request are not less than that required by the terminal device that initiates the video collection request. In the video collection parameter combination of the collection frame rate, the video combination parameter combination with the largest parameter comprehensive value is selected as the optimal video collection parameter combination; or
若以视频清晰度为优先条件,则从与发起视频采集请求的终端设备建立有会话连接的各其他终端所支持的所有对应的采集分辨率不小于所述发起视频采集请求的终端设备所需的采集分辨率的视频采集参数组合中,选取对应的参数综合值最大的视频采集参数组合作为所述最优的视频采集参数组合。If the video resolution is the priority condition, all corresponding acquisition resolutions supported by the other terminals that establish a session connection with the terminal device that initiates the video collection request are not less than that required by the terminal device that initiates the video collection request. In the video capture parameter combination of the acquisition resolution, a video combination parameter combination with the largest integrated parameter value is selected as the optimal video acquisition parameter combination.
也就是说,在考虑设定的优先条件,如视频流畅度或视频清晰度等时,所选取的采 集终端需要为能够满足该设定的优先条件需求的终端,本申请实施例对此不作赘述。In other words, when considering the set priority conditions, such as video fluency or video clarity, etc. The terminal needs to be a terminal that can meet the priority requirement of the setting, which is not described in detail in this embodiment of the present application.
例如,假设发起视频采集请求的终端设备所需的视频采集参数为:1280x720,MJPEG,25fps以及10ms,且与发起视频采集请求的终端设备建立有会话连接的各其他终端应答的视频采集能力集如下所示:For example, it is assumed that the video collection parameters required by the terminal device that initiates the video collection request are: 1280x720, MJPEG, 25fps, and 10ms, and the video collection capability set replied by each other terminal that establishes a session connection with the terminal device that initiates the video collection request is as follows: Shown as follows:
笔记本电脑:laptop:
{..{..
   {笔记本电脑,640x480,YUV,30fps,10ms};{laptop, 640x480, YUV, 30fps, 10ms};
};};
智能手机:smart phone:
{..{..
   {手机,1280x720,YUV,15fps,10ms};{Mobile, 1280x720, YUV, 15fps, 10ms};
   {手机,1280x720,MJPEG,25fps,10ms};{Mobile, 1280x720, MJPEG, 25fps, 10ms};
};};
平板电脑:tablet:
{..{..
   {平板电脑,1280x720,MJPEG,30fps,10ms};{tablet, 1280x720, MJPEG, 30fps, 10ms};
}。}.
则,若以视频流畅度为优先条件,则可从上述终端中,选取平板电脑作为采集终端。Then, if the video fluency is the priority condition, the tablet computer can be selected as the collection terminal from the above terminal.
需要说明的是,为了使得所选取的采集终端最优化,在进行采集终端的选取时,除了可考虑一个设定的优先条件之外,还可同时考虑多个优先条件,如,可同时考虑视频流畅度以及视频清晰度等进行采集终端的选取,本申请实施例对此不作赘述。It should be noted that, in order to optimize the selected collection terminal, in addition to considering a set priority condition, multiple priority conditions may be considered in the selection of the collection terminal, for example, the video may be considered simultaneously. The selection of the collection terminal by the fluency and the video clarity is not described in the embodiment of the present application.
进一步地,为了提高采集终端的选取效率,从与发起视频采集请求的终端设备建立有会话连接的各其他终端所支持的所有视频采集参数组合中,选取最优的视频采集参数组合,还可具体执行为:Further, in order to improve the selection efficiency of the collection terminal, the optimal video collection parameter combination is selected from all the video collection parameter combinations supported by the other terminals that establish a session connection with the terminal device that initiates the video collection request, and may also be specific. Execution is:
确定与发起视频采集请求的终端设备建立有会话连接的各其他终端所分别支持的最优视频采集参数组合;Determining an optimal video collection parameter combination respectively supported by each of the other terminals that establish a session connection with the terminal device that initiated the video collection request;
从与发起视频采集请求的终端设备建立有会话连接的各其他终端所分别支持的最优视频采集参数组合中,选取对应的参数综合值最大的一视频采集参数组合。Selecting, from the optimal video acquisition parameter combination supported by each other terminal that establishes a session connection with the terminal device that initiates the video collection request, selects a video acquisition parameter combination having the largest integrated parameter value.
可选地,确定与发起视频采集请求的终端设备建立有会话连接的各其他终端所分别支持的最优视频采集参数组合,可具体执行为: Optionally, determining an optimal video collection parameter combination supported by each other terminal that establishes a session connection with the terminal device that initiates the video collection request may be specifically implemented as:
若以视频流畅度为优先条件,则针对与发起视频采集请求的终端设备建立有会话连接的任一其他终端,从所述任一其他终端所支持的各对应的采集帧率不小于所述发起视频采集请求的终端设备所需的采集帧率的视频采集参数组合中,选取对应的参数综合值最大的视频采集参数组合作为所述任一其他终端所支持的最优视频采集参数组合;或者,If the video fluency is the priority condition, the other collection terminal that is connected to the terminal device that initiates the video collection request is not less than the originating frame rate supported by the any other terminal. In the video collection parameter combination of the acquisition frame rate required by the terminal device for the video collection request, the combination of the video acquisition parameters having the largest integrated parameter value is selected as the optimal video acquisition parameter combination supported by any other terminal; or
若以视频清晰度为优先条件,则针对与发起视频采集请求的终端设备建立有会话连接的任一其他终端,从所述任一其他终端所支持的各对应的采集分辨率不小于所述发起视频采集请求的终端设备所需的采集分辨率的视频采集参数组合中,选取对应的参数综合值最大的视频采集参数组合作为所述任一其他终端所支持的最优视频采集参数组合。If the video resolution is prioritized, any other terminal that has a session connection with the terminal device that initiates the video collection request, and the corresponding acquisition resolution supported by the other terminal is not less than the initiation. In the video collection parameter combination of the acquisition resolution required by the terminal device for the video acquisition request, the video capture parameter combination with the largest integrated parameter value is selected as the optimal video acquisition parameter combination supported by any other terminal.
进一步地,需要说明的是,在本申请所述实施例中,若选取的所具备的视频采集能力满足设定的视频采集能力要求的其他终端为多个(或选取的所具备的最优视频采集能力最优的其他终端为多个),则所述方法还包括:Further, it should be noted that, in the embodiment of the present application, if the selected video capture capability meets the set video capture capability requirements, multiple other terminals (or selected optimal video) are selected. If there are multiple other terminals with the best collection capability, the method further includes:
结合至少一个辅助条件,从多个所具备的视频采集能力满足设定的视频采集能力要求的其他终端中(或从多个所具备的最优视频采集能力最优的其他终端中),选择符合所述至少一个辅助条件的其他终端作为采集终端。In combination with at least one auxiliary condition, selecting from the plurality of other terminals having the video capture capability that meet the set video capture capability requirements (or from other terminals having the optimal optimal video capture capability) The other terminal of the at least one auxiliary condition serves as an acquisition terminal.
例如,假如有两个或者两个以上的终端所具备的视频采集能力满足设定的视频采集能力要求,则可结合是否有固定电源,是否配备有固定支架或固定底座,或,是否配备有大屏幕等辅助条件,进行采集终端的选取,本申请实施例对此不作赘述。For example, if two or more terminals have the video capture capability that meets the set video capture capability requirements, it can be combined with whether there is a fixed power supply, whether it is equipped with a fixed bracket or a fixed base, or whether it is equipped with a large The selection of the collection terminal is performed by an auxiliary condition such as a screen, which is not described in detail in the embodiment of the present application.
进一步地,在选取相应的采集终端之后,发起视频采集请求的终端设备可将相应的应答成功消息发送至被选定为采集终端的终端,将相应的应答失败消息发送至未被选定为采集终端的终端。相应地,未被选定为采集终端的终端可根据相应的应答失败消息终止与发起视频采集请求的终端设备之间的会话连接,以降低网络资源的消耗,本申请实施例对此不作赘述。Further, after selecting the corresponding collection terminal, the terminal device that initiates the video collection request may send a corresponding response success message to the terminal selected as the collection terminal, and send a corresponding response failure message to the not selected for collection. Terminal of the terminal. Correspondingly, the terminal that is not selected as the collection terminal may terminate the session connection with the terminal device that initiates the video collection request according to the corresponding response failure message, so as to reduce the consumption of network resources, which is not described in detail in this embodiment of the present application.
进一步地,在选取相应的采集终端之后,即可执行步骤103所述的指示所述采集终端基于发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集的操作。Further, after the corresponding collection terminal is selected, the video acquisition parameter required by the collection terminal based on the terminal device that initiates the video collection request and the video collection capability of the collection terminal are performed, and the video is performed. The operation of data collection.
可选地,所述指示所述采集终端基于发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集,可具体实施为:Optionally, the collecting, by the collecting terminal, the video data collected by the terminal device that initiates the video capturing request and the video capturing capability of the collecting terminal to collect the video data may be specifically implemented as follows:
从发起视频采集请求的终端设备所需的视频采集参数所组成的视频采集参数组合、以及所述采集终端所支持的最优视频采集参数组合中,选取对应的参数综合值最小的视频采集参数组合,并将所选取的视频采集参数组合中的各视频采集参数作为采集初始化 参数;其中,发起视频采集请求的终端设备所需的视频采集参数至少包括视频分辨率(也可称之为采集分辨率)、帧率(也可称之为采集帧率)、码率(也可称之为采集码率)、视频格式、或采集时延等中的任意一种或多种;Selecting a combination of video acquisition parameters consisting of video acquisition parameters required by the terminal device that initiates the video collection request, and an optimal video acquisition parameter combination supported by the collection terminal, and selecting a video acquisition parameter combination with the smallest integrated parameter value And initializing each video acquisition parameter in the selected video acquisition parameter combination as acquisition a parameter; wherein, the video acquisition parameters required by the terminal device that initiates the video capture request include at least a video resolution (also referred to as an acquisition resolution), a frame rate (which may also be referred to as an acquisition frame rate), and a code rate (also Any one or more of an acquisition rate, a video format, or an acquisition delay;
向所述采集终端发送携带有所述采集初始化参数的视频采集指示,指示所述采集终端根据所述视频采集指示中携带的所述采集初始化参数进行视频数据的采集。Sending a video collection indication carrying the collection initialization parameter to the collection terminal, and instructing the collection terminal to perform video data collection according to the collection initialization parameter carried in the video collection indication.
进一步地,为了优化视频采集过程,避免需由采集终端对采集到的视频数据进行压缩处理所带来的效率降低的问题,可通过以下方式指示所述采集终端基于发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集:Further, in order to optimize the video collection process and avoid the problem of reduced efficiency caused by the compression processing of the collected video data by the collection terminal, the collection terminal may be instructed by the terminal device that initiates the video collection request according to the following manner. The required video acquisition parameters and the video capture capability of the collection terminal are used to collect video data:
指示所述采集终端在确定所述采集终端自身内建支持设定的视频压缩数据格式(如MJPEG、H264等)时,优先基于所述采集终端自身内建所支持的设定视频压缩数据格式进行视频数据的采集。Instructing the collection terminal to perform the setting of the video compression data format (such as MJPEG, H264, etc.) supported by the collection terminal itself, based on the setting video compression data format supported by the collection terminal itself. Acquisition of video data.
这样,采集终端在采集到视频数据后,可直接将该视频数据发送至发起视频采集请求的终端设备,而无需进行相应的压缩处理,从而可在节省网络传输资源以更好地适应网络传输带宽受限场景的基础上,大大降低采集终端的处理压力,保证视频采集的实时性、提高视频采集的效率。In this way, after collecting the video data, the collecting terminal can directly send the video data to the terminal device that initiates the video collection request without performing corresponding compression processing, thereby saving network transmission resources to better adapt to the network transmission bandwidth. On the basis of the limited scenario, the processing pressure of the collection terminal is greatly reduced, the real-time performance of the video collection is ensured, and the efficiency of video collection is improved.
另外,需要说明的是,对于采集终端来说,若其确定自身内建不支持设定的视频压缩数据格式、且采集到的视频数据的大小能够满足设定的网络传输需求,则可基于设定的原始视频数据格式(如YUV、RGB等)向发起视频采集请求的终端设备传输采集到的视频数据,以避免进行视频压缩处理所带来的处理压力增大以及传输时延增加的问题;或者,In addition, it should be noted that, for the collection terminal, if it determines that the built-in video compression data format is not supported, and the size of the collected video data can meet the set network transmission requirement, it may be based on The original video data format (such as YUV, RGB, etc.) transmits the collected video data to the terminal device that initiates the video acquisition request, to avoid the problem of increased processing pressure and increased transmission delay caused by video compression processing; or,
若其确定自身内建不支持设定的视频压缩数据格式、且采集的视频数据的大小不能够满足设定的网络传输需求,则可根据实际需求,对采集到的视频数据进行适当地压缩处理,再向发起视频采集请求的终端设备传输视频数据,以减少相应的网络传输负担,本申请实施例对此均不作赘述。If it determines that the built-in video compression data format is not supported by the built-in, and the size of the collected video data cannot meet the set network transmission requirement, the collected video data may be appropriately compressed according to actual needs. Then, the video data is transmitted to the terminal device that initiates the video collection request, so as to reduce the corresponding network transmission burden, which is not described in this embodiment of the present application.
进一步地,需要说明的是,发起视频采集请求的终端设备在接收到采集终端采集到的视频数据后,可根据接收到的视频数据,进行相应视频业务的处理,如进行视频流转发、解码以及展现等操作,本申请实施例对此也不作赘述。Further, it should be noted that after receiving the video data collected by the collection terminal, the terminal device that initiates the video collection request may perform processing on the corresponding video service according to the received video data, such as performing video stream forwarding, decoding, and The operations of the present application are not described in detail in the embodiments of the present application.
进一步地,需要说明的是,为了避免出现视频帧率不稳定所引起的视频卡顿等现象,在本申请所述实施例中,所述方法还可包括以下步骤: Further, it should be noted that, in order to avoid the phenomenon of video jamming caused by the instability of the video frame rate, in the embodiment of the present application, the method may further include the following steps:
确定单位统计周期内接收到的来自所述采集终端的视频总帧数,并根据单位统计周期内接收到的视频总帧数,计算视频实时帧率;可选地,可通过以下方式计算视频实时帧率:FrameRatert=number_of_frames÷statistic_period;Determining the total number of frames of the video received from the collecting terminal in the unit statistical period, and calculating the real-time video frame rate according to the total number of frames received in the unit statistical period; optionally, the video real-time can be calculated by the following manner Frame rate: FrameRate rt = number_of_frames÷statistic_period;
其中,statistic_period表示单位统计周期,例如,可为5秒等;number_of_frames表示单位统计周期内接收到的来自采集终端的视频总帧数;Where statistic_period represents a unit statistical period, for example, may be 5 seconds, etc.; number_of_frames represents the total number of video frames received from the collection terminal in a unit statistical period;
若确定计算得到的视频实时帧率小于发起视频采集请求的终端设备所需的采集帧率,则可反馈(如伺服反馈等)到所述采集终端以进行相应调整。即,可反馈到所述采集终端以告知所述采集终端其可能存在处理器繁忙、后台服务进程过多、或内存吃紧等影响采集输出性能的问题,以使得所述采集终端可根据相应的反馈,调整实际采集帧率以满足发起视频采集请求的终端设备所需的采集帧率。If it is determined that the calculated real-time frame rate of the video is smaller than the acquisition frame rate required by the terminal device that initiates the video collection request, feedback (such as servo feedback, etc.) may be fed back to the collection terminal to perform corresponding adjustment. That is, the collection terminal may be fed back to notify the collection terminal that there may be a problem that the processor is busy, the background service process is excessive, or the memory is tight, which affects the collection output performance, so that the collection terminal can respond according to the corresponding feedback. Adjust the actual collection frame rate to meet the acquisition frame rate required by the terminal device that initiated the video acquisition request.
当然,需要说明的是,在视频采集过程中,发起视频采集请求的终端设备还可根据实际需要(如在确定采集终端的视频实时采集帧率小于发起视频采集请求的终端设备所需的采集帧率时),随时指示采集终端终止相应的视频采集;另外,采集终端本身也可根据实际需要,随时终止相应的视频采集,本申请实施例对此不作赘述。Of course, it should be noted that, in the video collection process, the terminal device that initiates the video collection request may also be based on actual needs (for example, in determining that the video real-time acquisition frame rate of the collection terminal is smaller than the acquisition frame required by the terminal device that initiates the video collection request). At the same time, the collection terminal terminates the corresponding video collection at any time. In addition, the collection terminal itself can terminate the corresponding video collection at any time according to actual needs, which is not described in this embodiment.
进一步地,需要说明的是,在本申请所述实施例中,各通信终端(包括采集终端、发起视频采集请求的终端设备等)可为处于本地局域网拓扑结构内部的终端;且,各通信终端之间可采用端对端(点对点)直接连接的方式进行数据的传输,无需后台服务器支持,从而可达到降低系统复杂性以及降低数据传输时延的效果。Further, it should be noted that, in the embodiment of the present application, each communication terminal (including the collection terminal, the terminal device that initiates the video collection request, etc.) may be a terminal that is internal to the local area network topology; and, each communication terminal Data can be transmitted in an end-to-end (peer-to-peer) direct connection without the need for back-end server support, thereby reducing system complexity and reducing data transmission delay.
进一步地,需要说明的是,在本申请所述实施例中,在获取与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力之前,所述方法还可包括:Further, it should be noted that, in the embodiment of the present application, before acquiring the video collection capability of each other terminal that has a session connection with the terminal device that initiates the video collection request, the method may further include:
确定发起视频采集请求的终端设备不具备视频采集能力;或者,确定发起视频采集请求的终端设备具备视频采集能力、且发起视频采集请求的终端设备所具备的视频采集能力无法满足设定的视频采集能力要求。The terminal device that initiates the video capture request does not have the video capture capability; or the terminal device that initiates the video capture request has the video capture capability, and the video capture capability of the terminal device that initiates the video capture request cannot meet the set video capture capability. skill requirements.
也就是说,在本申请所述实施例中,一些低视频采集能力的设备可以不用自身的视频采集装置进行视频数据的采集,而是可以请求利用虚拟云端上更高端的视频采集设备进行视频数据的采集,以追求更好的视频采集体验。That is to say, in the embodiment of the present application, some devices with low video capture capability can use the video capture device of the virtual cloud to collect video data, but can request video data from a higher-end video capture device on the virtual cloud. The acquisition to pursue a better video capture experience.
进一步地,需要说明的是,在本申请所述实施例中,除了限定采集终端必须是具备视频采集能力的终端之外,采集终端和发起视频采集请求的终端设备的类型实际上并不受限制,两者共性为带有微处理器且具备设定的计算能力和支持设定的网络协议接口。如,当发起视频采集请求的终端设备为盒子终端(TV Box,简称TVB)时,所述采集终 端可为另外一个带摄像头的盒子终端,或者,可为具备视频采集能力的手机、平板电脑以及笔记本电脑等,以提高设备的利用率和节省费用,本申请实施例对此不作赘述。Further, it should be noted that, in the embodiment of the present application, the type of the terminal and the terminal device that initiates the video collection request are not limited, except that the limited collection terminal must be a terminal with video capture capability. The commonality is a network protocol interface with a microprocessor and set computing power and support settings. For example, when the terminal device that initiates the video capture request is a box terminal (TV Box, TVB for short), the end of the collection The terminal can be another box terminal with a camera, or can be a mobile phone with a video capture capability, a tablet computer, a notebook computer, etc., so as to improve the utilization rate of the device and save the cost, which is not described in the embodiment of the present application.
进一步地,需要说明的是,本申请实施例所述方案无语言、软件或者硬件的限制。但是,为了提高视频采集的效率,可优先选用性能高的编程语言(如C、C++或者Java等)和性能高的硬件等来实现,本申请实施例对此也不作赘述。Further, it should be noted that the solution described in the embodiments of the present application has no limitation of language, software or hardware. However, in order to improve the efficiency of the video collection, the performance of the high-performance programming language (such as C, C++, or Java) and the high-performance hardware are preferred.
本申请实施例一提供了一种视频采集方法,在本申请实施例一所述技术方案中,可基于获取到的与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端进行视频数据的采集,从而解决了目前的视频采集方式所选取的视频采集设备较为固定,无法较优地满足应用场景的实际需求,导致视频采集的效果较低的问题,提高了用户的视频应用体验,同时,还可达到节省发起视频采集请求的终端设备的接口资源、提高设备的利用率以及提高设备选取的灵活性的效果。The first embodiment of the present application provides a video collection method. In the technical solution of the first embodiment of the present application, the video collection capability of each other terminal that has a session connection with the terminal device that initiates the video collection request may be established. The other terminals that have the video capture capability to meet the set video capture capability are selected as the collection terminal to collect video data, thereby solving the current video capture mode. The selected video capture device is relatively fixed and cannot be satisfactorily satisfied. The actual requirements of the application scenario result in a low video capture effect, which improves the video application experience of the user. At the same time, it can also save the interface resources of the terminal device that initiates the video capture request, improve the utilization rate of the device, and improve the device selection. The effect of flexibility.
实施例二:Embodiment 2:
基于同一发明构思,本申请实施例二提供了一种终端,该终端的具体实施可参见上述方法实施例一中的相关描述,重复之处不再赘述,如图2所示,该终端主要可包括:Based on the same inventive concept, the second embodiment of the present application provides a terminal. For the specific implementation of the terminal, reference may be made to the related description in the first embodiment of the foregoing method, and the repeated description is not repeated. As shown in FIG. 2, the terminal may be mainly include:
能力获取单元21,可用于获取与所述终端自身建立有会话连接的各其他终端的视频采集能力;The capability acquisition unit 21 is configured to acquire video capture capability of each other terminal that establishes a session connection with the terminal itself;
设备选取单元22,可用于基于所述能力获取单元21获取到的各其他终端的视频采集能力,从与所述终端自身建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端;The device selection unit 22 is configured to select, according to the video collection capability of each other terminal acquired by the capability acquiring unit 21, the video capture capability that is provided in the other terminals that have established a session connection with the terminal itself. Other terminals required by the specified video collection capability are used as collection terminals;
设备指示单元23,可用于指示所述设备选取单元22选取的采集终端基于所述终端所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集。The device indication unit 23 is configured to instruct the collection terminal selected by the device selection unit 22 to collect video data based on the video collection parameters required by the terminal and the video collection capability of the collection terminal.
进一步地,所述终端还可包括连接建立单元24:Further, the terminal may further include a connection establishing unit 24:
所述连接建立单元24,可用于在获取与自身建立有会话连接的各其他终端的视频采集能力之前,基于IP多播技术以及点对点TCP连接技术建立与其他终端之间的会话连接,或者,基于IP多播技术以及点对点UDP连接技术建立与其他终端之间的会话连接。The connection establishing unit 24 may be configured to establish a session connection with other terminals based on an IP multicast technology and a peer-to-peer TCP connection technology before acquiring video collection capabilities of each other terminal having a session connection with itself, or based on IP multicast technology and peer-to-peer UDP connection technology establish a session connection with other terminals.
进一步地,所述终端还可包括能力确定单元25:Further, the terminal may further include a capability determining unit 25:
所述能力确定单元25,可用于在获取与所述终端自身建立有会话连接的各其他终端的视频采集能力之前,确定所述终端自身不具备视频采集能力,或者,确定所述终端自身具备视频采集能力、且自身所具备的视频采集能力无法满足设定的视频采集能力要求。 The capability determining unit 25 may be configured to determine that the terminal does not have the video collection capability before acquiring the video collection capability of each other terminal that has a session connection with the terminal itself, or determine that the terminal itself has a video. The acquisition capability and the video capture capability that it has can't meet the set video capture capability requirements.
可选地,所述能力获取单元21,具体可用于向与所述终端自身建立有会话连接的各其他终端发送能力参数获取请求,并接收与所述终端自身建立有会话连接的各其他终端返回的能力参数应答消息,其中,每一其他终端返回的能力参数应答消息中携带有相应的其他终端所对应的视频采集能力集,且,针对任一其他终端,所述任一其他终端所对应的视频采集能力集是由所述任一其他终端所支持的一组或多组视频采集参数所组成的参数集合;以及,根据接收到的各能力参数应答消息,获取与所述终端自身建立有会话连接的各其他终端的视频采集能力。Optionally, the capability acquiring unit 21 is specifically configured to send a capability parameter acquisition request to each other terminal that establishes a session connection with the terminal itself, and receive a return of each other terminal that establishes a session connection with the terminal itself. The capability parameter response message, wherein the capability parameter response message returned by each other terminal carries a video capture capability set corresponding to the corresponding other terminal, and, for any other terminal, the corresponding one of the other terminals The video collection capability set is a parameter set composed of one or more sets of video collection parameters supported by any other terminal; and, according to the received capability parameter response message, acquires a session established with the terminal itself. Video capture capability of each connected terminal.
可选地,所述设备选取单元22,具体可用于从与所述终端自身建立有会话连接的各其他终端所支持的所有视频采集参数组合中,选取最优的视频采集参数组合,并将支持所选取的最优的视频采集参数组合的其他终端作为所述采集终端;其中,所述最优的视频采集参数组合是指对应的参数综合值最大的视频采集参数组合。Optionally, the device selecting unit 22 is specifically configured to select an optimal video collection parameter combination from all video collection parameter combinations supported by each terminal that establishes a session connection with the terminal itself, and support The other terminal of the selected optimal video acquisition parameter combination is used as the collection terminal; wherein the optimal video acquisition parameter combination refers to a video acquisition parameter combination with the largest integrated parameter value.
进一步地,所述设备选取单元22,具体可用于若以视频流畅度为优先条件,则从与所述终端自身建立有会话连接的各其他终端所支持的所有对应的采集帧率不小于所述终端所需的采集帧率的视频采集参数组合中,选取对应的参数综合值最大的视频采集参数组合作为所述最优的视频采集参数组合;或者,Further, the device selecting unit 22 may be specifically configured to: if the video fluency is a priority condition, all corresponding collection frame rates supported by each other terminal that establishes a session connection with the terminal itself are not less than the In the video collection parameter combination of the acquisition frame rate required by the terminal, the combination of the video acquisition parameters with the largest integrated parameter value is selected as the optimal video collection parameter combination; or
若以视频清晰度为优先条件,则从与所述终端自身建立有会话连接的各其他终端所支持的所有对应的采集分辨率不小于所述终端所需的采集分辨率的视频采集参数组合中,选取对应的参数综合值最大的视频采集参数组合作为所述最优的视频采集参数组合。If the video resolution is prioritized, all the corresponding acquisition resolutions supported by the other terminals that establish a session connection with the terminal itself are not less than the video collection parameter combinations of the acquisition resolution required by the terminal. And selecting, as the optimal video collection parameter combination, a combination of video acquisition parameters corresponding to the largest parameter comprehensive value.
进一步地,所述设备指示单元23,具体可用于所组成的视频采集参数组合、以及所述采集终端所支持的最优视频采集参数组合中,选取对应的参数综合值最小的视频采集参数组合,并将所选取的视频采集参数组合中的各视频采集参数作为采集初始化参数;以及,Further, the device instructing unit 23 is specifically configured to use the combined video capture parameter combination and the optimal video capture parameter combination supported by the collection terminal to select a video capture parameter combination with a corresponding integrated parameter minimum value. And each video acquisition parameter in the selected video collection parameter combination is used as an acquisition initialization parameter;
向所述采集终端发送携带有所述采集初始化参数的视频采集指示,指示所述采集终端根据所述视频采集指示中携带的所述采集初始化参数进行视频数据的采集。Sending a video collection indication carrying the collection initialization parameter to the collection terminal, and instructing the collection terminal to perform video data collection according to the collection initialization parameter carried in the video collection indication.
进一步地,所述设备指示单元23,具体可用于指示所述采集终端在确定所述采集终端自身内建支持设定的视频压缩数据格式时,优先基于所述采集终端自身内建所支持的设定视频压缩数据格式进行视频数据的采集。Further, the device instructing unit 23 is specifically configured to instruct the collecting terminal to preferentially set the supported video compression data format based on the built-in support of the collection terminal itself. The video compression data format is used to collect video data.
进一步地,所述终端还可包括信息反馈单元26:Further, the terminal may further include an information feedback unit 26:
所述信息反馈单元26,可用于确定单位统计周期内接收到的来自所述采集终端的视频总帧数,并根据单位统计周期内接收到的视频总帧数,计算视频实时帧率;以及,若 确定计算得到的视频实时帧率小于所述终端所需的采集帧率,则反馈到所述采集终端以进行相应调整。The information feedback unit 26 may be configured to determine a total number of video frames received from the collection terminal in a unit statistical period, and calculate a real-time video frame rate according to the total number of frames received in the unit statistical period; and If Determining that the calculated real-time frame rate of the video is smaller than the acquisition frame rate required by the terminal, and then feeding back to the collection terminal for corresponding adjustment.
进一步地,需要说明的是,所述终端以及所述采集终端为带有微处理器且具备设定的计算能力和支持设定的网络协议接口的终端。Further, it should be noted that the terminal and the collection terminal are terminals with a microprocessor and having a set computing capability and a network protocol interface supporting setting.
进一步地,基于同一发明构思,本申请实施例二还提供了一种视频采集系统,该视频采集系统的具体实施可参见上述方法实施例一中的相关描述,重复之处不再赘述,如图3所示,该视频采集系统主要可包括:Further, based on the same inventive concept, the second embodiment of the present application further provides a video capture system. For the specific implementation of the video capture system, refer to the related description in the first embodiment of the foregoing method. As shown in 3, the video capture system can mainly include:
发起视频采集请求的终端设备31,可用于获取与自身建立有会话连接的各其他终端的视频采集能力,并基于获取到的各其他终端的视频采集能力,从与自身建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端32,并指示所述采集终端32基于所述发起视频采集请求的终端设备31所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集;The terminal device 31 that initiates the video collection request may be configured to acquire the video collection capability of each other terminal that has established a session connection with itself, and establish a session connection with itself based on the acquired video collection capability of each other terminal. In the terminal, the other terminal that has the video capture capability that meets the set video capture capability is selected as the collection terminal 32, and the collection terminal 32 is instructed to select the video acquisition parameters required by the terminal device 31 that initiates the video capture request. And the video collection capability of the collection terminal, and collecting video data;
采集终端32,可用于根据发起视频采集请求的终端设备31下发的视频采集指示,基于所述发起视频采集请求的终端设备31所需的视频采集参数以及所述采集终端32的视频采集能力,进行视频数据的采集,并将采集到的视频数据传输至所述发起视频采集请求的终端设备31。The collecting terminal 32 is configured to be used according to the video collection indication sent by the terminal device 31 that initiates the video collection request, based on the video collection parameters required by the terminal device 31 that initiates the video collection request, and the video collection capability of the collection terminal 32. The video data is collected, and the collected video data is transmitted to the terminal device 31 that initiates the video collection request.
本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, apparatus (device), or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本申请是参照根据本申请实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of a method, apparatus, and computer program product according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令 装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory include instructions. An article of manufacture of a device that implements the functions specified in a block or blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiment of the present application has been described, it will be apparent that those skilled in the art can make further changes and modifications to the embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.

Claims (21)

  1. 一种视频采集方法,其特征在于,包括:A video collection method, comprising:
    获取与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力;Obtaining a video collection capability of each other terminal that establishes a session connection with the terminal device that initiates the video collection request;
    基于获取到的各其他终端的视频采集能力,从与发起视频采集请求的终端设备建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端;Based on the acquired video collection capabilities of the other terminals, the other terminals that have the session connection connection with the terminal device that initiated the video collection request are selected as other terminals that have the video capture capability that meets the set video capture capability requirements. Acquisition terminal
    指示所述采集终端基于发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集。Instructing the collection terminal to perform video data collection based on video capture parameters required by the terminal device that initiates the video capture request and video capture capabilities of the collection terminal.
  2. 如权利要求1所述的方法,其特征在于,在获取与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力之前,所述方法还包括:The method of claim 1, wherein the method further comprises: before acquiring the video collection capability of each other terminal that has a session connection with the terminal device that initiates the video collection request, the method further includes:
    基于网络协议IP多播技术以及点对点传输控制协议TCP连接技术建立发起视频采集请求的终端设备与其他终端之间的会话连接;或者,基于IP多播技术以及点对点用户数据包协议UDP连接技术建立发起视频采集请求的终端设备与其他终端之间的会话连接。Establishing a session connection between the terminal device that initiates the video collection request and other terminals based on the network protocol IP multicast technology and the peer-to-peer transmission control protocol TCP connection technology; or establishing the initiation based on the IP multicast technology and the peer-to-peer user data packet protocol UDP connection technology The session connection between the terminal device of the video acquisition request and other terminals.
  3. 如权利要求1所述的方法,其特征在于,在获取与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力之前,所述方法还包括:The method of claim 1, wherein the method further comprises: before acquiring the video collection capability of each other terminal that has a session connection with the terminal device that initiates the video collection request, the method further includes:
    确定发起视频采集请求的终端设备不具备视频采集能力;或者,确定发起视频采集请求的终端设备具备视频采集能力、且发起视频采集请求的终端设备所具备的视频采集能力无法满足设定的视频采集能力要求。The terminal device that initiates the video capture request does not have the video capture capability; or the terminal device that initiates the video capture request has the video capture capability, and the video capture capability of the terminal device that initiates the video capture request cannot meet the set video capture capability. skill requirements.
  4. 如权利要求1所述的方法,其特征在于,所述获取与发起视频采集请求的终端设备建立有会话连接的各其他终端的视频采集能力,包括:The method of claim 1, wherein the acquiring the video collection capability of each other terminal that has a session connection with the terminal device that initiates the video collection request comprises:
    向与发起视频采集请求的终端设备建立有会话连接的各其他终端发送能力参数获取请求;Transmitting a capability parameter acquisition request to each other terminal that establishes a session connection with the terminal device that initiates the video collection request;
    接收与发起视频采集请求的终端设备建立有会话连接的各其他终端返回的能力参数应答消息,其中,每一其他终端返回的能力参数应答消息中携带有相应的其他终端所对应的视频采集能力集;且,针对任一其他终端,所述任一其他终端所对应的视频采集能力集是由所述任一其他终端所支持的一组或多组视频采集参数所组成的参数集合;And receiving, by the terminal device that initiates the video collection request, a capability parameter response message returned by each other terminal that has a session connection, where the capability parameter response message returned by each other terminal carries a video collection capability set corresponding to the corresponding other terminal And, for any other terminal, the video collection capability set corresponding to any other terminal is a parameter set consisting of one or more sets of video collection parameters supported by any other terminal;
    根据接收到的各能力参数应答消息,得到与发起视频采集请求的终端设备建立有会 话连接的各其他终端的视频采集能力。According to the received capability parameter response message, the terminal device that initiates the video collection request is established. The video capture capability of each other terminal connected to the voice.
  5. 如权利要求1所述的方法,其特征在于,所述从与发起视频采集请求的终端设备建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端,包括:The method according to claim 1, wherein the video capture capability that meets the set video capture capability is selected from each of the other terminals that have established a session connection with the terminal device that initiated the video capture request. Other terminals serve as collection terminals, including:
    从与发起视频采集请求的终端设备建立有会话连接的各其他终端所支持的所有视频采集参数组合中,选取最优的视频采集参数组合,并将支持所选取的最优的视频采集参数组合的其他终端作为所述采集终端;Selecting an optimal combination of video acquisition parameters from all combinations of video acquisition parameters supported by each other terminal that establishes a session connection with the terminal device that initiates the video collection request, and supporting the selected optimal video collection parameter combination Other terminals are used as the collection terminal;
    其中,所述最优的视频采集参数组合是指对应的参数综合值最大的视频采集参数组合。The optimal video acquisition parameter combination refers to a video capture parameter combination with the largest integrated parameter value.
  6. 如权利要求5所述的方法,其特征在于,所述从与发起视频采集请求的终端设备建立有会话连接的各其他终端所支持的所有视频采集参数组合中,选取最优的视频采集参数组合,包括:The method according to claim 5, wherein the optimal video acquisition parameter combination is selected from all video acquisition parameter combinations supported by each other terminal that establishes a session connection with the terminal device that initiated the video collection request. ,include:
    若以视频流畅度为优先条件,则从与发起视频采集请求的终端设备建立有会话连接的各其他终端所支持的所有对应的采集帧率不小于发起视频采集请求的终端设备所需的采集帧率的视频采集参数组合中,选取对应的参数综合值最大的视频采集参数组合作为所述最优的视频采集参数组合;或者,If the video fluency is prioritized, all corresponding acquisition frame rates supported by the other terminals that establish a session connection with the terminal device that initiates the video collection request are not less than the acquisition frames required by the terminal device that initiates the video collection request. In the video capture parameter combination of the rate, the video capture parameter combination with the largest integrated parameter value is selected as the optimal video capture parameter combination; or
    若以视频清晰度为优先条件,则从与发起视频采集请求的终端设备建立有会话连接的各其他终端所支持的所有对应的采集分辨率不小于发起视频采集请求的终端设备所需的采集分辨率的视频采集参数组合中,选取对应的参数综合值最大的视频采集参数组合作为所述最优的视频采集参数组合。If the video resolution is prioritized, all corresponding acquisition resolutions supported by the other terminals that establish a session connection with the terminal device that initiates the video collection request are not less than the acquisition resolution required by the terminal device that initiates the video collection request. In the video capture parameter combination of the rate, the video capture parameter combination with the largest integrated parameter value is selected as the optimal video capture parameter combination.
  7. 如权利要求1所述的方法,其特征在于,所述指示所述采集终端基于发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集,包括:The method according to claim 1, wherein the instructing the collecting terminal to collect video data based on video capturing parameters required by the terminal device that initiates the video capturing request and the video capturing capability of the collecting terminal include:
    从发起视频采集请求的终端设备所需的视频采集参数所组成的视频采集参数组合、以及所述采集终端所支持的最优视频采集参数组合中,选取对应的参数综合值最小的视频采集参数组合,并将所选取的视频采集参数组合中的各视频采集参数作为采集初始化参数;Selecting a combination of video acquisition parameters consisting of video acquisition parameters required by the terminal device that initiates the video collection request, and an optimal video acquisition parameter combination supported by the collection terminal, and selecting a video acquisition parameter combination with the smallest integrated parameter value And each video acquisition parameter in the selected video collection parameter combination is used as an acquisition initialization parameter;
    向所述采集终端发送携带有所述采集初始化参数的视频采集指示,指示所述采集终端根据所述视频采集指示中携带的所述采集初始化参数进行视频数据的采集。Sending a video collection indication carrying the collection initialization parameter to the collection terminal, and instructing the collection terminal to perform video data collection according to the collection initialization parameter carried in the video collection indication.
  8. 如权利要求1所述的方法,其特征在于,所述指示所述采集终端基于发起视频 采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集,包括:The method of claim 1 wherein said instructing said collection terminal is based on initiating a video Collecting video acquisition parameters required by the requested terminal device and the video collection capability of the collection terminal, and collecting video data, including:
    指示所述采集终端在确定所述采集终端自身内建支持设定的视频压缩数据格式时,优先基于所述采集终端自身内建所支持的设定视频压缩数据格式进行视频数据的采集。When the collection terminal determines that the collection terminal supports the set video compression data format, the collection terminal preferentially collects the video data based on the set video compression data format supported by the collection terminal itself.
  9. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:
    确定单位统计周期内接收到的来自所述采集终端的视频总帧数,并根据单位统计周期内接收到的视频总帧数,计算视频实时帧率;Determining a total number of frames of the video received from the collection terminal in a unit statistical period, and calculating a real-time video frame rate according to the total number of frames received in the unit statistical period;
    若确定计算得到的视频实时帧率小于发起视频采集请求的终端设备所需的采集帧率,则反馈到所述采集终端以进行相应调整。If it is determined that the calculated real-time frame rate of the video is smaller than the acquisition frame rate required by the terminal device that initiates the video collection request, the data is fed back to the collection terminal for corresponding adjustment.
  10. 如权利要求1所述的方法,其特征在于,所述发起视频采集请求的终端设备以及所述采集终端为带有微处理器且具备设定的计算能力和支持设定的网络协议接口的终端。The method according to claim 1, wherein said terminal device that initiates a video capture request and said collection terminal are terminals with a microprocessor and having a set computing capability and a supported network protocol interface .
  11. 一种终端,其特征在于,包括:A terminal, comprising:
    能力获取单元,用于获取与所述终端自身建立有会话连接的各其他终端的视频采集能力;a capability acquisition unit, configured to acquire video capture capability of each other terminal that establishes a session connection with the terminal itself;
    设备选取单元,用于基于所述能力获取单元获取到的各其他终端的视频采集能力,从与所述终端自身建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端;a device selection unit, configured to select, according to a video collection capability of each other terminal acquired by the capability acquisition unit, a video capture capability that meets the set selection from each other terminal that establishes a session connection with the terminal itself Other terminals required by the video capture capability are used as collection terminals;
    设备指示单元,用于指示所述设备选取单元选取的采集终端基于所述终端所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集。The device indication unit is configured to instruct the collection terminal selected by the device selection unit to collect video data based on the video collection parameters required by the terminal and the video collection capability of the collection terminal.
  12. 如权利要求11所述的终端,其特征在于,所述终端还包括连接建立单元:The terminal according to claim 11, wherein the terminal further comprises a connection establishing unit:
    所述连接建立单元,用于在获取与自身建立有会话连接的各其他终端的视频采集能力之前,基于网络协议IP多播技术以及点对点传输控制协议TCP连接技术建立与其他终端之间的会话连接,或者,基于IP多播技术以及点对点用户数据包协议UDP连接技术建立与其他终端之间的会话连接。The connection establishing unit is configured to establish a session connection with other terminals based on a network protocol IP multicast technology and a peer-to-peer transmission control protocol TCP connection technology before acquiring video collection capabilities of each other terminal having a session connection with itself Or, establish a session connection with other terminals based on IP multicast technology and peer-to-peer user packet protocol UDP connection technology.
  13. 如权利要求11所述的终端,其特征在于,所述终端还包括能力确定单元:The terminal according to claim 11, wherein the terminal further comprises a capability determining unit:
    所述能力确定单元,用于在获取与所述终端自身建立有会话连接的各其他终端的视频采集能力之前,确定所述终端自身不具备视频采集能力,或者,确定所述终端自身具备视频采集能力、且自身所具备的视频采集能力无法满足设定的视频采集能力要求。The capability determining unit is configured to determine that the terminal does not have the video collection capability before acquiring the video collection capability of each other terminal that has the session connection with the terminal itself, or that the terminal itself has the video collection capability. The ability and the video capture capability that it has can't meet the set video capture capability requirements.
  14. 如权利要求11所述的终端,其特征在于, The terminal of claim 11 wherein:
    所述能力获取单元,具体用于向与所述终端自身建立有会话连接的各其他终端发送能力参数获取请求,并接收与所述终端自身建立有会话连接的各其他终端返回的能力参数应答消息,其中,每一其他终端返回的能力参数应答消息中携带有相应的其他终端所对应的视频采集能力集,且,针对任一其他终端,所述任一其他终端所对应的视频采集能力集是由所述任一其他终端所支持的一组或多组视频采集参数所组成的参数集合;以及,根据接收到的各能力参数应答消息,得到与所述终端自身建立有会话连接的各其他终端的视频采集能力。The capability obtaining unit is configured to send a capability parameter acquisition request to each other terminal that establishes a session connection with the terminal itself, and receive a capability parameter response message returned by each other terminal that has established a session connection with the terminal itself. The capability parameter response message returned by each other terminal carries a video capture capability set corresponding to the corresponding other terminal, and for any other terminal, the video collection capability set corresponding to any other terminal is a set of parameters consisting of one or more sets of video collection parameters supported by any of the other terminals; and, according to the received capability parameter response messages, obtaining other terminals that have established a session connection with the terminal itself Video capture capabilities.
  15. 如权利要求11所述的终端,其特征在于,The terminal of claim 11 wherein:
    所述设备选取单元,具体用于从与所述终端自身建立有会话连接的各其他终端所支持的所有视频采集参数组合中,选取最优的视频采集参数组合,并将支持所选取的最优的视频采集参数组合的其他终端作为所述采集终端;The device selecting unit is specifically configured to select an optimal video collection parameter combination from all video acquisition parameter combinations supported by each other terminal that establishes a session connection with the terminal itself, and support the selected optimal Other terminals of the video collection parameter combination are used as the collection terminal;
    其中,所述最优的视频采集参数组合是指对应的参数综合值最大的视频采集参数组合。The optimal video acquisition parameter combination refers to a video capture parameter combination with the largest integrated parameter value.
  16. 如权利要求15所述的终端,其特征在于,The terminal of claim 15 wherein:
    所述设备选取单元,具体用于若以视频流畅度为优先条件,则从与所述终端自身建立有会话连接的各其他终端所支持的所有对应的采集帧率不小于所述终端所需的采集帧率的视频采集参数组合中,选取对应的参数综合值最大的视频采集参数组合作为所述最优的视频采集参数组合;或者,The device selection unit is specifically configured to: if the video fluency is a priority condition, all corresponding collection frame rates supported by each other terminal that establishes a session connection with the terminal itself are not less than required by the terminal. In the video collection parameter combination of the collection frame rate, the video combination parameter combination with the largest parameter comprehensive value is selected as the optimal video collection parameter combination; or
    若以视频清晰度为优先条件,则从与所述终端自身建立有会话连接的各其他终端所支持的所有对应的采集分辨率不小于所述终端所需的采集分辨率的视频采集参数组合中,选取对应的参数综合值最大的视频采集参数组合作为所述最优的视频采集参数组合。If the video resolution is prioritized, all the corresponding acquisition resolutions supported by the other terminals that establish a session connection with the terminal itself are not less than the video collection parameter combinations of the acquisition resolution required by the terminal. And selecting, as the optimal video collection parameter combination, a combination of video acquisition parameters corresponding to the largest parameter comprehensive value.
  17. 如权利要求11所述的终端,其特征在于,The terminal of claim 11 wherein:
    所述设备指示单元,具体用于从所述终端所需的视频采集参数所组成的视频采集参数组合、以及所述采集终端所支持的最优视频采集参数组合中,选取对应的参数综合值最小的视频采集参数组合,并将所选取的视频采集参数组合中的各视频采集参数作为采集初始化参数;以及,The device indication unit is specifically configured to select a video combination parameter combination composed of video acquisition parameters required by the terminal, and an optimal video collection parameter combination supported by the collection terminal, and select a corresponding parameter with a minimum integrated value Video capture parameter combination, and each video capture parameter in the selected video capture parameter combination is used as an acquisition initialization parameter;
    向所述采集终端发送携带有所述采集初始化参数的视频采集指示,指示所述采集终端根据所述视频采集指示中携带的所述采集初始化参数进行视频数据的采集。Sending a video collection indication carrying the collection initialization parameter to the collection terminal, and instructing the collection terminal to perform video data collection according to the collection initialization parameter carried in the video collection indication.
  18. 如权利要求11所述的终端,其特征在于, The terminal of claim 11 wherein:
    所述设备指示单元,具体用于指示所述采集终端在确定所述采集终端自身内建支持设定的视频压缩数据格式时,优先基于所述采集终端自身内建所支持的设定视频压缩数据格式进行视频数据的采集。The device indication unit is specifically configured to instruct the collection terminal to preferentially set the video compression data supported by the collection terminal itself when determining the video compression data format supported by the collection terminal itself. The format is used to collect video data.
  19. 如权利要求11所述的终端,其特征在于,所述终端还包括信息反馈单元:The terminal according to claim 11, wherein the terminal further comprises an information feedback unit:
    所述信息反馈单元,用于确定单位统计周期内接收到的来自所述采集终端的视频总帧数,并根据单位统计周期内接收到的视频总帧数,计算视频实时帧率;以及,若确定计算得到的视频实时帧率小于所述终端所需的采集帧率,则反馈到所述采集终端以进行相应调整。The information feedback unit is configured to determine a total number of video frames received from the collection terminal in a unit statistical period, and calculate a real-time video frame rate according to the total number of frames received in the unit statistical period; and, if Determining that the calculated real-time frame rate of the video is smaller than the acquisition frame rate required by the terminal, and then feeding back to the collection terminal for corresponding adjustment.
  20. 如权利要求11所述的终端,其特征在于,所述终端以及所述采集终端为带有微处理器且具备设定的计算能力和支持设定的网络协议接口的终端。The terminal according to claim 11, wherein said terminal and said collection terminal are terminals having a microprocessor and having a set computing capability and a supported network protocol interface.
  21. 一种视频采集系统,其特征在于,包括:A video capture system, comprising:
    发起视频采集请求的终端设备,用于获取与自身建立有会话连接的各其他终端的视频采集能力,并基于获取到的各其他终端的视频采集能力,从与自身建立有会话连接的各其他终端中,选取所具备的视频采集能力满足设定的视频采集能力要求的其他终端作为采集终端,并指示所述采集终端基于所述发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集;The terminal device that initiates the video collection request is used to acquire the video collection capability of each other terminal that has established a session connection with itself, and based on the obtained video collection capability of each other terminal, each other terminal that establishes a session connection with itself The other terminal that has the video capture capability that meets the set video capture capability requirements is selected as the collection terminal, and the collection terminal is instructed to select the video acquisition parameters and the collection based on the terminal device that initiates the video capture request. Video capture capability of the terminal to collect video data;
    采集终端,用于根据发起视频采集请求的终端设备下发的视频采集指示,基于所述发起视频采集请求的终端设备所需的视频采集参数以及所述采集终端的视频采集能力,进行视频数据的采集,并将采集到的视频数据传输至所述发起视频采集请求的终端设备。 The collection terminal is configured to perform video data according to the video collection parameter sent by the terminal device that initiates the video collection request, and the video collection parameter required by the terminal device that initiates the video collection request and the video collection capability of the collection terminal. Collecting and transmitting the collected video data to the terminal device that initiates the video collection request.
PCT/CN2016/081657 2015-05-18 2016-05-11 Video capturing method, and related device and system WO2016184332A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510253322.1A CN106303551A (en) 2015-05-18 2015-05-18 A kind of video capture method and relevant device and system
CN201510253322.1 2015-05-18

Publications (1)

Publication Number Publication Date
WO2016184332A1 true WO2016184332A1 (en) 2016-11-24

Family

ID=57319375

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081657 WO2016184332A1 (en) 2015-05-18 2016-05-11 Video capturing method, and related device and system

Country Status (2)

Country Link
CN (1) CN106303551A (en)
WO (1) WO2016184332A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878659B (en) * 2017-03-08 2019-11-29 威盛电子股份有限公司 Video conferencing system and server
CN111083407A (en) * 2019-11-21 2020-04-28 北京文香信息技术有限公司 Recording and broadcasting method, device and equipment
CN112367462B (en) * 2020-10-29 2022-04-22 北京达佳互联信息技术有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN112601041A (en) * 2020-12-11 2021-04-02 北京首汽智行科技有限公司 Video recording method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924927A (en) * 2010-08-10 2010-12-22 中兴通讯股份有限公司 Joint video monitoring method and system thereof
CN102186056A (en) * 2011-03-29 2011-09-14 河北师范大学 Mobile phone remote control intelligent video monitoring system and monitoring method thereof
CN103024447A (en) * 2012-12-31 2013-04-03 合一网络技术(北京)有限公司 Method and server capable of achieving mobile end editing and cloud end synthesis of multiple videos shot in same place and at same time
CN103747211A (en) * 2014-01-02 2014-04-23 无锡方圆环球显示技术股份有限公司 Method for realizing remote data acquisition and transmission through network control

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783921B (en) * 2010-02-24 2013-05-01 中兴通讯股份有限公司 Method and device for expanding video conference function to external equipment
CN102868873B (en) * 2011-07-08 2017-10-17 中兴通讯股份有限公司 A kind of remote presentation method, terminal and system
CN103634524A (en) * 2013-11-15 2014-03-12 北京智谷睿拓技术服务有限公司 Control method and control equipment of camera system and camera system
CN103685942B (en) * 2013-11-22 2017-03-08 华为技术有限公司 Video camera control method, user equipment and video camera

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924927A (en) * 2010-08-10 2010-12-22 中兴通讯股份有限公司 Joint video monitoring method and system thereof
CN102186056A (en) * 2011-03-29 2011-09-14 河北师范大学 Mobile phone remote control intelligent video monitoring system and monitoring method thereof
CN103024447A (en) * 2012-12-31 2013-04-03 合一网络技术(北京)有限公司 Method and server capable of achieving mobile end editing and cloud end synthesis of multiple videos shot in same place and at same time
CN103747211A (en) * 2014-01-02 2014-04-23 无锡方圆环球显示技术股份有限公司 Method for realizing remote data acquisition and transmission through network control

Also Published As

Publication number Publication date
CN106303551A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
JP7114684B2 (en) interactive video conferencing
CN104394486B (en) A kind of video stream processing method and device based on cloud desktop
US6453336B1 (en) Video conferencing with adaptive client-controlled resource utilization
US11412021B2 (en) Method and device for media streaming between server and client using RTP/RTSP standard protocol
WO2016184332A1 (en) Video capturing method, and related device and system
EP2640099B1 (en) Method, system and apparatus for providing stream media service
US10194180B2 (en) Systems and methods for transmitting video data over a network
TWI682648B (en) Method and devices for negotiating bandwidth in a peer-to-peer network
EP3866474B1 (en) Video self-adaptation method, related device and storage medium
US20110285863A1 (en) Live television broadcasting system for the internet
CN103841361B (en) Communication method for integrating multiple conference systems under low bandwidth
WO2017092338A1 (en) Data transmission method and apparatus
JP5812634B2 (en) Transmission device, transmission method, and program
WO2012163181A1 (en) Method and device for implementing fast channel change
US9936164B2 (en) Media control method and device
CN115209189B (en) Video stream transmission method, system, server and storage medium
US9049350B2 (en) Imaging apparatus that transmits media data to reception apparatus, method of processing information, and storage medium
JP2021527351A (en) Network-controlled uplink media transmission for collaborative media production in scenarios with limited network capacity
JP2020053904A (en) Data receiving apparatus, data distribution control method, and data distribution control program
CN112585979B (en) Method and system for network controlled media upload of stored content
US11800158B2 (en) Video production systems and methods
US8384758B1 (en) Video management system over satellite
WO2020118508A1 (en) Video transmission method, device and system, and server
JP2003299062A (en) Video converter and its method
US9473552B2 (en) Preventing omission of data in a remote conference

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: 16795819

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: 16795819

Country of ref document: EP

Kind code of ref document: A1