WO2022198605A1 - Data stream transmission method and device - Google Patents

Data stream transmission method and device Download PDF

Info

Publication number
WO2022198605A1
WO2022198605A1 PCT/CN2021/083112 CN2021083112W WO2022198605A1 WO 2022198605 A1 WO2022198605 A1 WO 2022198605A1 CN 2021083112 W CN2021083112 W CN 2021083112W WO 2022198605 A1 WO2022198605 A1 WO 2022198605A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
stream
transmitted
data stream
application
Prior art date
Application number
PCT/CN2021/083112
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 华为技术有限公司
Priority to PCT/CN2021/083112 priority Critical patent/WO2022198605A1/en
Priority to CN202180088320.5A priority patent/CN116711298A/en
Publication of WO2022198605A1 publication Critical patent/WO2022198605A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/04Synchronising
    • H04N5/08Separation of synchronising signals from picture signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/08Systems for the simultaneous or sequential transmission of more than one television signal, e.g. additional information signals, the signals occupying wholly or partially the same frequency band, e.g. by time division

Definitions

  • the present application relates to the field of data transmission, and in particular, to a data stream transmission method and device.
  • TVs can use artificial intelligence (AI) technology to provide users with various types of services, such as multi-party video calls, human perception, gesture control, sports fitness, and remote home monitoring on the TV.
  • AI artificial intelligence
  • the camera transmits the control command and the original video stream captured by the camera to the TV through the universal serial bus (USB), and the TV converts the original video stream according to the control command to obtain the resolution Different multiple application video streams, and further, the TV displays the multiple application video streams, and the user can view various video information obtained according to the original video stream through the TV.
  • USB universal serial bus
  • the conversion of the original video stream will occupy most of the computing resources of the TV main chip. Due to the low performance of the TV main chip, it is easy to cause the playback of the application video stream to freeze, which reduces the user's video viewing experience.
  • the camera converts the original video stream collected by the camera to obtain multiple application video streams, and the camera transmits the multiple application video streams to the TV through USB, reducing the number of application video streams.
  • the computing resources occupied by the TV main chip to convert the raw video stream.
  • the transmission capacity of USB is small, which results in high latency when USB transmits multiple video streams.
  • the present application provides a data stream transmission method and device, which solve the problem of high transmission delay of video streams.
  • the present application provides a data stream transmission method.
  • the method is executed by a video capture device, or the method can be applied to a terminal device that can support the implementation of the method.
  • the terminal device includes a chip system.
  • the video capture device is connected to the video display device through a first line and a second line respectively, and the first line is used to transmit control instructions of the video capture device and the video display device.
  • the method includes: a video capture device A plurality of application video streams are generated according to the original video streams collected by the video capture device, and the plurality of application video streams are spliced to obtain the data stream to be transmitted, and then the video capture device sends the data stream to be transmitted to the video display device through the second line.
  • the transmission bandwidth required by the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line.
  • the video capture device transmits the control command through the first line, and sends the data stream to be transmitted to the video display device through the second line, which realizes the separate transmission of the control command and the data stream, and avoids using the same line to transmit the control command and the data stream.
  • the control instruction occupies the bandwidth of the line for transmitting the data stream, the problem of high transmission delay of the data stream is caused.
  • the data stream is transmitted through a dedicated second line, which reduces the transmission delay for transmitting the data stream to be transmitted, and improves the transmission rate for transmitting the data stream to be transmitted;
  • the control command sent by the video display device can also be received through the first line.
  • the video capture device sends the control command, which effectively reduces the transmission delay of the control command.
  • the video capture device can The multiple application video streams are spliced to obtain the data stream to be transmitted, and the to-be-transmitted data stream is put into the second line for transmission, so that the video capture device does not need to transmit each application video stream separately, and the transmission delay of the video stream is reduced.
  • the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line, the video capture device can transmit the data stream to be transmitted according to the maximum transmission bandwidth of the second line, avoiding the transmission of the second line. Transmission delay caused by insufficient bandwidth.
  • the above-mentioned maximum transmission bandwidth of the second line indicates the maximum data amount of the video stream that can be transmitted by the second line in a unit time.
  • the maximum data amount the resolution of a single frame of image ⁇ N
  • N is a positive integer
  • the resolution of the image can be expressed in pixels , for example, the resolution of the image is 1080P (1920 ⁇ 1080).
  • the above-mentioned transmission bandwidth required for the data stream to be transmitted indicates the amount of data required to be transmitted for all application video streams and description information in the data stream to be transmitted in a unit time, and the description information can be used to describe the resolution information of the application video stream. , exposure information, white balance information or focus information, etc.
  • the multiple application video streams included in the data stream to be transmitted may be different types of video streams.
  • the multiple application video streams include at least one video stream among preview streams, photographing streams, depth data streams, face streams, object detection streams, monitoring streams, time-of-flight ranging streams, or gesture control streams.
  • the user can use the video display device to view different video information of the original video stream, for example, the user can view the preview stream and the photo stream in the video call, and view the face recognition information obtained according to the original video stream during the video call (such as Classify the face shape of the face), thereby improving the user's experience of watching videos.
  • the video display device can view different video information of the original video stream, for example, the user can view the preview stream and the photo stream in the video call, and view the face recognition information obtained according to the original video stream during the video call (such as Classify the face shape of the face), thereby improving the user's experience of watching videos.
  • the first line is a USB
  • the second line is a high definition multimedia interface (high definition multimedia interface, HDMI) line.
  • the same transmission line (USB) is multiplexed between the camera and the TV to transmit the video stream and the control command.
  • USB transmission line
  • the TV cannot send the control command to the camera through the USB, resulting in a higher transmission delay of the control command in the opposite direction to the transmission direction of the video stream.
  • the video capture device uses the data stream transmission method provided by the embodiment of the present application, the video capture device transmits the control command through USB, and transmits the to-be-transmitted data stream through HDMI, which realizes the separate transmission of the data stream and the control command, and the video display device does not need to transmit the data stream to be transmitted.
  • the control command is sent to the video capture device, that is to say, in the process of the video capture device sending the data stream to be transmitted to the video display device through HDMI, the video display device can send the control command to the video capture device through USB. command, reducing the transmission delay of the control command.
  • the format of the application video stream may be the YUV format.
  • the Y information indicates the brightness (Luminance) of each frame image in the application video stream
  • the U and V information indicates the color information (Chrominance) of each frame image in the application video stream. Since the video stream in the YUV format is a lossless video stream, and the transmission bandwidth of the USB in the prior art is relatively small, the transmission delay of the YUV format is relatively high.
  • the second line is an HDMI line, and the transmission bandwidth of the HDMI line is larger than that of the USB, which can reduce the transmission delay of the video capture device sending the data stream to be transmitted to the video display device.
  • the camera will encode the multiple application video streams, thereby compressing the multiple application video streams to obtain the data stream to be transmitted.
  • the encoding information indicates the encoding method of the application video stream by the camera; since the video stream in the data stream to be transmitted is compressed, this will cause the video stream included in the data stream to be transmitted.
  • the video stream has losses, and further, the video stream played on the TV is not completely consistent with the above-mentioned application video stream, which reduces the playback effect of the video stream.
  • the video capture device when the second line is an HDMI cable and the format of the application video stream is the YUV format, the video capture device does not need to encode the application video stream, and thus does not generate Encoding information, which reduces the fields used to describe the format of the application video stream in the data stream to be transmitted, reduces the redundancy of the data stream to be transmitted, and reduces the amount of data that the video capture device sends to the video display device using HDMI to the data stream to be transmitted , and further, the transmission speed of the to-be-transmitted data stream is increased, and the transmission delay of the to-be-transmitted data stream is reduced.
  • the video capture device in the embodiment of the present application can use the dedicated second line to transmit the data stream in the YUV format, there is no difference between the video stream played by the video display device and the application video stream generated by the video capture device, which improves the The video display device plays the effect of the video stream, thereby improving the user's experience of watching the video.
  • the video capture device may also receive a capture command sent by the video display device through the first line, and capture the original video stream according to the capture command; the video capture device also processes the above-mentioned capture command according to the capture command.
  • the original video stream gets multiple application video streams.
  • the video capture device may generate multiple application video streams based on multiple capture instructions.
  • the video display device generates multiple capture commands according to the user's gesture information, and the multiple capture commands include face recognition commands and preview commands.
  • the video display device sends the multiple video capture instructions to the video capture device, so that the video capture device generates a face recognition stream according to the face recognition command, generates a preview stream according to the preview command, and the video capture device combines the preview stream with the human
  • the video acquisition device sends the to-be-transmitted data stream to the video display device, and the user can view the above-mentioned preview stream and face recognition stream through the video display device.
  • the data stream to be transmitted may include channel information, the channel information includes the number of channels in the second line, and bandwidth information of each channel, and the channel information also includes applications in the data stream to be transmitted The number of video streams, and which channel each application video stream is on.
  • the video display device In order to facilitate the video display device to determine the information of each channel in the to-be-transmitted data stream and the application video stream based on the channel information in the to-be-transmitted data stream after receiving the to-be-transmitted data stream, it avoids that the video display device only relies on each application video
  • the stream information of the stream is divided into the data stream to be transmitted, which improves the speed of parsing the data stream to be transmitted by the video display device.
  • the bandwidth information included in the channel information may be characterized by the maximum resolution of the video stream that can be transmitted by the channel.
  • the bandwidth information included in the channel information is 3840*540
  • the bandwidth information of channel 2 is 3840*540
  • the bandwidth information of channel 3 is 3840*240, respectively indicating that the resolution of the video stream that can be transmitted by channel 1 can be up to 3840*540, and the resolution of the video stream that can be transmitted by channel 2.
  • the maximum can be 3840*540
  • the maximum resolution of the video stream that can be transmitted by channel 3 can be 3840*240.
  • the above-mentioned channel information includes resolution information of each application video stream, so that after the video display device acquires the channel information, it can be based on the resolution information of each application video stream as The application allocates computing resources for the playback of the video stream, which can improve the utilization rate of computing resources of the video display device and avoid the video display device from being stuck; in the process of splitting the data stream to be transmitted by the video display device, the video display device can not only The channel where each application video stream is located determines the position of the application video stream, and the channel information including the resolution information of the application video stream can also be used to determine the width and height information of the application video stream, which improves the resolution of the video display device in parsing the data stream to be transmitted. accuracy.
  • the above-mentioned channel information may be set in the header of the data stream to be transmitted.
  • the video acquisition device sets the channel information in the header of the data stream to be transmitted, and sends the data stream to be transmitted to the video display device through the second line.
  • the video display device can only split the data stream to be transmitted according to the stream information of each application video stream, which requires a lot of computing resources, resulting in a freeze when the video display device plays the video stream, and the present
  • the video display device after the video display device receives the data stream to be transmitted, since the channel information is in the header of the data stream to be transmitted, the video display device can preferentially obtain the channel information in the data stream to be transmitted, and determine based on the channel information.
  • the information of each channel in the data stream to be transmitted and the application video stream improves the speed of parsing the data stream to be transmitted by the video display device.
  • the data stream to be transmitted may further include stream information, where the stream information indicates attribute information of each application video stream in the data stream to be transmitted, and the attribute information includes exposure information of the application video stream , at least one of focus information or white balance information.
  • the video capture device sets the stream information in the data stream to be transmitted, and sends the data stream to be transmitted to the video display device through the second line. After the video display device receives the data stream to be transmitted, the video display device can determine the number, width and height of each channel in the data stream to be transmitted, and the number, location and resolution of the application video stream according to the channel information in the data stream to be transmitted.
  • the video display device can also determine the attribute information of the application video stream according to the stream information in the data stream to be transmitted, thereby realizing the identification of different types of application video streams, and further improving the ability of the video display device to parse the data stream to be transmitted. accuracy.
  • the above-mentioned multiple application video streams include a first application video stream and a second application video stream, and the resolution of the first application video stream and the resolution of the second application video stream are different.
  • the embodiment of the present application can transmit multiple video streams with different resolutions at the same time, and the video capture device generates multiple application video streams by using the original video stream, which can avoid the video display device from converting the original video stream and release the computing resources of the video display device. , to prevent the video display device from being stuck when playing the video stream.
  • the data stream to be transmitted further includes a data area, the data area includes multiple channels, and the video capture device splices multiple application video streams to obtain the data stream to be transmitted, including: the video capture device combines multiple The application video streams are respectively set in their corresponding target channels, wherein the target channel corresponding to the application video stream is a channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream.
  • the video capture device takes the channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream as the target channel of the application video stream , and further, the video capture device sets the application video stream in the target channel corresponding to the application video stream, so as to realize the transmission of the application video stream based on the transmission capability of the channel. That is to say, each application video stream can be put into the target channel whose transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream, preventing the video capture device from putting the application video stream with larger resolution into the bandwidth. In the channel with smaller information, the transmission delay caused by insufficient transmission bandwidth of the channel is reduced.
  • the data stream to be transmitted includes a data area, the data area includes multiple channels, and the video capture device splices multiple application video streams to obtain the data stream to be transmitted, including: if the first application video stream The required transmission bandwidth is greater than the transmission bandwidth of any one of the multiple channels, and is less than or equal to the maximum transmission bandwidth of the second line, then the video capture device uses the first application video stream as the first data stream to be transmitted, and the third An application video stream is any one of the multiple application video streams; and, if the transmission bandwidth required by the remaining data streams matches the transmission bandwidth possessed by the multiple channels, the video capture device splices the multiple application videos in the remaining data streams
  • the second to-be-transmitted data stream is obtained from the stream, wherein the remaining data streams include other application video streams except the first application video stream among the multiple application video streams obtained according to the original video stream.
  • the video acquisition device sending the data stream to be transmitted to the video display device through the second line includes: the video acquisition device alternately sends the first data stream to be transmitted and
  • the camera transmits the application video stream with a larger resolution to the TV, and then sends other application video streams to the TV, resulting in a high transmission delay of the other application video streams.
  • the video capture device can use the first application video stream as the first data stream to be transmitted, and the first application video stream is a plurality of application video streams.
  • the required transmission bandwidth is greater than any one of the multiple channels.
  • the application video stream of the transmission bandwidth, and the remaining data stream that matches the transmission bandwidth of the multiple channels is used as the second data stream to be transmitted, and then the video capture device alternately sends the first data stream to be transmitted through the second line.
  • the video capture device does not need to send the second data stream to be transmitted to the video display device after the transmission of the first data stream to be transmitted is completed, which avoids the need for separate video streams.
  • the disadvantage of transmission (after the transmission of one video stream is completed, another video stream is transmitted) reduces the transmission delay of the video stream.
  • the present application provides a data stream transmission method, the method is executed by a video display device, or the method can be applied to a terminal device that can support the implementation of the method, for example, the terminal device includes a chip system.
  • the video capture device is connected to the video display device through a first line and a second line respectively, and the first line is used to transmit control instructions of the video capture device and the video display device.
  • the method includes: a video display device The data stream to be transmitted sent by the video capture device is received through the second line, and the video display device also processes the data stream to be transmitted and plays at least one application video stream.
  • the above-mentioned data stream to be transmitted is obtained by splicing multiple application video streams, and the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line.
  • the video display device transmits the control command through the first line, and receives the data stream to be transmitted sent by the video capture device through the second line, so as to realize the separate transmission of the control command and the data stream, and avoid using the same line to transmit the control command and the data stream.
  • the control instruction occupies the bandwidth of the line for transmitting the data stream, the problem of high transmission delay of the data stream is caused.
  • the data stream is transmitted through a dedicated second line, which reduces the transmission delay of transmitting the data stream to be transmitted, and improves the transmission rate of transmitting the data stream to be transmitted;
  • the control command sent by the video capture device can also be received through the first line. Sending a control command to the video capture device effectively reduces the transmission delay of the control command.
  • the video capture device can The multiple application video streams are spliced to obtain the data stream to be transmitted, and the to-be-transmitted data stream is put into the second line for transmission, so that the video capture device does not need to transmit each application video stream separately, and the transmission delay of the video stream is reduced.
  • the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line
  • the video display device can transmit the data stream to be transmitted according to the maximum transmission bandwidth of the second line, avoiding the need for the transmission of the second line. Transmission delay caused by insufficient bandwidth.
  • the video display device can process and play the data stream to be transmitted, and the user can view the original video through the video display device.
  • Various video information of the stream such as the user can view the preview stream and photo stream in the video call, and view the face recognition information obtained from the original video stream during the video call (such as classifying the face shape of the face) , which improves the user's viewing experience.
  • the data stream to be transmitted includes channel information
  • the channel information includes the number of channels in the second line, and the bandwidth information of each channel
  • the channel information further includes the number of application video streams in the data stream to be transmitted , and the channel on which each application video stream is located.
  • the video display device can determine each channel in the to-be-transmitted data stream and the information of the application video stream based on the channel information in the to-be-transmitted data stream, so as to prevent the video display device from
  • the stream information of the application video stream is split into the data stream to be transmitted, which improves the speed of parsing the data stream to be transmitted by the video display device.
  • the channel information includes resolution information of each application video stream.
  • the video display device After the video display device obtains the channel information, it can allocate computing resources for the playback of the application video stream according to the resolution information of each application video stream, which can improve the utilization rate of the computing resources of the video display device and avoid the occurrence of the video display device.
  • the video display device splits the data stream to be transmitted, the video display device can not only determine the position of the application video stream according to the channel where each application video stream is located, but also use the channel information including the application video stream.
  • the resolution information determines the width and height information of the application video stream, which improves the accuracy of parsing the data stream to be transmitted by the video display device.
  • the channel information is set in the header of the data stream to be transmitted.
  • the video display device can only split the data stream to be transmitted according to the stream information of each application video stream, which requires a lot of computing resources, resulting in the video display device being stuck in playing the video stream.
  • the video display device can preferentially obtain the channel information in the data stream to be transmitted, and determine based on the channel information. The information of each channel in the data stream to be transmitted and the application video stream improves the speed of parsing the data stream to be transmitted by the video display device.
  • the video display device processes the data stream to be transmitted and plays at least one application video stream, including: the video display device splits the data stream to be transmitted according to the channel information to obtain all the application video streams; video display The device selects at least one application video stream among all the application video streams to play. After the video display device receives the data stream to be transmitted, the video display device can determine the number, width and height of each channel in the data stream to be transmitted, and the number, location and resolution of the application video stream according to the channel information in the data stream to be transmitted.
  • the video display device can also determine the attribute information of the application video stream according to the stream information in the data stream to be transmitted, thereby realizing the identification of different types of application video streams, and improving the accuracy of the video display device in parsing the data stream to be transmitted. sex.
  • the application video stream played by the video display device is the AI data obtained after the video display device splits the data stream to be transmitted according to the channel information, and performs AI processing on the split application video stream.
  • the AI processing can be, but is not limited to: object detection, face recognition, object classification, color recognition, object counting, etc.
  • the video display device includes a processor, which can be used to perform the operation corresponding to the above AI processing, and display the result of the operation on the display screen of the video display device, so that the user can watch the video through the display screen of the video display device.
  • Various video information to the original video stream for example, users can view the preview stream and photo stream in the video call, and view the face shape recognition information obtained from the original video stream during the video call (such as the face shape of the face). classification), which improves the user's experience of watching videos.
  • the data stream transmission method may further include: the video display device responds to acting on the video display device The operation information is generated, and at least one acquisition instruction is generated.
  • the video display device can send the acquisition instruction to the video acquisition device, so that the video acquisition device generates multiple application video streams according to the acquisition instruction, and sends the data stream to be transmitted obtained by splicing the multiple application video streams to the video through the second line.
  • the display device enables the user to see various video information (such as target detection information, face type classification, color recognition, etc.) of the original video stream through the display screen of the video display device, which improves the user's experience of watching videos.
  • an embodiment of the present application provides a video capture device, and the beneficial effects can be found in the description of any aspect of the first aspect, which will not be repeated here.
  • the video capture device has the function of implementing the behavior in the method example of any one of the above-mentioned first aspects.
  • the functions can be implemented by hardware, or can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the video capture device is connected to the video display device through a first line and a second line respectively, the first line is used to transmit control instructions of the video capture device and the video display device, and the video capture device includes: a processing unit , which is used to generate multiple application video streams according to the original video streams collected by the video capture device; the splicing unit is used to splicing multiple application video streams to obtain the data stream to be transmitted, and the transmission bandwidth required for the data stream to be transmitted is less than or equal to the second The maximum transmission bandwidth of the line; the transceiver unit is used to send the data stream to be transmitted to the video display device through the second line.
  • the data stream to be transmitted includes channel information
  • the channel information includes the number of channels in the second line, and the bandwidth information of each channel
  • the channel information also includes the application video stream in the data stream to be transmitted , and which channel each application video stream is on.
  • the channel information includes resolution information of each application video stream.
  • the channel information is set in the header of the data stream to be transmitted.
  • the multiple application video streams include a first application video stream and a second application video stream, and the resolution of the first application video stream and the resolution of the second application video stream are different.
  • the data stream to be transmitted further includes a data area, and the data area includes multiple channels, and a splicing unit is specifically used to set multiple application video streams in respective corresponding target channels; application
  • the target channel corresponding to the video stream is a channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream.
  • the data stream to be transmitted includes a data area, the data area includes multiple channels, and the splicing unit is specifically used if the transmission bandwidth required by the first application video stream is greater than any one of the multiple channels If the transmission bandwidth of the channel is less than or equal to the maximum transmission bandwidth of the second line, the first application video stream is used as the first data stream to be transmitted, and the first application video stream is any one of multiple application video streams;
  • the splicing unit is specifically used for splicing multiple application video streams in the remaining data stream to obtain the second data stream to be transmitted if the transmission bandwidth required by the remaining data stream matches the transmission bandwidth possessed by the multiple channels.
  • the transceiver unit is specifically configured to alternately send the first data stream to be transmitted and the second data stream to be transmitted to the video display device through the second line flow.
  • the multiple application video streams include at least one of a preview stream, a photo stream, a depth data stream, a face stream, a target detection stream, a monitoring stream, a time-of-flight ranging stream, or a gesture control stream.
  • a preview stream a photo stream
  • a depth data stream a depth data stream
  • a face stream a target detection stream
  • a monitoring stream a time-of-flight ranging stream
  • a gesture control stream a gesture control stream.
  • the first line is a USB
  • the second line is an HDMI line.
  • an embodiment of the present application provides a video display device, and the beneficial effects can be found in the description of any aspect of the second aspect, which will not be repeated here.
  • the video capture device has the function of implementing the behavior in the method example of any one of the above-mentioned second aspects.
  • the functions can be implemented by hardware, or can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the video display device is connected to the video capture device through a first line and a second line respectively, and the first line is used to transmit control instructions of the video capture device and the video display device
  • the video display device includes: a transceiver unit , used to receive the data stream to be transmitted sent by the video capture device through the second line, the data stream to be transmitted is obtained by splicing multiple application video streams, and the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line bandwidth; a processing unit, configured to process the data stream to be transmitted to obtain multiple application video streams; and a display unit, configured to play at least one application video stream among the multiple application video streams.
  • the data stream to be transmitted includes channel information
  • the channel information includes the number of channels in the second line, and the bandwidth information of each channel
  • the channel information also includes the application video stream in the data stream to be transmitted , and which channel each application video stream is on.
  • the channel information includes resolution information of each application video stream.
  • the channel information is set in the header of the data stream to be transmitted.
  • the processing unit is specifically configured to split the data stream to be transmitted to obtain all the application video streams according to the channel information; the display unit is specifically configured to select at least one application video in all the application video streams stream to play.
  • an embodiment of the present application provides a terminal device, including a processor and an interface circuit, the processor receives or sends data through the interface circuit, and the processor implements the first aspect and the first aspect through a logic circuit or executing code instructions
  • the method in any one possible implementation of the aspect, or the operation steps of the method in any one of the possible implementations of the second aspect and the second aspect.
  • an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed by a terminal device, any one of the first aspect and the first aspect is implemented
  • the method in the possible implementation manner, or the operation steps of the method in any one possible implementation manner of the second aspect and the second aspect.
  • an embodiment of the present application provides a computer program product, the computing program product includes instructions, and when the computer program product runs on a terminal device or a processor, the terminal device or the processor executes the instructions, so as to realize the first
  • the aspect and the method in any one possible implementation of the first aspect, or the second aspect and the operation steps of the method in any one possible implementation of the second aspect.
  • an embodiment of the present application provides a chip, including a memory and a processor, where the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the above-mentioned first aspect and its first aspect
  • the method in any possible implementation manner, or the operation steps of the method in any possible implementation manner of the second aspect and the second aspect.
  • the present application may further combine to provide more implementation manners.
  • FIG. 1 is a schematic diagram of a video communication system provided by the application.
  • FIG. 2 is a schematic flowchart of a data stream transmission method provided by the present application.
  • FIG. 3 is a schematic diagram of a smart screen provided by the application.
  • FIG. 4 is a schematic structural diagram of a data stream to be transmitted provided by the present application.
  • FIG. 5 is a schematic flowchart of another data stream transmission method provided by the present application.
  • FIG. 6 is a schematic diagram of alternate transmission of data streams provided by the present application.
  • FIG. 7 is a schematic diagram of a data stream transmission system provided by the present application.
  • FIG. 8 is a schematic structural diagram of a terminal device provided by the present application.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as “exemplary” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplary” or “such as” is intended to present the related concepts in a specific manner.
  • the camera transmits the video stream between the camera and the TV through the USB, and the transmission capability of the USB is relatively small, resulting in a relatively high delay when the USB transmits the video stream.
  • the transmission bandwidth required for a video stream of a three-dimensional (3-dimension, 3D) image is about 442MB/s, while the transmission bandwidth of USB 3.0 can generally only reach 400MB/s. delay.
  • the present application provides a data stream transmission method.
  • the video capture device is connected to the video display device through a first line and a second line respectively, and the first line is used to transmit the control instructions of the video capture device and the video display device.
  • the method includes: a video capture device is used to capture an original video stream, and generate a plurality of application video streams according to the original video stream, and splicing the plurality of application video streams to obtain a data stream to be transmitted, and further, the video capture device passes the second The line sends the data stream to be transmitted to the video display device; wherein, the transmission bandwidth required by the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second circuit.
  • the video display device is configured to process the to-be-transmitted data stream and play at least one display video stream after receiving the to-be-transmitted data stream.
  • the video capture device transmits the control command through the first line, and sends the data stream to be transmitted to the video display device through the second line, which realizes the separate transmission of the control command and the data stream, and avoids using the same line to transmit the control command and the data stream.
  • the control instruction occupies the bandwidth of the line for transmitting the data stream, the problem of high transmission delay of the data stream is caused.
  • the data stream is transmitted through a dedicated second line, which reduces the transmission delay for transmitting the data stream to be transmitted, and improves the transmission rate for transmitting the data stream to be transmitted;
  • the control command sent by the video display device can also be received through the first line.
  • the video capture device sends the control command, which effectively reduces the transmission delay of the control command.
  • the video capture device can The multiple application video streams are spliced to obtain the data stream to be transmitted, and the to-be-transmitted data stream is put into the second line for transmission, so that the video capture device does not need to transmit each application video stream separately, and the transmission delay of the video stream is reduced.
  • the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line, the video capture device can transmit the data stream to be transmitted according to the maximum transmission bandwidth of the second line, avoiding the transmission of the second line. Transmission delay caused by insufficient bandwidth.
  • the video capture device may be a camera or a camera, etc.
  • the camera is used to capture still images or videos.
  • the object is projected through the lens to generate an optical image onto the photosensitive element, which in turn generates the raw video stream.
  • the photosensitive element can be a charge coupled device (Charge Coupled Device, CCD) or a complementary metal-oxide-semiconductor (Complementary Metal-Oxide-Semiconductor, CMOS) phototransistor.
  • CCD Charge Coupled Device
  • CMOS complementary Metal-Oxide-Semiconductor
  • the video display device is used to display images, videos, etc.
  • the video display device may be a television, a projector, a computer monitor, and the like.
  • the video display device may be other terminal devices with image display functions, such as wearable devices, vehicle-mounted devices, Augmented Reality (AR)/Virtual Reality (VR) devices, Notebook computer, Ultra-Mobile Personal Computer (UMPC), netbook, Personal Digital Assistant (PDA), etc.
  • AR Augmented Reality
  • VR Virtual Reality
  • UMPC Ultra-Mobile Personal Computer
  • PDA Personal Digital Assistant
  • FIG. 1 is a schematic diagram of a video communication system provided by the present application.
  • the video communication system includes a TV 110 , a retractable camera 120 , a camera 130 and a conference tablet 140 .
  • the television 110 and the conference tablet can communicate via the network 150 .
  • the network 150 may include switches, servers and other devices.
  • the video capture device and the video display device can be integrated on a terminal device.
  • the retractable camera 120 is arranged on the TV 110, and the device integrated with the TV function and the camera function can be It is called a smart screen.
  • multiple video capture devices may be set on the video display device, for example, multiple cameras may be set on the TV 110, and other shooting devices may also be connected through an interface.
  • the video capture device and the video display device may be set separately.
  • the video capture device may be the camera 130
  • the video display device may be the conference tablet 140 .
  • the video display device may include one or more display screens, and the display screens are used to display images, videos, and the like.
  • the display includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Mini-LED Micro-LED, Micro-OLED, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), etc.
  • the video display device may further include a processor, for example, the processor may include an application processor (Application Processor, AP), a modem processor, a GPU, an ISP, a controller, a memory, a video codec, a digital signal processor ( Digital Signal Processor, DSP), baseband processor, and/or Neural-Network Processing Unit (NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. Among them, the controller can be the nerve center and command center of the video display device. The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • Memory may also be provided in the processor for storing instructions and data.
  • the memory in the processor is a cache memory. This memory can hold instructions or data that the processor has just used or recycled. If the processor needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, the waiting time of the processor is reduced, and thus the efficiency of data flow transmission is improved.
  • the processor may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, USB interface and/or HDMI interface, etc.
  • the USB interface is an interface that conforms to the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. In this embodiment of the present application, the USB interface is used to transmit control instructions.
  • the USB interface can be used to connect a charger to supply power to the TV 110 , and can also be used to transmit control commands between the TV 110 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the USB interface can also be used to connect other terminal devices, such as AR devices, retractable cameras 120 and the like.
  • the video communication scenario shown in FIG. 1 is only a possible implementation provided by the embodiments of this application, and the data stream transmission method provided in this application is used for image transmission links, such as photography, videography, and monitoring. etc. involving the field of image transmission.
  • the video capture device 210 is connected to the video display device 220 through a first line and a second line, respectively.
  • the retractable camera 120 is the video capture device 210 and the TV 110 is the video display device 220 as an example, to illustrate the data stream transmission method provided in this application, the video capture device 210 can realize the scalable as shown in FIG. 1 .
  • the functions of the camera 120 and the video display device 220 can realize the functions of the television 110 as shown in FIG. 1 .
  • the first line is used to transmit the control commands of the video capture device 210 and the video display device 220
  • the second line is used for the video capture device 210 to transmit the data stream to the video display device 220, which realizes the separate transmission of the data stream and the control command.
  • the video display device 220 may send a control instruction to the video acquisition device 210 through the first circuit, so that the video display device 220 does not need to transmit the data stream to be transmitted.
  • the control command is sent to the video capture device 210 only after the transmission process of the video capture device is completed, which reduces the transmission delay of the control command.
  • the data stream transmission method provided by the embodiment of the present application may include the following steps.
  • the video display device 210 generates a collection instruction in response to the operation information acting on the video display device.
  • FIG. 3 is a schematic diagram of a smart screen provided by the present application.
  • the video display device 220 may be a smart screen 300 and the video capture device 210 It is the camera 310 on the smart screen 300.
  • the operation information may be a remote control command received by the smart screen 300 and sent by the user through the remote controller of the smart screen 300.
  • the operation information is a control instruction sent by a remote device (such as a mobile phone) communicatively connected to the smart screen 300 through an application (application, APP).
  • a remote device such as a mobile phone
  • an application application, APP
  • the operation information is the voice information received by the audio input device of the smart screen 300
  • the audio input device may be a microphone set on the smart screen 300
  • the audio input device may also be a remote control set on the smart screen 300 on the microphone.
  • the operation information may also be the gesture information of the user received by the smart screen 300.
  • the gesture information may be the operation performed by the user on the touch screen; the gesture The information may also be a gesture operation in which the user performs a non-touch operation (such as an air-space operation) according to a certain action.
  • the above operation information is only a possible implementation manner provided by this application, and does not represent a limitation on this application.
  • the above-mentioned operation information may also be an instruction sent by a server wiredly connected to the video display device.
  • the video display device 220 sends a capture instruction to the video capture device 210 through the first line.
  • the first line may be USB.
  • the processor of the video capture device 210 has a USB interface
  • the processor of the video display device 220 also has a USB interface
  • two ends of the first line are respectively connected to the two USB interfaces.
  • the first line may also be implemented through other interfaces of the video capture device 210 and the video display device 220.
  • the other interfaces may be, but not limited to: Mini USB interface, Micro USB interface interface, USB Type C interface, etc.
  • Using the first line to transmit the control command between the video capture device and the video display device avoids the transmission of the video stream and the control command in the same line, and further reduces the transmission of the video stream and the video stream during the one-way transmission process of the video stream.
  • the transmission delay of the control command in the opposite direction.
  • the video collection device 210 generates a plurality of application video streams according to the original video streams collected by the video collection device 210 .
  • the original video stream is a video data source obtained by the video capture device 210 photographing the target object or person.
  • the multiple application video streams may be multiple video streams with the same resolution, for example, each application video stream is a “1080P@60” video stream, and “1080P” refers to the video stream
  • the resolution information of the video stream is 1920*1080 (width is 1920, height is 1080), and "@60” means that the frame rate information of the video stream is 60 frames/second.
  • the multiple application video streams may also be multiple video streams with different resolutions.
  • the multiple application video streams include a first application video stream and a second application video stream.
  • the resolution of the video stream of one application is different from the resolution of the video stream of the second application.
  • the resolution information of the first application video stream is 1080P (width is 1920 and height is 1080)
  • the resolution information of the second application video stream is 720P (width is 1080 and height is 720).
  • the generation of multiple application video streams by the video capture device 210 may be realized based on multiple capture instructions.
  • the video display device 220 generates a plurality of capture commands according to the user's gesture information, and the plurality of capture commands includes a face recognition command and a preview command.
  • the video display device 220 sends the plurality of video capture instructions to the video capture device 210, so that the video capture device 210 generates a face recognition stream according to the face recognition command, generates a preview stream according to the preview command, and the video capture device 210 will After the preview stream and the face recognition stream are spliced to obtain the to-be-transmitted data stream, the video capture device 210 sends the to-be-transmitted data stream to the video display device 220, and the user can view the above-mentioned preview stream and face recognition stream through the video display device 220.
  • the video display device 220 Since the above-mentioned multiple application video streams are generated by the video capture device 210 according to the original video streams, the video display device 220 is prevented from converting the original video streams, and the computing resources of the video display device 220 are released, thereby enabling the video display device 220 There will be no lag when playing the video stream, which improves the user's experience of watching videos.
  • the multiple application video streams included in the data stream to be transmitted may be different types of video streams.
  • the multiple application video streams include at least one video stream among preview streams, photographing streams, depth data streams, face streams, object detection streams, monitoring streams, time-of-flight ranging streams, or gesture control streams.
  • the user can use the video display device to view different video information of the original video stream, for example, the user can view the preview stream and the photo stream in the video call, and view the face recognition information obtained according to the original video stream during the video call (such as Classify the face shape of the face), thereby improving the user's experience of watching videos.
  • the preview stream refers to a video stream in which the video capture device previews the captured video data source.
  • the camera stream refers to the video stream obtained by the video capture device taking pictures of the target object or person.
  • the depth data stream refers to a group of image streams that take the distance (depth) from the video capture device to each point in the scene as the pixel value, which directly reflects the geometry of the visible surface of the scene.
  • Depth image data can be calculated as point cloud data after coordinate transformation, and point cloud data with rules and necessary information can also be calculated as depth image data.
  • the face stream refers to the face information stream in the original video stream captured by the video capture device.
  • the target detection stream refers to the data stream that matches the target detection requirement obtained after the video capture device processes the original video stream.
  • the target detection requirement may be that the object category in the original video stream is a specified category, and the color of a person's clothes is a specified color.
  • the target detection flow may be to perform skeleton recognition on the character in the original video stream to obtain skeleton data of the character, and the smart screen 300 may display the skeleton data stream.
  • the monitoring stream refers to the video stream obtained by the video capture device recording the monitoring scene.
  • the time-of-flight ranging flow means that the video acquisition device continuously sends light pulses to the target, and then uses the sensor to receive the light returned from the object, and obtains the distance between the video acquisition device and the target by detecting the flight (round-trip) time of the light pulse, and then A data stream generated based on the distance of each point on the target.
  • the gesture control stream refers to the data stream obtained by the video capture device according to the gesture information of the target person in the original video stream.
  • FIG. 3 is only a possible implementation manner provided by the present application, and should not be construed as a limitation on the present application.
  • the video display device may also display more or fewer video streams.
  • Each application video stream can be a different type of video stream, and the user can use the video display device to view different video information according to the original video stream.
  • Viewing the face shape identification information obtained according to the original video stream improves the user's experience of watching videos.
  • the generation of multiple application video streams by the video collection apparatus may be implemented based on multiple collection instructions.
  • the user can click on a video call to generate a preview stream and a photo stream; another example, the user can generate a face recognition instruction through gesture operations, and then the video capture device generates a face stream according to the original video stream; , the user sends a fitness posture recognition instruction through the remote controller, and the video acquisition device generates a depth data stream (as shown in FIG. 3 ) according to the original video stream.
  • the above examples are implemented with different instructions through different operation information.
  • the user may perform multiple operations within a period of time, and the video capture device may generate a collection instruction according to the multiple operations.
  • the video capture device may be instructed to generate application video streams corresponding to the multiple operations.
  • the data stream transmission method provided by the present application further includes the following steps.
  • the video collection device 210 splices the multiple application video streams to obtain a data stream to be transmitted.
  • the data stream to be transmitted may include channel information, and the channel information may include the number of application video streams in the data stream to be transmitted.
  • the multiple application video streams include application video stream 1 to application video stream 4; as shown in (c) of FIG. 4 , the channel information indicates that the data stream to be transmitted includes There are four application video streams, and the four application video streams are application video stream 1 to application video stream 4.
  • the video capture device 210 may splicing application video stream 1 to application video stream 4 to obtain the data stream to be transmitted.
  • the channel information may further include the channel where each application video stream is located.
  • the application video stream 1 is set in the channel 1 .
  • the channel information may also include the number of channels in the second line, and bandwidth information for each channel.
  • the bandwidth information refers to the width and height of the channel, and the bandwidth information of the channel determines the maximum resolution of the application video stream that can be transmitted by the channel.
  • the data stream to be transmitted includes an information area 1, an information area 2 and a data area, and the data area includes multiple channels (channel 1 to channel 6), for example, channel 1 and
  • the bandwidth information of channel 2 is "3840*540", and the bandwidth information of channel 3 to channel 6 is "3840*240".
  • the maximum resolution of the application video stream that can be transmitted by channel 1 and channel 2 is 1080P (1920*1080 )
  • the maximum resolution of the application video stream that can be transmitted by channel 3 to channel 6 is 720P (1280*720).
  • the above S240 specifically includes: the video collection device 210 sets a plurality of application video streams in respective corresponding target channels.
  • the target channel corresponding to the application video stream is a channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream.
  • the transmission bandwidth required by the application video stream is determined by the video capture device according to the resolution information of the application video stream.
  • Each application video stream can be put into the target channel whose transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream. , which avoids the video capture device from putting the application video stream with larger resolution into the channel with smaller bandwidth information, thereby reducing the transmission delay caused by insufficient transmission bandwidth of the channel.
  • the transmission bandwidth of the channel indicates the maximum data volume of the video stream that can be transmitted by the channel in a unit time.
  • the maximum data amount the resolution of a single frame of image ⁇ N, where N is a positive integer.
  • the above-mentioned transmission bandwidth required by the application video stream indicates the amount of data required to be transmitted by all image frames in the application video stream in a unit time.
  • the channel information may further include resolution information of each application video stream.
  • the resolution information of the application video streams 1 to 4 and the bandwidth information of the channels 1 to 6 shown in FIG. 4 are shown in Table 1.
  • the maximum transmission bandwidth of channel 1 and channel 2 is 3840*540.
  • the bandwidth indicates that the maximum amount of data that can be transmitted by channel 1 and channel 2 is a video stream with a resolution of 1080P (1920*1080).
  • the transmission bandwidth required by application video stream 1 (with a resolution of 1080P) and application video stream 2 (with a resolution of 1600*1200) is less than or equal to the maximum transmission bandwidth of channel 1 and channel 2, the application video Stream 1 can be placed in channel 1, and application video stream 2 can be placed in channel 2.
  • the maximum transmission bandwidth of channels 3 to 6 is 3840*240, which indicates that the maximum amount of data that can be transmitted by channels 3 to 6 is a video stream with a resolution of 720P (1280*720). As shown in Figure 4, since the transmission bandwidth required by application video stream 3 (720P resolution) and application video stream 4 (540P resolution) is less than or equal to the maximum transmission bandwidth of channel 3 to channel 6, application video stream 3 It can be put into channel 3, and the application video stream 4 can be put into channel 4.
  • the video capture device 210 setting the multiple application video streams in the respective corresponding target channels respectively includes: the video capture device 210 determines, according to the resolution information of the application video stream, the requirements of the application video stream. and put the application video stream into the target channel whose transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream.
  • the video capture device can determine the target channel based on the resolution information of the application video stream, avoid putting the application video stream with larger resolution into the channel with smaller bandwidth information, and reduce the transmission delay caused by insufficient transmission bandwidth of the channel.
  • the multiple application video streams include a first application video stream and a second application video stream
  • the video capture device 210 sets the multiple application video streams in respective corresponding target channels, and specifically includes: video The acquisition device determines the first transmission bandwidth according to the resolution information of the first application video stream, the video acquisition device determines the second transmission bandwidth according to the resolution information of the second application video stream, and further, the video acquisition device compares the first application video stream with the second transmission bandwidth.
  • the second application video stream is set in the target channel, wherein the sum of the first transmission bandwidth and the second transmission bandwidth is less than or equal to the maximum transmission bandwidth of the target channel.
  • the first application video stream may be application video stream 3
  • the second application video stream may be application video stream 4
  • the video capture device can put multiple application video streams into the same target channel, and the total transmission bandwidth required by the multiple application video streams is less than or equal to the maximum transmission bandwidth of the target channel, which can effectively utilize each channel in the second line.
  • the transmission capacity of the second line is avoided to avoid waste of the transmission capacity of the second line.
  • the video capture device takes the channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream as the target channel of the application video stream , and further, the video capture device sets the application video stream in the target channel corresponding to the application video stream, so as to realize the transmission of the application video stream based on the transmission capability of the channel. That is to say, each application video stream can be put into the target channel whose transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream, preventing the video capture device from putting the application video stream with larger resolution into the bandwidth. In the channel with smaller information, the transmission delay caused by insufficient transmission bandwidth of the channel is reduced.
  • the channel information provided in this application can be adjusted according to the application scenarios of the video capture device and the video display device.
  • the application scenarios of the video capture device and the video display device are different, and the above channel information can also be different.
  • the examples provided to describe the data streaming method should not be construed as a limitation on the present application.
  • the number of channels and bandwidth information in the above channel information may be pre-configured according to the application scenarios of the video capture device and the video display device.
  • the data area may include two channels, and the two channels They are used to transmit preview stream and photo stream respectively.
  • the number of channels and the bandwidth information in the above channel information may be dynamically generated according to the number and resolution information of the application video streams.
  • the video collection device sends the data stream to be transmitted to the video display device through the second line.
  • the transmission bandwidth required by the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line. As shown in FIG. 4 , the total transmission bandwidth required by the application video stream 1 to the application video stream 4 is smaller than the maximum transmission bandwidth of the second line.
  • the maximum transmission bandwidth of the second line indicates the maximum data volume of the video stream that can be transmitted by the second line in a unit time; the above-mentioned transmission bandwidth required for the data stream to be transmitted indicates that all the data streams in the data stream to be transmitted in a unit time
  • the amount of data to be transmitted by the application video stream and description information which can be used to describe the resolution information, exposure information, white balance information or focus information of the application video stream, for example, the description information can include the above channel information.
  • the second line may be HDMI, or may be a VGA (video graphics array), a digital visual interface (digital visual interface, DVI) line, or a display port (display port, DP) line, or the like.
  • VGA video graphics array
  • DVI digital visual interface
  • DP display port
  • the format of the application video stream may be the YUV format, wherein the Y information indicates the brightness (Luminance) of each frame image in the application video stream, and the U and V information indicates each frame in the application video stream. Color information (Chrominance) of a frame of image.
  • the second line is an HDMI line
  • the transmission bandwidth of the HDMI line is larger than that of the USB, which can reduce the transmission delay of the video capture device sending the data stream to be transmitted to the video display device.
  • the camera will encode the multiple application video streams, thereby compressing the multiple application video streams to obtain the data stream to be transmitted.
  • the encoding information indicates the encoding method of the application video stream by the camera; since the video stream in the data stream to be transmitted is compressed, this will cause the video stream included in the data stream to be transmitted.
  • the video stream has losses, and further, the video stream played on the TV is not completely consistent with the above-mentioned application video stream, which reduces the playback effect of the video stream.
  • the video capture device when the second line is an HDMI cable and the format of the application video stream is the YUV format, the video capture device does not need to encode the application video stream, and thus does not generate Encoding information, which reduces the fields used to describe the format of the application video stream in the data stream to be transmitted, reduces the redundancy of the data stream to be transmitted, and reduces the amount of data that the video capture device sends to the video display device using HDMI to the data stream to be transmitted , and further, the transmission speed of the to-be-transmitted data stream is increased, and the transmission delay of the to-be-transmitted data stream is reduced.
  • the video capture device in the embodiment of the present application can use the dedicated second line to transmit the data stream in the YUV format, there is no difference between the video stream played by the video display device and the application video stream generated by the video capture device, which improves the The video display device plays the effect of the video stream, thereby improving the user's experience of watching the video.
  • the format of the application video stream is YUV format is only a possible example provided by the embodiments of the present application, and in some possible examples, the format of the application video stream may be lossless RGB (red green blue) format , the format of the application video stream may also be a lossy video format, such as an audio-video interleaved format (audio video interleaved, AVI) or a video file format (real audio variable bit, RMVB).
  • RGB red green blue
  • a lossy video format such as an audio-video interleaved format (audio video interleaved, AVI) or a video file format (real audio variable bit, RMVB).
  • the channel information may be set in the header of the data stream to be transmitted.
  • channel information inner metadata
  • the information area 1 can be set in the information area 1.
  • the video acquisition device sets the channel information in the header of the data stream to be transmitted, and sends the data stream to be transmitted to the video display device through the second line.
  • the video display device can only split the data stream to be transmitted according to the stream information of each application video stream, which requires a lot of computing resources, resulting in the video display device being stuck in playing the video stream.
  • the video display device can preferentially obtain the channel information in the data stream to be transmitted, and determine based on the channel information. The information of each channel in the data stream to be transmitted and the application video stream improves the speed of parsing the data stream to be transmitted by the video display device.
  • the data stream to be transmitted may further include stream information
  • the stream information indicates attribute information of each application video stream in the to-be-transmitted data stream
  • the attribute information includes exposure information, focus information of the application video stream at least one of information or white balance information.
  • the attribute information may be obtained by a video capture device using 3A (3-automatic) digital imaging technology
  • the attribute information may include automatic exposure (AE) information, automatic focus (AF) information and automatic White balance (automatic white balance, AWB) information.
  • AE automatic exposure
  • AF automatic focus
  • AWB automatic White balance
  • the flow information may be provided in the information area 2 .
  • the information area 2 and the data area shown in FIG. 4 are only examples given in this application to illustrate the above-mentioned embodiments.
  • the information area 2 may also be set after the data area, It can also be set between any 2 channels.
  • the video capture device sets the stream information in the data stream to be transmitted, and sends the data stream to be transmitted to the video display device through the second line.
  • the video display device can determine the number, width and height of each channel in the data stream to be transmitted, and the number, location and resolution of the application video stream according to the channel information in the data stream to be transmitted. Further, the video display device can also determine the attribute information of the application video stream according to the stream information in the data stream to be transmitted, thereby realizing the identification of different types of application video streams, and improving the accuracy of the video display device in parsing the data stream to be transmitted. sex.
  • the multiple application video streams may be different, and there may be a video stream larger than the maximum transmission bandwidth of the above-mentioned channel in the multiple application video streams, which will cause any channel in the second line to exist.
  • the video stream cannot be streamed.
  • FIG. 5 is a schematic flowchart of another data stream transmission method provided by the present application.
  • the above S240 specifically includes S2401 and S2402.
  • the video capture device 210 collects the first application video stream as the first data stream to be transmitted.
  • the above-mentioned first application video stream is any one of multiple application video streams.
  • the video capture device 210 regards the first application video stream as the first data stream to be transmitted.
  • the video capture device 210 splices multiple application video streams in the remaining data streams to obtain a second data stream to be transmitted.
  • the remaining data stream includes other application video streams except the first application video stream among the multiple application video streams obtained by the video collection device 210 according to the original video stream.
  • the second data stream to be transmitted reference may be made to the related description of the above S240, and details are not repeated here.
  • the above S250 specifically includes S2501.
  • the video capture device 210 alternately sends the first data stream to be transmitted and the second data stream to be transmitted to the video display device 220 through the second line.
  • FIG. 6 is a schematic diagram of alternate transmission of data streams provided by the application, where the second line is an HDMI line, and the maximum transmission bandwidth of the HDMI line can support 4K@60 (resolution 4096 ⁇ 2160, frame rate
  • the first application video stream is 4K@30 (resolution is 4096 ⁇ 2160, and the frame rate is 30 frames/second)
  • the remaining data streams include 4 application video streams ( For application video streams 1 to 4 shown in Table 1, the frame rates of which are all 30 frames per second)
  • the video capture device 210 and the video display device 220 may alternately transmit the first data stream to be transmitted and the video display device 220 in units of frames.
  • the second data stream to be transmitted may alternately transmit the first data stream to be transmitted.
  • the video capture device 210 first sends the first frame of image in the first data stream to be transmitted (4K@30 video stream), and then sends the first frame of image of each application video stream in the second data stream to be transmitted, and then The video capture device 210 sends the second frame image in the first data stream to be transmitted (4K@30 video stream), and then sends the second frame image of each application video stream in the second data stream to be transmitted, until the first frame image to be transmitted.
  • the transmission of each frame of image in the data stream and the second data stream to be transmitted is completed.
  • the camera transmits the application video stream with a larger resolution to the TV, and then sends other application video streams to the TV, resulting in a high transmission delay of the other application video streams.
  • the video capture device can use the first application video stream as the first data stream to be transmitted, and the first application video stream is a plurality of application video streams.
  • the required transmission bandwidth is greater than any one of the multiple channels.
  • the application video stream of the transmission bandwidth, and the remaining data stream that matches the transmission bandwidth of the multiple channels is used as the second data stream to be transmitted, and then the video capture device alternately sends the first data stream to be transmitted through the second line.
  • the video capture device does not need to send the second data stream to be transmitted to the video display device after the transmission of the first data stream to be transmitted is completed, avoiding the need for the prior art
  • the video capture device 210 and the video display device 220 can perform partition transmission on the multiple application video streams or include time-sharing alternation of channel partitions based on the maximum transmission bandwidth of the second line and the bandwidth information of each channel in the data area. transmission, and further, reduce the transmission delay of the video stream and improve the transmission efficiency of the video stream.
  • the partition transmission refers to splicing a plurality of application video streams to obtain the data stream to be transmitted, and then the video capture device sends the data stream to be transmitted to the video display device.
  • the content of the partition transmission please refer to the relevant elaborations of the above S240 and S250, I won't go into details here.
  • time-sharing alternate transmission including channel partitions reference may be made to the related descriptions in FIG. 5 and FIG. 6 , and details are not repeated here.
  • the time-sharing alternate transmission is described by taking the video capture device sending two data streams to be transmitted to one video display device as an example.
  • the transport data streams can also be sent separately to different video display devices.
  • the video capture device sends the first data stream to be transmitted to the first video display device, and the first video display device plays the first application video stream;
  • the video capture device sends the second data stream to be transmitted to the second video display device,
  • the second video display device plays the application video stream included in the second data stream to be transmitted.
  • the data stream transmission method provided by this embodiment of the present application may further include S260.
  • the video display device 220 processes the data stream to be transmitted and plays at least one application video stream.
  • the above S260 specifically includes: the video display device 220 splits the data stream to be transmitted to obtain all the application video streams according to the channel information; further, the video display device 220 selects at least one application video stream among all the application video streams to play.
  • the application video stream played by the video display device 220 is obtained after the video display device 220 splits the data stream to be transmitted according to the channel information.
  • the application video stream played by the video display device 220 is: the video display device 220 splits the data stream to be transmitted according to the channel information, and performs AI processing on the split application video stream to obtain
  • the AI data flow can be, but is not limited to: target detection, face recognition, object classification, color recognition, object counting, etc.
  • the video display device 220 includes a processor, and the processor can be configured to perform operations corresponding to the above AI processing, and display the results of the operations on the display screen of the video display device 220 .
  • the channel information includes the number of channels in the second line and the bandwidth information of each channel, the channel information also includes the number of application video streams in the data stream to be transmitted, and each application video stream The channel and resolution information of the stream.
  • the video display device 220 After the video display device 220 obtains the channel information, it can allocate computing resources for the playback of the application video stream according to the resolution information of each application video stream, which can improve the performance of the video display device. The utilization rate of the computing resources of the video display device 220 is avoided, and the video display device 220 is prevented from being stuck.
  • the video display device 220 can not only determine the position of the application video stream according to the channel where each application video stream is located, but also can use the channel information to include the application video stream.
  • the resolution information of the stream determines the width and height information of the application video stream, which improves the accuracy of parsing the data stream to be transmitted by the video display device.
  • each application video stream can be a different type of video stream.
  • the video display device After the video display device receives the data stream to be transmitted, the video display device can process and play the data stream to be transmitted.
  • the user can view various video information according to the original video stream through the video display device, for example, the user can view the preview stream and the photo stream in the video call, and view the face recognition obtained according to the original video stream during the video call.
  • Information (such as classifying the face shape of a human face) improves the user's viewing experience.
  • the video capture device and the video display device include corresponding hardware structures and/or software modules for performing each function.
  • the units and method steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in hardware or in the form of a combination of hardware and computer software. Whether a function is performed by hardware or computer software-driven hardware depends on the specific application scenarios and design constraints of the technical solution.
  • the data stream transmission method provided according to this embodiment is described in detail above with reference to FIG. 1 to FIG. 6 , and the video capture device, video display device, and terminal provided according to this embodiment will be described below with reference to FIG. 7 and FIG. 8 . equipment.
  • FIG. 7 is a schematic diagram of a data stream transmission system provided by the present application.
  • the data stream transmission system 700 can be used to implement the functions of the video capture device 210 and the video display device 220 in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments.
  • the data stream transmission system 700 includes a video capture device 710 and a video display device 720 .
  • the video capture device 710 and the video display device 720 are respectively connected through a first line and a second line, the first line is used to transmit the control instructions between the video capture device 710 and the video display device 720, and the second line is used to transmit the video capture
  • the structure and function of the data stream transmission system 700 will be introduced below with reference to FIG. 7.
  • the video capture device 710 can implement the functions of the video capture device 210 shown in FIG. 2, FIG. 5 and FIG. , the functions of the video display device 220 shown in FIGS. 5 and 6 . It should be understood that this embodiment only exemplarily divides the structures and functional modules of the video capture device 710 and the video display device 720, and the present application does not make any specific divisions.
  • the video capture device 710 includes a first transceiver unit 711 , a first processing unit 712 , a splicing unit 713 and a first storage unit 714 , and the above-mentioned units can be used to realize the above-mentioned ones shown in FIGS. 2 , 5 and 6 . methods corresponding to the respective operation steps performed by the video capture device 210.
  • the first transceiver unit 711 is configured to execute S250
  • the first processing unit 712 is configured to execute S230
  • the splicing unit 713 is configured to execute S230. Execute S240.
  • the first transceiver unit 711 is configured to execute S2501
  • the first processing unit 712 is configured to execute S230
  • the splicing unit 713 is configured to execute S230.
  • S2401 and S2402 are executed.
  • the first storage unit 714 may be configured to store information such as multiple application video streams and data streams to be transmitted generated in the above steps.
  • the video display device 720 includes a second transceiver unit 721 , a second processing unit 722 , a display unit 723 and a second storage unit 724 , and the above-mentioned units can be used to implement the above-mentioned ones shown in FIGS. 2 , 5 and 6 .
  • the methods corresponding to the respective operation steps performed by the video display device 220 are shown.
  • the second transceiver unit 721 is used to perform S220
  • the second processing unit 722 is used to perform S210
  • the second The processing unit 722 and the display unit 723 are also used to perform S260.
  • the second storage unit 724 may be configured to store the collection instructions generated in the above steps, the multiple application video streams, the received data streams to be transmitted, and other information.
  • FIG. 8 is a schematic structural diagram of a terminal device provided by this application.
  • the terminal device 800 includes a processor 810 and a communication interface 820 .
  • the processor 810 and the communication interface 820 are coupled to each other. It is understood that the communication interface 820 can be a transceiver or an input-output interface.
  • the terminal device 800 may further include a memory 830 for storing instructions executed by the processor 810 or input data required by the processor 810 to run the instructions or data generated after the processor 810 runs the instructions.
  • the processor 810 , the communication interface 820 and the memory 830 may also cooperate to implement each of the data stream transmission methods performed by the video capture apparatus 210 or the video display apparatus 220 Steps.
  • the terminal device 800 may also perform the functions of the video capture apparatus 710 and/or the video display apparatus 720 shown in FIG. 7 , which will not be described here.
  • the specific connection medium between the communication interface 820 , the processor 810 , and the memory 830 is not limited in the embodiments of the present application.
  • the communication interface 820, the processor 810, and the memory 830 are connected through a bus 840 in FIG. 8.
  • the bus is represented by a thick line in FIG. 8, and the connection between other components is only for schematic illustration. , is not limited.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.
  • the memory 830 may be used to store software programs and modules, such as program instructions/modules corresponding to the data stream transmission method provided in the embodiments of the present application, and the processor 810 executes various functions by executing the software programs and modules stored in the memory 830. applications and data processing.
  • the communication interface 820 can be used for signaling or data communication with other devices. In this application, the terminal device 800 may have a plurality of communication interfaces 820 .
  • the above-mentioned memory 830 may be, but not limited to, a random access memory (Random Access Memory, RAM), a read only memory (Read Only Memory, ROM), a programmable read only memory (Programmable Read- Only Memory, PROM), Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc.
  • RAM Random Access Memory
  • ROM read only memory
  • PROM programmable read only memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electric Erasable Programmable Read-Only Memory
  • the above-mentioned processor may be an integrated circuit chip with signal processing capability.
  • the processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the method steps in the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions.
  • the software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM, flash memory, ROM, PROM, EPROM, EEPROM, registers, hard disk, removable hard disk, CD-ROM or any other form of storage medium well known in the art .
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and storage medium may reside in an ASIC. Alternatively, the ASIC may be located in the end device.
  • the processor and the storage medium may also exist in the terminal device as discrete components.
  • the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software it can be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer programs or instructions.
  • the processes or functions described in the embodiments of the present application are executed in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus.
  • the computer program or instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website site, computer, A server or data center transmits by wire or wireless to another website site, computer, server or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, or the like that integrates one or more available media.
  • the usable medium can be a magnetic medium, such as a floppy disk, a hard disk, and a magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); it can also be a semiconductor medium, such as a solid state drive (solid state drive). , SSD).
  • a magnetic medium such as a floppy disk, a hard disk, and a magnetic tape
  • an optical medium such as a digital video disc (DVD)
  • DVD digital video disc
  • it can also be a semiconductor medium, such as a solid state drive (solid state drive). , SSD).
  • “at least one” means one or more, and “plurality” means two or more.
  • “And/or”, which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the related objects are a kind of "or” relationship; in the formula of this application, the character "/” indicates that the related objects are a kind of "division" Relationship.
  • At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
  • at least one (a) of a, b or c can mean: a, b, c, "a and b", “a and c", “b and c", or "a and b and c” ", where a, b, c can be single or multiple.
  • At least one (a) of a, b and c may also mean: a, b, c, "a and b", “a and c", "b and c", or "a and b and c" , where a, b, c can be single or multiple.

Landscapes

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

Abstract

The present application relates to the field of video stream transmission, and discloses a data stream transmission method and device. The present application solves the problem in the prior art of high transmission delay of a video stream. The method is performed by a video acquisition device, the video acquisition device is connected to a video display device by means a first line and a second line separately, and the first line is used for transmitting control instructions of the video acquisition device and the video display device. The method comprises: the video acquisition device generates a plurality of application video streams according to an original video stream acquired by the video acquisition device, and splices the plurality of application video streams to obtain a data stream to be transmitted; and then, the video acquisition device sends said data stream to the video display device by means of the second line. The transmission bandwidth required by said data stream is less than or equal to the maximum transmission bandwidth of the second line.

Description

一种数据流传输方法及装置A data stream transmission method and device 技术领域technical field
本申请涉及数据传输领域,尤其涉及一种数据流传输方法及装置。The present application relates to the field of data transmission, and in particular, to a data stream transmission method and device.
背景技术Background technique
随着智慧业务发展,电视可以利用人工智能(artificial intelligence,AI)技术向用户提供多种类型的业务,如在电视上进行多方视频通话、人体感知、手势操控、运动健身和远程家庭监控等。通常,在上述业务中,相机通过通用串行总线(universal serial bus,USB)将控制指令和相机采集的原始视频流传输到电视,电视依据该控制指令将该原始视频流进行转换,得到分辨率不同的多条应用视频流,进而,电视显示该多条应用视频流,用户可以通过电视查看根据原始视频流得到的多种视频信息。With the development of smart services, TVs can use artificial intelligence (AI) technology to provide users with various types of services, such as multi-party video calls, human perception, gesture control, sports fitness, and remote home monitoring on the TV. Usually, in the above business, the camera transmits the control command and the original video stream captured by the camera to the TV through the universal serial bus (USB), and the TV converts the original video stream according to the control command to obtain the resolution Different multiple application video streams, and further, the TV displays the multiple application video streams, and the user can view various video information obtained according to the original video stream through the TV.
原始视频流的转换会占用电视主芯片大部分的计算资源,由于电视主芯片的性能较低,容易造成应用视频流的播放出现卡顿,降低了用户观看视频的体验。在目前的技术方案中,为避免视频流的播放出现卡顿,由相机将相机采集的原始视频流进行转换得到多条应用视频流,相机通过USB向电视传输该多条应用视频流,减少了电视主芯片转换原始视频流所占用的计算资源。然而,USB的传输能力较小,导致USB在传输多条视频流时具有较高的时延。The conversion of the original video stream will occupy most of the computing resources of the TV main chip. Due to the low performance of the TV main chip, it is easy to cause the playback of the application video stream to freeze, which reduces the user's video viewing experience. In the current technical solution, in order to prevent the playback of the video stream from being stuck, the camera converts the original video stream collected by the camera to obtain multiple application video streams, and the camera transmits the multiple application video streams to the TV through USB, reducing the number of application video streams. The computing resources occupied by the TV main chip to convert the raw video stream. However, the transmission capacity of USB is small, which results in high latency when USB transmits multiple video streams.
因此,如何减少视频流的传输时延是目前亟需解决的问题。Therefore, how to reduce the transmission delay of the video stream is an urgent problem to be solved at present.
发明内容SUMMARY OF THE INVENTION
本申请提供一种数据流传输方法及装置,解决了视频流的传输时延较高的问题。The present application provides a data stream transmission method and device, which solve the problem of high transmission delay of video streams.
为达到上述目的,本申请采用如下技术方案。In order to achieve the above purpose, the present application adopts the following technical solutions.
第一方面,本申请提供了一种数据流传输方法,该方法由视频采集装置执行,或者该方法可应用于可以支持实现该方法的终端设备,例如该终端设备包括芯片系统。在一种可能的设计中,视频采集装置分别通过第一线路和第二线路与视频显示装置连接,第一线路用于传输视频采集装置与视频显示装置的控制指令,该方法包括:视频采集装置依据视频采集装置采集的原始视频流生成多条应用视频流,并拼接该多条应用视频流得到待传输数据流,进而,视频采集装置通过第二线路向视频显示装置发送待传输数据流。其中,该待传输数据流所需的传输带宽小于或等于第二线路的最大传输带宽。In a first aspect, the present application provides a data stream transmission method. The method is executed by a video capture device, or the method can be applied to a terminal device that can support the implementation of the method. For example, the terminal device includes a chip system. In a possible design, the video capture device is connected to the video display device through a first line and a second line respectively, and the first line is used to transmit control instructions of the video capture device and the video display device. The method includes: a video capture device A plurality of application video streams are generated according to the original video streams collected by the video capture device, and the plurality of application video streams are spliced to obtain the data stream to be transmitted, and then the video capture device sends the data stream to be transmitted to the video display device through the second line. Wherein, the transmission bandwidth required by the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line.
如此,视频采集装置通过第一线路传输控制指令,通过第二线路向视频显示装置发送该待传输数据流,实现了控制指令和数据流的分离传输,避免利用同一条线路传输控制指令和数据流时,控制指令占用了传输数据流的线路的带宽,导致数据流的传输时延较高的问题。本申请实施例提供的数据流传输方法,由专属的第二线路传输数据流,降低了传输待传输数据流的传输时延,提高了传输待传输数据流的传输速率;而且,在视频采集装置通过第二线路向视频显示装置发送待传输数据流的过程中,还可以通过第一线路接收视频显示装置发送的控制指令,由于视频显示装置无需在待传输数据流的传输过程结束后,才向视频采集装置发送控制指令,有效地降低了该控制 指令的传输时延。另外,相较于现有技术中仅能将视频流单独传输(将一条视频流传输完成后,再传输另一条视频流),在本申请实施例使用的数据流传输方法中,视频采集装置可以将多条应用视频流进行拼接得到待传输数据流,并将待传输数据流放入第二线路进行传输,使得视频采集装置无需单独传输每条应用视频流,降低了视频流的传输时延。此外,由于待传输数据流所需的传输带宽小于或等于第二线路的最大传输带宽,视频采集装置可以依据第二线路的最大传输带宽传输该待传输数据流,避免了由于第二线路的传输带宽不足所导致的传输时延。In this way, the video capture device transmits the control command through the first line, and sends the data stream to be transmitted to the video display device through the second line, which realizes the separate transmission of the control command and the data stream, and avoids using the same line to transmit the control command and the data stream. When the control instruction occupies the bandwidth of the line for transmitting the data stream, the problem of high transmission delay of the data stream is caused. In the data stream transmission method provided by the embodiment of the present application, the data stream is transmitted through a dedicated second line, which reduces the transmission delay for transmitting the data stream to be transmitted, and improves the transmission rate for transmitting the data stream to be transmitted; In the process of sending the data stream to be transmitted to the video display device through the second line, the control command sent by the video display device can also be received through the first line. The video capture device sends the control command, which effectively reduces the transmission delay of the control command. In addition, compared with the prior art, which can only transmit the video stream separately (after the transmission of one video stream is completed, another video stream is transmitted), in the data stream transmission method used in the embodiment of the present application, the video capture device can The multiple application video streams are spliced to obtain the data stream to be transmitted, and the to-be-transmitted data stream is put into the second line for transmission, so that the video capture device does not need to transmit each application video stream separately, and the transmission delay of the video stream is reduced. In addition, since the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line, the video capture device can transmit the data stream to be transmitted according to the maximum transmission bandwidth of the second line, avoiding the transmission of the second line. Transmission delay caused by insufficient bandwidth.
其中,上述第二线路的最大传输带宽指示在单位时间内,第二线路可以传输的视频流的最大数据量。这里以在单位时间内视频流需要传输N帧分辨率相同的图像为例,最大数据量=单帧图像的分辨率×N,N为正整数,图像的分辨率可以是以像素为单位进行表示,如图像的分辨率为1080P(1920×1080)。Wherein, the above-mentioned maximum transmission bandwidth of the second line indicates the maximum data amount of the video stream that can be transmitted by the second line in a unit time. Here, take the video stream needing to transmit N frames of images with the same resolution in a unit time as an example, the maximum data amount = the resolution of a single frame of image × N, N is a positive integer, and the resolution of the image can be expressed in pixels , for example, the resolution of the image is 1080P (1920×1080).
上述的待传输数据流所需的传输带宽指示在单位时间内,待传输数据流中所有应用视频流和描述信息所需传输的数据量,该描述信息可以用于描述应用视频流的分辨率信息、曝光信息、白平衡信息或对焦信息等。The above-mentioned transmission bandwidth required for the data stream to be transmitted indicates the amount of data required to be transmitted for all application video streams and description information in the data stream to be transmitted in a unit time, and the description information can be used to describe the resolution information of the application video stream. , exposure information, white balance information or focus information, etc.
在一种可能的示例中,待传输数据流包括的多条应用视频流可以是不同种类的视频流。例如,多条应用视频流包括预览流、拍照流、深度数据流、人脸流、目标检测流、监控流、飞行时间测距流或手势控制流中的至少一种视频流。In a possible example, the multiple application video streams included in the data stream to be transmitted may be different types of video streams. For example, the multiple application video streams include at least one video stream among preview streams, photographing streams, depth data streams, face streams, object detection streams, monitoring streams, time-of-flight ranging streams, or gesture control streams.
用户可以利用视频显示装置查看原始视频流的不同视频信息,如用户可以查看视频通话中的预览流和拍照流,并在视频通话的过程中查看根据原始视频流得到的人脸脸型识别信息(如将人脸的脸型进行分类),从而提高用户观看视频的体验。The user can use the video display device to view different video information of the original video stream, for example, the user can view the preview stream and the photo stream in the video call, and view the face recognition information obtained according to the original video stream during the video call (such as Classify the face shape of the face), thereby improving the user's experience of watching videos.
在一种可选的实现方式中,第一线路为USB,第二线路为高清多媒体接口(high definition multimedia interface,HDMI)线。In an optional implementation manner, the first line is a USB, and the second line is a high definition multimedia interface (high definition multimedia interface, HDMI) line.
相较于在现有技术中,相机和电视之间复用同一条传输线路(USB)传输视频流和控制指令,其中,控制指令需要双向传输,而视频流的传输是单向的,在相机通过USB向电视发送视频流的过程中,电视无法通过USB向相机发送控制指令,导致与视频流的传输方向相反的控制指令具有较高的传输时延。使用本申请实施例提供的数据流传输方法,视频采集装置通过USB传输控制指令,通过HDMI传输该待传输数据流,实现了数据流和控制指令的分离传输,视频显示装置无需在待传输数据流的传输过程结束后,才向视频采集装置发送控制指令,也就是说,在视频采集装置通过HDMI向视频显示装置发送待传输数据流的过程中,视频显示装置可以通过USB向视频采集装置发送控制指令,降低了该控制指令的传输时延。此外,现有技术中USB的传输带宽一般只能达到400MB/s(兆字节每秒),而本申请中用于传输数据流的HDMI线具有较大的数据流传输能力,如10.2吉位/秒(giga bits per second,Gpbs)=1275MB/s,因此,本申请实施例提供的数据流传输方法使用HDMI来替代现有技术中USB,可以提高数据流的传输速度,降低数据流的传输时延。Compared with the prior art, the same transmission line (USB) is multiplexed between the camera and the TV to transmit the video stream and the control command. In the process of sending the video stream to the TV through the USB, the TV cannot send the control command to the camera through the USB, resulting in a higher transmission delay of the control command in the opposite direction to the transmission direction of the video stream. Using the data stream transmission method provided by the embodiment of the present application, the video capture device transmits the control command through USB, and transmits the to-be-transmitted data stream through HDMI, which realizes the separate transmission of the data stream and the control command, and the video display device does not need to transmit the data stream to be transmitted. Only after the transmission process is over, the control command is sent to the video capture device, that is to say, in the process of the video capture device sending the data stream to be transmitted to the video display device through HDMI, the video display device can send the control command to the video capture device through USB. command, reducing the transmission delay of the control command. In addition, the transmission bandwidth of USB in the prior art can generally only reach 400MB/s (megabytes per second), while the HDMI cable used for transmitting data streams in this application has a relatively large data stream transmission capacity, such as 10.2 gigabits Gpbs/second (giga bits per second, Gpbs)=1275MB/s, therefore, the data stream transmission method provided by the embodiment of the present application uses HDMI to replace the USB in the prior art, which can improve the transmission speed of the data stream and reduce the transmission of the data stream. time delay.
在另一种可选的实现方式中,若第二线路为HDMI线,应用视频流的格式可以为YUV格式。其中,Y信息指示应用视频流中每一帧图像的明亮度(Luminance),U和V信息指示应用视频流中每一帧图像的色彩信息(Chrominance)。由于YUV格式的视频流是无损视频流,而现有技术中USB的传输带宽较小,导致YUV格式的传输时 延较高。本申请实施例提供的数据流传输方法,第二线路为HDMI线,且HDMI线的传输带宽大于USB的传输带宽,可以降低视频采集装置向视频显示装置发送待传输数据流的传输时延。In another optional implementation manner, if the second line is an HDMI line, the format of the application video stream may be the YUV format. Wherein, the Y information indicates the brightness (Luminance) of each frame image in the application video stream, and the U and V information indicates the color information (Chrominance) of each frame image in the application video stream. Since the video stream in the YUV format is a lossless video stream, and the transmission bandwidth of the USB in the prior art is relatively small, the transmission delay of the YUV format is relatively high. In the data stream transmission method provided by the embodiment of the present application, the second line is an HDMI line, and the transmission bandwidth of the HDMI line is larger than that of the USB, which can reduce the transmission delay of the video capture device sending the data stream to be transmitted to the video display device.
此外,现有技术中相机利用USB传输多条应用视频流的过程中,相机会对该多条应用视频流进行编码,从而压缩该多条应用视频流得到待传输数据流,该待传输数据流包括了编码信息,该编码信息指示相机对应用视频流的编码方式;由于待传输数据流中的视频流是经过压缩的,这会导致待传输数据流所包括的视频流相较于上述的应用视频流具有损失,进而,在电视播放的视频流与上述的应用视频流并不完全一致,降低了视频流的播放效果。而在本申请实施例提供的数据流传输方法中,在第二线路为HDMI线,应用视频流的格式为YUV格式的情况下,视频采集装置无需对应用视频流进行编码,也就不会产生编码信息,这减少了待传输数据流中用于描述应用视频流的格式的字段,降低待传输数据流的冗余,减小视频采集装置利用HDMI向视频显示装置发送待传输数据流的数据量,进而,提高传输待传输数据流的速度,降低待传输数据流的传输时延。另外,由于本申请实施例中视频采集装置可以利用专属的第二线路传输YUV格式的数据流,视频显示装置所播放的视频流和视频采集装置生成的应用视频流之间不存在差异,提高了视频显示装置播放视频流的效果,进而提升了用户观看视频的体验。In addition, in the process of transmitting multiple application video streams by the camera in the prior art, the camera will encode the multiple application video streams, thereby compressing the multiple application video streams to obtain the data stream to be transmitted. Including encoding information, the encoding information indicates the encoding method of the application video stream by the camera; since the video stream in the data stream to be transmitted is compressed, this will cause the video stream included in the data stream to be transmitted. The video stream has losses, and further, the video stream played on the TV is not completely consistent with the above-mentioned application video stream, which reduces the playback effect of the video stream. However, in the data stream transmission method provided by the embodiment of the present application, when the second line is an HDMI cable and the format of the application video stream is the YUV format, the video capture device does not need to encode the application video stream, and thus does not generate Encoding information, which reduces the fields used to describe the format of the application video stream in the data stream to be transmitted, reduces the redundancy of the data stream to be transmitted, and reduces the amount of data that the video capture device sends to the video display device using HDMI to the data stream to be transmitted , and further, the transmission speed of the to-be-transmitted data stream is increased, and the transmission delay of the to-be-transmitted data stream is reduced. In addition, since the video capture device in the embodiment of the present application can use the dedicated second line to transmit the data stream in the YUV format, there is no difference between the video stream played by the video display device and the application video stream generated by the video capture device, which improves the The video display device plays the effect of the video stream, thereby improving the user's experience of watching the video.
在另一种可选的实现方式中,视频采集装置还可以接收视频显示装置通过第一线路发送的采集指令,并依据该采集指令采集原始视频流;视频采集装置还依据该采集指令处理上述的原始视频流得到多条应用视频流。例如,视频采集装置生成多条应用视频流可以是基于多个采集指令实现的,如视频显示装置依据用户的手势信息生成了多个采集指令,该多个采集指令包括人脸识别指令和预览指令,视频显示装置将该多个视频采集指令发送至视频采集装置,从而,使得视频采集装置依据人脸识别指令生成人脸识别流、依据预览指令生成预览流,在视频采集装置将预览流与人脸识别流拼接得到待传输数据流之后,视频采集装置向视频显示装置发送该待传输数据流,用户可以通过视频显示装置看到上述的预览流和人脸识别流。In another optional implementation manner, the video capture device may also receive a capture command sent by the video display device through the first line, and capture the original video stream according to the capture command; the video capture device also processes the above-mentioned capture command according to the capture command. The original video stream gets multiple application video streams. For example, the video capture device may generate multiple application video streams based on multiple capture instructions. For example, the video display device generates multiple capture commands according to the user's gesture information, and the multiple capture commands include face recognition commands and preview commands. , the video display device sends the multiple video capture instructions to the video capture device, so that the video capture device generates a face recognition stream according to the face recognition command, generates a preview stream according to the preview command, and the video capture device combines the preview stream with the human After the face recognition streams are spliced to obtain the to-be-transmitted data stream, the video acquisition device sends the to-be-transmitted data stream to the video display device, and the user can view the above-mentioned preview stream and face recognition stream through the video display device.
在一种可选的实现方式中,该待传输数据流可以包括通道信息,通道信息包括第二线路中通道的数量,以及每条通道的带宽信息,通道信息还包括待传输数据流中的应用视频流的数量,以及每条应用视频流所处的通道。以便于视频显示装置接收到该待传输数据流之后,基于该待传输数据流中的通道信息确定待传输数据流中各个通道以及应用视频流的信息,避免了视频显示装置仅依据每条应用视频流的流信息对待传输数据流进行拆分,提高了视频显示装置解析待传输数据流的速度。应当理解,本申请实施例中,通道信息中包括的带宽信息可以以该通道能够传输的视频流的最大分辨率来表征,示例性的,通道信息中包括了通道1的带宽信息为3840*540,通道2的带宽信息为3840*540,通道3的带宽信息为3840*240,分别表示通道1能够传输的视频流的分辨率最大可以为3840*540,通道2能够传输的视频流的分辨率最大可以为3840*540,通道3能够传输的视频流的分辨率最大可以为3840*240。In an optional implementation manner, the data stream to be transmitted may include channel information, the channel information includes the number of channels in the second line, and bandwidth information of each channel, and the channel information also includes applications in the data stream to be transmitted The number of video streams, and which channel each application video stream is on. In order to facilitate the video display device to determine the information of each channel in the to-be-transmitted data stream and the application video stream based on the channel information in the to-be-transmitted data stream after receiving the to-be-transmitted data stream, it avoids that the video display device only relies on each application video The stream information of the stream is divided into the data stream to be transmitted, which improves the speed of parsing the data stream to be transmitted by the video display device. It should be understood that in this embodiment of the present application, the bandwidth information included in the channel information may be characterized by the maximum resolution of the video stream that can be transmitted by the channel. Exemplarily, the bandwidth information included in the channel information is 3840*540 , the bandwidth information of channel 2 is 3840*540, and the bandwidth information of channel 3 is 3840*240, respectively indicating that the resolution of the video stream that can be transmitted by channel 1 can be up to 3840*540, and the resolution of the video stream that can be transmitted by channel 2. The maximum can be 3840*540, and the maximum resolution of the video stream that can be transmitted by channel 3 can be 3840*240.
在另一种可选的实现方式中,上述的通道信息包括每条应用视频流的分辨率信息,以便在视频显示装置获取到该通道信息后,可以依据每条应用视频流的分辨率信息为 该应用视频流的播放分配计算资源,可以提高视频显示装置的计算资源的利用率,避免视频显示装置出现卡顿;在视频显示装置拆分待传输数据流的过程中,视频显示装置不仅可以依据每条应用视频流所处的通道确定应用视频流的位置,还可以利用通道信息中包括应用视频流的分辨率信息确定应用视频流的宽高信息,提高了视频显示装置解析待传输数据流的准确性。In another optional implementation manner, the above-mentioned channel information includes resolution information of each application video stream, so that after the video display device acquires the channel information, it can be based on the resolution information of each application video stream as The application allocates computing resources for the playback of the video stream, which can improve the utilization rate of computing resources of the video display device and avoid the video display device from being stuck; in the process of splitting the data stream to be transmitted by the video display device, the video display device can not only The channel where each application video stream is located determines the position of the application video stream, and the channel information including the resolution information of the application video stream can also be used to determine the width and height information of the application video stream, which improves the resolution of the video display device in parsing the data stream to be transmitted. accuracy.
在另一种可选的实现方式中,上述的通道信息可以设置于待传输数据流的头部。视频采集装置将通道信息设置于待传输数据流的头部,并通过第二线路向视频显示装置发送该待传输数据流。在现有技术中,视频显示装置仅能依据每条应用视频流的流信息对待传输数据流进行拆分,这需要进行大量的计算资源,导致视频显示装置播放视频流时出现卡顿,而本方案中,在视频显示装置接收到该待传输数据流之后,由于通道信息在待传输数据流的头部,视频显示装置可以优先获取到待传输数据流中的通道信息,并基于该通道信息确定待传输数据流中各个通道以及应用视频流的信息,提高了视频显示装置解析待传输数据流的速度。In another optional implementation manner, the above-mentioned channel information may be set in the header of the data stream to be transmitted. The video acquisition device sets the channel information in the header of the data stream to be transmitted, and sends the data stream to be transmitted to the video display device through the second line. In the prior art, the video display device can only split the data stream to be transmitted according to the stream information of each application video stream, which requires a lot of computing resources, resulting in a freeze when the video display device plays the video stream, and the present In the scheme, after the video display device receives the data stream to be transmitted, since the channel information is in the header of the data stream to be transmitted, the video display device can preferentially obtain the channel information in the data stream to be transmitted, and determine based on the channel information. The information of each channel in the data stream to be transmitted and the application video stream improves the speed of parsing the data stream to be transmitted by the video display device.
在另一种可选的实现方式中,该待传输数据流还可以包括流信息,该流信息指示待传输数据流中每条应用视频流的属性信息,该属性信息包括应用视频流的曝光信息、对焦信息或白平衡信息中的至少一种。视频采集装置将流信息设置于待传输数据流中,并通过第二线路向视频显示装置发送该待传输数据流。在视频显示装置接收到该待传输数据流之后,视频显示装置可以依据待传输数据流中通道信息,确定待传输数据流中各个通道的数量和宽高,以及应用视频流的数量、位置以及分辨率,进而,视频显示装置还可以依据待传输数据流中的流信息确定应用视频流的属性信息,从而实现对不同类型的应用视频流进行识别,进一步提高了视频显示装置解析待传输数据流的准确性。In another optional implementation manner, the data stream to be transmitted may further include stream information, where the stream information indicates attribute information of each application video stream in the data stream to be transmitted, and the attribute information includes exposure information of the application video stream , at least one of focus information or white balance information. The video capture device sets the stream information in the data stream to be transmitted, and sends the data stream to be transmitted to the video display device through the second line. After the video display device receives the data stream to be transmitted, the video display device can determine the number, width and height of each channel in the data stream to be transmitted, and the number, location and resolution of the application video stream according to the channel information in the data stream to be transmitted. Further, the video display device can also determine the attribute information of the application video stream according to the stream information in the data stream to be transmitted, thereby realizing the identification of different types of application video streams, and further improving the ability of the video display device to parse the data stream to be transmitted. accuracy.
在另一种可选的实现方式中,上述的多条应用视频流包括第一应用视频流和第二应用视频流,第一应用视频流的分辨率和第二应用视频流的分辨率不同。本申请实施例可以同时传输多条具有不同分辨率的视频流,视频采集装置利用原始视频流生成多条应用视频流,可以避免视频显示装置对原始视频流进行转换,释放视频显示装置的计算资源,避免了视频显示装置播放视频流出现卡顿。In another optional implementation manner, the above-mentioned multiple application video streams include a first application video stream and a second application video stream, and the resolution of the first application video stream and the resolution of the second application video stream are different. The embodiment of the present application can transmit multiple video streams with different resolutions at the same time, and the video capture device generates multiple application video streams by using the original video stream, which can avoid the video display device from converting the original video stream and release the computing resources of the video display device. , to prevent the video display device from being stuck when playing the video stream.
在另一种可选的实现方式中,待传输数据流还包括数据区域,该数据区域包括多条通道,视频采集装置拼接多条应用视频流得到待传输数据流,包括:视频采集装置将多条应用视频流分别设置于各自对应的目标通道中,其中,应用视频流对应的目标通道为最大传输带宽大于或等于应用视频流所需的传输带宽的通道。视频采集装置依据数据区域中各个通道的带宽信息,以及通道信息中各个应用视频流的分辨率信息,将最大传输带宽大于或等于应用视频流所需的传输带宽的通道作为应用视频流的目标通道,进而,视频采集装置将应用视频流设置于应用视频流对应的目标通道中,实现了基于通道的传输能力传输应用视频流。亦即是说,每条应用视频流可以被放入传输带宽大于或等于该应用视频流所需的传输带宽的目标通道中,避免了视频采集装置将分辨率较大的应用视频流放入带宽信息较小的通道中,进而降低了通道的传输带宽不足所导致的传输时延。In another optional implementation manner, the data stream to be transmitted further includes a data area, the data area includes multiple channels, and the video capture device splices multiple application video streams to obtain the data stream to be transmitted, including: the video capture device combines multiple The application video streams are respectively set in their corresponding target channels, wherein the target channel corresponding to the application video stream is a channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream. According to the bandwidth information of each channel in the data area and the resolution information of each application video stream in the channel information, the video capture device takes the channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream as the target channel of the application video stream , and further, the video capture device sets the application video stream in the target channel corresponding to the application video stream, so as to realize the transmission of the application video stream based on the transmission capability of the channel. That is to say, each application video stream can be put into the target channel whose transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream, preventing the video capture device from putting the application video stream with larger resolution into the bandwidth. In the channel with smaller information, the transmission delay caused by insufficient transmission bandwidth of the channel is reduced.
在另一种可选的实现方式中,待传输数据流包括数据区域,该数据区域包括多条 通道,视频采集装置拼接多条应用视频流得到待传输数据流,包括:若第一应用视频流所需的传输带宽大于多条通道中任意一条通道所具有的传输带宽,且小于或等于第二线路的最大传输带宽,则视频采集装置将第一应用视频流作为第一待传输数据流,第一应用视频流为多条应用视频流中的任意一条;以及,若剩余数据流所需的传输带宽与多条通道具有的传输带宽匹配,则视频采集装置拼接剩余数据流中的多条应用视频流得到第二待传输数据流,其中,剩余数据流包括根据原始视频流得到的多条应用视频流中,除第一应用视频流的其他应用视频流。视频采集装置通过第二线路向视频显示装置发送待传输数据流,包括:视频采集装置通过第二线路向视频显示装置交替发送第一待传输数据流和第二待传输数据流。In another optional implementation manner, the data stream to be transmitted includes a data area, the data area includes multiple channels, and the video capture device splices multiple application video streams to obtain the data stream to be transmitted, including: if the first application video stream The required transmission bandwidth is greater than the transmission bandwidth of any one of the multiple channels, and is less than or equal to the maximum transmission bandwidth of the second line, then the video capture device uses the first application video stream as the first data stream to be transmitted, and the third An application video stream is any one of the multiple application video streams; and, if the transmission bandwidth required by the remaining data streams matches the transmission bandwidth possessed by the multiple channels, the video capture device splices the multiple application videos in the remaining data streams The second to-be-transmitted data stream is obtained from the stream, wherein the remaining data streams include other application video streams except the first application video stream among the multiple application video streams obtained according to the original video stream. The video acquisition device sending the data stream to be transmitted to the video display device through the second line includes: the video acquisition device alternately sends the first data stream to be transmitted and the second data stream to be transmitted to the video display device through the second circuit.
在现有技术中,相机会将分辨率较大的应用视频流传输至电视之后,才会向电视发送其他应用视频流,导致其他应用视频流的传输时延较高,使用本申请实施例提供的数据流传输方法,视频采集装置可以将第一应用视频流作为第一待传输数据流,该第一应用视频流为多条应用视频流中所需的传输带宽大于多条通道中任意一条通道所具有的传输带宽的应用视频流,并将与多条通道具有的传输带宽匹配的剩余数据流作为第二待传输数据流,进而,视频采集装置通过第二线路交替发送第一待传输数据流和第二待传输数据流,实现了将分辨率较大的单条应用视频流与分辨率较小的多条应用视频流进行分时交替传输。换句话说,使用本申请实施例提供的数据流传输方法,视频采集装置无需在第一待传输数据流的传输结束后,才向视频显示装置发送第二待传输数据流,避免了视频流单独传输(将一条视频流传输完成后,再传输另一条视频流)的弊端,降低了视频流的传输时延。In the prior art, the camera transmits the application video stream with a larger resolution to the TV, and then sends other application video streams to the TV, resulting in a high transmission delay of the other application video streams. According to the data stream transmission method, the video capture device can use the first application video stream as the first data stream to be transmitted, and the first application video stream is a plurality of application video streams. The required transmission bandwidth is greater than any one of the multiple channels. The application video stream of the transmission bandwidth, and the remaining data stream that matches the transmission bandwidth of the multiple channels is used as the second data stream to be transmitted, and then the video capture device alternately sends the first data stream to be transmitted through the second line. and the second data stream to be transmitted, so as to realize the time-sharing and alternate transmission of a single application video stream with a larger resolution and multiple application video streams with a smaller resolution. In other words, using the data stream transmission method provided by the embodiments of the present application, the video capture device does not need to send the second data stream to be transmitted to the video display device after the transmission of the first data stream to be transmitted is completed, which avoids the need for separate video streams. The disadvantage of transmission (after the transmission of one video stream is completed, another video stream is transmitted) reduces the transmission delay of the video stream.
第二方面,本申请提供了一种数据流传输方法,该方法由视频显示装置执行,或者该方法可应用于可以支持实现该方法的终端设备,例如该终端设备包括芯片系统。在一种可能的设计中,视频采集装置分别通过第一线路和第二线路与视频显示装置连接,第一线路用于传输视频采集装置与视频显示装置的控制指令,该方法包括:视频显示装置通过第二线路接收视频采集装置发送的待传输数据流,视频显示装置还处理待传输数据流并播放至少一条应用视频流。其中,上述的待传输数据流为多条应用视频流拼接得到的,待传输数据流所需的传输带宽小于或等于第二线路的最大传输带宽。如此,视频显示装置通过第一线路传输控制指令,通过第二线路接收视频采集装置发送的待传输数据流,实现了控制指令和数据流的分离传输,避免利用同一条线路传输控制指令和数据流时,控制指令占用了传输数据流的线路的带宽,导致数据流的传输时延较高的问题。本申请实施例提供的数据流传输方法,由专属的第二线路传输数据流,降低了传输待传输数据流的传输时延,提高了传输待传输数据流的传输速率;而且,在视频显示装置通过第二线路接收视频采集装置发送的待传输数据流的过程中,还可以通过第一线路接收视频采集装置发送的控制指令,由于视频显示装置无需在待传输数据流的传输过程结束后,才向视频采集装置发送控制指令,有效地降低了该控制指令的传输时延。另外,相较于现有技术中仅能将视频流单独传输(将一条视频流传输完成后,再传输另一条视频流),在本申请实施例使用的数据流传输方法中,视频采集装置可以将多条应用视频流进行拼接得到待传输数据流,并将待传输数据流放入第二线路进行传输,使得视频采集装置无需单独传输每条应用视频流,降低了视频 流的传输时延。此外,由于待传输数据流所需的传输带宽小于或等于第二线路的最大传输带宽,视频显示装置可以依据第二线路的最大传输带宽传输该待传输数据流,避免了由于第二线路的传输带宽不足所导致的传输时延。In a second aspect, the present application provides a data stream transmission method, the method is executed by a video display device, or the method can be applied to a terminal device that can support the implementation of the method, for example, the terminal device includes a chip system. In a possible design, the video capture device is connected to the video display device through a first line and a second line respectively, and the first line is used to transmit control instructions of the video capture device and the video display device. The method includes: a video display device The data stream to be transmitted sent by the video capture device is received through the second line, and the video display device also processes the data stream to be transmitted and plays at least one application video stream. The above-mentioned data stream to be transmitted is obtained by splicing multiple application video streams, and the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line. In this way, the video display device transmits the control command through the first line, and receives the data stream to be transmitted sent by the video capture device through the second line, so as to realize the separate transmission of the control command and the data stream, and avoid using the same line to transmit the control command and the data stream. When the control instruction occupies the bandwidth of the line for transmitting the data stream, the problem of high transmission delay of the data stream is caused. In the data stream transmission method provided by the embodiment of the present application, the data stream is transmitted through a dedicated second line, which reduces the transmission delay of transmitting the data stream to be transmitted, and improves the transmission rate of transmitting the data stream to be transmitted; During the process of receiving the data stream to be transmitted sent by the video capture device through the second line, the control command sent by the video capture device can also be received through the first line. Sending a control command to the video capture device effectively reduces the transmission delay of the control command. In addition, compared with the prior art, which can only transmit the video stream separately (after the transmission of one video stream is completed, another video stream is transmitted), in the data stream transmission method used in the embodiment of the present application, the video capture device can The multiple application video streams are spliced to obtain the data stream to be transmitted, and the to-be-transmitted data stream is put into the second line for transmission, so that the video capture device does not need to transmit each application video stream separately, and the transmission delay of the video stream is reduced. In addition, since the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line, the video display device can transmit the data stream to be transmitted according to the maximum transmission bandwidth of the second line, avoiding the need for the transmission of the second line. Transmission delay caused by insufficient bandwidth.
此外,由于待传输数据流包括多条应用视频流,在视频显示装置接收到该待传输数据流之后,视频显示装置可以对待传输数据流进行处理和播放,用户可以通过视频显示装置查看根据原始视频流的多种视频信息,如用户可以查看视频通话中的预览流和拍照流,并在视频通话的过程中查看根据原始视频流得到的人脸脸型识别信息(如将人脸的脸型进行分类),提高了用户的观看体验。In addition, since the data stream to be transmitted includes multiple application video streams, after the video display device receives the data stream to be transmitted, the video display device can process and play the data stream to be transmitted, and the user can view the original video through the video display device. Various video information of the stream, such as the user can view the preview stream and photo stream in the video call, and view the face recognition information obtained from the original video stream during the video call (such as classifying the face shape of the face) , which improves the user's viewing experience.
在一种可能的示例中,待传输数据流包括通道信息,通道信息包括第二线路中通道的数量,以及每条通道的带宽信息,通道信息还包括待传输数据流中的应用视频流的数量,以及每条应用视频流所处的通道。在视频显示装置接收到该待传输数据流之后,视频显示装置可以基于该待传输数据流中的通道信息确定待传输数据流中各个通道以及应用视频流的信息,避免了视频显示装置仅依据每条应用视频流的流信息对待传输数据流进行拆分,提高了视频显示装置解析待传输数据流的速度。In a possible example, the data stream to be transmitted includes channel information, the channel information includes the number of channels in the second line, and the bandwidth information of each channel, and the channel information further includes the number of application video streams in the data stream to be transmitted , and the channel on which each application video stream is located. After the video display device receives the to-be-transmitted data stream, the video display device can determine each channel in the to-be-transmitted data stream and the information of the application video stream based on the channel information in the to-be-transmitted data stream, so as to prevent the video display device from The stream information of the application video stream is split into the data stream to be transmitted, which improves the speed of parsing the data stream to be transmitted by the video display device.
在另一种可能的示例中,通道信息包括每条应用视频流的分辨率信息。在视频显示装置获取到该通道信息后,可以依据每条应用视频流的分辨率信息为该应用视频流的播放分配计算资源,可以提高视频显示装置的计算资源的利用率,避免视频显示装置出现卡顿;在视频显示装置拆分待传输数据流的过程中,视频显示装置不仅可以依据每条应用视频流所处的通道确定应用视频流的位置,还可以利用通道信息中包括应用视频流的分辨率信息确定应用视频流的宽高信息,提高了视频显示装置解析待传输数据流的准确性。In another possible example, the channel information includes resolution information of each application video stream. After the video display device obtains the channel information, it can allocate computing resources for the playback of the application video stream according to the resolution information of each application video stream, which can improve the utilization rate of the computing resources of the video display device and avoid the occurrence of the video display device. When the video display device splits the data stream to be transmitted, the video display device can not only determine the position of the application video stream according to the channel where each application video stream is located, but also use the channel information including the application video stream. The resolution information determines the width and height information of the application video stream, which improves the accuracy of parsing the data stream to be transmitted by the video display device.
在另一种可能的示例中,通道信息设置于待传输数据流的头部。在现有技术中,视频显示装置仅能依据每条应用视频流的流信息对待传输数据流进行拆分,这需要进行大量的计算资源,导致视频显示装置播放视频流的出现卡顿,而本方案中,在视频显示装置接收到该待传输数据流之后,由于通道信息在待传输数据流的头部,视频显示装置可以优先获取到待传输数据流中的通道信息,并基于该通道信息确定待传输数据流中各个通道以及应用视频流的信息,提高了视频显示装置解析待传输数据流的速度。In another possible example, the channel information is set in the header of the data stream to be transmitted. In the prior art, the video display device can only split the data stream to be transmitted according to the stream information of each application video stream, which requires a lot of computing resources, resulting in the video display device being stuck in playing the video stream. In the scheme, after the video display device receives the data stream to be transmitted, since the channel information is in the header of the data stream to be transmitted, the video display device can preferentially obtain the channel information in the data stream to be transmitted, and determine based on the channel information. The information of each channel in the data stream to be transmitted and the application video stream improves the speed of parsing the data stream to be transmitted by the video display device.
在一种可选的实现方式中,视频显示装置处理待传输数据流并播放至少一条应用视频流,包括:视频显示装置依据通道信息,拆分待传输数据流得到所有的应用视频流;视频显示装置选择所有的应用视频流中的至少一条应用视频流进行播放。在视频显示装置接收到该待传输数据流之后,视频显示装置可以依据待传输数据流中通道信息,确定待传输数据流中各个通道的数量和宽高,以及应用视频流的数量、位置以及分辨率,进而,视频显示装置还可以依据待传输数据流中的流信息确定应用视频流的属性信息,从而实现对不同类型的应用视频流进行识别,提高了视频显示装置解析待传输数据流的准确性。In an optional implementation manner, the video display device processes the data stream to be transmitted and plays at least one application video stream, including: the video display device splits the data stream to be transmitted according to the channel information to obtain all the application video streams; video display The device selects at least one application video stream among all the application video streams to play. After the video display device receives the data stream to be transmitted, the video display device can determine the number, width and height of each channel in the data stream to be transmitted, and the number, location and resolution of the application video stream according to the channel information in the data stream to be transmitted. Further, the video display device can also determine the attribute information of the application video stream according to the stream information in the data stream to be transmitted, thereby realizing the identification of different types of application video streams, and improving the accuracy of the video display device in parsing the data stream to be transmitted. sex.
在一种可能的示例中,视频显示装置播放的应用视频流是:视频显示装置依据通道信息将待传输数据流拆分后,并对拆分得到的应用视频流进行AI处理后得到的AI数据流,该AI处理可以是,但不限于:目标检测、人脸识别、物体分类、颜色识别、 物体计数等。例如,视频显示装置包括处理器,该处理器可以用于执行上述AI处理所对应的操作,并将操作的结果显示在视频显示装置的显示屏上,使得用户可以通过视频显示装置的显示屏看到原始视频流的多种视频信息,如用户可以查看视频通话中的预览流和拍照流,并在视频通话的过程中查看根据原始视频流得到的人脸脸型识别信息(如将人脸的脸型进行分类),提高了用户观看视频的体验。In a possible example, the application video stream played by the video display device is the AI data obtained after the video display device splits the data stream to be transmitted according to the channel information, and performs AI processing on the split application video stream. Flow, the AI processing can be, but is not limited to: object detection, face recognition, object classification, color recognition, object counting, etc. For example, the video display device includes a processor, which can be used to perform the operation corresponding to the above AI processing, and display the result of the operation on the display screen of the video display device, so that the user can watch the video through the display screen of the video display device. Various video information to the original video stream, for example, users can view the preview stream and photo stream in the video call, and view the face shape recognition information obtained from the original video stream during the video call (such as the face shape of the face). classification), which improves the user's experience of watching videos.
在另一种可选的实现方式中,在上述视频显示装置通过第二线路接收视频采集装置发送的待传输数据流之前,该数据流传输方法还可以包括:视频显示装置响应作用于视频显示装置的操作信息,生成至少一个采集指令。视频显示装置可以向视频采集装置发送该采集指令,以便视频采集装置依据该采集指令生成多条应用视频流,并将拼接该多条应用视频流得到的待传输数据流通过第二线路发送至视频显示装置,使得用户可以通过视频显示装置的显示屏看到原始视频流的多种视频信息(如目标检测信息、人脸脸型分类、颜色识别等),提高了用户观看视频的体验。In another optional implementation manner, before the video display device receives the data stream to be transmitted sent by the video capture device through the second line, the data stream transmission method may further include: the video display device responds to acting on the video display device The operation information is generated, and at least one acquisition instruction is generated. The video display device can send the acquisition instruction to the video acquisition device, so that the video acquisition device generates multiple application video streams according to the acquisition instruction, and sends the data stream to be transmitted obtained by splicing the multiple application video streams to the video through the second line. The display device enables the user to see various video information (such as target detection information, face type classification, color recognition, etc.) of the original video stream through the display screen of the video display device, which improves the user's experience of watching videos.
第三方面,本申请实施例提供一种视频采集装置,有益效果可以参见第一方面中任一方面的描述,此处不再赘述。所述视频采集装置具有实现上述第一方面中任一方面的方法实例中行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,该视频采集装置分别通过第一线路和第二线路与视频显示装置连接,第一线路用于传输视频采集装置与视频显示装置的控制指令,视频采集装置包括:处理单元,用于依据视频采集装置采集的原始视频流生成多条应用视频流;拼接单元,用于拼接多条应用视频流得到待传输数据流,待传输数据流所需的传输带宽小于或等于第二线路的最大传输带宽;收发单元,用于通过第二线路向视频显示装置发送待传输数据流。In a third aspect, an embodiment of the present application provides a video capture device, and the beneficial effects can be found in the description of any aspect of the first aspect, which will not be repeated here. The video capture device has the function of implementing the behavior in the method example of any one of the above-mentioned first aspects. The functions can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In a possible design, the video capture device is connected to the video display device through a first line and a second line respectively, the first line is used to transmit control instructions of the video capture device and the video display device, and the video capture device includes: a processing unit , which is used to generate multiple application video streams according to the original video streams collected by the video capture device; the splicing unit is used to splicing multiple application video streams to obtain the data stream to be transmitted, and the transmission bandwidth required for the data stream to be transmitted is less than or equal to the second The maximum transmission bandwidth of the line; the transceiver unit is used to send the data stream to be transmitted to the video display device through the second line.
在一种可选的实现方式中,待传输数据流包括通道信息,通道信息包括第二线路中通道的数量,以及每条通道的带宽信息,通道信息还包括待传输数据流中的应用视频流的数量,以及每条应用视频流所处的通道。In an optional implementation manner, the data stream to be transmitted includes channel information, the channel information includes the number of channels in the second line, and the bandwidth information of each channel, and the channel information also includes the application video stream in the data stream to be transmitted , and which channel each application video stream is on.
在另一种可选的实现方式中,通道信息包括每条应用视频流的分辨率信息。In another optional implementation manner, the channel information includes resolution information of each application video stream.
在另一种可选的实现方式中,通道信息设置于待传输数据流的头部。In another optional implementation manner, the channel information is set in the header of the data stream to be transmitted.
在另一种可选的实现方式中,多条应用视频流包括第一应用视频流和第二应用视频流,第一应用视频流的分辨率和第二应用视频流的分辨率不同。In another optional implementation manner, the multiple application video streams include a first application video stream and a second application video stream, and the resolution of the first application video stream and the resolution of the second application video stream are different.
在另一种可选的实现方式中,待传输数据流还包括数据区域,数据区域包括多条通道,拼接单元,具体用于将多条应用视频流分别设置于各自对应的目标通道中;应用视频流对应的目标通道为最大传输带宽大于或等于应用视频流所需的传输带宽的通道。In another optional implementation manner, the data stream to be transmitted further includes a data area, and the data area includes multiple channels, and a splicing unit is specifically used to set multiple application video streams in respective corresponding target channels; application The target channel corresponding to the video stream is a channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream.
在另一种可选的实现方式中,待传输数据流包括数据区域,数据区域包括多条通道,拼接单元,具体用于若第一应用视频流所需的传输带宽大于多条通道中任意一条通道所具有的传输带宽,且小于或等于第二线路的最大传输带宽,则将第一应用视频流作为第一待传输数据流,第一应用视频流为多条应用视频流中的任意一条;拼接单元具体用于若剩余数据流所需的传输带宽与多条通道具有的传输带宽匹配,则拼接剩余数据流中的多条应用视频流得到第二待传输数据流,剩余数据流包括根据原始视频 流得到的多条应用视频流中,除第一应用视频流的其他应用视频流;收发单元具体用于通过第二线路向视频显示装置交替发送第一待传输数据流和第二待传输数据流。In another optional implementation manner, the data stream to be transmitted includes a data area, the data area includes multiple channels, and the splicing unit is specifically used if the transmission bandwidth required by the first application video stream is greater than any one of the multiple channels If the transmission bandwidth of the channel is less than or equal to the maximum transmission bandwidth of the second line, the first application video stream is used as the first data stream to be transmitted, and the first application video stream is any one of multiple application video streams; The splicing unit is specifically used for splicing multiple application video streams in the remaining data stream to obtain the second data stream to be transmitted if the transmission bandwidth required by the remaining data stream matches the transmission bandwidth possessed by the multiple channels. Among the multiple application video streams obtained from the video stream, other application video streams except the first application video stream; the transceiver unit is specifically configured to alternately send the first data stream to be transmitted and the second data stream to be transmitted to the video display device through the second line flow.
在另一种可选的实现方式中,多条应用视频流包括预览流、拍照流、深度数据流、人脸流、目标检测流、监控流、飞行时间测距流或手势控制流中的至少一种。In another optional implementation manner, the multiple application video streams include at least one of a preview stream, a photo stream, a depth data stream, a face stream, a target detection stream, a monitoring stream, a time-of-flight ranging stream, or a gesture control stream. A sort of.
在另一种可选的实现方式中,第一线路为USB,第二线路为HDMI线。In another optional implementation manner, the first line is a USB, and the second line is an HDMI line.
第四方面,本申请实施例提供一种视频显示装置,有益效果可以参见第二方面中任一方面的描述,此处不再赘述。所述视频采集装置具有实现上述第二方面中任一方面的方法实例中行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,该视频显示装置分别通过第一线路和第二线路与视频采集装置连接,第一线路用于传输视频采集装置与视频显示装置的控制指令,视频显示装置包括:收发单元,用于通过第二线路接收视频采集装置发送的待传输数据流,待传输数据流为多条应用视频流拼接得到的,待传输数据流所需的传输带宽小于或等于第二线路的最大传输带宽;处理单元,用于处理所述待传输数据流得到多条应用视频流;显示单元,用于播放所述多条应用视频流中的至少一条应用视频流。In a fourth aspect, an embodiment of the present application provides a video display device, and the beneficial effects can be found in the description of any aspect of the second aspect, which will not be repeated here. The video capture device has the function of implementing the behavior in the method example of any one of the above-mentioned second aspects. The functions can be implemented by hardware, or can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In a possible design, the video display device is connected to the video capture device through a first line and a second line respectively, and the first line is used to transmit control instructions of the video capture device and the video display device, and the video display device includes: a transceiver unit , used to receive the data stream to be transmitted sent by the video capture device through the second line, the data stream to be transmitted is obtained by splicing multiple application video streams, and the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line bandwidth; a processing unit, configured to process the data stream to be transmitted to obtain multiple application video streams; and a display unit, configured to play at least one application video stream among the multiple application video streams.
在一种可选的实现方式中,待传输数据流包括通道信息,通道信息包括第二线路中通道的数量,以及每条通道的带宽信息,通道信息还包括待传输数据流中的应用视频流的数量,以及每条应用视频流所处的通道。In an optional implementation manner, the data stream to be transmitted includes channel information, the channel information includes the number of channels in the second line, and the bandwidth information of each channel, and the channel information also includes the application video stream in the data stream to be transmitted , and which channel each application video stream is on.
在另一种可选的实现方式中,通道信息包括每条应用视频流的分辨率信息。In another optional implementation manner, the channel information includes resolution information of each application video stream.
在另一种可选的实现方式中,通道信息设置于待传输数据流的头部。In another optional implementation manner, the channel information is set in the header of the data stream to be transmitted.
在另一种可选的实现方式中,处理单元具体用于依据通道信息,拆分待传输数据流得到所有的应用视频流;显示单元具体用于选择所有的应用视频流中的至少一条应用视频流进行播放。In another optional implementation manner, the processing unit is specifically configured to split the data stream to be transmitted to obtain all the application video streams according to the channel information; the display unit is specifically configured to select at least one application video in all the application video streams stream to play.
第五方面,本申请实施例提供一种终端设备,包括处理器和接口电路,该处理器通过接口电路接收或发送数据,处理器通过逻辑电路或执行代码指令用于实现第一方面和第一方面中任一种可能实现方式中的方法,或第二方面和第二方面中任一种可能实现方式中的方法的操作步骤。In a fifth aspect, an embodiment of the present application provides a terminal device, including a processor and an interface circuit, the processor receives or sends data through the interface circuit, and the processor implements the first aspect and the first aspect through a logic circuit or executing code instructions The method in any one possible implementation of the aspect, or the operation steps of the method in any one of the possible implementations of the second aspect and the second aspect.
第六方面,本申请实施例提供一种计算机可读存储介质,存储介质中存储有计算机程序或指令,当计算机程序或指令被终端设备执行时,实现第一方面和第一方面中任一种可能实现方式中的方法,或第二方面和第二方面中任一种可能实现方式中的方法的操作步骤。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored, and when the computer program or instruction is executed by a terminal device, any one of the first aspect and the first aspect is implemented The method in the possible implementation manner, or the operation steps of the method in any one possible implementation manner of the second aspect and the second aspect.
第七方面,本申请实施例提供一种计算机程序产品,该计算程序产品包括指令,当计算机程序产品在终端设备或处理器上运行时,使得终端设备或处理器执行该指令,以实现第一方面和第一方面中任一种可能实现方式中的方法,或第二方面和第二方面中任一种可能实现方式中的方法的操作步骤。In a seventh aspect, an embodiment of the present application provides a computer program product, the computing program product includes instructions, and when the computer program product runs on a terminal device or a processor, the terminal device or the processor executes the instructions, so as to realize the first The aspect and the method in any one possible implementation of the first aspect, or the second aspect and the operation steps of the method in any one possible implementation of the second aspect.
第八方面,本申请实施例提供一种芯片,包括存储器和处理器,存储器用于存储计算机指令,处理器用于从存储器中调用并运行该计算机指令,以执行上述第一方面及其第一方面任意可能的实现方式中的方法,或第二方面和第二方面中任一种可能实现方式中的方法的操作步骤。In an eighth aspect, an embodiment of the present application provides a chip, including a memory and a processor, where the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the above-mentioned first aspect and its first aspect The method in any possible implementation manner, or the operation steps of the method in any possible implementation manner of the second aspect and the second aspect.
本申请在上述各方面提供的实现方式的基础上,还可以进行进一步组合以提供更多实现方式。On the basis of the implementation manners provided by the above aspects, the present application may further combine to provide more implementation manners.
附图说明Description of drawings
图1为本申请提供的一种视频通信系统的示意图;1 is a schematic diagram of a video communication system provided by the application;
图2为本申请提供的一种数据流传输方法的流程示意图;2 is a schematic flowchart of a data stream transmission method provided by the present application;
图3为本申请提供的一种智慧屏的示意图;3 is a schematic diagram of a smart screen provided by the application;
图4为本申请提供的一种待传输数据流的结构示意图;4 is a schematic structural diagram of a data stream to be transmitted provided by the present application;
图5为本申请提供的另一种数据流传输方法的流程示意图;5 is a schematic flowchart of another data stream transmission method provided by the present application;
图6为本申请提供的一种数据流交替传输的示意图;6 is a schematic diagram of alternate transmission of data streams provided by the present application;
图7为本申请提供的一种数据流传输系统的示意图;7 is a schematic diagram of a data stream transmission system provided by the present application;
图8为本申请提供的一种终端设备的结构示意图。FIG. 8 is a schematic structural diagram of a terminal device provided by the present application.
具体实施方式Detailed ways
本申请说明书和权利要求书及上述附图中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于限定特定顺序。The terms "first", "second" and "third" in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to limit a specific order.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
为了下述各实施例的描述清楚简洁,首先给出相关技术的简要介绍。For the sake of clarity and conciseness in the description of the following embodiments, a brief introduction of related technologies is first given.
在目前的技术方案中,相机通过USB来传输相机和电视之间的视频流,而USB的传输能力较小,导致USB在传输视频流时具有较高的时延。例如,三维(3-dimension,3D)图像的视频流所需的传输带宽约为442MB/s,而USB3.0的传输带宽一般只能达到400MB/s,导致USB在传输视频流时具有较高的时延。In the current technical solution, the camera transmits the video stream between the camera and the TV through the USB, and the transmission capability of the USB is relatively small, resulting in a relatively high delay when the USB transmits the video stream. For example, the transmission bandwidth required for a video stream of a three-dimensional (3-dimension, 3D) image is about 442MB/s, while the transmission bandwidth of USB 3.0 can generally only reach 400MB/s. delay.
为了解决上述问题,本申请提供一种数据流传输方法,视频采集装置分别通过第一线路和第二线路与视频显示装置连接,第一线路用于传输视频采集装置与视频显示装置的控制指令,该方法包括:视频采集装置用于采集原始视频流,并依据该原始视频流生成多条应用视频流,以及,拼接该多条应用视频流得到待传输数据流,进而,视频采集装置通过第二线路向视频显示装置发送待传输数据流;其中,该待传输数据流所需的传输带宽小于或等于第二线路的最大传输带宽。视频显示装置用于在接收到该待传输数据流之后,处理该待传输数据流并播放至少一条显示视频流。如此,视频采集装置通过第一线路传输控制指令,通过第二线路向视频显示装置发送该待传输数据流,实现了控制指令和数据流的分离传输,避免利用同一条线路传输控制指令和数据流时,控制指令占用了传输数据流的线路的带宽,导致数据流的传输时延较高的问题。In order to solve the above problems, the present application provides a data stream transmission method. The video capture device is connected to the video display device through a first line and a second line respectively, and the first line is used to transmit the control instructions of the video capture device and the video display device. The method includes: a video capture device is used to capture an original video stream, and generate a plurality of application video streams according to the original video stream, and splicing the plurality of application video streams to obtain a data stream to be transmitted, and further, the video capture device passes the second The line sends the data stream to be transmitted to the video display device; wherein, the transmission bandwidth required by the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second circuit. The video display device is configured to process the to-be-transmitted data stream and play at least one display video stream after receiving the to-be-transmitted data stream. In this way, the video capture device transmits the control command through the first line, and sends the data stream to be transmitted to the video display device through the second line, which realizes the separate transmission of the control command and the data stream, and avoids using the same line to transmit the control command and the data stream. When the control instruction occupies the bandwidth of the line for transmitting the data stream, the problem of high transmission delay of the data stream is caused.
本申请实施例提供的数据流传输方法,由专属的第二线路传输数据流,降低了传输待传输数据流的传输时延,提高了传输待传输数据流的传输速率;而且,在视频采集装置通过第二线路向视频显示装置发送待传输数据流的过程中,还可以通过第一线路接收视频显示装置发送的控制指令,由于视频显示装置无需在待传输数据流的传输过程结束后,才向视频采集装置发送控制指令,有效地降低了该控制指令的传输时延。In the data stream transmission method provided by the embodiment of the present application, the data stream is transmitted through a dedicated second line, which reduces the transmission delay for transmitting the data stream to be transmitted, and improves the transmission rate for transmitting the data stream to be transmitted; In the process of sending the data stream to be transmitted to the video display device through the second line, the control command sent by the video display device can also be received through the first line. The video capture device sends the control command, which effectively reduces the transmission delay of the control command.
另外,相较于现有技术中仅能将视频流单独传输(将一条视频流传输完成后,再传输另一条视频流),在本申请实施例使用的数据流传输方法中,视频采集装置可以将多条应用视频流进行拼接得到待传输数据流,并将待传输数据流放入第二线路进行传输,使得视频采集装置无需单独传输每条应用视频流,降低了视频流的传输时延。此外,由于待传输数据流所需的传输带宽小于或等于第二线路的最大传输带宽,视频采集装置可以依据第二线路的最大传输带宽传输该待传输数据流,避免了由于第二线路的传输带宽不足所导致的传输时延。In addition, compared with the prior art, which can only transmit the video stream separately (after the transmission of one video stream is completed, another video stream is transmitted), in the data stream transmission method used in the embodiment of the present application, the video capture device can The multiple application video streams are spliced to obtain the data stream to be transmitted, and the to-be-transmitted data stream is put into the second line for transmission, so that the video capture device does not need to transmit each application video stream separately, and the transmission delay of the video stream is reduced. In addition, since the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line, the video capture device can transmit the data stream to be transmitted according to the maximum transmission bandwidth of the second line, avoiding the transmission of the second line. Transmission delay caused by insufficient bandwidth.
视频采集装置可以是相机或摄像头等,摄像头用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件,进而生成原始视频流。感光元件可以是电荷耦合器件(Charge Coupled Device,CCD)或互补金属氧化物半导体(Complementary Metal-Oxide-Semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给图形处理器(Graphics Processing Unit,GPU)或图像信号处理器(Image Signal Processor,ISP)转换成数字图像信号。The video capture device may be a camera or a camera, etc. The camera is used to capture still images or videos. The object is projected through the lens to generate an optical image onto the photosensitive element, which in turn generates the raw video stream. The photosensitive element can be a charge coupled device (Charge Coupled Device, CCD) or a complementary metal-oxide-semiconductor (Complementary Metal-Oxide-Semiconductor, CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to a graphics processor (Graphics Processing Unit, GPU) or an image signal processor (Image Signal Processor, ISP) to convert it into a digital image signal.
视频显示装置用于显示图像、视频等,视频显示装置可以是电视、投影仪、电脑显示器等。在一些可能的实施例中,视频显示装置可以是具有图像显示功能的其他终端设备,如,可穿戴设备、车载设备、增强现实(Augmented Reality,AR)/虚拟现实(Virtual Reality,VR)设备、笔记本电脑、超级移动个人计算机(Ultra-Mobile Personal Computer,UMPC)、上网本、个人数字助理(Personal Digital Assistant,PDA)等。The video display device is used to display images, videos, etc. The video display device may be a television, a projector, a computer monitor, and the like. In some possible embodiments, the video display device may be other terminal devices with image display functions, such as wearable devices, vehicle-mounted devices, Augmented Reality (AR)/Virtual Reality (VR) devices, Notebook computer, Ultra-Mobile Personal Computer (UMPC), netbook, Personal Digital Assistant (PDA), etc.
示例的,图1为本申请提供的一种视频通信系统的示意图,该视频通信系统包括电视110、可伸缩相机120、摄像头130和会议平板140。电视110和会议平板可以通过网络150进行通信。可选的,该网络150可以包括交换机、服务器等设备。By way of example, FIG. 1 is a schematic diagram of a video communication system provided by the present application. The video communication system includes a TV 110 , a retractable camera 120 , a camera 130 and a conference tablet 140 . The television 110 and the conference tablet can communicate via the network 150 . Optionally, the network 150 may include switches, servers and other devices.
作为一种可选的实现方式,视频采集装置和视频显示装置可以集成在一个终端设备上,如图1所示,可伸缩相机120设置于电视110,可以将集成有电视功能和相机功能的设备称为智慧屏。As an optional implementation manner, the video capture device and the video display device can be integrated on a terminal device. As shown in FIG. 1 , the retractable camera 120 is arranged on the TV 110, and the device integrated with the TV function and the camera function can be It is called a smart screen.
在一种可能的示例中,视频显示装置上可以设置多个视频采集装置,例如,电视110上可以设置有多个相机,还可以通过接口连接其他拍摄设备。In a possible example, multiple video capture devices may be set on the video display device, for example, multiple cameras may be set on the TV 110, and other shooting devices may also be connected through an interface.
作为另一种可选的实现方式,视频采集装置和视频显示装置可以分离设置,如图1所示,视频采集装置可以是摄像头130,视频显示装置可以是会议平板140。As another optional implementation manner, the video capture device and the video display device may be set separately. As shown in FIG. 1 , the video capture device may be the camera 130 , and the video display device may be the conference tablet 140 .
视频显示装置可以包括1个或多个显示屏,显示屏用于显示图像,视频等。显示屏包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Mini-LED,Micro-LED,Micro-OLED,量子点发光二极管(quantum dot light emitting diodes,QLED)等。The video display device may include one or more display screens, and the display screens are used to display images, videos, and the like. The display includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Mini-LED, Micro-LED, Micro-OLED, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), etc.
视频显示装置还可以包括处理器,例如:处理器可以包括应用处理器(Application Processor,AP),调制解调处理器,GPU,ISP,控制器,存储器,视频编解码器,数字信号处理器(Digital Signal Processor,DSP),基带处理器,和/或神经网络处理器(Neural-Network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是视频显示装置的神经中 枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The video display device may further include a processor, for example, the processor may include an application processor (Application Processor, AP), a modem processor, a GPU, an ISP, a controller, a memory, a video codec, a digital signal processor ( Digital Signal Processor, DSP), baseband processor, and/or Neural-Network Processing Unit (NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. Among them, the controller can be the nerve center and command center of the video display device. The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器中的存储器为高速缓冲存储器。该存储器可以保存处理器刚用过或循环使用的指令或数据。如果处理器需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器的等待时间,因而提高了数据流传输的效率。Memory may also be provided in the processor for storing instructions and data. In some embodiments, the memory in the processor is a cache memory. This memory can hold instructions or data that the processor has just used or recycled. If the processor needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, the waiting time of the processor is reduced, and thus the efficiency of data flow transmission is improved.
在一些实施例中,处理器可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,USB接口和/或HDMI接口等。其中,USB接口是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。在本申请实施例中,USB接口用于传输控制指令。In some embodiments, the processor may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, USB interface and/or HDMI interface, etc. Among them, the USB interface is an interface that conforms to the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. In this embodiment of the present application, the USB interface is used to transmit control instructions.
如图1所示,USB接口可以用于连接充电器为电视110供电,也可以用于电视110与外围设备之间传输控制指令。也可以用于连接耳机,通过耳机播放音频。该USB接口还可以用于连接其他终端设备,例如AR设备、可伸缩相机120等。As shown in FIG. 1 , the USB interface can be used to connect a charger to supply power to the TV 110 , and can also be used to transmit control commands between the TV 110 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The USB interface can also be used to connect other terminal devices, such as AR devices, retractable cameras 120 and the like.
值得注意的是,图1所示出的视频通信场景仅是本申请实施例提供的一种可能的实现方式,本申请所提供的数据流传输方法用于图像传输环节,如照相,摄像和监控等涉及图像传输的领域。It is worth noting that the video communication scenario shown in FIG. 1 is only a possible implementation provided by the embodiments of this application, and the data stream transmission method provided in this application is used for image transmission links, such as photography, videography, and monitoring. etc. involving the field of image transmission.
下面将结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
如图2所示,图2为本申请提供的一种数据流传输方法的流程示意图,视频采集装置210分别通过第一线路和第二线路与视频显示装置220连接。示例地,可伸缩相机120是视频采集装置210、电视110是视频显示装置220为例,对本申请所提供的数据流传输方法进行说明,视频采集装置210可以实现如图1所示出的可伸缩相机120的功能,视频显示装置220可以实现如图1所示出的电视110的功能。As shown in FIG. 2 , which is a schematic flowchart of a data stream transmission method provided by the present application, the video capture device 210 is connected to the video display device 220 through a first line and a second line, respectively. For example, the retractable camera 120 is the video capture device 210 and the TV 110 is the video display device 220 as an example, to illustrate the data stream transmission method provided in this application, the video capture device 210 can realize the scalable as shown in FIG. 1 . The functions of the camera 120 and the video display device 220 can realize the functions of the television 110 as shown in FIG. 1 .
第一线路用于传输视频采集装置210与视频显示装置220的控制指令,第二线路用于视频采集装置210向视频显示装置220传输数据流,实现了数据流和控制指令的分离传输,在视频采集装置210通过第二线路向视频显示装置220发送待传输数据流的过程中,视频显示装置220可以通过第一线路向视频采集装置210发送控制指令,以便视频显示装置220无需在待传输数据流的传输过程结束后,才向视频采集装置210发送控制指令,降低了该控制指令的传输时延。The first line is used to transmit the control commands of the video capture device 210 and the video display device 220, and the second line is used for the video capture device 210 to transmit the data stream to the video display device 220, which realizes the separate transmission of the data stream and the control command. During the process that the acquisition device 210 sends the data stream to be transmitted to the video display device 220 through the second line, the video display device 220 may send a control instruction to the video acquisition device 210 through the first circuit, so that the video display device 220 does not need to transmit the data stream to be transmitted. The control command is sent to the video capture device 210 only after the transmission process of the video capture device is completed, which reduces the transmission delay of the control command.
请继续参见图2,本申请实施例提供的数据流传输方法可以包括以下步骤。Please continue to refer to FIG. 2 , the data stream transmission method provided by the embodiment of the present application may include the following steps.
S210,视频显示装置210响应作用于视频显示装置的操作信息,生成采集指令。S210, the video display device 210 generates a collection instruction in response to the operation information acting on the video display device.
这里以视频显示装置220上设置有视频采集装置210为例,如图3所示,图3为本申请提供的一种智慧屏的示意图,视频显示装置220可以是智慧屏300,视频采集装置210是智慧屏300上的相机310。Here, the video display device 220 is provided with a video capture device 210 as an example. As shown in FIG. 3 , FIG. 3 is a schematic diagram of a smart screen provided by the present application. The video display device 220 may be a smart screen 300 and the video capture device 210 It is the camera 310 on the smart screen 300.
例如,该操作信息可以是智慧屏300接收到的用户通过智慧屏300的遥控器发送 的遥控指令。For example, the operation information may be a remote control command received by the smart screen 300 and sent by the user through the remote controller of the smart screen 300.
又如,该操作信息是与智慧屏300通信连接的远端设备(如手机)通过应用程序(application,APP)发送的控制指令。For another example, the operation information is a control instruction sent by a remote device (such as a mobile phone) communicatively connected to the smart screen 300 through an application (application, APP).
又如,该操作信息是智慧屏300的音频输入设备接收到的语音信息,该音频输入设备可以是设置在智慧屏300上的麦克风,该音频输入设备还可以是设置在智慧屏300的遥控器上的麦克风。For another example, the operation information is the voice information received by the audio input device of the smart screen 300, the audio input device may be a microphone set on the smart screen 300, and the audio input device may also be a remote control set on the smart screen 300 on the microphone.
又如,该操作信息还可以是智慧屏300接收到的用户的手势信息,若智慧屏300的显示屏320为触摸显示屏,该手势信息可以是用户在该触摸显示屏进行的操作;该手势信息还可以是用户按照一定的动作进行非触摸操作(如隔空操作)的手势操作。For another example, the operation information may also be the gesture information of the user received by the smart screen 300. If the display screen 320 of the smart screen 300 is a touch screen, the gesture information may be the operation performed by the user on the touch screen; the gesture The information may also be a gesture operation in which the user performs a non-touch operation (such as an air-space operation) according to a certain action.
上述操作信息仅为本申请提供的可能的实现方式,不代表对本申请的限定。在一些可能的示例中,上述的操作信息还可以是与视频显示装置有线连接的服务器发送的指令。The above operation information is only a possible implementation manner provided by this application, and does not represent a limitation on this application. In some possible examples, the above-mentioned operation information may also be an instruction sent by a server wiredly connected to the video display device.
S220,视频显示装置220通过第一线路向视频采集装置210发送采集指令。S220, the video display device 220 sends a capture instruction to the video capture device 210 through the first line.
在一种可能的示例中,该第一线路可以是USB。例如,视频采集装置210的处理器具有USB接口,视频显示装置220的处理器也具有USB接口,该第一线路的两端分别连接该2个USB接口。In one possible example, the first line may be USB. For example, the processor of the video capture device 210 has a USB interface, and the processor of the video display device 220 also has a USB interface, and two ends of the first line are respectively connected to the two USB interfaces.
在另一种可能的示例中,该第一线路还可以是通过视频采集装置210和视频显示装置220的其他接口实现的,例如,该其他接口可以是,但不限于:Mini USB接口,Micro USB接口,USB Type C接口等。In another possible example, the first line may also be implemented through other interfaces of the video capture device 210 and the video display device 220. For example, the other interfaces may be, but not limited to: Mini USB interface, Micro USB interface interface, USB Type C interface, etc.
利用第一线路来传输视频采集装置和视频显示装置之间的控制指令,避免了视频流和控制指令在同一条线路中传输,进而,降低了视频流单向传输过程中,与视频流的传输方向相反的控制指令的传输时延。Using the first line to transmit the control command between the video capture device and the video display device avoids the transmission of the video stream and the control command in the same line, and further reduces the transmission of the video stream and the video stream during the one-way transmission process of the video stream. The transmission delay of the control command in the opposite direction.
S230,视频采集装置210依据视频采集装置210采集的原始视频流生成多条应用视频流。S230 , the video collection device 210 generates a plurality of application video streams according to the original video streams collected by the video collection device 210 .
例如,该原始视频流是视频采集装置210拍摄目标物体或人物得到的视频数据源。For example, the original video stream is a video data source obtained by the video capture device 210 photographing the target object or person.
在一种可能的示例中,该多条应用视频流可以是多条分辨率相同的视频流,如每条应用视频流均是“1080P@60”的视频流,“1080P”是指该视频流的分辨率信息为1920*1080(宽度为1920、高度为1080),“@60”是指该视频流的帧率信息为60帧/秒。In a possible example, the multiple application video streams may be multiple video streams with the same resolution, for example, each application video stream is a “1080P@60” video stream, and “1080P” refers to the video stream The resolution information of the video stream is 1920*1080 (width is 1920, height is 1080), and "@60" means that the frame rate information of the video stream is 60 frames/second.
在另一种可能的示例中,该多条应用视频流也可以是多条分辨率不同的视频流,示例的,该多条应用视频流包括第一应用视频流和第二应用视频流,第一应用视频流的分辨率和第二应用视频流的分辨率不同。例如,第一应用视频流的分辨率信息为1080P(宽度为1920、高度为1080),第二应用视频流的分辨率信息为720P(宽度为1080、高度为720)。In another possible example, the multiple application video streams may also be multiple video streams with different resolutions. For example, the multiple application video streams include a first application video stream and a second application video stream. The resolution of the video stream of one application is different from the resolution of the video stream of the second application. For example, the resolution information of the first application video stream is 1080P (width is 1920 and height is 1080), and the resolution information of the second application video stream is 720P (width is 1080 and height is 720).
视频采集装置210生成多条应用视频流可以是基于多个采集指令实现的,如视频显示装置220依据用户的手势信息生成了多个采集指令,该多个采集指令包括人脸识别指令和预览指令,视频显示装置220将该多个视频采集指令发送至视频采集装置210,从而,使得视频采集装置210依据人脸识别指令生成人脸识别流、依据预览指令生成预览流,在视频采集装置210将预览流与人脸识别流拼接得到待传输数据流之后,视 频采集装置210向视频显示装置220发送该待传输数据流,用户可以通过视频显示装置220看到上述的预览流和人脸识别流。由于上述的多条应用视频流是由视频采集装置210依据原始视频流生成的,避免了视频显示装置220对原始视频流进行转换,释放了视频显示装置220的计算资源,从而使得视频显示装置220播放视频流不会出现卡顿,提高了用户观看视频的体验。The generation of multiple application video streams by the video capture device 210 may be realized based on multiple capture instructions. For example, the video display device 220 generates a plurality of capture commands according to the user's gesture information, and the plurality of capture commands includes a face recognition command and a preview command. , the video display device 220 sends the plurality of video capture instructions to the video capture device 210, so that the video capture device 210 generates a face recognition stream according to the face recognition command, generates a preview stream according to the preview command, and the video capture device 210 will After the preview stream and the face recognition stream are spliced to obtain the to-be-transmitted data stream, the video capture device 210 sends the to-be-transmitted data stream to the video display device 220, and the user can view the above-mentioned preview stream and face recognition stream through the video display device 220. Since the above-mentioned multiple application video streams are generated by the video capture device 210 according to the original video streams, the video display device 220 is prevented from converting the original video streams, and the computing resources of the video display device 220 are released, thereby enabling the video display device 220 There will be no lag when playing the video stream, which improves the user's experience of watching videos.
作为一种可选的实现方式,待传输数据流包括的多条应用视频流可以是不同种类的视频流。例如,多条应用视频流包括预览流、拍照流、深度数据流、人脸流、目标检测流、监控流、飞行时间测距流或手势控制流中的至少一种视频流。用户可以利用视频显示装置查看原始视频流的不同视频信息,如用户可以查看视频通话中的预览流和拍照流,并在视频通话的过程中查看根据原始视频流得到的人脸脸型识别信息(如将人脸的脸型进行分类),从而提高用户观看视频的体验。As an optional implementation manner, the multiple application video streams included in the data stream to be transmitted may be different types of video streams. For example, the multiple application video streams include at least one video stream among preview streams, photographing streams, depth data streams, face streams, object detection streams, monitoring streams, time-of-flight ranging streams, or gesture control streams. The user can use the video display device to view different video information of the original video stream, for example, the user can view the preview stream and the photo stream in the video call, and view the face recognition information obtained according to the original video stream during the video call (such as Classify the face shape of the face), thereby improving the user's experience of watching videos.
其中,预览流是指视频采集装置对采集的视频数据源进行预览的视频流。例如,图3所示出的预览流。The preview stream refers to a video stream in which the video capture device previews the captured video data source. For example, the preview stream shown in Figure 3.
拍照流是指视频采集装置对目标物体或人物进行拍照得到的视频流。例如,图3所示出的拍照流。The camera stream refers to the video stream obtained by the video capture device taking pictures of the target object or person. For example, the camera flow shown in Figure 3.
深度数据流是指将从视频采集装置到场景中各点的距离(深度)作为像素值的一组图像流,它直接反映了景物可见表面的几何形状。深度图像数据经过坐标转换可以计算为点云数据,有规则及必要信息的点云数据也可以反算为深度图像数据。The depth data stream refers to a group of image streams that take the distance (depth) from the video capture device to each point in the scene as the pixel value, which directly reflects the geometry of the visible surface of the scene. Depth image data can be calculated as point cloud data after coordinate transformation, and point cloud data with rules and necessary information can also be calculated as depth image data.
人脸流是指视频采集装置拍摄的原始视频流中的人脸信息流。The face stream refers to the face information stream in the original video stream captured by the video capture device.
目标检测流是指视频采集装置处理原始视频流后,得到的与目标检测需求匹配的数据流。例如,该目标检测需求可以是原始视频流中物体类别为指定类别,人物的衣服颜色为指定颜色等。如图3所示,该目标检测流可以是对原始视频流中的人物进行骨骼识别,得到人物的骨骼数据,智慧屏300可以显示骨骼数据流。The target detection stream refers to the data stream that matches the target detection requirement obtained after the video capture device processes the original video stream. For example, the target detection requirement may be that the object category in the original video stream is a specified category, and the color of a person's clothes is a specified color. As shown in FIG. 3 , the target detection flow may be to perform skeleton recognition on the character in the original video stream to obtain skeleton data of the character, and the smart screen 300 may display the skeleton data stream.
监控流是指视频采集装置对监控场景进行录像得到的视频流。例如,图3所示出的监控流。The monitoring stream refers to the video stream obtained by the video capture device recording the monitoring scene. For example, the monitoring flow shown in Figure 3.
飞行时间测距流是指视频采集装置通过给目标物连续发送光脉冲,然后用传感器接收从物体返回的光,通过探测光脉冲的飞行(往返)时间得到视频采集装置与目标物的距离,进而依据目标物上的每个点的距离生成的数据流。The time-of-flight ranging flow means that the video acquisition device continuously sends light pulses to the target, and then uses the sensor to receive the light returned from the object, and obtains the distance between the video acquisition device and the target by detecting the flight (round-trip) time of the light pulse, and then A data stream generated based on the distance of each point on the target.
手势控制流是指视频采集装置依据原始视频流中目标人物的手势信息得到的数据流。例如,图3所示出的手势控制流。The gesture control stream refers to the data stream obtained by the video capture device according to the gesture information of the target person in the original video stream. For example, the gesture control flow shown in Figure 3.
值得注意的是,图3仅为本申请提供的可能的实现方式,不应理解为对本申请的限定。在一些可能的实施例中,视频显示装置还可以显示更多或更少的视频流。It is worth noting that FIG. 3 is only a possible implementation manner provided by the present application, and should not be construed as a limitation on the present application. In some possible embodiments, the video display device may also display more or fewer video streams.
每条应用视频流可以是不同类型的视频流,用户可以利用视频显示装置查看根据原始视频流的不同视频信息,如用户可以查看视频通话中的预览流和拍照流,并在视频通话的过程中查看根据原始视频流得到的人脸脸型识别信息(如将人脸的脸型进行分类),提高了用户观看视频的体验。Each application video stream can be a different type of video stream, and the user can use the video display device to view different video information according to the original video stream. Viewing the face shape identification information obtained according to the original video stream (for example, classifying the face shape of the face) improves the user's experience of watching videos.
作为一种可选的实现方式,视频采集装置生成多条应用视频流可以是基于多个采集指令实现的。如图3所示,例如,用户可以点击视频通话生成预览流和拍照流;又如,用户可以通过手势操作来生成人脸识别指令,进而,视频采集装置依据原始视频 流生成人脸流;又如,用户通过遥控器发出健身体态识别指令,视频采集装置依据原始视频流生成深度数据流(如图3所示出的骨骼数据流)。上述的示例是以不同的指令通过不同的操作信息实现的,在一些可能的示例中,用户可以在一段时间内进行多个操作,视频采集装置可以依据该多个操作生成采集指令,该采集指令可以指示视频采集装置生成该多个操作对应的应用视频流。As an optional implementation manner, the generation of multiple application video streams by the video collection apparatus may be implemented based on multiple collection instructions. As shown in Figure 3, for example, the user can click on a video call to generate a preview stream and a photo stream; another example, the user can generate a face recognition instruction through gesture operations, and then the video capture device generates a face stream according to the original video stream; , the user sends a fitness posture recognition instruction through the remote controller, and the video acquisition device generates a depth data stream (as shown in FIG. 3 ) according to the original video stream. The above examples are implemented with different instructions through different operation information. In some possible examples, the user may perform multiple operations within a period of time, and the video capture device may generate a collection instruction according to the multiple operations. The video capture device may be instructed to generate application video streams corresponding to the multiple operations.
请继续参见图2,本申请所提供的数据流传输方法还包括以下步骤。Please continue to refer to FIG. 2 , the data stream transmission method provided by the present application further includes the following steps.
S240,视频采集装置210拼接该多条应用视频流得到待传输数据流。S240, the video collection device 210 splices the multiple application video streams to obtain a data stream to be transmitted.
该待传输数据流可以包括通道信息,该通道信息可以包括待传输数据流中的应用视频流的数量。示例的,如图4中的(a)所示,多条应用视频流包括应用视频流1~应用视频流4;如图4中的(c)所示,该通道信息指示待传输数据流包括4条应用视频流,该4条应用视频流是应用视频流1~应用视频流4,视频采集装置210可以将应用视频流1~应用视频流4进行拼接,得到待传输数据流。The data stream to be transmitted may include channel information, and the channel information may include the number of application video streams in the data stream to be transmitted. Exemplarily, as shown in (a) of FIG. 4 , the multiple application video streams include application video stream 1 to application video stream 4; as shown in (c) of FIG. 4 , the channel information indicates that the data stream to be transmitted includes There are four application video streams, and the four application video streams are application video stream 1 to application video stream 4. The video capture device 210 may splicing application video stream 1 to application video stream 4 to obtain the data stream to be transmitted.
在一种可能的示例中,该通道信息还可以包括每条应用视频流所处的通道。示例的,如图4中的(c)所示,应用视频流1设置于通道1中。In a possible example, the channel information may further include the channel where each application video stream is located. Exemplarily, as shown in (c) of FIG. 4 , the application video stream 1 is set in the channel 1 .
该通道信息还可以包括第二线路中通道的数量,以及每条通道的带宽信息。该带宽信息指的是通道的宽度和高度,通道的带宽信息确定了该通道所能传输的应用视频流的最大分辨率。示例的,如图4中的(b)所示,待传输数据流包括信息区1、信息区2和数据区域,该数据区域包括多条通道(通道1~通道6),例如,通道1和通道2的带宽信息为“3840*540”,通道3~通道6的带宽信息为“3840*240”,其中,通道1和通道2可传输的应用视频流的最大分辨率为1080P(1920*1080),通道3~通道6可传输的应用视频流的最大分辨率为720P(1280*720)。The channel information may also include the number of channels in the second line, and bandwidth information for each channel. The bandwidth information refers to the width and height of the channel, and the bandwidth information of the channel determines the maximum resolution of the application video stream that can be transmitted by the channel. Illustratively, as shown in (b) of FIG. 4 , the data stream to be transmitted includes an information area 1, an information area 2 and a data area, and the data area includes multiple channels (channel 1 to channel 6), for example, channel 1 and The bandwidth information of channel 2 is "3840*540", and the bandwidth information of channel 3 to channel 6 is "3840*240". The maximum resolution of the application video stream that can be transmitted by channel 1 and channel 2 is 1080P (1920*1080 ), the maximum resolution of the application video stream that can be transmitted by channel 3 to channel 6 is 720P (1280*720).
作为一种可选的实现方式,上述S240具体包括:视频采集装置210将多条应用视频流分别设置于各自对应的目标通道中。应用视频流对应的目标通道为最大传输带宽大于或等于应用视频流所需的传输带宽的通道。应用视频流所需的传输带宽是视频采集装置依据应用视频流的分辨率信息确定的,每条应用视频流可以被放入传输带宽大于或等于该应用视频流所需的传输带宽的目标通道中,避免了视频采集装置将分辨率较大的应用视频流放入带宽信息较小的通道中,进而降低了通道的传输带宽不足所导致的传输时延。As an optional implementation manner, the above S240 specifically includes: the video collection device 210 sets a plurality of application video streams in respective corresponding target channels. The target channel corresponding to the application video stream is a channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream. The transmission bandwidth required by the application video stream is determined by the video capture device according to the resolution information of the application video stream. Each application video stream can be put into the target channel whose transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream. , which avoids the video capture device from putting the application video stream with larger resolution into the channel with smaller bandwidth information, thereby reducing the transmission delay caused by insufficient transmission bandwidth of the channel.
其中,通道的传输带宽指示在单位时间内,通道可以传输的视频流的最大数据量。这里以在单位时间内视频流需要传输N帧分辨率相同的图像为例,最大数据量=单帧图像的分辨率×N,N为正整数。上述的应用视频流所需的传输带宽指示在单位时间内,应用视频流中所有图像帧所需传输的数据量。The transmission bandwidth of the channel indicates the maximum data volume of the video stream that can be transmitted by the channel in a unit time. Here, it is taken as an example that the video stream needs to transmit N frames of images with the same resolution in a unit time, the maximum data amount=the resolution of a single frame of image×N, where N is a positive integer. The above-mentioned transmission bandwidth required by the application video stream indicates the amount of data required to be transmitted by all image frames in the application video stream in a unit time.
在一种可选的实现方式中,通道信息还可以包括每条应用视频流的分辨率信息。例如,图4所示出的应用视频流1~4的分辨率信息以及通道1~6的带宽信息如表1所示。In an optional implementation manner, the channel information may further include resolution information of each application video stream. For example, the resolution information of the application video streams 1 to 4 and the bandwidth information of the channels 1 to 6 shown in FIG. 4 are shown in Table 1.
表1Table 1
通道aisle 带宽bandwidth 视频流video stream 分辨率Resolution
通道1channel 1 3840*5403840*540 应用视频流1Application Video Streaming 1 1080P(1920*1080)1080P(1920*1080)
通道2channel 2 3840*5403840*540 应用视频流2App Video Streaming 2 1600*12001600*1200
通道3channel 3 3840*2403840*240 应用视频流3Application Video Streaming 3 720P(1280*720)720P(1280*720)
通道4Channel 4 3840*2403840*240 应用视频流4Application Video Streaming 4 540P(960*540)540P(960*540)
通道5Channel 5 3840*2403840*240      
通道6Channel 6 3840*2403840*240      
这里以不同应用视频流在单位时间内传输的图像帧数相同为例,传输带宽的比较是以分辨率为例进行说明的,通道1和通道2的最大传输带宽为3840*540,该最大传输带宽指示通道1和通道2可以传输的最大数据量是分辨率为1080P(1920*1080)的视频流。如图4所示,由于应用视频流1(分辨率为1080P)和应用视频流2(分辨率为1600*1200)所需的传输带宽小于或等于通道1和通道2的最大传输带宽,应用视频流1可以放入通道1中,应用视频流2可以放入通道2中。Here, the same number of image frames transmitted per unit time of different application video streams is taken as an example. The comparison of transmission bandwidth is explained by taking the resolution as an example. The maximum transmission bandwidth of channel 1 and channel 2 is 3840*540. The bandwidth indicates that the maximum amount of data that can be transmitted by channel 1 and channel 2 is a video stream with a resolution of 1080P (1920*1080). As shown in Figure 4, since the transmission bandwidth required by application video stream 1 (with a resolution of 1080P) and application video stream 2 (with a resolution of 1600*1200) is less than or equal to the maximum transmission bandwidth of channel 1 and channel 2, the application video Stream 1 can be placed in channel 1, and application video stream 2 can be placed in channel 2.
通道3~通道6的最大传输带宽为3840*240,该最大传输带宽指示通道3~通道6可以传输的最大数据量是分辨率为720P(1280*720)的视频流。如图4所示,由于应用视频流3(分辨率为720P)和应用视频流4(分辨率为540P)所需的传输带宽小于或等于通道3~通道6的最大传输带宽,应用视频流3可以放入通道3中,应用视频流4可以放入通道4中。The maximum transmission bandwidth of channels 3 to 6 is 3840*240, which indicates that the maximum amount of data that can be transmitted by channels 3 to 6 is a video stream with a resolution of 720P (1280*720). As shown in Figure 4, since the transmission bandwidth required by application video stream 3 (720P resolution) and application video stream 4 (540P resolution) is less than or equal to the maximum transmission bandwidth of channel 3 to channel 6, application video stream 3 It can be put into channel 3, and the application video stream 4 can be put into channel 4.
在第一种可能的示例中,视频采集装置210将多条应用视频流分别设置于各自对应的目标通道中具体包括:视频采集装置210依据应用视频流的分辨率信息确定该应用视频流所需的传输带宽,并将该应用视频流放入传输带宽大于或等于该应用视频流所需的传输带宽的目标通道中。视频采集装置可以基于应用视频流的分辨率信息确定目标通道,避免将分辨率较大的应用视频流放入带宽信息较小的通道中,降低了通道的传输带宽不足所导致的传输时延。In a first possible example, the video capture device 210 setting the multiple application video streams in the respective corresponding target channels respectively includes: the video capture device 210 determines, according to the resolution information of the application video stream, the requirements of the application video stream. and put the application video stream into the target channel whose transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream. The video capture device can determine the target channel based on the resolution information of the application video stream, avoid putting the application video stream with larger resolution into the channel with smaller bandwidth information, and reduce the transmission delay caused by insufficient transmission bandwidth of the channel.
在第二种可能的示例中,多条应用视频流包括第一应用视频流和第二应用视频流,视频采集装置210将多条应用视频流分别设置于各自对应的目标通道中具体包括:视频采集装置依据第一应用视频流的分辨率信息确定第一传输带宽,视频采集装置依据第二应用视频流的分辨率信息确定第二传输带宽,进而,视频采集装置将第一应用视频流和第二应用视频流设置于目标通道中,其中,第一传输带宽和第二传输带宽的和小于或等于目标通道的最大传输带宽。结合表1和图4所示出的内容,假设第一应用视频流可以是应用视频流3,第二应用视频流可以是应用视频流4,目标通道可以是通道1,由于应用视频流3和应用视频流4所需的总传输带宽(1280*720+960*540=3840*375)小于通道1的最大传输带宽(3840*540),视频采集装置210可以将应用视频流3和应用视频流4放入通道1中。视频采集装置可以将多条应用视频流放入同一个目标通道中,且该多条应用视频流所需的总传输带宽小于或等于目标通道的最大传输带宽,可以有效利用第二线路中各通道的传输能力,避免第二线路的传输能力浪费。In a second possible example, the multiple application video streams include a first application video stream and a second application video stream, and the video capture device 210 sets the multiple application video streams in respective corresponding target channels, and specifically includes: video The acquisition device determines the first transmission bandwidth according to the resolution information of the first application video stream, the video acquisition device determines the second transmission bandwidth according to the resolution information of the second application video stream, and further, the video acquisition device compares the first application video stream with the second transmission bandwidth. The second application video stream is set in the target channel, wherein the sum of the first transmission bandwidth and the second transmission bandwidth is less than or equal to the maximum transmission bandwidth of the target channel. Combining the contents shown in Table 1 and Figure 4, it is assumed that the first application video stream may be application video stream 3, the second application video stream may be application video stream 4, and the target channel may be channel 1. Since application video stream 3 and The total transmission bandwidth (1280*720+960*540=3840*375) required by the application video stream 4 is less than the maximum transmission bandwidth (3840*540) of the channel 1, and the video capture device 210 can combine the application video stream 3 and the application video stream 4 into channel 1. The video capture device can put multiple application video streams into the same target channel, and the total transmission bandwidth required by the multiple application video streams is less than or equal to the maximum transmission bandwidth of the target channel, which can effectively utilize each channel in the second line. The transmission capacity of the second line is avoided to avoid waste of the transmission capacity of the second line.
视频采集装置依据数据区域中各个通道的带宽信息,以及通道信息中各个应用视频流的分辨率信息,将最大传输带宽大于或等于应用视频流所需的传输带宽的通道作为应用视频流的目标通道,进而,视频采集装置将应用视频流设置于应用视频流对应的目标通道中,实现了基于通道的传输能力传输应用视频流。亦即是说,每条应用视频流可以被放入传输带宽大于或等于该应用视频流所需的传输带宽的目标通道中,避 免了视频采集装置将分辨率较大的应用视频流放入带宽信息较小的通道中,进而降低了通道的传输带宽不足所导致的传输时延。According to the bandwidth information of each channel in the data area and the resolution information of each application video stream in the channel information, the video capture device takes the channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream as the target channel of the application video stream , and further, the video capture device sets the application video stream in the target channel corresponding to the application video stream, so as to realize the transmission of the application video stream based on the transmission capability of the channel. That is to say, each application video stream can be put into the target channel whose transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream, preventing the video capture device from putting the application video stream with larger resolution into the bandwidth. In the channel with smaller information, the transmission delay caused by insufficient transmission bandwidth of the channel is reduced.
本申请所提供的通道信息可以依据视频采集装置和视频显示装置的应用场景进行调整,视频采集装置和视频显示装置的应用场景不同,上述的通道信息也可以不同,表1只是本申请实施例为了说明数据流传输方法所提供的示例,不应理解为对本申请的限定。例如,上述的通道信息中的通道数量以及带宽信息可以是依据视频采集装置和视频显示装置的应用场景所预先配置的,如在视频通话场景中,数据区域可以包括2个通道,该2个通道分别用于传输预览流和拍照流。又如,上述的通道信息中的通道数量以及带宽信息可以是依据应用视频流的数量和分辨率信息动态生成的。The channel information provided in this application can be adjusted according to the application scenarios of the video capture device and the video display device. The application scenarios of the video capture device and the video display device are different, and the above channel information can also be different. The examples provided to describe the data streaming method should not be construed as a limitation on the present application. For example, the number of channels and bandwidth information in the above channel information may be pre-configured according to the application scenarios of the video capture device and the video display device. For example, in a video call scenario, the data area may include two channels, and the two channels They are used to transmit preview stream and photo stream respectively. For another example, the number of channels and the bandwidth information in the above channel information may be dynamically generated according to the number and resolution information of the application video streams.
S250,视频采集装置通过第二线路向视频显示装置发送待传输数据流。S250, the video collection device sends the data stream to be transmitted to the video display device through the second line.
其中,该待传输数据流所需的传输带宽小于或等于第二线路的最大传输带宽。如图4所示,应用视频流1~应用视频流4所需的总传输带宽小于第二线路的最大传输带宽。Wherein, the transmission bandwidth required by the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line. As shown in FIG. 4 , the total transmission bandwidth required by the application video stream 1 to the application video stream 4 is smaller than the maximum transmission bandwidth of the second line.
该第二线路的最大传输带宽指示在单位时间内,第二线路可以传输的视频流的最大数据量;上述的待传输数据流所需的传输带宽指示在单位时间内,待传输数据流中所有应用视频流和描述信息所需传输的数据量,该描述信息可以用于描述应用视频流的分辨率信息、曝光信息、白平衡信息或对焦信息等,如该描述信息可以包括上述的通道信息。The maximum transmission bandwidth of the second line indicates the maximum data volume of the video stream that can be transmitted by the second line in a unit time; the above-mentioned transmission bandwidth required for the data stream to be transmitted indicates that all the data streams in the data stream to be transmitted in a unit time The amount of data to be transmitted by the application video stream and description information, which can be used to describe the resolution information, exposure information, white balance information or focus information of the application video stream, for example, the description information can include the above channel information.
在一种可能的示例中,该第二线路可以是HDMI,也可以是VGA(video graphics array)、数字视频接口(digital visual interface,DVI)线或显示接口(display port,DP)线等。In a possible example, the second line may be HDMI, or may be a VGA (video graphics array), a digital visual interface (digital visual interface, DVI) line, or a display port (display port, DP) line, or the like.
例如,若第二线路为HDMI,则应用视频流的格式可以为YUV格式,其中,Y信息指示应用视频流中每一帧图像的明亮度(Luminance),U和V信息指示应用视频流中每一帧图像的色彩信息(Chrominance)。For example, if the second line is HDMI, the format of the application video stream may be the YUV format, wherein the Y information indicates the brightness (Luminance) of each frame image in the application video stream, and the U and V information indicates each frame in the application video stream. Color information (Chrominance) of a frame of image.
由于YUV格式的视频流是无损视频流,而现有技术中USB的传输带宽较小,导致YUV格式的传输时延较高。本申请实施例提供的数据流传输方法,第二线路为HDMI线,且HDMI线的传输带宽大于USB的传输带宽,可以降低视频采集装置向视频显示装置发送待传输数据流的传输时延。Since the video stream of the YUV format is a lossless video stream, and the transmission bandwidth of the USB in the prior art is small, the transmission delay of the YUV format is relatively high. In the data stream transmission method provided by the embodiment of the present application, the second line is an HDMI line, and the transmission bandwidth of the HDMI line is larger than that of the USB, which can reduce the transmission delay of the video capture device sending the data stream to be transmitted to the video display device.
此外,现有技术中相机利用USB传输多条应用视频流的过程中,相机会对该多条应用视频流进行编码,从而压缩该多条应用视频流得到待传输数据流,该待传输数据流包括了编码信息,该编码信息指示相机对应用视频流的编码方式;由于待传输数据流中的视频流是经过压缩的,这会导致待传输数据流所包括的视频流相较于上述的应用视频流具有损失,进而,在电视播放的视频流与上述的应用视频流并不完全一致,降低了视频流的播放效果。而在本申请实施例提供的数据流传输方法中,在第二线路为HDMI线,应用视频流的格式为YUV格式的情况下,视频采集装置无需对应用视频流进行编码,也就不会产生编码信息,这减少了待传输数据流中用于描述应用视频流的格式的字段,降低待传输数据流的冗余,减小视频采集装置利用HDMI向视频显示装置发送待传输数据流的数据量,进而,提高传输待传输数据流的速度,降低待传输数据流的传输时延。另外,由于本申请实施例中视频采集装置可以利用专属的第二 线路传输YUV格式的数据流,视频显示装置所播放的视频流和视频采集装置生成的应用视频流之间不存在差异,提高了视频显示装置播放视频流的效果,进而提升了用户观看视频的体验。In addition, in the process of transmitting multiple application video streams by the camera in the prior art, the camera will encode the multiple application video streams, thereby compressing the multiple application video streams to obtain the data stream to be transmitted. Including encoding information, the encoding information indicates the encoding method of the application video stream by the camera; since the video stream in the data stream to be transmitted is compressed, this will cause the video stream included in the data stream to be transmitted. The video stream has losses, and further, the video stream played on the TV is not completely consistent with the above-mentioned application video stream, which reduces the playback effect of the video stream. However, in the data stream transmission method provided by the embodiment of the present application, when the second line is an HDMI cable and the format of the application video stream is the YUV format, the video capture device does not need to encode the application video stream, and thus does not generate Encoding information, which reduces the fields used to describe the format of the application video stream in the data stream to be transmitted, reduces the redundancy of the data stream to be transmitted, and reduces the amount of data that the video capture device sends to the video display device using HDMI to the data stream to be transmitted , and further, the transmission speed of the to-be-transmitted data stream is increased, and the transmission delay of the to-be-transmitted data stream is reduced. In addition, since the video capture device in the embodiment of the present application can use the dedicated second line to transmit the data stream in the YUV format, there is no difference between the video stream played by the video display device and the application video stream generated by the video capture device, which improves the The video display device plays the effect of the video stream, thereby improving the user's experience of watching the video.
值得注意的是,应用视频流的格式为YUV格式仅是本申请实施例提供的一种可能的示例,在一些可能的示例中,应用视频流的格式可以为无损的RGB(red green blue)格式,应用视频流的格式还可以为有损的视频格式,如音视频交错格式(audio video interleaved,AVI)或视频文件格式(real audio variable bit,RMVB)等。It should be noted that the format of the application video stream is YUV format is only a possible example provided by the embodiments of the present application, and in some possible examples, the format of the application video stream may be lossless RGB (red green blue) format , the format of the application video stream may also be a lossy video format, such as an audio-video interleaved format (audio video interleaved, AVI) or a video file format (real audio variable bit, RMVB).
作为一种可选的实现方式,通道信息可以设置于待传输数据流的头部。如图4所示,通道信息(inner metadata)可以设置于信息区1中。As an optional implementation manner, the channel information may be set in the header of the data stream to be transmitted. As shown in Figure 4, channel information (inner metadata) can be set in the information area 1.
视频采集装置将通道信息设置于待传输数据流的头部,并通过第二线路向视频显示装置发送该待传输数据流。在现有技术中,视频显示装置仅能依据每条应用视频流的流信息对待传输数据流进行拆分,这需要进行大量的计算资源,导致视频显示装置播放视频流的出现卡顿,而本方案中,在视频显示装置接收到该待传输数据流之后,由于通道信息在待传输数据流的头部,视频显示装置可以优先获取到待传输数据流中的通道信息,并基于该通道信息确定待传输数据流中各个通道以及应用视频流的信息,提高了视频显示装置解析待传输数据流的速度。The video acquisition device sets the channel information in the header of the data stream to be transmitted, and sends the data stream to be transmitted to the video display device through the second line. In the prior art, the video display device can only split the data stream to be transmitted according to the stream information of each application video stream, which requires a lot of computing resources, resulting in the video display device being stuck in playing the video stream. In the scheme, after the video display device receives the data stream to be transmitted, since the channel information is in the header of the data stream to be transmitted, the video display device can preferentially obtain the channel information in the data stream to be transmitted, and determine based on the channel information. The information of each channel in the data stream to be transmitted and the application video stream improves the speed of parsing the data stream to be transmitted by the video display device.
作为另一种可选的实现方式,待传输数据流还可以包括流信息,该流信息指示待传输数据流中每条应用视频流的属性信息,该属性信息包括应用视频流的曝光信息、对焦信息或白平衡信息中的至少一种。示例的,该属性信息可以是视频采集装置利用3A(3-automatic)数字成像技术得到的,该属性信息可以包括自动曝光(automatic exposure,AE)信息、自动对焦(automatic focus,AF)信息和自动白平衡(automatic white balance,AWB)信息。关于3A数字成像技术的相关内容可以参考现有技术的相关阐述,这里不再赘述。As another optional implementation manner, the data stream to be transmitted may further include stream information, the stream information indicates attribute information of each application video stream in the to-be-transmitted data stream, and the attribute information includes exposure information, focus information of the application video stream at least one of information or white balance information. Illustratively, the attribute information may be obtained by a video capture device using 3A (3-automatic) digital imaging technology, and the attribute information may include automatic exposure (AE) information, automatic focus (AF) information and automatic White balance (automatic white balance, AWB) information. For the relevant content of the 3A digital imaging technology, reference may be made to the relevant elaboration in the prior art, which will not be repeated here.
在一些可能的示例中,如图4所示,流信息可以设置于信息区2。需要说明的是,图4所示出的信息区2和数据区域仅是本申请为了说明上述实施例而给出的示例,在一些可能的示例中,信息区2还可以设置在数据区域之后,也可以设置在任意2个通道之间。In some possible examples, as shown in FIG. 4 , the flow information may be provided in the information area 2 . It should be noted that the information area 2 and the data area shown in FIG. 4 are only examples given in this application to illustrate the above-mentioned embodiments. In some possible examples, the information area 2 may also be set after the data area, It can also be set between any 2 channels.
视频采集装置将流信息设置于待传输数据流中,并通过第二线路向视频显示装置发送该待传输数据流。在视频显示装置接收到该待传输数据流之后,视频显示装置可以依据待传输数据流中通道信息,确定待传输数据流中各个通道的数量和宽高,以及应用视频流的数量、位置以及分辨率,进而,视频显示装置还可以依据待传输数据流中的流信息确定应用视频流的属性信息,从而实现对不同类型的应用视频流进行识别,提高了视频显示装置解析待传输数据流的准确性。The video capture device sets the stream information in the data stream to be transmitted, and sends the data stream to be transmitted to the video display device through the second line. After the video display device receives the data stream to be transmitted, the video display device can determine the number, width and height of each channel in the data stream to be transmitted, and the number, location and resolution of the application video stream according to the channel information in the data stream to be transmitted. Further, the video display device can also determine the attribute information of the application video stream according to the stream information in the data stream to be transmitted, thereby realizing the identification of different types of application video streams, and improving the accuracy of the video display device in parsing the data stream to be transmitted. sex.
在一种可能的实施例中,多条应用视频流可能并不相同,该多条应用视频流中可能存在大于上述通道的最大传输带宽的视频流,这会导致第二线路中的任一个通道都无法对该视频流进行传输。为了解决上述问题,本申请提供一种可能的实现方式,如图5所示,图5为本申请提供的另一种数据流传输方法的流程示意图,上述的S240具体包括S2401和S2402。In a possible embodiment, the multiple application video streams may be different, and there may be a video stream larger than the maximum transmission bandwidth of the above-mentioned channel in the multiple application video streams, which will cause any channel in the second line to exist. The video stream cannot be streamed. In order to solve the above problem, the present application provides a possible implementation manner, as shown in FIG. 5 , which is a schematic flowchart of another data stream transmission method provided by the present application. The above S240 specifically includes S2401 and S2402.
S2401,若第一应用视频流所需的传输带宽大于多条通道中任意一条通道所具有的 传输带宽,且小于或等于第二线路的最大传输带宽,则视频采集装置210将第一应用视频流作为第一待传输数据流。S2401, if the transmission bandwidth required by the first application video stream is greater than the transmission bandwidth possessed by any one of the multiple channels, and is less than or equal to the maximum transmission bandwidth of the second line, the video capture device 210 collects the first application video stream as the first data stream to be transmitted.
上述的第一应用视频流为多条应用视频流中的任意一条。示例的,结合图4和表1所示出的内容,若第一应用视频流的分辨率信息为2K(2560*1440),而通道1~通道6中的最大传输带宽为3840*540<2K,则视频采集装置210将该第一应用视频流作为第一待传输数据流。The above-mentioned first application video stream is any one of multiple application video streams. For example, in combination with the content shown in Figure 4 and Table 1, if the resolution information of the first application video stream is 2K (2560*1440), and the maximum transmission bandwidth in channels 1 to 6 is 3840*540<2K , the video capture device 210 regards the first application video stream as the first data stream to be transmitted.
S2402,若剩余数据流所需的传输带宽与多条通道具有的传输带宽匹配,则视频采集装置210拼接剩余数据流中的多条应用视频流得到第二待传输数据流。S2402 , if the transmission bandwidth required by the remaining data streams matches the transmission bandwidths of the multiple channels, the video capture device 210 splices multiple application video streams in the remaining data streams to obtain a second data stream to be transmitted.
该剩余数据流包括视频采集装置210根据原始视频流得到的多条应用视频流中,除第一应用视频流的其他应用视频流。关于第二待传输数据流的相关示例可以参考上述S240的相关阐述,这里不再赘述。The remaining data stream includes other application video streams except the first application video stream among the multiple application video streams obtained by the video collection device 210 according to the original video stream. For a related example of the second data stream to be transmitted, reference may be made to the related description of the above S240, and details are not repeated here.
请继续参见图5,上述的S250具体包括S2501。Please continue to refer to FIG. 5 , the above S250 specifically includes S2501.
S2501,视频采集装置210通过第二线路向视频显示装置220交替发送第一待传输数据流和第二待传输数据流。S2501, the video capture device 210 alternately sends the first data stream to be transmitted and the second data stream to be transmitted to the video display device 220 through the second line.
示例的,图6为本申请提供的一种数据流交替传输的示意图,这里以第二线路是HDMI线,该HDMI线的最大传输带宽可以支持4K@60(分辨率为4096×2160,帧率为60帧/秒)的视频流进行传输为例,第一应用视频流是4K@30(分辨率为4096×2160,帧率为30帧/秒),剩余数据流包括4条应用视频流(如表1所示出的应用视频流1~4,其帧率均为30帧/秒),则视频采集装置210和视频显示装置220可以以帧为单位,交替传输第一待传输数据流和第二待传输数据流。例如,视频采集装置210先发送第一待传输数据流(4K@30视频流)中的第一帧图像,再发送第二待传输数据流中每条应用视频流的第一帧图像,接下来视频采集装置210发送第一待传输数据流(4K@30视频流)中的第二帧图像,再发送第二待传输数据流中每条应用视频流的第二帧图像,直至第一待传输数据流和第二待传输数据流中的每帧图像均完成传输。Exemplarily, FIG. 6 is a schematic diagram of alternate transmission of data streams provided by the application, where the second line is an HDMI line, and the maximum transmission bandwidth of the HDMI line can support 4K@60 (resolution 4096×2160, frame rate For example, the first application video stream is 4K@30 (resolution is 4096×2160, and the frame rate is 30 frames/second), and the remaining data streams include 4 application video streams ( For application video streams 1 to 4 shown in Table 1, the frame rates of which are all 30 frames per second), the video capture device 210 and the video display device 220 may alternately transmit the first data stream to be transmitted and the video display device 220 in units of frames. The second data stream to be transmitted. For example, the video capture device 210 first sends the first frame of image in the first data stream to be transmitted (4K@30 video stream), and then sends the first frame of image of each application video stream in the second data stream to be transmitted, and then The video capture device 210 sends the second frame image in the first data stream to be transmitted (4K@30 video stream), and then sends the second frame image of each application video stream in the second data stream to be transmitted, until the first frame image to be transmitted The transmission of each frame of image in the data stream and the second data stream to be transmitted is completed.
在现有技术中,相机会将分辨率较大的应用视频流传输至电视之后,才会向电视发送其他应用视频流,导致其他应用视频流的传输时延较高,使用本申请实施例提供的数据流传输方法,视频采集装置可以将第一应用视频流作为第一待传输数据流,该第一应用视频流为多条应用视频流中所需的传输带宽大于多条通道中任意一条通道所具有的传输带宽的应用视频流,并将与多条通道具有的传输带宽匹配的剩余数据流作为第二待传输数据流,进而,视频采集装置通过第二线路交替发送第一待传输数据流和第二待传输数据流,实现了将分辨率较大的单条应用视频流与分辨率较小的多条应用视频流进行分时交替传输。换句话说,使用本申请实施例提供的数据流传输方法,视频采集装置无需在第一待传输数据流的传输结束后,才向视频显示装置发送第二待传输数据流,避免了现有技术中仅能将视频流单独传输(将一条视频流传输完成后,再传输另一条视频流)的弊端,降低了视频流的传输时延。In the prior art, the camera transmits the application video stream with a larger resolution to the TV, and then sends other application video streams to the TV, resulting in a high transmission delay of the other application video streams. According to the data stream transmission method, the video capture device can use the first application video stream as the first data stream to be transmitted, and the first application video stream is a plurality of application video streams. The required transmission bandwidth is greater than any one of the multiple channels. The application video stream of the transmission bandwidth, and the remaining data stream that matches the transmission bandwidth of the multiple channels is used as the second data stream to be transmitted, and then the video capture device alternately sends the first data stream to be transmitted through the second line. and the second data stream to be transmitted, so as to realize the time-sharing and alternate transmission of a single application video stream with a larger resolution and multiple application video streams with a smaller resolution. In other words, using the data stream transmission method provided by the embodiment of the present application, the video capture device does not need to send the second data stream to be transmitted to the video display device after the transmission of the first data stream to be transmitted is completed, avoiding the need for the prior art The disadvantage of only being able to transmit the video stream separately (after the transmission of one video stream is completed, and then transmit the other video stream), reduces the transmission delay of the video stream.
因此,视频采集装置210和视频显示装置220可以基于第二线路的最大传输带宽以及数据区域中每条通道的带宽信息,对该多条应用视频流进行进行分区传输或包括通道分区的分时交替传输,进而,降低视频流的传输时延,提高视频流的传输效率。该分区传输是指将多条应用视频流进行拼接得到待传输数据流,进而,视频采集装置 向视频显示装置发送该待传输数据流,关于分区传输的内容可以参考上述S240和S250的相关阐述,这里不予赘述。上述包括通道分区的分时交替传输可以参考图5和图6的相关阐述,这里不予赘述。Therefore, the video capture device 210 and the video display device 220 can perform partition transmission on the multiple application video streams or include time-sharing alternation of channel partitions based on the maximum transmission bandwidth of the second line and the bandwidth information of each channel in the data area. transmission, and further, reduce the transmission delay of the video stream and improve the transmission efficiency of the video stream. The partition transmission refers to splicing a plurality of application video streams to obtain the data stream to be transmitted, and then the video capture device sends the data stream to be transmitted to the video display device. For the content of the partition transmission, please refer to the relevant elaborations of the above S240 and S250, I won't go into details here. For the above-mentioned time-sharing alternate transmission including channel partitions, reference may be made to the related descriptions in FIG. 5 and FIG. 6 , and details are not repeated here.
在本申请的上述实施例中,分时交替传输是以视频采集装置将2个待传输数据流发送到1个视频显示装置为例进行说明的,在一些可能的实施例中,上述2个待传输数据流还可以分别发送到不同的视频显示装置。例如,视频采集装置将第一待传输数据流发送到第一视频显示装置,第一视频显示装置播放第一应用视频流;视频采集装置将第二待传输数据流发送到第二视频显示装置,第二视频显示装置播放第二待传输数据流所包括的应用视频流。In the above-mentioned embodiments of the present application, the time-sharing alternate transmission is described by taking the video capture device sending two data streams to be transmitted to one video display device as an example. The transport data streams can also be sent separately to different video display devices. For example, the video capture device sends the first data stream to be transmitted to the first video display device, and the first video display device plays the first application video stream; the video capture device sends the second data stream to be transmitted to the second video display device, The second video display device plays the application video stream included in the second data stream to be transmitted.
在视频显示装置220接收到上述的待传输数据流之后,请继续参见图2,本申请实施例提供的数据流传输方法还可以包括S260。After the video display apparatus 220 receives the above-mentioned data stream to be transmitted, please continue to refer to FIG. 2 , the data stream transmission method provided by this embodiment of the present application may further include S260.
S260,视频显示装置220处理待传输数据流并播放至少一条应用视频流。S260, the video display device 220 processes the data stream to be transmitted and plays at least one application video stream.
上述的S260具体包括:视频显示装置220依据通道信息,拆分待传输数据流得到所有的应用视频流;进而,视频显示装置220选择所有的应用视频流中的至少一条应用视频流进行播放。The above S260 specifically includes: the video display device 220 splits the data stream to be transmitted to obtain all the application video streams according to the channel information; further, the video display device 220 selects at least one application video stream among all the application video streams to play.
在一种可能的示例中,视频显示装置220播放的应用视频流是视频显示装置220依据通道信息将待传输数据流拆分后得到的。In a possible example, the application video stream played by the video display device 220 is obtained after the video display device 220 splits the data stream to be transmitted according to the channel information.
在另一种可能的示例中,视频显示装置220播放的应用视频流是:视频显示装置220依据通道信息将待传输数据流拆分后,并对拆分得到的应用视频流进行AI处理后得到的AI数据流,该AI处理可以是,但不限于:目标检测、人脸识别、物体分类、颜色识别、物体计数等。例如,视频显示装置220包括处理器,该处理器可以用于执行上述AI处理所对应的操作,并将操作的结果显示在视频显示装置220的显示屏上。In another possible example, the application video stream played by the video display device 220 is: the video display device 220 splits the data stream to be transmitted according to the channel information, and performs AI processing on the split application video stream to obtain The AI data flow, the AI processing can be, but is not limited to: target detection, face recognition, object classification, color recognition, object counting, etc. For example, the video display device 220 includes a processor, and the processor can be configured to perform operations corresponding to the above AI processing, and display the results of the operations on the display screen of the video display device 220 .
由于待传输数据流包括通道信息,该通道信息包括第二线路中通道的数量,以及每条通道的带宽信息,通道信息还包括待传输数据流中的应用视频流的数量,以及每条应用视频流所处的通道和分辨率信息,在视频显示装置220获取到该通道信息后,可以依据每条应用视频流的分辨率信息为该应用视频流的播放分配计算资源,这可以提高视频显示装置220的计算资源的利用率,避免视频显示装置220出现卡顿。此外,由于在视频显示装置220拆分待传输数据流的过程中,视频显示装置220不仅可以依据每条应用视频流所处的通道确定应用视频流的位置,还可以利用通道信息中包括应用视频流的分辨率信息确定应用视频流的宽高信息,提高了视频显示装置解析待传输数据流的准确性。Since the data stream to be transmitted includes channel information, the channel information includes the number of channels in the second line and the bandwidth information of each channel, the channel information also includes the number of application video streams in the data stream to be transmitted, and each application video stream The channel and resolution information of the stream. After the video display device 220 obtains the channel information, it can allocate computing resources for the playback of the application video stream according to the resolution information of each application video stream, which can improve the performance of the video display device. The utilization rate of the computing resources of the video display device 220 is avoided, and the video display device 220 is prevented from being stuck. In addition, in the process of splitting the data stream to be transmitted by the video display device 220, the video display device 220 can not only determine the position of the application video stream according to the channel where each application video stream is located, but also can use the channel information to include the application video stream. The resolution information of the stream determines the width and height information of the application video stream, which improves the accuracy of parsing the data stream to be transmitted by the video display device.
由于待传输数据流包括多条应用视频流,每条应用视频流可以是不同类型的视频流,在视频显示装置接收到该待传输数据流之后,视频显示装置可以对待传输数据流进行处理和播放,用户可以通过视频显示装置查看根据原始视频流的多种视频信息,如用户可以查看视频通话中的预览流和拍照流,并在视频通话的过程中查看根据原始视频流得到的人脸脸型识别信息(如将人脸的脸型进行分类),提高了用户的观看体验。Since the data stream to be transmitted includes multiple application video streams, each application video stream can be a different type of video stream. After the video display device receives the data stream to be transmitted, the video display device can process and play the data stream to be transmitted. , the user can view various video information according to the original video stream through the video display device, for example, the user can view the preview stream and the photo stream in the video call, and view the face recognition obtained according to the original video stream during the video call. Information (such as classifying the face shape of a human face) improves the user's viewing experience.
可以理解的是,为了实现上述实施例中功能,视频采集装置和视频显示装置包括了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到, 结合本申请中所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件相结合的形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用场景和设计约束条件。It can be understood that, in order to realize the functions in the above embodiments, the video capture device and the video display device include corresponding hardware structures and/or software modules for performing each function. Those skilled in the art should easily realize that the units and method steps of each example described in conjunction with the embodiments disclosed in the present application can be implemented in hardware or in the form of a combination of hardware and computer software. Whether a function is performed by hardware or computer software-driven hardware depends on the specific application scenarios and design constraints of the technical solution.
上文中结合图1至图6,详细描述了根据本实施例所提供的数据流传输方法,下面将结合图7和图8,描述根据本实施例所提供的视频采集装置、视频显示装置和终端设备。The data stream transmission method provided according to this embodiment is described in detail above with reference to FIG. 1 to FIG. 6 , and the video capture device, video display device, and terminal provided according to this embodiment will be described below with reference to FIG. 7 and FIG. 8 . equipment.
图7为本申请提供的一种数据流传输系统的示意图。该数据流传输系统700可以用于实现上述方法实施例中视频采集装置210和视频显示装置220的功能,因此也能实现上述方法实施例所具备的有益效果。在本实施例中,该数据流传输系统700包括视频采集装置710和视频显示装置720。视频采集装置710和视频显示装置720分别通过第一线路和第二线路进行连接,第一线路用于传输视频采集装置710和视频显示装置720之间的控制指令,第二线路用于传输视频采集装置710向视频显示装置720发送的待传输数据流。FIG. 7 is a schematic diagram of a data stream transmission system provided by the present application. The data stream transmission system 700 can be used to implement the functions of the video capture device 210 and the video display device 220 in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments. In this embodiment, the data stream transmission system 700 includes a video capture device 710 and a video display device 720 . The video capture device 710 and the video display device 720 are respectively connected through a first line and a second line, the first line is used to transmit the control instructions between the video capture device 710 and the video display device 720, and the second line is used to transmit the video capture The data stream to be transmitted sent by the device 710 to the video display device 720 .
下面结合图7对数据流传输系统700的结构和功能进行介绍,视频采集装置710可以实现图2、图5和图6所示出的视频采集装置210的功能,视频显示装置720可以实现图2、图5和图6所示出的视频显示装置220的功能。应理解,本实施例仅对视频采集装置710和视频显示装置720的结构和功能模块进行示例性划分,本申请并不对其具体划分做任何限定。The structure and function of the data stream transmission system 700 will be introduced below with reference to FIG. 7. The video capture device 710 can implement the functions of the video capture device 210 shown in FIG. 2, FIG. 5 and FIG. , the functions of the video display device 220 shown in FIGS. 5 and 6 . It should be understood that this embodiment only exemplarily divides the structures and functional modules of the video capture device 710 and the video display device 720, and the present application does not make any specific divisions.
如图7所示,视频采集装置710包括第一收发单元711、第一处理单元712、拼接单元713和第一存储单元714,上述单元可以用于实现上述图2、图5和图6所示出的视频采集装置210执行的各个操作步骤对应的方法。As shown in FIG. 7 , the video capture device 710 includes a first transceiver unit 711 , a first processing unit 712 , a splicing unit 713 and a first storage unit 714 , and the above-mentioned units can be used to realize the above-mentioned ones shown in FIGS. 2 , 5 and 6 . methods corresponding to the respective operation steps performed by the video capture device 210.
当视频采集装置710用于实现图2所示的方法实施例中视频采集装置210的功能时,第一收发单元711用于执行S250,第一处理单元712用于执行S230,拼接单元713用于执行S240。When the video capture device 710 is used to implement the function of the video capture device 210 in the method embodiment shown in FIG. 2 , the first transceiver unit 711 is configured to execute S250, the first processing unit 712 is configured to execute S230, and the splicing unit 713 is configured to execute S230. Execute S240.
当视频采集装置710用于实现图5所示的方法实施例中视频采集装置210的功能时,第一收发单元711用于执行S2501,第一处理单元712用于执行S230,拼接单元713用于执行S2401和S2402。When the video capture device 710 is used to implement the function of the video capture device 210 in the method embodiment shown in FIG. 5 , the first transceiver unit 711 is configured to execute S2501, the first processing unit 712 is configured to execute S230, and the splicing unit 713 is configured to execute S230. S2401 and S2402 are executed.
第一存储单元714可以用于存储上述步骤中生成的多条应用视频流以及待传输数据流等信息。The first storage unit 714 may be configured to store information such as multiple application video streams and data streams to be transmitted generated in the above steps.
如图7所示,视频显示装置720包括第二收发单元721、第二处理单元722、显示单元723和第二存储单元724,上述单元可以用于实现上述图2、图5和图6所示出的视频显示装置220执行的各个操作步骤对应的方法。As shown in FIG. 7 , the video display device 720 includes a second transceiver unit 721 , a second processing unit 722 , a display unit 723 and a second storage unit 724 , and the above-mentioned units can be used to implement the above-mentioned ones shown in FIGS. 2 , 5 and 6 . The methods corresponding to the respective operation steps performed by the video display device 220 are shown.
当视频显示装置720用于实现图2和图5所示的方法实施例中视频显示装置220的功能时,第二收发单元721用于执行S220,第二处理单元722用于执行S210,第二处理单元722和显示单元723还用于执行S260。When the video display device 720 is used to implement the functions of the video display device 220 in the method embodiments shown in FIG. 2 and FIG. 5 , the second transceiver unit 721 is used to perform S220, the second processing unit 722 is used to perform S210, and the second The processing unit 722 and the display unit 723 are also used to perform S260.
第二存储单元724可以用于存储上述步骤中生成的采集指令,多条应用视频流以及接收的待传输数据流等信息。The second storage unit 724 may be configured to store the collection instructions generated in the above steps, the multiple application video streams, the received data streams to be transmitted, and other information.
有关上述数据流传输系统700更详细的描述可以直接参考上述图2、图5和图6所示的实施例中相关描述直接得到,这里不加赘述。More detailed descriptions of the above-mentioned data stream transmission system 700 can be obtained directly by referring to the relevant descriptions in the embodiments shown in the above-mentioned FIG. 2 , FIG. 5 , and FIG. 6 , and details are not repeated here.
图8为本申请提供的一种终端设备的结构示意图,该终端设备800包括处理器810和通信接口820。处理器810和通信接口820之间相互耦合。可以理解的是,通信接口820可以为收发器或输入输出接口。可选的,终端设备800还可以包括存储器830,用于存储处理器810执行的指令或存储处理器810运行指令所需要的输入数据或存储处理器810运行指令后产生的数据。FIG. 8 is a schematic structural diagram of a terminal device provided by this application. The terminal device 800 includes a processor 810 and a communication interface 820 . The processor 810 and the communication interface 820 are coupled to each other. It is understood that the communication interface 820 can be a transceiver or an input-output interface. Optionally, the terminal device 800 may further include a memory 830 for storing instructions executed by the processor 810 or input data required by the processor 810 to run the instructions or data generated after the processor 810 runs the instructions.
当终端设备800用于实现图2和图5所示的方法时,处理器810、通信接口820和存储器830还可以协同实现视频采集装置210或视频显示装置220执行的数据流传输方法中的各个操作步骤。终端设备800还可以执行图7所示出的视频采集装置710和/或视频显示装置720的功能,此处不予赘述。When the terminal device 800 is used to implement the methods shown in FIG. 2 and FIG. 5 , the processor 810 , the communication interface 820 and the memory 830 may also cooperate to implement each of the data stream transmission methods performed by the video capture apparatus 210 or the video display apparatus 220 Steps. The terminal device 800 may also perform the functions of the video capture apparatus 710 and/or the video display apparatus 720 shown in FIG. 7 , which will not be described here.
本申请实施例中不限定上述通信接口820、处理器810以及存储器830之间的具体连接介质。本申请实施例在图8中以通信接口820、处理器810以及存储器830之间通过总线840连接,总线在图8中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the communication interface 820 , the processor 810 , and the memory 830 is not limited in the embodiments of the present application. In the embodiment of the present application, the communication interface 820, the processor 810, and the memory 830 are connected through a bus 840 in FIG. 8. The bus is represented by a thick line in FIG. 8, and the connection between other components is only for schematic illustration. , is not limited. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 8, but it does not mean that there is only one bus or one type of bus.
存储器830可用于存储软件程序及模块,如本申请实施例所提供的数据流传输方法对应的程序指令/模块,处理器810通过执行存储在存储器830内的软件程序及模块,从而执行各种功能应用以及数据处理。该通信接口820可用于与其他设备进行信令或数据的通信。在本申请中该终端设备800可以具有多个通信接口820。The memory 830 may be used to store software programs and modules, such as program instructions/modules corresponding to the data stream transmission method provided in the embodiments of the present application, and the processor 810 executes various functions by executing the software programs and modules stored in the memory 830. applications and data processing. The communication interface 820 can be used for signaling or data communication with other devices. In this application, the terminal device 800 may have a plurality of communication interfaces 820 .
在一种可能的示例中,上述的存储器830可以是但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。In a possible example, the above-mentioned memory 830 may be, but not limited to, a random access memory (Random Access Memory, RAM), a read only memory (Read Only Memory, ROM), a programmable read only memory (Programmable Read- Only Memory, PROM), Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc.
上述的处理器可以是一种集成电路芯片,具有信号处理能力。该处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。The above-mentioned processor may be an integrated circuit chip with signal processing capability. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM、闪存、ROM、PROM、EPROM、EEPROM、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于终端设备中。当然,处理器和存储介质也可以作为分立组件存在于终端设备中。The method steps in the embodiments of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM, flash memory, ROM, PROM, EPROM, EEPROM, registers, hard disk, removable hard disk, CD-ROM or any other form of storage medium well known in the art . An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may reside in an ASIC. Alternatively, the ASIC may be located in the end device. Of course, the processor and the storage medium may also exist in the terminal device as discrete components.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算 机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、网络设备、用户设备或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘(digital video disc,DVD);还可以是半导体介质,例如,固态硬盘(solid state drive,SSD)。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are executed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus. The computer program or instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website site, computer, A server or data center transmits by wire or wireless to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, or the like that integrates one or more available media. The usable medium can be a magnetic medium, such as a floppy disk, a hard disk, and a magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); it can also be a semiconductor medium, such as a solid state drive (solid state drive). , SSD).
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In the various embodiments of the present application, if there is no special description or logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referred to each other, and the technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系;在本申请的公式中,字符“/”,表示前后关联对象是一种“相除”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。a,b和c中的至少一项(个),也可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. In the text description of this application, the character "/" generally indicates that the related objects are a kind of "or" relationship; in the formula of this application, the character "/" indicates that the related objects are a kind of "division" Relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b or c, can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c" ", where a, b, c can be single or multiple. At least one (a) of a, b and c may also mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c" , where a, b, c can be single or multiple.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。It can be understood that, the various numbers and numbers involved in the embodiments of the present application are only for the convenience of description, and are not used to limit the scope of the embodiments of the present application. The size of the sequence numbers of the above processes does not imply the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic.

Claims (31)

  1. 一种数据流传输方法,其特征在于,所述方法由视频采集装置执行,所述视频采集装置分别通过第一线路和第二线路与视频显示装置连接,所述第一线路用于传输所述视频采集装置与所述视频显示装置的控制指令,所述方法包括:A data stream transmission method, characterized in that the method is performed by a video capture device, the video capture device is connected to a video display device through a first line and a second line respectively, and the first line is used to transmit the The video capture device and the control instruction of the video display device, the method includes:
    依据所述视频采集装置采集的原始视频流生成多条应用视频流;generating multiple application video streams according to the original video streams collected by the video capture device;
    拼接所述多条应用视频流得到待传输数据流,所述待传输数据流所需的传输带宽小于或等于所述第二线路的最大传输带宽;splicing the multiple application video streams to obtain a data stream to be transmitted, the transmission bandwidth required for the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line;
    通过所述第二线路向所述视频显示装置发送所述待传输数据流。The data stream to be transmitted is sent to the video display device through the second line.
  2. 根据权利要求1所述的方法,其特征在于,所述待传输数据流包括通道信息,所述通道信息包括所述第二线路中通道的数量,以及每条所述通道的带宽信息,所述通道信息还包括所述待传输数据流中的应用视频流的数量,以及每条所述应用视频流所处的通道。The method according to claim 1, wherein the data stream to be transmitted includes channel information, the channel information includes the number of channels in the second line, and bandwidth information of each channel, the channel information The channel information further includes the number of application video streams in the data stream to be transmitted, and the channel where each of the application video streams is located.
  3. 根据权利要求2所述的方法,其特征在于,所述通道信息包括每条所述应用视频流的分辨率信息。The method according to claim 2, wherein the channel information includes resolution information of each of the application video streams.
  4. 根据权利要求2或3所述的方法,其特征在于,所述通道信息设置于所述待传输数据流的头部。The method according to claim 2 or 3, wherein the channel information is set in the header of the data stream to be transmitted.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述多条应用视频流包括第一应用视频流和第二应用视频流,所述第一应用视频流的分辨率和所述第二应用视频流的分辨率不同。The method according to any one of claims 1-4, wherein the plurality of application video streams comprise a first application video stream and a second application video stream, and the resolution of the first application video stream and the The resolutions of the second application video streams are different.
  6. 根据权利要求5所述的方法,其特征在于,所述待传输数据流还包括数据区域,所述数据区域包括多条通道,所述拼接所述多条应用视频流得到待传输数据流,包括:The method according to claim 5, wherein the data stream to be transmitted further includes a data area, the data area includes multiple channels, and the splicing of the multiple application video streams to obtain the data stream to be transmitted includes :
    将所述多条应用视频流分别设置于各自对应的目标通道中;所述应用视频流对应的目标通道为最大传输带宽大于或等于所述应用视频流所需的传输带宽的通道。The multiple application video streams are respectively set in their corresponding target channels; the target channel corresponding to the application video stream is a channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream.
  7. 根据权利要求5所述的方法,其特征在于,所述待传输数据流包括数据区域,所述数据区域包括多条通道,所述拼接所述多条应用视频流得到待传输数据流,包括:The method according to claim 5, wherein the data stream to be transmitted includes a data area, the data area includes multiple channels, and the splicing of the multiple application video streams to obtain the data stream to be transmitted includes:
    若第一应用视频流所需的传输带宽大于所述多条通道中任意一条通道所具有的传输带宽,且小于或等于所述第二线路的最大传输带宽,则将所述第一应用视频流作为第一待传输数据流,所述第一应用视频流为所述多条应用视频流中的任意一条;If the transmission bandwidth required by the first application video stream is greater than the transmission bandwidth of any one of the multiple channels, and is less than or equal to the maximum transmission bandwidth of the second line, the first application video stream As the first data stream to be transmitted, the first application video stream is any one of the multiple application video streams;
    若剩余数据流所需的传输带宽与所述多条通道具有的传输带宽匹配,则拼接所述剩余数据流中的多条应用视频流得到第二待传输数据流,所述剩余数据流包括根据所述原始视频流得到的所述多条应用视频流中,除所述第一应用视频流的其他应用视频流;If the transmission bandwidth required by the remaining data streams matches the transmission bandwidths of the multiple channels, splicing multiple application video streams in the remaining data streams to obtain a second data stream to be transmitted, the remaining data streams including Among the multiple application video streams obtained from the original video stream, other application video streams except the first application video stream;
    所述通过所述第二线路向所述视频显示装置发送所述待传输数据流,包括:The sending the data stream to be transmitted to the video display device through the second line includes:
    通过所述第二线路向所述视频显示装置交替发送所述第一待传输数据流和所述第二待传输数据流。The first data stream to be transmitted and the second data stream to be transmitted are alternately sent to the video display device through the second line.
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述多条应用视频流包括预览流、拍照流、深度数据流、人脸流、目标检测流、监控流、飞行时间测距流或手势控制流中的至少一种。The method according to any one of claims 1-7, wherein the multiple application video streams include a preview stream, a photo stream, a depth data stream, a face stream, a target detection stream, a monitoring stream, and a time-of-flight stream. At least one of ranging flow or gesture control flow.
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述第一线路为通用串 行总线USB,所述第二线路为高清多媒体接口HDMI线。The method according to any one of claims 1-8, wherein the first line is a universal serial bus USB, and the second line is a high-definition multimedia interface HDMI line.
  10. 一种数据流传输方法,其特征在于,所述方法由视频显示装置执行,所述视频显示装置分别通过第一线路和第二线路与视频采集装置连接,所述第一线路用于传输所述视频采集装置与所述视频显示装置的控制指令,所述方法包括:A data stream transmission method, characterized in that the method is performed by a video display device, the video display device is connected to a video capture device through a first line and a second line respectively, and the first line is used to transmit the The video capture device and the control instruction of the video display device, the method includes:
    通过所述第二线路接收所述视频采集装置发送的待传输数据流,所述待传输数据流为多条应用视频流拼接得到的,所述待传输数据流所需的传输带宽小于或等于所述第二线路的最大传输带宽;The data stream to be transmitted sent by the video capture device is received through the second line, the data stream to be transmitted is obtained by splicing multiple application video streams, and the transmission bandwidth required for the data stream to be transmitted is less than or equal to the required transmission bandwidth. the maximum transmission bandwidth of the second line;
    处理所述待传输数据流并播放至少一条所述应用视频流。The data stream to be transmitted is processed and at least one application video stream is played.
  11. 根据权利要求10所述的方法,其特征在于,所述待传输数据流包括通道信息,所述通道信息包括所述第二线路中通道的数量,以及每条所述通道的带宽信息,所述通道信息还包括所述待传输数据流中的应用视频流的数量,以及每条所述应用视频流所处的通道。The method according to claim 10, wherein the data stream to be transmitted includes channel information, the channel information includes the number of channels in the second line, and bandwidth information of each channel, the channel information The channel information further includes the number of application video streams in the data stream to be transmitted, and the channel where each of the application video streams is located.
  12. 根据权利要求11所述的方法,其特征在于,所述通道信息包括每条所述应用视频流的分辨率信息。The method according to claim 11, wherein the channel information comprises resolution information of each of the application video streams.
  13. 根据权利要求11或12所述的方法,其特征在于,所述通道信息设置于所述待传输数据流的头部。The method according to claim 11 or 12, wherein the channel information is set in the header of the data stream to be transmitted.
  14. 根据权利要求11-13中任一项所述的方法,其特征在于,所述处理所述待传输数据流并播放至少一条所述应用视频流,包括:The method according to any one of claims 11-13, wherein the processing the data stream to be transmitted and playing at least one application video stream comprises:
    依据所述通道信息,拆分所述待传输数据流得到所有的应用视频流;According to the channel information, split the data stream to be transmitted to obtain all application video streams;
    选择所述所有的应用视频流中的至少一条应用视频流进行播放。At least one application video stream among all the application video streams is selected to be played.
  15. 一种视频采集装置,其特征在于,所述视频采集装置分别通过第一线路和第二线路与视频显示装置连接,所述第一线路用于传输所述视频采集装置与所述视频显示装置的控制指令,所述视频采集装置包括:A video capture device, characterized in that the video capture device is connected to a video display device through a first line and a second line respectively, and the first line is used to transmit the data between the video capture device and the video display device. Control instructions, the video capture device includes:
    处理单元,用于依据所述视频采集装置采集的原始视频流生成多条应用视频流;a processing unit, configured to generate multiple application video streams according to the original video streams collected by the video capture device;
    拼接单元,用于拼接所述多条应用视频流得到待传输数据流,所述待传输数据流所需的传输带宽小于或等于所述第二线路的最大传输带宽;a splicing unit, configured to splicing the multiple application video streams to obtain a data stream to be transmitted, the transmission bandwidth required by the data stream to be transmitted is less than or equal to the maximum transmission bandwidth of the second line;
    收发单元,用于通过所述第二线路向所述视频显示装置发送所述待传输数据流。A transceiver unit, configured to send the data stream to be transmitted to the video display device through the second line.
  16. 根据权利要求15所述的装置,其特征在于,所述待传输数据流包括通道信息,所述通道信息包括所述第二线路中通道的数量,以及每条所述通道的带宽信息,所述通道信息还包括所述待传输数据流中的应用视频流的数量,以及每条所述应用视频流所处的通道。The apparatus according to claim 15, wherein the data stream to be transmitted includes channel information, the channel information includes the number of channels in the second line, and bandwidth information of each channel, the channel information includes The channel information further includes the number of application video streams in the data stream to be transmitted, and the channel where each of the application video streams is located.
  17. 根据权利要求16所述的装置,其特征在于,所述通道信息包括每条所述应用视频流的分辨率信息。The apparatus according to claim 16, wherein the channel information includes resolution information of each of the application video streams.
  18. 根据权利要求16或17所述的装置,其特征在于,所述通道信息设置于所述待传输数据流的头部。The apparatus according to claim 16 or 17, wherein the channel information is set in the header of the data stream to be transmitted.
  19. 根据权利要求15-18中任一项所述的装置,其特征在于,所述多条应用视频流包括第一应用视频流和第二应用视频流,所述第一应用视频流的分辨率和所述第二应用视频流的分辨率不同。The apparatus according to any one of claims 15-18, wherein the plurality of application video streams comprise a first application video stream and a second application video stream, and the resolution of the first application video stream and the The resolutions of the second application video streams are different.
  20. 根据权利要求19所述的装置,其特征在于,所述待传输数据流还包括数据区 域,所述数据区域包括多条通道,所述拼接单元,具体用于将所述多条应用视频流分别设置于各自对应的目标通道中;所述应用视频流对应的目标通道为最大传输带宽大于或等于所述应用视频流所需的传输带宽的通道。The device according to claim 19, wherein the data stream to be transmitted further includes a data area, the data area includes multiple channels, and the splicing unit is specifically configured to separate the multiple application video streams respectively. The target channel corresponding to the application video stream is a channel whose maximum transmission bandwidth is greater than or equal to the transmission bandwidth required by the application video stream.
  21. 根据权利要求19所述的装置,其特征在于,所述待传输数据流包括数据区域,所述数据区域包括多条通道,所述拼接单元,具体用于若第一应用视频流所需的传输带宽大于所述多条通道中任意一条通道所具有的传输带宽,且小于或等于所述第二线路的最大传输带宽,则将所述第一应用视频流作为第一待传输数据流,所述第一应用视频流为所述多条应用视频流中的任意一条;The device according to claim 19, wherein the data stream to be transmitted comprises a data area, and the data area comprises a plurality of channels, and the splicing unit is specifically used for transmission if the first application video stream is required If the bandwidth is greater than the transmission bandwidth of any one of the multiple channels, and is less than or equal to the maximum transmission bandwidth of the second line, the first application video stream is used as the first data stream to be transmitted, and the The first application video stream is any one of the multiple application video streams;
    所述拼接单元,具体用于若剩余数据流所需的传输带宽与所述多条通道具有的传输带宽匹配,则拼接所述剩余数据流中的多条应用视频流得到第二待传输数据流,所述剩余数据流包括根据所述原始视频流得到的所述多条应用视频流中,除所述第一应用视频流的其他应用视频流;The splicing unit is specifically configured to splicing multiple application video streams in the remaining data streams to obtain a second to-be-transmitted data stream if the transmission bandwidth required by the remaining data streams matches the transmission bandwidth possessed by the multiple channels. , the remaining data stream includes other application video streams other than the first application video stream among the multiple application video streams obtained according to the original video stream;
    所述收发单元,具体用于通过所述第二线路向所述视频显示装置交替发送所述第一待传输数据流和所述第二待传输数据流。The transceiver unit is specifically configured to alternately send the first data stream to be transmitted and the second data stream to be transmitted to the video display device through the second line.
  22. 根据权利要求15-21中任一项所述的装置,其特征在于,所述多条应用视频流包括预览流、拍照流、深度数据流、人脸流、目标检测流、监控流、飞行时间测距流或手势控制流中的至少一种。The device according to any one of claims 15-21, wherein the multiple application video streams include a preview stream, a photo stream, a depth data stream, a face stream, a target detection stream, a monitoring stream, and a time-of-flight stream. At least one of ranging flow or gesture control flow.
  23. 根据权利要求15-22中任一项所述的装置,其特征在于,所述第一线路为通用串行总线USB,所述第二线路为高清多媒体接口HDMI线。The device according to any one of claims 15-22, wherein the first line is a universal serial bus (USB), and the second line is a high-definition multimedia interface (HDMI) line.
  24. 一种视频显示装置,其特征在于,所述视频显示装置分别通过第一线路和第二线路与视频采集装置连接,所述第一线路用于传输所述视频采集装置与所述视频显示装置的控制指令,所述视频显示装置包括:A video display device, characterized in that the video display device is connected to a video capture device through a first line and a second line respectively, and the first line is used to transmit the data between the video capture device and the video display device. Control instructions, the video display device includes:
    收发单元,用于通过所述第二线路接收所述视频采集装置发送的待传输数据流,所述待传输数据流为多条应用视频流拼接得到的,所述待传输数据流所需的传输带宽小于或等于所述第二线路的最大传输带宽;A transceiver unit, configured to receive the data stream to be transmitted sent by the video capture device through the second line, the data stream to be transmitted is obtained by splicing multiple application video streams, and the transmission data stream required by the data stream to be transmitted The bandwidth is less than or equal to the maximum transmission bandwidth of the second line;
    处理单元,用于处理所述待传输数据流得到多条应用视频流;a processing unit, configured to process the to-be-transmitted data stream to obtain multiple application video streams;
    显示单元,用于播放所述多条应用视频流中的至少一条应用视频流。A display unit, configured to play at least one application video stream among the plurality of application video streams.
  25. 根据权利要求24所述的装置,其特征在于,所述待传输数据流包括通道信息,所述通道信息包括所述第二线路中通道的数量,以及每条所述通道的带宽信息,所述通道信息还包括所述待传输数据流中的应用视频流的数量,以及每条所述应用视频流所处的通道。The apparatus according to claim 24, wherein the data stream to be transmitted includes channel information, the channel information includes the number of channels in the second line, and bandwidth information of each channel, the The channel information further includes the number of application video streams in the data stream to be transmitted, and the channel where each of the application video streams is located.
  26. 根据权利要求25所述的装置,其特征在于,所述通道信息包括每条所述应用视频流的分辨率信息。The apparatus according to claim 25, wherein the channel information comprises resolution information of each of the application video streams.
  27. 根据权利要求25或26所述的装置,其特征在于,所述通道信息设置于所述待传输数据流的头部。The apparatus according to claim 25 or 26, wherein the channel information is set in the header of the data stream to be transmitted.
  28. 根据权利要求25-27中任一项所述的装置,其特征在于,所述处理单元,具体用于依据所述通道信息,拆分所述待传输数据流得到所有的应用视频流;The apparatus according to any one of claims 25-27, wherein the processing unit is specifically configured to split the data stream to be transmitted to obtain all the application video streams according to the channel information;
    所述显示单元,具体用于选择所述所有的应用视频流中的至少一条应用视频流进行播放。The display unit is specifically configured to select at least one application video stream among all the application video streams to play.
  29. 一种终端设备,其特征在于,包括处理器和接口电路,所述处理器通过所述接口电路接收或发送数据,所述处理器通过逻辑电路或执行代码指令用于实现如权利要求1至9中任一项所述的方法,或权利要求10至14中任一项所述的方法。A terminal device, characterized in that it includes a processor and an interface circuit, the processor receives or transmits data through the interface circuit, and the processor is used for implementing the method as claimed in claims 1 to 9 through a logic circuit or executing code instructions The method of any one of, or the method of any one of claims 10 to 14.
  30. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,当所述计算机程序被终端设备或处理器执行时,实现如权利要求1至9中任一项所述的方法,或权利要求10至14中任一项所述的方法。A computer-readable storage medium, characterized in that a computer program is stored in the storage medium, and when the computer program is executed by a terminal device or a processor, the computer program according to any one of claims 1 to 9 is implemented. The method, or the method of any one of claims 10 to 14.
  31. 一种计算机程序产品,其特征在于,所述计算机程序产品包括指令,当所述指令在终端设备或处理器上运行时,实现如权利要求1至9中任一项所述的方法,或权利要求10至14中任一项所述的方法。A computer program product, characterized in that the computer program product includes instructions, when the instructions are run on a terminal device or a processor, the method according to any one of claims 1 to 9 is implemented, or the right The method of any one of claims 10 to 14.
PCT/CN2021/083112 2021-03-25 2021-03-25 Data stream transmission method and device WO2022198605A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/083112 WO2022198605A1 (en) 2021-03-25 2021-03-25 Data stream transmission method and device
CN202180088320.5A CN116711298A (en) 2021-03-25 2021-03-25 Data stream transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/083112 WO2022198605A1 (en) 2021-03-25 2021-03-25 Data stream transmission method and device

Publications (1)

Publication Number Publication Date
WO2022198605A1 true WO2022198605A1 (en) 2022-09-29

Family

ID=83396263

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083112 WO2022198605A1 (en) 2021-03-25 2021-03-25 Data stream transmission method and device

Country Status (2)

Country Link
CN (1) CN116711298A (en)
WO (1) WO2022198605A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110209183A1 (en) * 2010-02-25 2011-08-25 Samsung Electronics Co., Ltd. Method and apparatus for transmitting data based on audio/video interface
CN202663483U (en) * 2012-05-11 2013-01-09 青岛海尔电子有限公司 Television set and control system of television set
CN104683863A (en) * 2013-11-28 2015-06-03 中国移动通信集团公司 Method and equipment for multimedia data transmission
CN106911343A (en) * 2017-02-21 2017-06-30 广州土圭垚信息科技有限公司 A kind of VR devices and VR systems
CN108924520A (en) * 2018-09-29 2018-11-30 深圳市道通智能航空技术有限公司 Transfer control method, device, controller, capture apparatus and aircraft
CN109889752A (en) * 2019-02-01 2019-06-14 深圳市炬力北方微电子有限公司 Transmission device and throwing screen display methods

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110209183A1 (en) * 2010-02-25 2011-08-25 Samsung Electronics Co., Ltd. Method and apparatus for transmitting data based on audio/video interface
CN202663483U (en) * 2012-05-11 2013-01-09 青岛海尔电子有限公司 Television set and control system of television set
CN104683863A (en) * 2013-11-28 2015-06-03 中国移动通信集团公司 Method and equipment for multimedia data transmission
CN106911343A (en) * 2017-02-21 2017-06-30 广州土圭垚信息科技有限公司 A kind of VR devices and VR systems
CN108924520A (en) * 2018-09-29 2018-11-30 深圳市道通智能航空技术有限公司 Transfer control method, device, controller, capture apparatus and aircraft
CN109889752A (en) * 2019-02-01 2019-06-14 深圳市炬力北方微电子有限公司 Transmission device and throwing screen display methods

Also Published As

Publication number Publication date
CN116711298A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
US10003741B2 (en) System for processing data from an omnidirectional camera with multiple processors and/or multiple sensors connected to each processor
US10979630B2 (en) Workload scheduler for computing devices with camera
US9602769B2 (en) Timestamp-based audio and video processing method and system thereof
US9843725B2 (en) Omnidirectional camera with multiple processors and/or multiple sensors connected to each processor
WO2017185799A1 (en) Method and apparatus for implementing multi-screen interaction
US20150304526A1 (en) External video locking and synchronization device
WO2022156472A1 (en) Splicing screen synchronous display method, electronic device and splicing screen system
WO2021136114A1 (en) Method for occupying device and electronic device
US20230283888A1 (en) Processing method and electronic device
EP4050889A1 (en) Conference device with multi-videostream capability
US10552980B2 (en) Image processing apparatus, image processing method, and storage medium
WO2022198605A1 (en) Data stream transmission method and device
CN102547238A (en) Video cascade system applied in multi-channel DVRs (digital video recorder) and method
WO2023010755A1 (en) Hdr video conversion method and apparatus, and device and computer storage medium
WO2022062799A1 (en) Data transmission method and related apparatus
WO2021213017A1 (en) Video superimposition method, apparatus and system
US20200311947A1 (en) Image processing apparatus, transmission method, and storage medium
WO2021109846A1 (en) Bit stream data processing method and apparatus
WO2021179142A1 (en) Image processing method and related apparatus
CN109274955B (en) Compression and synchronization method and system for light field video and depth map, and electronic equipment
CN112887653A (en) Information processing method and information processing device
US20200120254A1 (en) Image processing apparatus and method, and non-transitory computer-readable storage medium
WO2024066521A1 (en) Memory refresh method and apparatus
US7656433B2 (en) Web camera
KR20200091196A (en) Method for augmented reality contents data optimization using user feedback

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180088320.5

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21932230

Country of ref document: EP

Kind code of ref document: A1