Method, apparatus, system, device and medium for switching view angle of free view angle video

文档序号:1966177 发布日期:2021-12-14 浏览:16次 中文

阅读说明:本技术 自由视角视频的视角切换方法、装置、系统、设备和介质 (Method, apparatus, system, device and medium for switching view angle of free view angle video ) 是由 金友芝 于 2021-09-09 设计创作,主要内容包括:本公开实施例公开了一种自由视角视频的视角切换方法、装置、系统、设备和介质,该方法应用于用户端,包括:根据用户触发的视角切换操作,确定视角切换信息;将视角切换信息通过低延时服务器发送至用户端对应的低延时房间,以使媒体服务器监听到低延时房间中的视角变化消息时,基于视角切换信息确定视角切换后的目标视频流,并将目标视频流推送至低延时房间;通过低延时服务器获得低延时房间中的目标视频流,并播放目标视频流。通过本公开实施例的技术方案,可以保证切换流畅度,提升用户体验,并且降低网络带宽要求。(The embodiment of the disclosure discloses a method, a device, a system, equipment and a medium for switching visual angles of free visual angle videos, wherein the method is applied to a user side and comprises the following steps: determining visual angle switching information according to visual angle switching operation triggered by a user; the visual angle switching information is sent to a low-delay room corresponding to the user side through the low-delay server, so that when the media server monitors visual angle change information in the low-delay room, a target video stream after visual angle switching is determined based on the visual angle switching information, and the target video stream is pushed to the low-delay room; and obtaining the target video stream in the low-delay room through the low-delay server, and playing the target video stream. Through the technical scheme of the embodiment of the disclosure, the switching fluency can be ensured, the user experience is improved, and the requirement on network bandwidth is reduced.)

1. A method for switching visual angles of a free visual angle video is applied to a user side and comprises the following steps:

determining visual angle switching information according to visual angle switching operation triggered by a user;

sending the view switching information to a low-delay room corresponding to the user side through a low-delay server, so that when a media server monitors a view change message in the low-delay room, a target video stream after view switching is determined based on the view switching information, and the target video stream is pushed to the low-delay room;

and obtaining the target video stream in the low-delay room through the low-delay server, and playing the target video stream.

2. The method of claim 1,

in a live video scene, the view switching information comprises target view information after view switching;

in a video-on-demand scene, the view switching information includes target view information after view switching and a current playing progress mark when a user triggers view switching operation.

3. The method of claim 2, wherein the currently playing video frame is identified as a currently playing timestamp or a currently playing video frame sequence number.

4. The method according to claim 2, wherein the determining target view angle information after view angle switching according to the view angle switching operation comprises:

and determining target visual angle information after visual angle switching according to user sliding operation or user visual angle clicking operation.

5. The method according to claim 4, wherein the determining the target view angle information after view angle switching according to the user sliding operation comprises:

if the user slides the screen to the left, the next visual angle information of the current visual angle information along the anticlockwise direction is used as the target visual angle information after the visual angle is switched;

and if the user slides the screen to the right, taking the next visual angle information of the current visual angle information along the clockwise direction as the target visual angle information after the visual angle is switched.

6. The method according to claim 1, wherein before determining the view switching information according to the user-triggered view switching operation, further comprising:

sending a video playing request to the media server, so that the media server creates a low-delay room corresponding to the user side through the low-delay server based on the video playing request, and sends room information of the low-delay room to the user side;

receiving room information of the low-delay room, and connecting the low-delay room corresponding to the room information through the low-delay server;

and obtaining the video stream in the low-delay room through the low-delay server, and playing the obtained video stream, wherein the obtained video stream is the video stream under the preset visual angle pushed by the media server.

7. The method according to any of claims 1-6, wherein the low latency server is a real time communication, RTC, server and the low latency room is an RTC room.

8. A method for switching visual angles of free visual angle videos is applied to a media server and comprises the following steps:

if a visual angle change message in a low-delay room corresponding to a user side is monitored, determining a target video stream after visual angle switching based on visual angle switching information in the low-delay room, wherein the visual angle change message is generated when the user side sends the visual angle switching information to the low-delay room through a low-delay server, and the visual angle switching information is determined according to visual angle switching operation triggered by the user;

and pushing the target video stream to the low-delay room, so that the user side obtains the target video stream in the low-delay room through a low-delay server, and playing the target video stream.

9. The method according to claim 8, wherein the target video stream after view switching is determined based on view switching information in the low latency room; pushing the target video stream to the low latency room, comprising:

acquiring a preset number of video frame sets which are cached latest currently, wherein each video frame set comprises video frames under each aligned view angle;

determining a target video frame set from the preset number of video frame sets;

and determining a target video frame after the visual angle is switched from the target video frame set according to the target visual angle information after the visual angle is switched in the low-delay room, pushing the target video frame to the low-delay room, and returning to execute the operation of obtaining the preset number of video frame sets which are cached latest currently.

10. The method of claim 9, further comprising, before the obtaining a preset number of sets of video frames currently buffered up-to-date, the steps of:

acquiring a current live video stream currently acquired by a camera at each view angle and alignment information corresponding to each video frame in the current live video stream;

and merging the video frames with the same alignment information in the current live video stream under each view angle into a video frame set, and caching the merged video frame set.

11. The method of claim 10, wherein merging video frames with the same alignment information in the current live video stream in each view into a video frame set comprises:

merging video frames with the same acquisition time stamp in the current live video stream under each view angle into a video frame set; alternatively, the first and second electrodes may be,

and merging the video frames with the same frame number in the current live video stream under each view angle into a video frame set.

12. The method of claim 9, wherein determining a target video frame set from the preset number of video frame sets comprises:

and determining the video frame set with the earliest acquisition time or the video frame set with the smallest frame number in the preset number of video frame sets as a target video frame set.

13. The method of claim 9, further comprising, after pushing the target video frame to the low latency room:

and when a plurality of user sides exist, deleting the target video frame set in the cache after the video frame pushing traversal is finished for the low-delay room corresponding to each user side.

14. The method of claim 8, wherein determining the target video stream after view switching based on the view switching information in the low latency room comprises:

and determining the target video stream after the view angle switching according to the current live video stream corresponding to each aligned view angle information and the target view angle information after the view angle switching in the low-delay room.

15. The method of claim 8, wherein determining the target video stream after view switching based on the view switching information in the low latency room comprises:

determining a target video-on-demand stream under a target visual angle according to the video-on-demand stream corresponding to each aligned visual angle information and the target visual angle information after the visual angle in the low-delay room is switched;

and determining the target video stream after the visual angle switching based on the current playing progress mark when the user in the low-delay room triggers the visual angle switching operation and the target video-on-demand stream.

16. A device for switching a free visual angle of a video, integrated at a user end, comprises:

the visual angle switching information determining module is used for determining visual angle switching information according to visual angle switching operation triggered by a user;

the visual angle switching information sending module is used for sending the visual angle switching information to a low-delay room corresponding to the user side through a low-delay server so that when the media server monitors visual angle change information in the low-delay room, a target video stream after visual angle switching is determined based on the visual angle switching information, and the target video stream is pushed to the low-delay room;

and the target video stream playing module is used for obtaining the target video stream in the low-delay room through the low-delay server and playing the target video stream.

17. A device for switching a free view angle of a video, integrated in a media server, comprises:

the target video stream determining module is used for determining a target video stream after visual angle switching based on visual angle switching information in a low-delay room corresponding to a user side if a visual angle change message in the low-delay room is monitored, wherein the visual angle change message is generated when the user side sends the visual angle switching information to the low-delay room through a low-delay server, and the visual angle switching information is determined according to visual angle switching operation triggered by a user;

and the target video stream pushing module is used for pushing the target video stream to the low-delay room, so that the user side obtains the target video stream in the low-delay room through a low-delay server and plays the target video stream.

18. A system for switching a view of a free-view video, the system comprising: a user terminal, a media server and a low-delay server;

wherein, the user end is used for implementing the view switching method of the free view video according to any one of claims 1 to 7;

the media server is used for implementing the method for switching the view of the free view video according to any one of claims 8 to 15.

19. An electronic device, characterized in that the electronic device comprises:

one or more processors;

a memory for storing one or more programs;

when executed by the one or more processors, cause the one or more processors to implement the method of view switching for freeview video according to any one of claims 1-15.

20. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the method of view switching for freeview video according to any one of claims 1 to 15.

Technical Field

The present disclosure relates to internet technologies, and in particular, to a method, an apparatus, a system, a device, and a medium for switching a view angle of a free view video.

Background

With the rapid development of internet technology and the increasing demand of users, a free-view video is developed so that users can watch videos from different viewing angles. The user can freely switch the visual angle in the process of watching the free visual angle video, but the switching speed is lower when the visual angle is switched, the situation that the video is blocked discontinuously often exists, and the watching experience of the user is greatly reduced.

Disclosure of Invention

The embodiment of the disclosure provides a method, a device, a system, equipment and a medium for switching visual angles of free visual angle videos, so as to improve the switching speed of the visual angles, ensure the smoothness of video switching, improve the watching experience of users and reduce the requirement of network bandwidth.

In a first aspect, an embodiment of the present disclosure provides a method for switching a view angle of a free view angle video, which is applied to a user side, and includes:

determining visual angle switching information according to visual angle switching operation triggered by a user;

sending the view switching information to a low-delay room corresponding to the user side through a low-delay server, so that when a media server monitors a view change message in the low-delay room, a target video stream after view switching is determined based on the view switching information, and the target video stream is pushed to the low-delay room;

and obtaining the target video stream in the low-delay room through the low-delay server, and playing the target video stream.

In a second aspect, an embodiment of the present disclosure further provides a method for switching a view angle of a free view angle video, which is applied to a media server, and includes:

if a visual angle change message in a low-delay room corresponding to a user side is monitored, determining a target video stream after visual angle switching based on visual angle switching information in the low-delay room, wherein the visual angle change message is generated when the user side sends the visual angle switching information to the low-delay room through a low-delay server, and the visual angle switching information is determined according to visual angle switching operation triggered by the user;

and pushing the target video stream to the low-delay room, so that the user side obtains the target video stream in the low-delay room through a low-delay server, and playing the target video stream.

In a third aspect, an embodiment of the present disclosure further provides a device for switching a view angle of a free view angle video, which is integrated at a user end, and includes:

the visual angle switching information determining module is used for determining visual angle switching information according to visual angle switching operation triggered by a user;

the visual angle switching information sending module is used for sending the visual angle switching information to a low-delay room corresponding to the user side through a low-delay server so that when the media server monitors visual angle change information in the low-delay room, a target video stream after visual angle switching is determined based on the visual angle switching information, and the target video stream is pushed to the low-delay room;

and the target video stream playing module is used for obtaining the target video stream in the low-delay room through the low-delay server and playing the target video stream.

In a fourth aspect, an embodiment of the present disclosure further provides a device for switching a view angle of a free view angle video, which is integrated in a media server, and includes:

the target video stream determining module is used for determining a target video stream after visual angle switching based on visual angle switching information in a low-delay room corresponding to a user side if a visual angle change message in the low-delay room is monitored, wherein the visual angle change message is generated when the user side sends the visual angle switching information to the low-delay room through a low-delay server, and the visual angle switching information is determined according to visual angle switching operation triggered by a user;

and the target video stream pushing module is used for pushing the target video stream to the low-delay room, so that the user side obtains the target video stream in the low-delay room through a low-delay server and plays the target video stream.

In a fifth aspect, an embodiment of the present disclosure further provides a system for switching a view angle of a free-view video, where the system includes: a user terminal, a media server and a low-delay server;

wherein each of the clients is configured to implement the view switching method for the free view video according to the first aspect of the present disclosure;

the media server is used for realizing the view switching method of the free view video provided by the second aspect of the disclosure.

In a sixth aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:

one or more processors;

a memory for storing one or more programs;

when the one or more programs are executed by the one or more processors, the one or more processors implement the method for switching the view of the freeview video according to any of the embodiments of the present disclosure.

In a seventh aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the view switching method of the free view video according to any one of the disclosed embodiments.

According to the technical scheme of the embodiment, the user side determines the visual angle switching information according to the visual angle switching operation triggered by the user, and sends the visual angle switching information to a low-delay room corresponding to the user side through the low-delay server, so that when the media server monitors the visual angle change message in the low-delay room, the target video stream after the visual angle switching is determined based on the visual angle switching information and is pushed to the low-delay room, the user side obtains the target video stream in the low-delay room through the low-delay server and plays the target video stream, and therefore the target video stream after the visual angle switching is forwarded by the low-delay server, the user side can quickly obtain and play the target video stream, the visual angle switching speed is improved, the condition that video cards are discontinuous during the visual angle switching is avoided, and the video switching smoothness is ensured, the user watching experience is improved, and meanwhile, the user only needs to download one path of video stream, so that the requirement of network downlink bandwidth is lowered.

Drawings

The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.

Fig. 1 is a flowchart of a method for switching a view angle of a free-view video according to an embodiment of the present disclosure;

fig. 2 is a flowchart of a method for switching a view angle of a free-view video according to a second embodiment of the disclosure;

fig. 3 is an alignment example of a video stream according to a second embodiment of the present disclosure;

fig. 4 is a flowchart of a method for switching a view angle of a free-view video according to a third embodiment of the present disclosure;

fig. 5 is an example of a video frame set according to a third embodiment of the present disclosure;

fig. 6 is a schematic structural diagram of a device for switching a view angle of a free-view video according to a fourth embodiment of the present disclosure;

fig. 7 is a schematic structural diagram of a device for switching a view angle of a free-view video according to a fifth embodiment of the present disclosure;

fig. 8 is a schematic structural diagram of a system for switching a view angle of a free-view video according to a sixth embodiment of the present disclosure;

fig. 9 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present disclosure.

Detailed Description

Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.

It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.

The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.

It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.

It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.

The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.

Example one

Fig. 1 is a flowchart of a method for switching a view angle of a free view angle video according to an embodiment of the present disclosure, where the embodiment is applicable to a case of switching a view angle of a free view angle video, and especially applicable to an application scenario in which a view angle is switched when the free view angle video is a live video, and also applicable to an application scenario in which a view angle is switched when the free view angle video is an on-demand video. The method can be executed by a view switching device of the free view video, and the device can be realized by software and/or hardware and is integrated in a user terminal. As shown in fig. 1, the method specifically includes the following steps:

and S110, determining visual angle switching information according to visual angle switching operation triggered by a user.

The free-view video in the embodiment of the present disclosure may be a video shot in real time, that is, a live video. For example, live videos are obtained by shooting the same object in real time by using cameras at different viewing angles. The free-view video may also be a video that has already been shot, i.e., an on-demand video. For example, the video-on-demand obtained after shooting the same object by using cameras at different viewing angles is performed in advance. The view switching operation may refer to an operation in which the user switches a currently viewed view of the currently played free view video. For example, the perspective switching operation may be, but is not limited to, a user sliding operation or a user clicking operation. The view switching information may be used to characterize the information after the view is switched. For example, if the view switching manner in the embodiment of the present disclosure is applied to a live video scene, the view switching information may include target view information after view switching. If the view switching method in the embodiment of the present disclosure is applied to a video-on-demand scene, the view switching information may include, in addition to the target view information after view switching, a current playing progress identifier when a user triggers a view switching operation, so as to determine a playing position of a switched target video stream based on the current playing progress identifier, thereby ensuring video viewing continuity. The currently playing video frame identifier may be, but is not limited to, a currently playing time stamp or a currently playing video frame sequence number.

Specifically, in a live video scene, a user can trigger view switching operation in the process of watching live free view video on a user side, and the user side can determine target view information after view switching according to the view switching operation when detecting the view switching operation triggered by the user. In a video-on-demand scene, a user can trigger visual angle switching operation in the process of watching an on-demand free visual angle video on a user terminal, and when the user terminal detects the visual angle switching operation triggered by the user, the user terminal can determine target visual angle information after visual angle switching and a current playing progress mark when the user triggers the visual angle switching operation according to the visual angle switching operation.

For example, in a live video scene and a video-on-demand scene, the target view angle information after view angle switching may be determined by at least the following means:

the first determination method: and determining target visual angle information after visual angle switching according to the sliding operation of the user.

Specifically, the user can perform a sliding operation on the user side screen to perform view angle switching. For example, the determining, by the user side, the target view information after the view switching according to the user sliding operation may include: if the user slides the screen to the left, the next visual angle information of the current visual angle information along the anticlockwise direction is used as the target visual angle information after the visual angle is switched; and if the user slides the screen to the right, taking the next visual angle information of the current visual angle information along the clockwise direction as the target visual angle information after the visual angle is switched. The user side in the embodiment of the present disclosure may further determine target view information after view switching according to the user sliding direction and the sliding distance. For example, the view angle offset direction is determined according to the user sliding direction, and the view angle offset angle relative to the current view angle is determined according to the current sliding distance of the user, so that a plurality of view angles can be switched at one time, and the switching operation is simplified. Exemplarily, if the user slides the screen to the left, the viewing angle shift direction is determined to be the counterclockwise direction; and if the user slides the screen to the right, determining that the visual angle deviation direction is clockwise. And determining the view angle offset angle relative to the current view angle according to the preset corresponding relation between the sliding distance and the offset angle and the current sliding distance of the user.

The second determination method is as follows: and determining target visual angle information after visual angle switching according to the user clicking visual angle operation.

Specifically, the view button corresponding to each view that the user can select to watch can be displayed on the screen of the user side, so that the user can click the corresponding view button based on the view that the user wants to switch, and the user side can quickly obtain the target view information after the view is switched based on the view button clicked by the user, thereby improving the switching efficiency.

And S120, sending the view switching information to a low-delay room corresponding to the user side through the low-delay server, so that when the media server monitors the view change message in the low-delay room, the media server determines a target video stream after view switching based on the view switching information, and pushes the target video stream to the low-delay room.

The media server may refer to a background server of the user terminal. The low latency server may be a server having a low latency communication protocol. The low-delay server can forward the video stream between the media server and the user side so as to realize low-delay video transmission. The low-latency room is created on a low-latency server based on the user side for achieving a low-latency communication effect. Each user side corresponds to a low-delay room. Each low latency room includes an independent user terminal and a common media server. For example, the low latency server may be, but is not limited to, a Real Time Communication (RTC) server, and the low latency room may be, but is not limited to, an RTC room.

Specifically, before the user end starts playing the free-view video, the media server creates a corresponding low-latency room for the user end at the low-latency server, so that low-latency communication can be performed with the user end through the low-latency room. After the user side obtains the view switching information, the view switching information can be sent to the delay server, and then the delay server sends the view switching information to the corresponding low-delay room. The media server may monitor whether a view angle change message exists in each low-latency room in real time, and if the view angle change message in the low-latency room corresponding to the user end is monitored, the media server may determine a target video stream after view angle switching based on the view angle switching information and push the target video stream to the corresponding low-latency room.

S130, obtaining the target video stream in the low-delay room through the low-delay server, and playing the target video stream.

Specifically, after the media server pushes the target video stream after the view angle is switched to the corresponding low-latency room, the user terminal may actively pull the target video stream in the low-latency room through the low-latency server, or passively receive the target video stream in the low-latency room sent through the low-latency server. For example, when the low latency server is an RTC server, the client can pull the target video stream in the low latency room through the RTC server. By utilizing the low-delay server, the user side can quickly obtain and play the target video stream after the visual angle is switched, the visual angle switching speed is improved, the condition that video cards are discontinuous when the visual angles are switched is avoided, the video switching smoothness is ensured, and the user watching experience is improved. Meanwhile, the user terminal only needs to download one path of video stream, namely the video stream under one watching visual angle, and does not need to download the video streams under all visual angles, so that the requirement of network downlink bandwidth is greatly reduced.

According to the technical scheme of the embodiment, the user side determines the visual angle switching information according to the visual angle switching operation triggered by the user, and sends the visual angle switching information to the low-delay room corresponding to the user side through the low-delay server, so that when the media server monitors the visual angle change message in the low-delay room, the target video stream after the visual angle switching is determined based on the visual angle switching information and is pushed to the low-delay room, the user side obtains the target video stream in the low-delay room through the low-delay server and plays the target video stream, and therefore the target video stream after the visual angle switching is forwarded by the low-delay server, the user side can quickly obtain and play the target video stream, the visual angle switching speed is improved, the situation that a video card is discontinuous during the visual angle switching is avoided, and the video switching smoothness is ensured, the user watching experience is improved, and meanwhile, the user only needs to download one path of video stream, so that the requirement of network downlink bandwidth is lowered.

On the basis of the above technical solution, before step S110, the following steps S101 to S103 may be executed to implement playing of the free-view video at the preset view angle before switching:

s101, sending a video playing request to a media server, so that the media server creates a low-delay room corresponding to a user side through a low-delay server based on the video playing request, and sends room information of the low-delay room to the user side.

Specifically, the user side generates a video playing request based on a playing operation triggered by the user for the free-view video, and sends the video playing request to the media server, and when receiving the video playing request, the media server can notify the low-latency server to allocate a low-latency room to the user side, so that a video stream is pushed in the low-latency room, and a low-latency communication effect is achieved. The media server may obtain room information for the assigned low latency room and send the room information to the user side.

And S102, receiving the room information of the low-delay room, and connecting the low-delay room corresponding to the room information through the low-delay server.

Specifically, when the user side receives the room information sent by the media server, the user side may connect the corresponding low latency room on the low latency server based on the room information, so that the user side may receive the video stream pushed to the low latency room.

S103, obtaining the video stream in the low-delay room through the low-delay server, and playing the obtained video stream, wherein the obtained video stream is the video stream under the preset visual angle pushed by the media server.

The preset view angle may be a default view angle when the video with the free view angle is viewed, and may be preset based on a service requirement.

Specifically, after a low-latency room corresponding to the user end is created, the media server may push a video stream at a preset viewing angle to the low-latency room. The user side can actively pull the video stream under the preset visual angle in the low-delay room through the low-delay server, and can also passively receive the video stream under the preset visual angle in the low-delay room sent by the low-delay server, so that the user side can start to play the video stream under the preset visual angle. When a user triggers the visual angle switching operation, the video stream at the preset visual angle can be quickly switched to the target video stream for playing through the visual angle switching mode, the time delay is low, and the video switching smoothness is guaranteed.

Example two

Fig. 2 is a flowchart of a method for switching a view angle of a free view angle video according to a second embodiment of the present disclosure, where the present embodiment is applicable to a case of switching a view angle of a free view angle video, and especially applicable to an application scenario in which a view angle is switched when the free view angle video is a live video, and also applicable to an application scenario in which a view angle is switched when the free view angle video is an on-demand video. The method can be executed by a view switching device of the free view video, which can be realized by software and/or hardware and is integrated in a media server. As shown in fig. 2, the method specifically includes the following steps:

s210, if a visual angle change message in a low-delay room corresponding to the user side is monitored, determining a target video stream after visual angle switching based on visual angle switching information in the low-delay room, wherein the visual angle change message is generated when the user side sends the visual angle switching information to the low-delay room through the low-delay server, and the visual angle switching information is determined according to visual angle switching operation triggered by the user.

The media server may refer to a background server of the user terminal. The low latency server may be a server having a low latency communication protocol. The low-delay server can forward the video stream between the media server and the user side so as to realize low-delay video transmission. The low-latency room is created on a low-latency server based on the user side for achieving a low-latency communication effect. Each user side corresponds to a low-delay room. Each low latency room includes an independent user terminal and a common media server. For example, the low latency server may be, but is not limited to, an RTC server, and the low latency room may be, but is not limited to, an RTC room.

The free-view video in the embodiment of the present disclosure may be a video shot in real time, that is, a live video. For example, live videos are obtained by shooting the same object in real time by using cameras at different viewing angles. The free-view video may also be a video that has already been shot, i.e., an on-demand video. For example, the video-on-demand obtained after shooting the same object by using cameras at different viewing angles is performed in advance. The view switching operation may refer to an operation in which the user switches a currently viewed view of the currently played free view video. For example, the perspective switching operation may be, but is not limited to, a user sliding operation or a user clicking operation. The view switching information may be used to characterize the information after the view is switched. For example, if the view switching manner in the embodiment of the present disclosure is applied to a live video scene, the view switching information may include target view information after view switching. If the view switching method in the embodiment of the present disclosure is applied to a video-on-demand scene, the view switching information may include, in addition to the target view information after view switching, a current playing progress identifier when a user triggers a view switching operation, so as to determine a playing position of a switched target video stream based on the current playing progress identifier, thereby ensuring video viewing continuity. The currently playing video frame identifier may be, but is not limited to, a currently playing time stamp or a currently playing video frame sequence number.

For a live video scene, the user side can determine target visual angle information after visual angle switching according to visual angle switching operation triggered by a user, and the target visual angle information after visual angle switching is sent to a low-delay room corresponding to the user side through the low-delay server. The visual angle information in the low-delay room is the visual angle information before switching, so that the visual angle information in the low-delay room is changed, and a visual angle change message is generated. When monitoring the view angle change message in the low latency room, the media server may determine the target video stream after view angle switching based on the target view angle information in the low latency room.

Illustratively, in a video live scene, S210 may include: and determining the target video stream after the view angle switching according to the current live video stream corresponding to each aligned view angle information and the target view angle information after the view angle switching in the low-delay room.

Specifically, the media server can receive the current live video stream collected by the camera at each viewing angle in real time, and each video frame in each received current live video stream has the alignment information, so that each current live video stream can be aligned based on the alignment information, and the video streams at different viewing angles can be synchronously played. The alignment information may be, but is not limited to, an acquisition time stamp or a frame sequence number of the video frame. Fig. 3 shows an example of alignment of a video stream. As shown in fig. 3, the video frames with the same frame number or the same capture timestamp in the current live video stream at each view angle may be used as the video frames at the same playing time, so as to obtain the current live video stream corresponding to each aligned view angle information. And determining a target current live video stream corresponding to the target view angle information after view angle switching, namely the target video stream after view angle switching, from the current live video stream corresponding to each aligned view angle information.

For a video-on-demand scene, the user side can determine target visual angle information after visual angle switching and a current playing progress mark when the user triggers the visual angle switching operation according to the visual angle switching operation triggered by the user, and sends the target visual angle information after the visual angle switching and the current playing progress mark to a low-delay room corresponding to the user side through the low-delay server, so that the visual angle information in the low-delay room is changed, and visual angle change information is generated. When monitoring the view angle change message in the low-latency room, the media server may determine the target video stream after view angle switching based on the target view angle information in the low-latency room and the current playing progress identifier.

Illustratively, in a video-on-demand scenario, S210 may include: determining a target video-on-demand stream under a target visual angle according to the video-on-demand stream corresponding to each aligned visual angle information and the target visual angle information after the visual angle in the low-delay room is switched; and determining the target video stream after the visual angle switching based on the current playing progress mark and the target on-demand video stream when the user in the low-delay room triggers the visual angle switching operation.

Specifically, the media server may perform alignment operation on the on-demand video stream collected by the camera at each view angle in advance, for example, the video frames with the same frame number or the same collection timestamp in the on-demand video stream at each view angle are used as the video frames at the same playing time, so as to obtain the on-demand video stream corresponding to each aligned view angle information. And determining a target video-on-demand stream corresponding to the target visual angle information after the visual angle is switched from the video-on-demand stream corresponding to each aligned visual angle information. The media server can determine a target video frame in the target on-demand video stream based on the current playing progress mark when the user triggers the visual angle switching operation, can perform video interception on the target on-demand video stream based on the target video frame, and takes the video stream behind the target video frame in the target on-demand video stream as the target video stream after the visual angle switching.

S220, the target video stream is pushed to the low-delay room, so that the user terminal obtains the target video stream in the low-delay room through the low-delay server and plays the target video stream.

Specifically, the media server pushes the target video stream after the view angle is switched to a low-latency room corresponding to the user side, so that the user side can actively pull the target video stream in the low-latency room through the low-latency server, and can passively receive the target video stream in the low-latency room sent through the low-latency server. By utilizing the low-delay server, the user side can quickly obtain and play the target video stream after the visual angle is switched, the visual angle switching speed is improved, the condition that video cards are discontinuous when the visual angles are switched is avoided, the video switching smoothness is ensured, and the user watching experience is improved. Meanwhile, the user terminal only needs to download one path of video stream, namely the video stream under one watching visual angle, and does not need to download the video streams under all visual angles, so that the requirement of network downlink bandwidth is greatly reduced.

According to the technical scheme of the embodiment, the user side determines the visual angle switching information according to the visual angle switching operation triggered by the user, and sends the visual angle switching information to the low-delay room corresponding to the user side through the low-delay server, so that when the media server monitors the visual angle change message in the low-delay room, the target video stream after the visual angle switching is determined based on the visual angle switching information in the low-delay room, and the target video stream is pushed to the low-delay room, the user side obtains the target video stream in the low-delay room through the low-delay server and plays the target video stream, and therefore the target video stream after the visual angle switching is forwarded by the low-delay server, the user side can quickly obtain and play the target video stream, the visual angle switching speed is improved, the condition that a video card is discontinuous during the visual angle switching is avoided, and the video switching smoothness is ensured, the user watching experience is improved, and meanwhile, the user only needs to download one path of video stream, so that the requirement of network downlink bandwidth is lowered.

On the basis of the above technical solution, before step S210, the following steps S201 to S203 may be executed to implement playing of the free-view video at the preset view angle before switching:

s201, receiving a video playing request sent by a user side.

Specifically, the user side generates a video playing request based on a playing operation triggered by the user for the free view video, and sends the video playing request to the media server, so that the media server can receive the video playing request.

S202, a low-delay room corresponding to the user side is created through the low-delay server based on the video playing request, and a visual angle change message of the low-delay room is monitored.

Specifically, after receiving the video playing request, the media server may notify the low-latency server to create a low-latency room for the client, and monitor the view angle change message in the created low-latency room in real time, so as to push video streams at different view angles in time, and ensure the view angle switching speed.

And S203, sending the room information of the low-delay room to the user side so that the user side is connected with the low-delay room corresponding to the room information through the low-delay server.

Specifically, the media server may transmit room information of the assigned low latency room to the user terminal. The client can connect to the corresponding low-latency room on the low-latency server based on the room information, so that the client can receive the video stream pushed to the low-latency room.

And S204, pushing the video stream under the preset visual angle to the low-delay room so that the user terminal obtains the video stream in the low-delay room through the low-delay server and plays the obtained video stream.

The preset view angle may be a default view angle when the video with the free view angle is viewed, and may be preset based on a service requirement.

Specifically, the media server may push a video stream at a preset viewing angle to the low-latency room to achieve a low-latency communication effect. The user side can actively pull the video stream under the preset visual angle in the low-delay room through the low-delay server, and can also passively receive the video stream under the preset visual angle in the low-delay room sent by the low-delay server, so that the user side can start to play the video stream under the preset visual angle. When a user triggers the visual angle switching operation, the video stream at the preset visual angle can be quickly switched to the target video stream for playing through the visual angle switching mode, the time delay is low, and the video switching smoothness is guaranteed.

EXAMPLE III

Fig. 4 is a flowchart of a method for switching a view angle of a free view angle video according to a third embodiment of the present disclosure, and this embodiment describes in detail a pushing manner of a target video stream in a live video scene on the basis of the second embodiment. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted.

Referring to fig. 4, the method for switching the view angle of the free-view video provided in this embodiment specifically includes the following steps:

s410, acquiring a preset number of video frame sets which are cached latest currently, wherein each video frame set comprises video frames under each aligned visual angle.

In particular, in a live video scene, more and more sets of video frames may be obtained and each set of video frames may be buffered over time. Each video frame set of the cache comprises the aligned live video frames under each view angle. For example, fig. 5 shows an example of a set of video frames. As shown in fig. 5, each obtained video frame set is buffered, so that the currently most recently buffered M video frame sets can be obtained. It should be noted that, as time goes on, the current latest cached M sets of video frames are updated in real time.

Exemplarily, as shown in fig. 5, before S410, the method may further include: acquiring alignment information corresponding to each video frame in a current live video stream and a current live video stream currently acquired by a camera at each visual angle; and merging the video frames with the same alignment information in the current live video stream under each view angle into a video frame set, and caching the merged video frame set.

Illustratively, merging video frames having the same alignment information in the current live video stream at each view angle into one video frame set may include: merging video frames with the same acquisition time stamp in the current live video stream under each view angle into a video frame set; or merging the video frames with the same frame number in the current live video stream under each view angle into a video frame set.

And S420, determining a target video frame set from a preset number of video frame sets.

Specifically, the media server may sequentially determine, from a preset number of video frame sets currently cached most recently, a target video frame set according to the caching sequence of each video frame set that has not been pushed yet. For example, if the buffering frequency of the video frames is consistent with the pushing frequency, that is, no video frame set with the preset number of the latest buffering is pushed, step S420 may include: and determining a video frame set with the earliest acquisition time or a video frame set with the smallest frame number in a preset number of video frame sets as a target video frame set. If the cache frequency and the push frequency of the video frames are not consistent due to the fact that the video stream collected by the camera is not obtained in time due to a network problem, that is, the parts of the preset number of video frame sets cached latest currently are not pushed, the next video frame set of the video frame sets cached latest last time in the preset number of video frame sets cached latest currently can be used as a target video frame set, and therefore the earliest cached video frame set which is not pushed yet in the preset number of video frame sets cached latest currently can be pushed to a user side. According to the embodiment of the disclosure, the target video frame set is determined from the buffered preset number of video frame sets, so that the situation that the video stream pushing is interrupted due to the fact that the video stream collected by the camera is not obtained in time can be avoided, the time delay can be further reduced, and the video watching fluency can be ensured.

And S430, determining a target video frame after the visual angle is switched from the target video frame set according to the target visual angle information after the visual angle is switched in the low-delay room, pushing the target video frame to the low-delay room, and returning to execute the operation of the S410.

Specifically, the media server may use, based on the target view information in the low-latency room, a video frame corresponding to the target view information in the target video frame set as a target video frame after view switching, and send the target video frame to the low-latency room, so that the user end may obtain the target video frame in the low-latency room through the low-latency server. After the media server can send the target video frame, the operation of S410 is executed again to determine the next pushed target video frame, and the target video frame is pushed to the low-latency room, and so on, so that the user end can obtain the target video stream after the view angle is switched, and play the target video stream.

Illustratively, after pushing the target video frame to the low-latency room, the method may further include: when a plurality of user sides exist, deleting the target video frame set in the cache after the video frame pushing traversal is finished for the low-delay room corresponding to each user side.

Specifically, after determining a target video frame set to be pushed, the media server may traverse a low-latency room corresponding to each user side, determine a corresponding video frame from the target video frame set based on the view angle information in each low-latency room, and send the corresponding video frame to the low-latency room. After the media server completes traversal of all the low-delay rooms, the target video frame set can be deleted from the cache, so that the pushed video frame set can be deleted in time, the memory space is released, and the operation performance is improved. After deleting the target video frame set in the cache, the media server may return to perform the operation of step S410 to push the next video frame, thereby completing the stream pushing operation of the video frame.

