CN106658070B - Method and device for redirecting video - Google Patents

Method and device for redirecting video Download PDF

Info

Publication number
CN106658070B
CN106658070B CN201710046703.1A CN201710046703A CN106658070B CN 106658070 B CN106658070 B CN 106658070B CN 201710046703 A CN201710046703 A CN 201710046703A CN 106658070 B CN106658070 B CN 106658070B
Authority
CN
China
Prior art keywords
video
audio
played
client
player
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710046703.1A
Other languages
Chinese (zh)
Other versions
CN106658070A (en
Inventor
巫超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yundian Technology Co ltd
Original Assignee
Shenzhen Yundian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yundian Technology Co ltd filed Critical Shenzhen Yundian Technology Co ltd
Priority to CN201710046703.1A priority Critical patent/CN106658070B/en
Publication of CN106658070A publication Critical patent/CN106658070A/en
Application granted granted Critical
Publication of CN106658070B publication Critical patent/CN106658070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/454Content or additional data filtering, e.g. blocking advertisements
    • H04N21/4542Blocking scenes or portions of the received content, e.g. censoring scenes

Landscapes

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

Abstract

The invention provides a method and a device for redirecting a video, which relate to the field of information technology, and the method comprises the following steps: intercepting the audio and video to be played before a video player in the server decodes and plays the audio and video to be played, wherein the audio and video to be played is the video which is requested to be played by a client to the server through a remote desktop; processing the video player so that the processed video player does not generate alarm information after the audio/video to be played is intercepted; after the video player is processed, the audio and video to be played are sent to the client, wherein after the client receives the audio and video to be played, the client synthesizes the audio and video to be played and the picture of the remote desktop, and displays the synthesis result on a display interface of the client, so that the technical problem of poor performance when a server transmits audio and video data to the client through the remote desktop in the prior art is solved.

Description

Method and device for redirecting video
Technical Field
The present invention relates to the field of information technology, and in particular, to a method and an apparatus for video redirection.
Background
Under the technical background of the current remote desktop, the traditional virtualization desktop remote access technology (or a sharing scheme and a VDI scheme) cannot well solve the problem that a user plays a video, and if the user does not do any processing, the video playing is very unsmooth. In order to solve the problem, a better mode in the prior art is to compress the whole screen into a video stream again after playing the video and transmit the video stream to the client, and the client displays the video as a whole desktop picture, so that a smoother impression can be obtained.
However, the method of pressing the screen into the video again consumes a large amount of CPU resources of the host, because each desktop needs to be pressed into the video independently in real time, and in addition, the player also consumes a higher CPU when playing the video, so that the CPU occupation is very high when the terminal scheme generally plays the video, and it is difficult to smoothly play the high-definition video by a plurality of users at the same time.
Disclosure of Invention
The invention aims to provide a method and a device for redirecting videos, so as to solve the technical problem of poor performance when a server transmits audio and video data to a client through a remote desktop in the prior art.
According to an aspect of the embodiments of the present invention, there is provided a method for video redirection, including: intercepting the audio and video to be played before a video player in a server decodes and plays the audio and video to be played, wherein the audio and video to be played is the video which is requested to be played by a client to the server through a remote desktop; processing the video player so that the processed video player does not generate alarm information after the audio and video to be played are intercepted; and after the video player is processed, sending the audio and video to be played to the client, wherein after the client receives the audio and video to be played, the client synthesizes the audio and video to be played and the picture of the remote desktop, and performs local decoding operation on the synthesized picture so as to display the synthesized picture on a display interface of the client.
Further, processing the video player comprises: sending playing information to the video player, wherein the playing information is used for indicating the video player to play a preset video so as to replace the video player to play the audio and video to be played, each frame of the preset video is a color indicated by a key color, and the color with a color value of #00000F in a desktop picture of the client is set to be a transparent color, wherein the key color is a color selected in advance.
Further, sending the audio and video to be played to the client for decoding and playing comprises: determining the client to which the video stream and the audio stream of the audio and video to be played which are played at the current moment belong; and sending the video stream and the audio stream at the current moment to the client side to decode and play.
According to another aspect of the embodiments of the present invention, there is also provided a method for video redirection, including: the method comprises the steps that audio and video to be played sent by a server are obtained by intercepting the audio and video to be played by the server before a video player decodes and plays the audio and video to be played, the audio and video to be played is a video which a client requests to play to the server through a remote desktop, and the server processes the video player before sending the audio and video to be played to the client, so that the processed video player does not generate alarm information after the audio and video to be played is intercepted; and synthesizing the audio/video to be played and the picture of the remote desktop to obtain a synthesized result, and performing local decoding operation on the synthesized picture to display the synthesized picture on a display interface of the client.
Further, synthesizing the audio/video to be played and the picture of the remote desktop to obtain a synthesis result, wherein the synthesis result comprises: decoding the audio and video to be played; and when the audio and video to be played is decoded, synthesizing the decoded audio and video to be played and the picture of the remote desktop in real time, and displaying the synthesis result on the display interface in real time.
Further, the real-time synthesis of the decoded audio/video to be played and the picture of the remote desktop includes: acquiring pictures of a plurality of windows contained in the remote desktop; packaging the pictures of the windows in real time, and obtaining the pictures of the remote desktop after packaging; and synthesizing the decoded audio/video to be played with the picture of the remote desktop obtained after packaging.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for redirecting a video, including: the device comprises an interception unit and a processing unit, wherein the interception unit is used for intercepting the audio and video to be played before a video player in a server decodes and plays the audio and video to be played, and the audio and video to be played is the video which is requested to be played by a client to the server through a remote desktop; the processing unit is used for processing the video player so that the processed player does not generate alarm information after the audio and video to be played is intercepted; the first sending unit is used for sending the audio and video to be played to the client after the video player is processed, wherein the client synthesizes the audio and video to be played and the picture of the remote desktop after receiving the audio and video to be played, and performs local decoding operation on the synthesized picture so as to display the synthesized picture on a display interface of the client.
Further, the processing unit is configured to: sending playing information to the video player, wherein the playing information is used for indicating the video player to play a preset video to replace the video player to play the audio and video to be played, a color scheme of each frame of picture in the preset video is generated by a colorkey tool, and the colorkey tool adopts a color with a color value of #00000F as a transparent color in the color scheme.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for redirecting a video, including: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the audio and video to be played sent by a server, the audio and video to be played is obtained by intercepting the server before a video player decodes and plays the audio and video to be played, the audio and video to be played is a video which a client requests to play to the server through a remote desktop, and the server processes the video player before sending the audio and video to be played to the client, so that the processed video player does not generate alarm information after the audio and video to be played is intercepted; and the synthesis unit is used for synthesizing the audio/video to be played and the picture of the remote desktop to obtain a synthesis result, and performing local decoding operation on the synthesized picture to display the synthesized picture on a display interface of the client.
Further, the synthesis unit is configured to: decoding the audio and video to be played; and when the audio and video to be played is decoded, synthesizing the decoded audio and video to be played and the picture of the remote desktop in real time, and displaying the synthesis result on the display interface in real time.
In the embodiment of the invention, the audio and video to be played are intercepted before the video player in the server decodes and plays the audio and video to be played, then the video player is processed, so that the processed player does not generate alarm information after the audio and video to be played are intercepted, and finally the audio and video to be played are sent to the client for displaying after the video player is processed. In the embodiment of the invention, the mode of processing the audio and video at the client side is adopted, so that the aim of reducing the consumption of the server is achieved, the technical problem of poor performance when the server transmits the audio and video data to the client side through the remote desktop in the prior art is solved, and the technical effect of improving the playing effect of the audio and video is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow diagram of a method of video redirection according to an embodiment of the present invention;
FIG. 2 is a flow diagram of another method of video redirection in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram of an apparatus for video redirection, according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another apparatus for video redirection according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method of video redirection, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flow chart of a method of video redirection according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, intercepting the audio and video to be played before the video player in the server decodes and plays the audio and video to be played, wherein the audio and video to be played is the video which is requested to be played by the client to the server through the remote desktop;
the video player is of various types, and in an optional implementation manner of the embodiment of the present invention, the video player is selected as a VLC player. Besides VLC players, other video players are also included, and the type of specific video player is not specifically limited in the embodiment of the present invention.
Step S104, processing the video player so that the processed video player does not generate alarm information after the audio/video to be played is intercepted;
and step S106, after the video player is processed, the audio and video to be played are sent to the client, wherein after the client receives the audio and video to be played, the client synthesizes the audio and video to be played and the picture of the remote desktop, and performs local decoding operation on the synthesized picture so as to display the synthesized picture on a display interface of the client.
It should be noted that, in the embodiment of the present invention, after the client is connected to the remote desktop of the server, the client may initiate a video playing request to the server, and then the server loads the audio and video file to be played through the video player and transmits the video data stream of the video file to the client for processing. The above process may be understood as a video redirection process.
In the embodiment of the invention, the audio and video to be played are intercepted before the video player in the server decodes and plays the audio and video to be played, then the video player is processed, so that the processed player does not generate alarm information after the audio and video to be played are intercepted, and finally the audio and video to be played are sent to the client for displaying after the video player is processed. In the embodiment of the invention, the mode of processing the audio and video at the client side is adopted, so that the aim of reducing the consumption of the server is achieved, the technical problem of poor performance when the server transmits the audio and video data to the client side through the remote desktop in the prior art is solved, and the technical effect of improving the playing effect of the audio and video is realized.
In an optional implementation manner of the embodiment of the present invention, processing the video player includes the following steps:
step S1041, sending playing information to a video player, where the playing information is used to instruct the video player to play a preset video to replace the video player to play the audio and video to be played, each frame of the preset video is a color indicated by a key color, and a color with a color value of #00000F in a desktop picture of the client is set as a transparent color, where the key color is a color selected in advance.
Under normal conditions, the audio and video to be played requested by the client to the server is played in the video player at the server side, and when the server intercepts the audio and video to be played before the audio and video to be played is played by the video player, the video player cannot normally play the audio and video to be played, and at the moment, the video player reports an error. In order to enable the video player not to decode the audio/video to be played, but the inside of the video player can also be played as a current playing state without making an error, at this time, the server needs to send playing information to the video player, where the playing information is used to indicate that a starting picture of the audio/video to be played by the video player is a preset picture, and further inform the video player that all pictures after the starting picture of the audio/video to be played are the same as the starting picture. The color of the preset picture is the color indicated by the key color, and the color with the color value of #00000F in the desktop picture of the client is set to be transparent, wherein the key color is a pre-selected color.
After the processing, the video player can play the audio and video to be played without error.
In another optional implementation manner of the embodiment of the present invention, sending the audio/video to be played to the client for decoding and playing includes the following steps:
step S11, determining the client to which the video stream and the audio stream of the audio and video to be played at the current moment belong;
and step S12, sending the video stream and the audio stream at the current moment to the affiliated client for decoding and playing.
In the embodiment of the invention, when the user is connected with the remote desktop of the server through the client, a plurality of users can simultaneously share the same operating system of the same host, wherein the host is the server. That is, multiple users can simultaneously request the same video file from the server for playback. In this case, the server needs to determine to which client the video stream and the audio stream of the audio and video to be played at the current time belong, that is, to which user the video stream and the audio stream of the audio and video to be played at the current time belong. After determining the users (i.e., clients) to which the current audio stream and video stream belong, the current audio stream and video stream can be sent to the users (i.e., clients) to which the current audio stream and video stream belong for decoding and playing.
In summary, in the embodiment of the present invention, after the video redirection technology is used, actions that consume a CPU very much, such as composition, screenshot, and video compression, on a host (that is, a server) are omitted, and CPU occupation when a video player plays a video in the server itself is even omitted. That is, if the user is just playing video, then ideally (i.e., without regard to other software and rendering of the desktop itself), the CPU footprint of the host (i.e., server) would be close to 0, which would save hardware performance cost significantly.
Fig. 2 is a flow chart of another method of video redirection according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step S202, obtaining the audio and video to be played sent by the server,
the to-be-played audio and video is obtained by the server in an intercepting mode before the video player decodes and plays the to-be-played audio and video, the to-be-played audio and video is a video which is requested to be played by the client to the server through the remote desktop, and the server processes the video player before sending the to-be-played audio and video to the client, so that the processed video player does not generate alarm information after the to-be-played audio and video is intercepted.
And S204, synthesizing the audio/video to be played and the picture of the remote desktop to obtain a synthesized result, and performing local decoding operation on the synthesized picture so as to display the synthesized picture on a display interface of the client.
In the embodiment of the invention, the audio and video to be played are intercepted before the video player in the server decodes and plays the audio and video to be played, then the video player is processed, so that the processed player does not generate alarm information after the audio and video to be played are intercepted, and finally the audio and video to be played are sent to the client for displaying after the video player is processed. In the embodiment of the invention, the mode of processing the audio and video at the client side is adopted, so that the aim of reducing the consumption of the server is achieved, the technical problem of poor performance when the server transmits the audio and video data to the client side through the remote desktop in the prior art is solved, and the technical effect of improving the playing effect of the audio and video is realized.
In an optional implementation manner of the embodiment of the present invention, synthesizing the to-be-played audio/video and the picture of the remote desktop to obtain a synthesis result includes the following steps:
step S2041, decoding the audio and video to be played;
and step S2042, while decoding the audio/video to be played, synthesizing the decoded audio/video to be played and the picture of the remote desktop in real time, and displaying the synthesis result on a display interface in real time.
In the embodiment of the invention, after the client acquires the audio/video to be played, the client decodes the audio/video to be played, and simultaneously synthesizes the decoded audio/video to be played and the picture of the remote desktop in real time.
The method for synthesizing the decoded audio/video to be played and the picture of the remote desktop in real time comprises the following steps:
step S21, acquiring pictures of a plurality of windows contained in the remote desktop;
step S22, packaging the pictures of the windows in real time, and obtaining the pictures of the remote desktop after packaging;
and step S23, synthesizing the decoded audio/video to be played with the picture of the remote desktop obtained after packaging.
In the embodiment of the invention, the remote desktop may include a plurality of windows, and at this time, the pictures of the plurality of windows included in the remote desktop can be obtained in real time; and then packaging the obtained pictures of the windows in real time to obtain the picture of the remote desktop at the current moment. And finally, synthesizing the synthesized picture of the remote desktop with the decoded audio/video to be played to obtain a synthesis result, and displaying the synthesis result in the current client.
As can be seen from the above description, in the embodiment of the present invention, after the video redirection technology is used, the audio and video to be played is not decoded and played by the host (i.e., the server), but the video data is intercepted before the video player plays the video, and then the video data of the audio and video to be played is directly transmitted to the client from the host intact; then, the client decodes and plays the audio and video file, and the audio and video file is synthesized with the user desktop and then displayed on the screen.
After the video redirection technology is used, actions which consume a CPU greatly, such as composition, screenshot, video suppression and the like on a host computer, are omitted, and CPU occupation when a video player plays a video is even omitted. That is, if the user is just playing video, then ideally (i.e., without regard to other software and rendering of the desktop itself), the CPU footprint of the host would be close to 0, which would save hardware performance costs significantly.
Example 2
The embodiment of the present invention further provides a video redirection device, where the video redirection device is mainly used to execute the video redirection method provided in the foregoing content of the embodiment of the present invention, and the following provides a specific description of the video redirection device provided in the embodiment of the present invention.
Fig. 3 is a schematic diagram of a video redirection apparatus according to an embodiment of the present invention, as shown in fig. 3, the video redirection apparatus mainly includes an intercepting unit 31, a processing unit 32 and a first sending unit 33, where:
the intercepting unit 31 is configured to intercept an audio and video to be played before a video player in the server decodes and plays the audio and video to be played, where the audio and video to be played is a video requested to be played by the client to the server through the remote desktop;
the processing unit 32 is configured to process the video player so that no alarm information is generated after the audio/video to be played is intercepted by the processed player;
the first sending unit 33 is configured to send the audio/video to be played to the client after the video player is processed, wherein the client synthesizes the audio/video to be played and the picture of the remote desktop after receiving the audio/video to be played, and performs a local decoding operation on the synthesized picture, so that the synthesized picture is displayed on a display interface of the client.
In the embodiment of the invention, the audio and video to be played are intercepted before the video player in the server decodes and plays the audio and video to be played, then the video player is processed, so that the processed player does not generate alarm information after the audio and video to be played are intercepted, and finally the audio and video to be played are sent to the client for displaying after the video player is processed. In the embodiment of the invention, the mode of processing the audio and video at the client side is adopted, so that the aim of reducing the consumption of the server is achieved, the technical problem of poor performance when the server transmits the audio and video data to the client side through the remote desktop in the prior art is solved, and the technical effect of improving the playing effect of the audio and video is realized.
Optionally, the processing unit is configured to: and sending playing information to a video player, wherein the playing information is used for indicating the video player to play a preset video so as to replace the video player to play the audio and video to be played, each frame of picture of the preset video is a color indicated by a key color, and the color with a color value of #00000F in the desktop picture of the client is set to be a transparent color, wherein the key color is a pre-selected color.
Optionally, the first sending unit 33 includes: the determining module is used for determining the client to which the video stream and the audio stream of the audio and video to be played which are played at the current moment belong; and the sending module is used for sending the video stream and the audio stream at the current moment to the client side to decode and play.
Fig. 4 is a schematic diagram of another apparatus for video redirection according to an embodiment of the present invention, as shown in fig. 4, the apparatus for video redirection mainly includes an obtaining unit 41 and a synthesizing unit 42, where:
an obtaining unit 41, configured to obtain the audio/video to be played sent by the server,
the method comprises the steps that a to-be-played audio and video is obtained by a server in an intercepting mode before a video player decodes and plays the to-be-played audio and video, the to-be-played audio and video is a video which is requested to be played by a client to the server through a remote desktop, and the server processes the video player before sending the to-be-played audio and video to the client, so that the processed video player does not generate alarm information after the to-be-played audio and video is intercepted;
and the synthesizing unit 42 is configured to synthesize the video to be played and the picture of the remote desktop to obtain a synthesized result, and perform local decoding operation on the synthesized picture, so that the synthesized picture is displayed on the display interface of the client.
In the embodiment of the invention, the audio and video to be played are intercepted before the video player in the server decodes and plays the audio and video to be played, then the video player is processed, so that the processed player does not generate alarm information after the audio and video to be played are intercepted, and finally the audio and video to be played are sent to the client for displaying after the video player is processed. In the embodiment of the invention, the mode of processing the audio and video at the client side is adopted, so that the aim of reducing the consumption of the server is achieved, the technical problem of poor performance when the server transmits the audio and video data to the client side through the remote desktop in the prior art is solved, and the technical effect of improving the playing effect of the audio and video is realized.
Optionally, the synthesis unit comprises: the decoding module is used for decoding the audio and video to be played; and the synthesis module is used for carrying out decoding operation on the audio/video to be played, simultaneously synthesizing the decoded audio/video to be played and the picture of the remote desktop in real time, and displaying the synthesis result on the display interface in real time.
Optionally, the synthesis module is to: acquiring pictures of a plurality of windows contained in the remote desktop; packaging the pictures of the windows in real time, and obtaining the pictures of the remote desktop after packaging; and synthesizing the decoded audio/video to be played with the picture of the remote desktop obtained after packaging.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (2)

1. A method of video redirection, comprising:
intercepting the audio and video to be played before a video player in a server decodes and plays the audio and video to be played, wherein the audio and video to be played is the video which is requested to be played by a client to the server through a remote desktop;
processing the video player so that the processed video player does not generate alarm information after the audio and video to be played are intercepted;
after the video player is processed, the audio and video to be played is sent to the client,
after receiving the audio/video to be played, the client synthesizes the audio/video to be played and the picture of the remote desktop, and performs local decoding operation on the synthesized picture so as to display the synthesized picture on a display interface of the client;
wherein processing the video player comprises:
sending playing information to the video player, wherein the playing information is used for indicating the video player to play a preset video so as to replace the video player to play the audio and video to be played, each frame of the preset video is a color indicated by a key color, and the color with a color value of #00000F in a desktop picture of the client is set to be a transparent color, wherein the key color is a color selected in advance.
2. The method according to claim 1, wherein sending the audio/video to be played to the client comprises:
determining the client to which the video stream and the audio stream of the audio and video to be played which are played at the current moment belong;
and sending the video stream and the audio stream at the current moment to the client side to decode and play.
CN201710046703.1A 2017-01-19 2017-01-19 Method and device for redirecting video Active CN106658070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710046703.1A CN106658070B (en) 2017-01-19 2017-01-19 Method and device for redirecting video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710046703.1A CN106658070B (en) 2017-01-19 2017-01-19 Method and device for redirecting video

Publications (2)

Publication Number Publication Date
CN106658070A CN106658070A (en) 2017-05-10
CN106658070B true CN106658070B (en) 2020-02-21

Family

ID=58842085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710046703.1A Active CN106658070B (en) 2017-01-19 2017-01-19 Method and device for redirecting video

Country Status (1)

Country Link
CN (1) CN106658070B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228278B (en) * 2017-12-29 2021-07-30 北京奇虎科技有限公司 A method and device for loading video desktop
CN111601140B (en) * 2020-04-28 2024-05-17 西安万像电子科技有限公司 Method and device for remotely playing video
CN115633209B (en) * 2022-10-20 2025-10-21 阿里巴巴(中国)有限公司 Cloud desktop streaming media playback method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103283250A (en) * 2012-12-13 2013-09-04 华为技术有限公司 Method, device, system and computer-readable medium for video redirection
US9378473B2 (en) * 2010-02-17 2016-06-28 Alexander Wolfe Content and application delivery network aggregation
CN105791892A (en) * 2016-03-02 2016-07-20 汉柏科技有限公司 Video redirecting method based on desktop cloud, cloud server and video redirecting system
CN106210865A (en) * 2016-07-08 2016-12-07 中霆云计算科技(上海)有限公司 A kind of video reorientation method and system presenting agreement based on remote desktop

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9378473B2 (en) * 2010-02-17 2016-06-28 Alexander Wolfe Content and application delivery network aggregation
CN103283250A (en) * 2012-12-13 2013-09-04 华为技术有限公司 Method, device, system and computer-readable medium for video redirection
CN105791892A (en) * 2016-03-02 2016-07-20 汉柏科技有限公司 Video redirecting method based on desktop cloud, cloud server and video redirecting system
CN106210865A (en) * 2016-07-08 2016-12-07 中霆云计算科技(上海)有限公司 A kind of video reorientation method and system presenting agreement based on remote desktop

Also Published As

Publication number Publication date
CN106658070A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN111399964B (en) Cloud desktop platform based on video streaming technology
CN113015021B (en) Cloud game implementation method, device, medium and electronic equipment
CN106302366B (en) A data transmission method, device and smart TV system
CN110996160B (en) Video processing method and device, electronic equipment and computer readable storage medium
KR101698951B1 (en) System, apparatus and method for sharing a screen having multiple visual components
CN105577819B (en) A kind of share system of virtualization desktop, sharing method and sharing apparatus
CN104053019A (en) Video playing and processing method and device based on virtual desktop
AU2009344302A1 (en) Virtual desktop services
CN104639951A (en) Video bitstream frame extraction process and device
CN102387187A (en) Server, client as well as method and system for remotely playing video file by using client
CN104067627B (en) Method, device, system and computer-readable medium that a kind of video is redirected
CN114268626B (en) Window processing system, method and device
US20160029053A1 (en) Method for transmitting media data and virtual desktop server
CN102664939A (en) Method and device for mobile terminal of screen mirror image
CN106658070B (en) Method and device for redirecting video
US20250023936A1 (en) Method and apparatus for processing media stream, computer device, and storage medium
WO2021057697A1 (en) Video encoding and decoding methods and apparatuses, storage medium, and electronic device
US10404606B2 (en) Method and apparatus for acquiring video bitstream
CN114630101A (en) Display device, VR device and display control method of virtual reality application content
JP2014075737A (en) Image processor, image processing method and image processing system
CN114827692A (en) System for operating cloud desktop based on smart television
CN106254962A (en) A kind of live client quickly starts the method and system of broadcasting
CN117834976A (en) Screen projection method, device, electronic device and computer storage medium
CN115766695A (en) Websocket-based remote browsing method and device for real-time image of industrial camera
CN107872683A (en) Video data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant