Disclosure of Invention
In view of the above problems, the present invention provides a photographing method in live radio broadcast, a display terminal, a camera head end and a live radio broadcast system, so as to solve or at least partially solve the above problems.
According to one aspect of the invention, a photographing method in wireless live broadcasting is provided, wherein a display end receives a video stream sent by a camera head end through wireless communication in real time and carries out live broadcasting display on the video stream; the method comprises the following steps:
the display end responds to the photographing request and sends a photographing command to the camera end;
receiving the photographing time returned by the camera head end through wireless communication, wherein the photographing time is recorded when the camera head end performs photographing operation according to the photographing command;
and searching out a video image matched with the photographing time from the video stream, carrying out screen capture operation when the video image is displayed in a live broadcast manner, and generating image preview for display.
According to another aspect of the present invention, a camera head end collects a video stream, sends the video stream to a display end in real time through wireless communication, and the display end performs live broadcast display on the video stream, wherein the method includes:
receiving a photographing command sent by the display terminal, carrying out photographing operation according to the photographing command, and recording photographing time during photographing;
and sending the photographing time to the display end through wireless communication, so that the display end can find out the video image matched with the photographing time from the video stream, perform screen capture operation when the video image is displayed in a live broadcast manner, and generate image preview for display.
According to another aspect of the present invention, there is provided a display terminal in a wireless live broadcast, the display terminal including:
the receiving and displaying unit is used for receiving the video stream sent by the camera head end through wireless communication in real time and carrying out live broadcast display on the video stream;
the command sending unit is used for responding to the photographing request and sending a photographing command to the camera head end;
the time receiving unit is used for receiving the photographing time returned by the camera head end through wireless communication, wherein the photographing time is recorded when the camera performs photographing operation according to the photographing command;
and the image preview unit is used for searching out the video image matched with the photographing time from the video stream, carrying out screen capture operation when the video image is displayed in a live broadcast manner, and generating and displaying an image preview.
According to still another aspect of the present invention, there is provided a camera head end in a live radio broadcast, the camera head end comprising:
the video stream acquisition unit is used for acquiring a video stream, transmitting the video stream to a display end in real time through wireless communication, and carrying out live broadcast display on the video stream by the display end;
the photographing unit is used for receiving a photographing command sent by the display terminal, performing photographing operation according to the photographing command, and recording photographing time during photographing;
and the time sending unit is used for sending the photographing time to the display end through wireless communication, so that the display end can find out a video image matched with the photographing time from the video stream, and performs screen capture operation when the video image is displayed in a live broadcast manner, and generates image preview for display.
According to a further aspect of the present invention, there is provided a live wireless broadcast system, which includes the display terminal and the camera terminal as described above; the display end is in wireless connection with the camera end;
the camera head end collects video streams and sends the video streams to the display end in real time through wireless communication;
the display end carries out live broadcast display on the video stream and responds to a photographing request to send a photographing command to the camera end;
the camera head end carries out photographing operation according to the photographing command, records photographing time during photographing, and sends the photographing time to the display end through wireless communication;
and the display terminal searches out the video image matched with the photographing time from the video stream, performs screen capture operation when the video image is displayed in a live broadcast manner, and generates image preview for display.
In conclusion, the technical scheme of the invention has the beneficial effects that: when the shooting is carried out in the wireless live broadcast, the shooting time information is returned by the camera head end, the display end searches the video image matched with the shooting time and carries out screen capture operation for the user to preview, and compared with the prior art that the shot image is directly returned, on one hand, the camera head end does not need to compress the image, and the system resource of the camera head end is saved; on the other hand, compared with the transmission of images, the transmission of the photographing time information occupies less wireless communication resources, the burden of wireless communication can be reduced, the delay increase of video stream transmission caused by image transmission is avoided, the instantaneity of video live broadcast is not influenced, and the user experience is enhanced.
Detailed Description
When the shooting is carried out, the camera records the shooting time when carrying out the shooting operation, and only sends the recorded shooting time to the display end, the processing capacity of the display end is utilized to find out the video image matched with the shooting time from the received video stream, the video image displayed by the live broadcast is subjected to screen capture operation, and image preview is generated for displaying, so that a user can decide whether to retain the acquired image or to take a picture again. Therefore, when the camera is used for taking a picture, the camera head end returns the picture taking time information, the image does not need to be compressed, and the system resource with short camera is saved; compared with the transmission of the image, the transmission of the photographing time information occupies less wireless communication resources, so that the burden of wireless communication can be reduced, and the delay increase of video stream transmission caused by image transmission is avoided.
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a photographing method in live broadcast according to an embodiment of the present invention, which is described in the embodiment from a display end. In the wireless live broadcast, the display end receives the video stream sent by the camera end through wireless communication in real time and carries out live broadcast display on the video stream. As shown in fig. 1, the method includes:
and step S110, the display end responds to the photographing request and sends a photographing command to the camera end.
The display end receives video streams sent by the camera head end through wireless communication, when live broadcast display of the video streams is carried out, if a user needs to take pictures, a picture taking request is input through a display interface of the display end, and the display end responds to the picture taking request of the user and sends a picture taking command to the camera head end.
And step S120, receiving the photographing time returned by the camera head end through wireless communication, wherein the photographing time is recorded when the camera head end performs photographing operation according to the photographing command.
The camera head end receives the photographing command sent by the display end, performs photographing operation, acquires images in the current lens of the camera head end, records photographing time during the photographing operation, and only sends the recorded photographing time to the display end.
And step S130, searching out a video image matched with the photographing time from the video stream, performing screen capture operation when the video image is displayed in a live broadcast manner, and generating image preview for display.
In order to enable a user to preview whether an image acquired by the camera head end meets the requirements of the user, the processing capacity of the display end is fully utilized, a video image matched with the photographing time is found out from the video stream, then, when the video image is displayed in a live broadcast mode, a screen capturing operation is carried out, and an image preview is generated for displaying. In this embodiment, the image after the screen capture of the display end is consistent with the image obtained by the camera shooting operation, and a user can preview the image generated after the screen capture of the display end to know whether the image obtained by the camera end meets the requirement.
In addition, because the video stream sent by the camera head end has a certain time delay in the transmission process, and the video image displayed by the display end in a live broadcast manner has a certain lag, when the display end receives the photographing time, the video image displayed by the display end in a live broadcast manner should be the video image before the video image corresponding to the photographing time when the camera head end performs the photographing operation, that is, the video image corresponding to the photographing operation of the camera head end should be received by the display end after the photographing time is received, so that the situation that the video image corresponding to the photographing time is already displayed when the display end receives the photographing time is avoided, and the display end can accurately capture the video image matched with the photographing time.
For example, the video image of the 100 th frame corresponding to the photographing time when the camera photographs is sent to the display end, because the photographing time is faster than the video stream, and when the display end receives the photographing time, the display end displays the video image of the 98 th frame, so that when the video image of the 100 th frame is displayed, the screen capture operation can be performed.
Therefore, when the shooting is carried out in the wireless live broadcast, the shooting time information is returned by the camera head end, the display end finds the video image matched with the shooting time and carries out screen capture operation for the user to preview, and compared with the prior art that the shot image is directly returned, on one hand, the camera head end does not need to compress the image, and the system resource of the camera head end is saved; on the other hand, compared with the transmission of images, the transmission of the photographing time information occupies less wireless communication resources, the burden of wireless communication can be reduced, the delay increase of video stream transmission caused by image transmission is avoided, the instantaneity of video live broadcast is not influenced, and the user experience is enhanced.
In one embodiment of the present invention, in order to find a video image matching the photographing time, time stamp information of each frame of video image is included in the video stream.
Then, the step S130 of finding out the video image matching the photographing time from the video stream includes: when the photographing time is received, analyzing the time stamp of the video stream is started, the time stamp of each frame of video image in the video stream is obtained, and the video image with the time stamp equal to the photographing time is determined to be the video image matched with the photographing time.
In order to save system resources of a display end, only when the shooting time sent by the camera head end is received, the analysis of the timestamp of the video stream is started in the process of analyzing the video stream, the video image of the frame with the timestamp equal to the shooting time is found, and screen capture operation is carried out.
And after the screen capture operation, generating an image preview for displaying, and judging whether the image meets the requirements or not by a user according to the image preview. If the requirement is not met, the image needs to be taken again, and if the requirement is met, the image needs to be saved, so in one embodiment of the invention, the method shown in fig. 1 further comprises:
the display end responds to the storage request, sends a storage command to the camera head end, and the camera head end stores the image obtained by the photographing operation to a specified storage position; or the display end responds to the request of taking pictures again, sends a command of taking pictures again to the camera head end, and the camera head end takes pictures again.
In a specific example, when a user performs live video, a beautiful bird appears on a display picture, the user inputs a photographing request, the display end sends a photographing command to the camera end, the camera end performs photographing operation and records photographing time, then the photographing time is sent to the display end, the display end judges the adding time when analyzing a received video stream, finds out a video image with a timestamp matched with the photographing time, performs screen capture operation when the video image is displayed in a live broadcast manner, generates image preview and displays the image, the user can know whether the image photographed by the camera end contains the bird or not according to the displayed image, if the image contains the bird, the camera end stores the image, and if the image does not contain the bird, the camera end sends a command of re-photographing, and takes a picture again.
Fig. 2 is a schematic flow chart of a photographing method in live broadcast according to another embodiment of the present invention, which is described in the embodiment from a camera end. In the wireless live broadcast, a camera head end collects video streams, the video streams are sent to a display end in real time through wireless communication, and the display end carries out live broadcast display on the video streams. As shown in fig. 2, the method includes:
step S210, receiving a photographing command sent by the display terminal, performing photographing operation according to the photographing command, and recording photographing time during photographing.
Step S220, the photographing time is sent to the display end through wireless communication, so that the display end can find out the video image matched with the photographing time from the video stream, screen capture operation is carried out when the video image is displayed in a live broadcast mode, and image preview is generated for display.
The resolution of the image obtained by photographing at the camera head is relatively high, and the wireless transmission of the image in the prior art needs to compress the obtained image, which consumes system resources at the camera head. Through the embodiment, the camera head end only sends the photographing time, and the image obtained by photographing operation does not need to be compressed, so that the system resource of the camera head end is saved.
After the user determines whether the image photographed by the camera head meets the requirements through image preview, a further command is sent, so in an embodiment of the present invention, the method shown in fig. 2 further includes: storing the image obtained by the photographing operation to a specified storage position according to a storage command sent by a display terminal, and allowing a user to check the high-definition image obtained by the photographing operation of the camera terminal through the specified storage position; or, according to a re-photographing command sent by the display terminal, re-performing the photographing operation.
To make the solution of the present invention clearer, fig. 3 is a schematic flow chart of a photographing method in live broadcast according to another embodiment of the present invention. As shown in fig. 3, the display end and the camera head end are connected wirelessly through wifi and the like, there is time delay T in the image display of the display end, after the user clicks to take a picture, the display end responds to the photographing request, a photographing instruction is issued to the camera head end, the camera head end performs photographing, photographing time T1 is recorded, and photographing time T1 is fed back to the display end, because of the time delay T, the display end does not yet display the video image of photographing time T1, the display end analyzes the timestamp of each frame of video image in the video stream, when the timestamp is also T1, screen capture operation is performed, and then accurate screen capture preview is displayed to the user, so that the user judges whether the image obtained by photographing by the camera head end meets the requirements or not.
Fig. 4 is a functional structure diagram of a display end in a wireless live broadcast according to another embodiment of the present invention. In the wireless live broadcast, the display end receives the video stream sent by the camera end through wireless communication in real time and carries out live broadcast display on the video stream. As shown in fig. 4, the display terminal 400 in the live broadcast includes:
and the receiving and displaying unit 410 is configured to receive a video stream sent by the camera head through wireless communication in real time, and perform live broadcast display on the video stream.
A command sending unit 420, configured to send a photographing command to the camera head in response to the photographing request.
The time receiving unit 430 is configured to receive the photographing time returned by the camera head through the wireless communication, where the photographing time is recorded when the camera performs a photographing operation according to the photographing command.
And the image preview unit 440 is used for searching out a video image matched with the photographing time from the video stream, performing screen capture operation when the video image is displayed in a live broadcast manner, and generating and displaying an image preview.
In one embodiment of the invention, timestamp information for each frame of video image is included in the video stream.
And the image preview unit 440 is configured to, when the photographing time is received, start parsing the timestamp of the video stream, obtain the timestamp of each frame of video image in the video stream, and determine the video image with the timestamp equal to the photographing time as the video image matching the photographing time.
In an embodiment of the present invention, the command sending unit 420 is further configured to send a save command to the camera head end in response to the save request, and the camera head end saves the image obtained by the photographing operation to the specified storage location; or, in response to the request of re-photographing, sending a re-photographing command to the camera head end, and carrying out the photographing operation again by the camera head end.
Fig. 5 is a functional structure diagram of a display end in a wireless live broadcast according to another embodiment of the present invention. As shown in fig. 5, the display terminal 500 in the live broadcast includes a memory 510 and a processor 520, the memory 510 and the processor 520 are communicatively connected through an internal bus 530, the memory 510 stores a computer program 511 for taking a picture in the live broadcast, which can be executed by the processor 520, and when executed by the processor 520, the computer program 511 for taking a picture in the live broadcast can implement the method steps shown in fig. 1.
In various embodiments, memory 510 may be a memory or a non-volatile memory. Wherein the non-volatile memory may be: a storage drive (e.g., hard disk drive), a solid state drive, any type of storage disk (e.g., compact disk, DVD, etc.), or similar storage medium, or a combination thereof. The memory may be: RAM (random Access Memory), volatile Memory, nonvolatile Memory, and flash Memory. Further, the non-volatile memory and memory serve as a machine-readable storage medium on which a computer program 511 for taking a picture in a live broadcast executed by the processor 520 may be stored.
Fig. 6 is a functional structure diagram of a camera head in live broadcast according to another embodiment of the present invention. As shown in fig. 6, the camera head 600 includes:
and the video acquisition unit 610 is used for acquiring a video stream, transmitting the video stream to the display end in real time through wireless communication, and performing live broadcast display on the video stream by the display end.
And the photographing unit 620 is configured to receive a photographing command sent by the display terminal, perform a photographing operation according to the photographing command, and record photographing time during photographing.
The time sending unit 630 is configured to send the photographing time to the display end through wireless communication, so that the display end searches for a video image matched with the photographing time from the video stream, performs a screen capture operation when the video image is displayed in a live broadcast manner, and generates an image preview for display.
In one embodiment of the present invention, the camera head end 600 further includes:
the storage unit is used for receiving a storage command sent by the display terminal and storing the image acquired by the photographing operation to a specified storage position according to the storage command; or, the photographing unit 620 is further configured to receive a re-photographing command sent by the display end, and re-perform the photographing operation according to the re-photographing command.
Fig. 7 is a functional structure diagram of a wireless live broadcast system according to another embodiment of the present invention. As shown in fig. 7, the live wireless broadcast system 700 includes a live wireless broadcast display terminal 710 shown in fig. 4 or 5 and a live wireless broadcast camera terminal 600 shown in fig. 6.
The display end 710 and the camera end 720 are wirelessly connected, as indicated by the dashed line in fig. 7. For example, a wireless connection such as WiFi, bluetooth, etc.
The camera head 600 collects a video stream and sends the video stream to the display 710 in real time through wireless communication;
the display end 710 performs live broadcast display on the video stream, and sends a photographing command to the camera end 600 in response to a photographing request;
the camera head 600 performs a photographing operation according to the photographing command, records photographing time during photographing, and sends the photographing time to the display 710 through wireless communication;
the display end 710 searches a video image matched with the photographing time from the video stream, performs screen capture operation when the video image is displayed in a live broadcast manner, and generates an image preview for display.
It should be noted that the embodiments of the display end shown in fig. 4 and 5, the camera end shown in fig. 6, and the system shown in fig. 7 are the same as the embodiments of the method shown in fig. 1 and 2, and the detailed description is given above and will not be repeated here.
In conclusion, the technical scheme of the invention has the beneficial effects that: when the shooting is carried out in the wireless live broadcast, the shooting time information is returned by the camera head end, the display end searches the video image matched with the shooting time and carries out screen capture operation for the user to preview, and compared with the prior art that the shot image is directly returned, on one hand, the camera head end does not need to compress the image, and the system resource of the camera head end is saved; on the other hand, compared with the transmission of images, the transmission of the photographing time information occupies less wireless communication resources, the burden of wireless communication can be reduced, the delay increase of video stream transmission caused by image transmission is avoided, the instantaneity of video live broadcast is not influenced, and the user experience is enhanced.
While the foregoing is directed to embodiments of the present invention, other modifications and variations of the present invention may be devised by those skilled in the art in light of the above teachings. It should be understood by those skilled in the art that the foregoing detailed description is for the purpose of better explaining the present invention, and the scope of the present invention should be determined by the scope of the appended claims.