According to the technical scheme of the embodiment, the media server determines the target video frame set from the preset number of video frame sets by acquiring the preset number of video frame sets which are cached latest currently, determines the target video frame after the visual angle is switched from the target video frame set according to the target visual angle information after the visual angle is switched in the low-delay room, and pushes the target video frame to the low-delay room, so that the low-delay room corresponding to each user side can be traversed and pushed with the video frame based on the target video frame set, the media server can only take out the target video frame set once from the cache, the pushing requirements of all the user sides can be met, the caching read-write times are reduced, and the operation performance is improved.

The following is an embodiment of a device for switching a view angle of a free-view video according to an embodiment of the present disclosure, which belongs to the same inventive concept as the method for switching a view angle of a free-view video according to the first embodiment, and reference may be made to the method for switching a view angle of a free-view video according to the first embodiment for details that are not described in detail in the embodiment of the device for switching a view angle of a free-view video.

Example four

Fig. 6 is a schematic structural diagram of a device for switching a view angle of a free-view video according to a fourth embodiment of the present disclosure, which is applicable to a situation of switching a view angle of a free-view video. As shown in fig. 6, the apparatus specifically includes: a view switching information determining module 610, a view switching information transmitting module 620 and a target video stream playing module 630.

The view switching information determining module 610 is configured to determine view switching information according to a view switching operation triggered by a user; the view switching information sending module 620 is configured to send the view switching information to a low-latency room corresponding to the user side through the low-latency server, so that when the media server monitors a view change message in the low-latency room, the media server determines a target video stream after view switching based on the view switching information, and pushes the target video stream to the low-latency room; and a target video stream playing module 630, configured to obtain the target video stream in the low-latency room through the low-latency server, and play the target video stream.

According to the technical scheme of the embodiment, the user side determines the visual angle switching information according to the visual angle switching operation triggered by the user, and sends the visual angle switching information to the low-delay room corresponding to the user side through the low-delay server, so that when the media server monitors the visual angle change message in the low-delay room, the target video stream after the visual angle switching is determined based on the visual angle switching information in the low-delay room, and the target video stream is pushed to the low-delay room, the user side obtains the target video stream in the low-delay room through the low-delay server and plays the target video stream, and therefore the target video stream after the visual angle switching is forwarded by the low-delay server, the user side can quickly obtain and play the target video stream, the visual angle switching speed is improved, the condition that a video card is discontinuous during the visual angle switching is avoided, and the video switching smoothness is ensured, the user watching experience is improved, and meanwhile, the user only needs to download one path of video stream, so that the requirement of network downlink bandwidth is lowered.

On the basis of the technical scheme, in a live video scene, the view switching information comprises target view information after view switching; in a video-on-demand scene, the view switching information includes target view information after view switching and a current playing progress mark when a user triggers view switching operation.

On the basis of the above technical solutions, the currently played video frame identifier is a currently played timestamp or a currently played video frame sequence number.

On the basis of the above technical solutions, the viewing angle switching information determining module 610 is specifically configured to: and determining target visual angle information after visual angle switching according to user sliding operation or user visual angle clicking operation.

On the basis of the above technical solutions, the viewing angle switching information determining module 610 is further specifically configured to:

if the user slides the screen to the left, the next visual angle information of the current visual angle information along the anticlockwise direction is used as the target visual angle information after the visual angle is switched; and if the user slides the screen to the right, taking the next visual angle information of the current visual angle information along the clockwise direction as the target visual angle information after the visual angle is switched.

On the basis of the above technical solutions, the apparatus further includes:

the video playing request sending module is used for sending a video playing request to the media server before determining the visual angle switching information according to the visual angle switching operation triggered by the user, so that the media server creates a low-delay room corresponding to the user side through the low-delay server based on the video playing request and sends the room information of the low-delay room to the user side;

the room information receiving module is used for receiving the room information of the low-delay room and connecting the low-delay room corresponding to the room information through the low-delay server;

and the preset visual angle video stream playing module is used for obtaining the video stream in the low-delay room through the low-delay server and playing the obtained video stream, wherein the obtained video stream is the video stream under the preset visual angle pushed by the media server.

On the basis of the technical schemes, the low-delay server is a real-time communication (RTC) server, and the low-delay room is an RTC room.

The device for switching the view angle of the free view angle video, which is provided by the embodiment of the present disclosure, can execute the method for switching the view angle of the free view angle video, and has the corresponding functional modules and beneficial effects for executing the method for switching the view angle of the free view angle video.

It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.

The following is an embodiment of the device for switching a view angle of a free-view video according to the embodiment of the present disclosure, which belongs to the same inventive concept as the method for switching a view angle of a free-view video according to the second embodiment and the third embodiment, and reference may be made to the method for switching a view angle of a free-view video according to the second embodiment and the third embodiment for details that are not described in detail in the embodiment of the device for switching a view angle of a free-view video.

EXAMPLE five

Fig. 7 is a schematic structural diagram of a device for switching a view angle of a free-view video according to a fifth embodiment of the present disclosure, which is applicable to a case of switching a view angle of a free-view video and is integrated in a media server. As shown in fig. 7, the apparatus specifically includes: a target video stream determination module 710 and a target video stream push module 720.

The target video stream determining module 710 is configured to determine, based on view switching information in a low-latency room, a target video stream after view switching if a view change message in the low-latency room corresponding to a user is monitored, where the view change message is generated when the user sends the view switching information to the low-latency room through a low-latency server, and the view switching information is determined according to a view switching operation triggered by the user; and the target video stream pushing module 720 is configured to push the target video stream to the low-latency room, so that the user obtains the target video stream in the low-latency room through the low-latency server, and plays the target video stream.

According to the technical scheme of the embodiment, the user side determines the visual angle switching information according to the visual angle switching operation triggered by the user, and sends the visual angle switching information to the low-delay room corresponding to the user side through the low-delay server, so that when the media server monitors the visual angle change message in the low-delay room, the target video stream after the visual angle switching is determined based on the visual angle switching information in the low-delay room, and the target video stream is pushed to the low-delay room, the user side obtains the target video stream in the low-delay room through the low-delay server and plays the target video stream, and therefore the target video stream after the visual angle switching is forwarded by the low-delay server, the user side can quickly obtain and play the target video stream, the visual angle switching speed is improved, the condition that a video card is discontinuous during the visual angle switching is avoided, and the video switching smoothness is ensured, the user watching experience is improved, and meanwhile, the user only needs to download one path of video stream, so that the requirement of network downlink bandwidth is lowered.

On the basis of the above technical solution, the target video stream determining module 710 and the target video stream pushing module 720 include:

the video frame set acquisition unit is used for acquiring a preset number of video frame sets which are cached latest at present, and each video frame set comprises video frames under each visual angle after alignment;

the target video frame set determining unit is used for determining a target video frame set from a preset number of video frame sets;

and the target video frame pushing unit is used for determining the target video frame after the visual angle is switched from the target video frame set according to the target visual angle information after the visual angle is switched in the low-delay room, pushing the target video frame to the low-delay room, and returning to execute the operation of obtaining the current latest cached preset number of video frame sets.

On the basis of the above technical solutions, the apparatus further includes:

the system comprises a current live video stream acquisition unit, a current live video stream acquisition unit and a video frame matching unit, wherein the current live video stream acquisition unit is used for acquiring alignment information corresponding to each video frame in a current live video stream and a current live video stream currently acquired by a camera at each visual angle before acquiring a preset number of video frame sets currently cached latest;

and the video frame merging unit is used for merging the video frames with the same alignment information in the current live video stream under each view angle into a video frame set and caching the merged video frame set.

On the basis of the above technical solutions, the video frame merging unit is specifically configured to:

merging video frames with the same acquisition time stamp in the current live video stream under each view angle into a video frame set; or merging the video frames with the same frame number in the current live video stream under each view angle into a video frame set.

On the basis of the above technical solutions, the target video frame set determining unit is specifically configured to:

and determining a video frame set with the earliest acquisition time or a video frame set with the smallest frame number in a preset number of video frame sets as a target video frame set.

On the basis of the above technical solutions, the apparatus further includes:

and the target video frame deleting unit is used for deleting the target video frame set in the cache after the target video frame is pushed to the low-delay room and when a plurality of user sides exist and the video frame pushing traversal is finished for the low-delay room corresponding to each user side.

On the basis of the foregoing technical solutions, the target video stream determining module 710 is further specifically configured to:

and determining the target video stream after the view angle switching according to the current live video stream corresponding to each aligned view angle information and the target view angle information after the view angle switching in the low-delay room.

On the basis of the foregoing technical solutions, the target video stream determining module 710 is further specifically configured to:

determining a target video-on-demand stream under a target visual angle according to the video-on-demand stream corresponding to each aligned visual angle information and the target visual angle information after the visual angle in the low-delay room is switched; and determining the target video stream after the visual angle switching based on the current playing progress mark and the target on-demand video stream when the user in the low-delay room triggers the visual angle switching operation.

On the basis of the above technical solutions, the apparatus further includes:

the video playing request receiving module is used for receiving a video playing request sent by the user side before monitoring the visual angle change message in the low-delay room corresponding to the user side;

the low-delay room creating module is used for creating a low-delay room corresponding to the user side through the low-delay server based on the video playing request and monitoring a visual angle change message of the low-delay room;

the room information sending module is used for sending the room information of the low-delay room to the user side so that the user side is connected with the low-delay room corresponding to the room information through the low-delay server;

and the preset visual angle video stream pushing module is used for pushing the video stream at the preset visual angle in the low-delay room so that the user side obtains the video stream in the low-delay room through the low-delay server and plays the obtained video stream.

The device for switching the view angle of the free view angle video, provided by the embodiment of the present disclosure, can execute the method for switching the view angle of the free view angle video, provided by the second and third embodiments of the present disclosure, and has functional modules and beneficial effects corresponding to the method for switching the view angle of the free view angle video.

It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.

EXAMPLE six

Fig. 8 is a schematic structural diagram of a system for switching a view angle of a free-view video according to a sixth embodiment of the present disclosure. The embodiment is applicable to the case of switching the view angle of the free view angle video. As shown in fig. 8, the system includes: user terminal 810, media server 820 and low-latency server 830

Each user end 810 can be configured to implement the method for switching the view angle of the free view angle video according to the first embodiment of the present disclosure; the media server 820 may be used to implement the view switching method of the free view video as provided in the second and third embodiments of the present disclosure. The low-latency server 830 is used to forward the video stream between the user terminal 810 and the media server 820, so as to achieve the technical effect of low latency.

According to the system for switching the visual angle of the free visual angle video, the user side determines visual angle switching information through visual angle switching operation triggered by the user, and sends the visual angle switching information to a low-delay room corresponding to the user side through the low-delay server. And when monitoring the visual angle change message in the low-delay room, the media server determines the target video stream after the visual angle switching based on the visual angle switching information and pushes the target video stream to the low-delay room. The user side obtains the target video stream in the low-delay room through the low-delay server and plays the target video stream, so that the target video stream after the visual angle switching is forwarded by the low-delay server, the user side can quickly obtain and play the target video stream, the visual angle switching speed is improved, the situation that video blocking is discontinuous during the visual angle switching is avoided, the video switching smoothness is ensured, the user watching experience is improved, and meanwhile, the user side only needs to download one path of video stream, and the requirement of network downlink bandwidth is lowered.

EXAMPLE seven

Referring now to fig. 9, a schematic diagram of an electronic device (e.g., a terminal device or server of fig. 9) 900 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.

As shown in fig. 9, the electronic device 900 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 901 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage means 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are also stored. The processing apparatus 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.

Generally, the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 907 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 908 including, for example, magnetic tape, hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic apparatus 900 to perform wireless or wired communication with other apparatuses to exchange data. While fig. 9 illustrates an electronic device 900 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.

In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing apparatus 901.

The electronic device provided by the embodiment of the present disclosure and the method for switching the view angle of the free view angle video provided by the embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment of the present disclosure may be referred to the embodiment, and the embodiment of the present disclosure have the same beneficial effects.

Example eight

The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored, which when executed by a processor, implements the method for switching the view angle of a free-view video provided in any of the embodiments described above.

It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.

In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.

The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.

The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:

determining visual angle switching information according to visual angle switching operation triggered by a user; the visual angle switching information is sent to a low-delay room corresponding to the user side through the low-delay server, so that when the media server monitors visual angle change information in the low-delay room, a target video stream after visual angle switching is determined based on the visual angle switching information, and the target video stream is pushed to the low-delay room; and obtaining the target video stream in the low-delay room through the low-delay server, and playing the target video stream.

Alternatively, the first and second electrodes may be,

if the visual angle change information in the low-delay room corresponding to the user side is monitored, determining a target video stream after visual angle switching based on the visual angle switching information in the low-delay room, wherein the visual angle change information is generated when the user side sends the visual angle switching information to the low-delay room through the low-delay server, and the visual angle switching information is determined according to visual angle switching operation triggered by the user; and pushing the target video stream to the low-delay room, so that the user terminal obtains the target video stream in the low-delay room through the low-delay server and plays the target video stream.

Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a cell does not in some cases constitute a limitation on the cell itself, for example, an editable content display cell may also be described as an "editing cell".

The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

According to one or more embodiments of the present disclosure, an example i provides a view switching method for free view video, applied to a user side, the method including:

determining visual angle switching information according to visual angle switching operation triggered by a user;

sending the view switching information to a low-delay room corresponding to the user side through a low-delay server, so that when a media server monitors a view change message in the low-delay room, a target video stream after view switching is determined based on the view switching information, and the target video stream is pushed to the low-delay room;

and obtaining the target video stream in the low-delay room through the low-delay server, and playing the target video stream.

According to one or more embodiments of the present disclosure, [ example two ] there is provided a view switching method of free view video, applied to a user side, the method further including:

optionally, in a live video scene, the view switching information includes target view information after view switching;

in a video-on-demand scene, the view switching information includes target view information after view switching and a current playing progress mark when a user triggers view switching operation.

According to one or more embodiments of the present disclosure, [ example three ] there is provided a view switching method of free view video, applied to a user side, the method further including:

optionally, the currently played video frame identifier is a currently played timestamp or a currently played video frame sequence number.

According to one or more embodiments of the present disclosure, [ example four ] there is provided a view switching method of free view video, applied to a user side, the method further comprising:

optionally, the determining, according to the view switching operation, the target view information after view switching includes:

and determining target visual angle information after visual angle switching according to user sliding operation or user visual angle clicking operation.

According to one or more embodiments of the present disclosure, [ example five ] there is provided a view switching method of free view video, applied to a user side, the method further comprising:

optionally, the determining, according to the user sliding operation, the target view information after the view switching includes:

if the user slides the screen to the left, the next visual angle information of the current visual angle information along the anticlockwise direction is used as the target visual angle information after the visual angle is switched;

and if the user slides the screen to the right, taking the next visual angle information of the current visual angle information along the clockwise direction as the target visual angle information after the visual angle is switched.

According to one or more embodiments of the present disclosure, [ example six ] there is provided a view switching method of free view video, applied to a user side, the method further including:

optionally, before determining the view switching information according to the view switching operation triggered by the user, the method further includes:

sending a video playing request to the media server, so that the media server creates a low-delay room corresponding to the user side through the low-delay server based on the video playing request, and sends room information of the low-delay room to the user side;

receiving room information of the low-delay room, and connecting the low-delay room corresponding to the room information through the low-delay server;

and obtaining the video stream in the low-delay room through the low-delay server, and playing the obtained video stream, wherein the obtained video stream is the video stream under the preset visual angle pushed by the media server.

According to one or more embodiments of the present disclosure, [ example seven ] there is provided a view switching method of free view video, applied to a user side, the method further comprising:

optionally, the low latency server is a real-time communication RTC server, and the low latency room is an RTC room.

According to one or more embodiments of the present disclosure, [ example eight ] there is provided a view angle switching method of a free view angle video, applied to a media server, the method including:

if a visual angle change message in a low-delay room corresponding to a user side is monitored, determining a target video stream after visual angle switching based on visual angle switching information in the low-delay room, wherein the visual angle change message is generated when the user side sends the visual angle switching information to the low-delay room through a low-delay server, and the visual angle switching information is determined according to visual angle switching operation triggered by the user;

and pushing the target video stream to the low-delay room, so that the user side obtains the target video stream in the low-delay room through a low-delay server, and playing the target video stream.

According to one or more embodiments of the present disclosure, [ example nine ] there is provided a view switching method of a free view video, applied to a media server, the method further comprising:

optionally, the target video stream after the view switching is determined based on the view switching information in the low-latency room; pushing the target video stream to the low latency room, comprising:

acquiring a preset number of video frame sets which are cached latest currently, wherein each video frame set comprises video frames under each aligned view angle;

determining a target video frame set from the preset number of video frame sets;

and determining a target video frame after the visual angle is switched from the target video frame set according to the target visual angle information after the visual angle is switched in the low-delay room, pushing the target video frame to the low-delay room, and returning to execute the operation of obtaining the preset number of video frame sets which are cached latest currently.

According to one or more embodiments of the present disclosure, [ example ten ] there is provided a view switching method of a free view video, applied to a media server, the method further comprising:

optionally, before the obtaining of the preset number of video frame sets currently cached last, the method further includes:

acquiring a current live video stream currently acquired by a camera at each view angle and alignment information corresponding to each video frame in the current live video stream;

and merging the video frames with the same alignment information in the current live video stream under each view angle into a video frame set, and caching the merged video frame set.

According to one or more embodiments of the present disclosure, [ example eleven ] there is provided a view switching method of a free view video, applied to a media server, the method further comprising:

optionally, merging video frames with the same alignment information in the current live video stream at each view angle into a video frame set, including:

merging video frames with the same acquisition time stamp in the current live video stream under each view angle into a video frame set; alternatively, the first and second electrodes may be,

and merging the video frames with the same frame number in the current live video stream under each view angle into a video frame set.

According to one or more embodiments of the present disclosure, [ example twelve ] there is provided a view switching method of a free view video, applied to a media server, the method further comprising:

optionally, determining a target video frame set from the preset number of video frame sets includes:

and determining the video frame set with the earliest acquisition time or the video frame set with the smallest frame number in the preset number of video frame sets as a target video frame set.

According to one or more embodiments of the present disclosure, [ example thirteen ] there is provided a view switching method of a free view video, applied to a media server, the method further comprising:

optionally, after the target video frame is pushed to the low latency room, the method further includes:

and when a plurality of user sides exist, deleting the target video frame set in the cache after the video frame pushing traversal is finished for the low-delay room corresponding to each user side.

According to one or more embodiments of the present disclosure, [ example fourteen ] there is provided a view angle switching method of a free view angle video, applied to a media server, the method further comprising:

optionally, determining the target video stream after the view switching based on the view switching information in the low-latency room includes:

and determining the target video stream after the view angle switching according to the current live video stream corresponding to each aligned view angle information and the target view angle information after the view angle switching in the low-delay room.

According to one or more embodiments of the present disclosure, [ example fifteen ] there is provided a view switching method of a free view video, applied to a media server, the method further comprising:

optionally, determining the target video stream after the view switching based on the view switching information in the low-latency room includes:

determining a target video-on-demand stream under a target visual angle according to the video-on-demand stream corresponding to each aligned visual angle information and the target visual angle information after the visual angle in the low-delay room is switched;

and determining the target video stream after the visual angle switching based on the current playing progress mark when the user in the low-delay room triggers the visual angle switching operation and the target video-on-demand stream.

According to one or more embodiments of the present disclosure, [ example sixteen ] there is provided a view angle switching method of a free view angle video, applied to a media server, the method further comprising:

optionally, before the monitoring of the view angle change message in the low-latency room corresponding to the user side, the method further includes:

receiving a video playing request sent by the user side;

creating a low-delay room corresponding to the user side through the low-delay server based on the video playing request, and monitoring a visual angle change message of the low-delay room;

sending the room information of the low-delay room to the user side, so that the user side is connected with the low-delay room corresponding to the room information through a low-delay server;

and pushing the video stream under a preset visual angle to the low-delay room, so that the user side obtains the video stream in the low-delay room through the low-delay server and plays the obtained video stream.

According to one or more embodiments of the present disclosure, [ example seventeen ] there is provided a view angle switching apparatus of a free view angle video, integrated at a user end, the apparatus comprising:

the visual angle switching information determining module is used for determining visual angle switching information according to visual angle switching operation triggered by a user;

the visual angle switching information sending module is used for sending the visual angle switching information to a low-delay room corresponding to the user side through a low-delay server so that when the media server monitors visual angle change information in the low-delay room, a target video stream after visual angle switching is determined based on the visual angle switching information, and the target video stream is pushed to the low-delay room;

and the target video stream playing module is used for obtaining the target video stream in the low-delay room through the low-delay server and playing the target video stream.

According to one or more embodiments of the present disclosure, [ example eighteen ] there is provided a view angle switching apparatus of a free view angle video, integrated in a media server, the apparatus comprising:

the target video stream determining module is used for determining a target video stream after visual angle switching based on visual angle switching information in a low-delay room corresponding to a user side if a visual angle change message in the low-delay room is monitored, wherein the visual angle change message is generated when the user side sends the visual angle switching information to the low-delay room through a low-delay server, and the visual angle switching information is determined according to visual angle switching operation triggered by a user;

and the target video stream pushing module is used for pushing the target video stream to the low-delay room, so that the user side obtains the target video stream in the low-delay room through a low-delay server and plays the target video stream.

The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.

Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

27页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:视频封面设置方法、装置、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类