CN114257825A - Video playing method and device, electronic equipment and storage medium - Google Patents

Video playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114257825A
CN114257825A CN202111421250.9A CN202111421250A CN114257825A CN 114257825 A CN114257825 A CN 114257825A CN 202111421250 A CN202111421250 A CN 202111421250A CN 114257825 A CN114257825 A CN 114257825A
Authority
CN
China
Prior art keywords
media stream
video
target video
stream
quality
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.)
Pending
Application number
CN202111421250.9A
Other languages
Chinese (zh)
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.)
Guangzhou Fanxing Huyu IT Co Ltd
Original Assignee
Guangzhou Fanxing Huyu IT 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 Guangzhou Fanxing Huyu IT Co Ltd filed Critical Guangzhou Fanxing Huyu IT Co Ltd
Priority to CN202111421250.9A priority Critical patent/CN114257825A/en
Publication of CN114257825A publication Critical patent/CN114257825A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2543Billing, e.g. for subscription services
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2543Billing, e.g. for subscription services
    • H04N21/25435Billing, e.g. for subscription services involving characteristics of content or additional data, e.g. video resolution or the amount of advertising

Abstract

The embodiment of the invention provides a video playing method, a video playing device, electronic equipment and a storage medium, wherein the method comprises the following steps: after the client-side finishes the trial viewing time for the target video, the server-side performs first quality-reduction processing on the media stream of the target video to obtain a first quality-reduction media stream; sending the first degraded media stream to the client so that the client plays the first degraded media stream; and after the client successfully pays for the target video, sending the media stream of the target video to the client so that the client plays the media stream of the target video. The embodiment of the invention provides a method for live broadcasting a video on line, so that a user can obtain a telepresence experience similar to that of watching a performance off line when watching the video.

Description

Video playing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of video processing technologies, and in particular, to a video playing method and apparatus, an electronic device, and a storage medium.
Background
With the development and popularization of internet technology, more and more content providers select a live broadcast room on-line performance mode to perform performance, and the distance between a viewer and a performer is shortened while the space-time factor limit is broken, so that the overall planning and arrangement of the performance are more flexible.
In the existing implementation mode of on-line live broadcasting room performance, audio and video streams are usually directly played on a terminal live broadcasting interface so as to realize the presentation of on-line audio and video. In practical application, live online performance can be divided into paid performance and non-paid performance, and under the condition that live online performance is paid performance, a user can watch live broadcast with preset time length free, and after the user watches live broadcast with preset time length free, the audio and video played by a playing interface can be directly cut off, and the user is further prompted whether to watch paid performance or not.
However, in the prior art, when a user watches live broadcast with a preset duration, the mode of cutting off the audio and video played by the playing interface directly interrupts the watching of the user, and compels the user to leave the live broadcast of the online performance immediately in experience, which affects the watching experience of the user on live broadcast of the online performance, and leads the watching experience to be unable to obtain the telepresence experience similar to the watching of the online performance.
Disclosure of Invention
The embodiment of the invention aims to provide a video playing method, a video playing device, electronic equipment and a storage medium, so as to provide an online live video playing method. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a video playing method, which is applied to a server, and the method includes:
after the trial viewing time of the client for the target video is finished, performing first quality degradation processing on a media stream of the target video to obtain a first quality degradation media stream;
sending the first degraded media stream to the client, so that the client plays the first degraded media stream;
and after the client successfully pays for the target video, sending the media stream of the target video to the client so that the client plays the media stream of the target video.
Optionally, the media stream of the target video includes a video stream of the target video, and performing a first quality degradation process on the media stream of the target video to obtain a first quality-degraded media stream includes:
and carrying out fuzzy processing and/or adding a preset quality-reducing dynamic effect on the video stream of the target video to obtain a first quality-reducing video stream, wherein the first quality-reducing media stream comprises the first quality-reducing video stream.
Optionally, the media stream of the target video includes an audio stream of the target video, and performing a first quality degradation process on the media stream of the target video to obtain a first quality-degraded media stream includes:
and performing high-frequency and intermediate-frequency truncation on the audio stream of the target video to obtain a first degraded audio stream, wherein the first degraded media stream comprises the first degraded audio stream.
Optionally, the blurring the video stream of the target video and/or adding a preset quality-degradation dynamic effect to obtain a first quality-degraded video stream includes:
and gradually increasing the blurred pixel area in the direction with the maximum horizontal axis coordinate from the row of pixels with the minimum horizontal axis coordinate to the direction with the maximum horizontal axis coordinate by taking the preset pixel width as a unit step length according to the horizontal axis coordinate of each pixel in the video stream of the target video, and gradually increasing the blurred pixel area in the direction with the minimum horizontal axis coordinate from the row of pixels with the maximum horizontal axis coordinate to the preset pixel width as a unit step length, adding a target material in the blurred pixel area until all the pixel areas of the video stream are blurred, so as to obtain a first degraded video stream.
Optionally, the performing high-frequency and intermediate-frequency truncation on the audio stream of the target video to obtain a first degraded audio stream includes:
gradually increasing and cutting off the high frequency and the medium frequency of the audio stream of the target video until all pixel areas of the video stream are subjected to fuzzy processing to obtain a first quality-reducing audio stream, wherein the size of the pixel areas subjected to fuzzy processing is positively correlated with the sizes of the high frequency and the medium frequency of the audio stream.
Optionally, after the client successfully pays for the target video, the method further includes:
adding a preset playing effect to the first degraded media stream to obtain a target media stream;
and sending the target media stream to the client so as to enable the client to play the target media stream.
Optionally, the playing page of the client includes a playing area and a background area, and the first degraded media stream and the media stream of the target video are played in the playing area; the method further comprises the following steps:
performing second quality reduction processing on the media stream of the target video to obtain a second quality-reduced media stream;
and sending the second degraded media stream to the client so that the client plays the second degraded media stream in the background area.
Optionally, the media stream of the target video includes a video stream of the target video, and performing a second quality degradation process on the media stream of the target video to obtain a second quality-degraded media stream includes:
and carrying out fuzzy processing on the video stream of the target video, and adding light spots and shadows to the video stream after the fuzzy processing to obtain a second degraded video stream, wherein the second degraded media stream comprises the second degraded video stream.
Optionally, the media stream of the target video includes an audio stream of the target video, and performing a second quality degradation process on the media stream of the target video to obtain a second quality-degraded media stream includes:
and processing the audio stream of the target video by utilizing an equalizer and a reverberation algorithm to obtain a second quality-reduced audio stream, wherein the second quality-reduced media stream comprises the second quality-reduced audio stream.
In a second aspect, an embodiment of the present invention provides a video playing method, which is applied to a client, and the method includes:
after the trial viewing time for the target video is finished, acquiring a first quality-reducing media stream from a server, and playing the first quality-reducing media stream; the first quality-reducing media stream is obtained by performing first quality-reducing processing on the media stream of the target video by the service end;
and after the user successfully pays for the target video, acquiring the media stream of the target video from the server, and playing the media stream of the target video.
Optionally, after the user successfully pays for the target video, the method further includes:
and acquiring a target media stream from the server, and playing the target media stream, wherein the target media stream is obtained by adding a preset playing effect to the first degraded media stream by the server.
Optionally, the playing page of the client includes a playing area and a background area, and the first degraded media stream and the media stream of the target video are played in the playing area; the method further comprises the following steps:
acquiring a second degraded media stream from the server, and playing the second degraded media stream in the background area; and the second quality-reduced media stream is obtained by performing second quality-reduction processing on the media stream of the target video by the service end.
In a third aspect, an embodiment of the present invention provides a video playing apparatus, which is applied to a server, where the apparatus includes:
the first video processing module is used for performing first quality reduction processing on the media stream of the target video after the trial viewing time of the client for the target video is finished to obtain a first quality reduction media stream;
a first video playing module, configured to send the first degraded media stream to the client, so that the client plays the first degraded media stream;
and the second video playing module is used for sending the media stream of the target video to the client after the client successfully pays for the target video so as to enable the client to play the media stream of the target video.
In a fourth aspect, an embodiment of the present invention provides a video playing apparatus, which is applied to a client, where the apparatus includes:
the third video playing module is used for acquiring a first quality-reduced media stream from the server side after the trial viewing time for the target video is finished, and playing the first quality-reduced media stream; the first quality-reducing media stream is obtained by performing first quality-reducing processing on the media stream of the target video by the service end;
and the fourth video playing module is used for acquiring the media stream of the target video from the server and playing the media stream of the target video after the user successfully pays for the target video.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of any one of the video playing methods when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of any one of the video playing methods described above.
Embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to perform any of the steps of the above-mentioned video playing method.
The embodiment of the invention has the following beneficial effects:
according to the video playing method, the video playing device, the electronic equipment and the storage medium, after the target video trial viewing time of the client is finished, the server performs first quality degradation processing on the media stream of the target video to obtain the first quality degradation media stream, and sends the first quality degradation media stream to the client, so that the client plays the first quality degradation media stream, and compared with the existing method that the audio and video stream is directly cut off to interrupt the user viewing, the client still can feel that the video is continuing after the target video trial viewing performance is finished, and does not leave the performance site in experience, so that the user can obtain the presence experience similar to the offline viewing performance when viewing the video, and the performance which is limited and blocked can continuously attract the attention of the user, and therefore the user's intention of continuing viewing is improved. And the first degraded media stream is played, so that the complete target video is protected from leakage.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by referring to these drawings.
Fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a degraded video stream according to an embodiment of the present invention;
fig. 3 is a schematic view illustrating a video playing process according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another video playing method according to an embodiment of the present invention;
FIG. 5 is a schematic view of a video display according to an embodiment of the present invention;
fig. 6 is an interaction diagram of a video playing method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another video playing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived from the embodiments given herein by one of ordinary skill in the art, are within the scope of the invention.
In practical application, live online performance can be divided into paid performance and non-paid performance, and under the condition that live online performance is paid performance, a free preview video with preset time duration can be played for a user, so that the user is further prompted whether to watch paid performance or not.
In the prior art, when live performance is paid performance and a free preview video with a preset duration is played for a user, an audio/video stream played by a playing interface is directly cut off, and the user is prompted whether to continue paid watching. The mode of cutting off the audio and video stream played by the playing interface directly interrupts the watching of the user, compels the user to leave the performance site immediately in experience, and influences the watching experience of the user on the on-line live performance. Or when the user enters the live-broadcasting station midway, the preview is finished, so that the watching of the user is directly interrupted, and the watching experience of the user on the live-broadcasting on-line performance is influenced.
In order to solve the above problem, embodiments of the present invention provide a video playing method, a video playing device, and an electronic device. The video playing method provided by the embodiment of the invention is applied to a server and comprises the following steps:
after the trial viewing time of the client for the target video is finished, performing first quality degradation processing on the media stream of the target video to obtain a first quality-degraded media stream;
sending the first degraded media stream to the client so that the client plays the first degraded media stream;
and after the client successfully pays for the target video, sending the media stream of the target video to the client so that the client plays the media stream of the target video.
According to the video playing method provided by the embodiment of the invention, after the trial viewing time of the client for the target video is finished, the server performs first quality degradation processing on the media stream of the target video to obtain a first quality degradation media stream, and sends the first quality degradation media stream to the client so that the client plays the first quality degradation media stream, and compared with the prior art that the audio/video stream is directly cut off to interrupt the user viewing, the client still can feel that the performance is continued after the trial viewing of the target video is finished, and does not leave the performance site in experience, so that the user can obtain the telepresence experience similar to the offline viewing performance when viewing the video, and the performance which is limited and blocked can continuously attract the attention of the user, thereby improving the continuous viewing desire of the user. And the first degraded media stream is played, so that the complete target video is protected from leakage.
The following describes a video playing method provided by an embodiment of the present invention in detail:
the video playing method provided by the embodiment of the invention can be used for playing live scenes on line aiming at application scenes, and can also be used for playing any live scene.
As shown in fig. 1, an embodiment of the present invention provides a video playing method, which is applied to a server, and the method may include the following steps:
s101, after the trial viewing time of the client for the target video is finished, performing first quality degradation processing on the media stream of the target video to obtain a first quality-degraded media stream.
In the embodiment of the present invention, live video in a live scene of online performance is taken as an example for description.
When a client user watches a target video which can be watched for free and has a live performance duration, namely the trial watching time is over, the client can request the server to play a first degraded media stream, and then the server performs first degradation processing on the media stream of the target video to obtain the first degraded media stream. The trial viewing time of the client for the target video may be a time period during which the client user can watch the live performance for free, and for example, the trial viewing time period may be 30 seconds, 1 minute, 5 minutes, and the like.
In a possible implementation, the first quality-reducing process may be to perform resolution reduction on the target video, or perform blurring on the target video and add a certain quality-reducing dynamic effect, or add a certain quality-reducing dynamic effect on the target video, where the quality-reducing dynamic effect may be, for example, to process the target video to generate dynamic effects of closing doors, smoke, debris, and the like. The first degraded media stream is a media stream with degraded video quality obtained by performing a first degradation process on the media stream of the target video, and accordingly, the media stream is incomplete or unclear compared with the media stream of the target video.
S102, sending the first degraded media stream to a client so that the client plays the first degraded media stream;
the server performs first quality-reducing processing on the media stream of the target video to obtain a first quality-reducing media stream, so that the client can play the first quality-reducing media stream after the trial viewing time for the target video is finished, instead of directly cutting off the audio/video stream of the target video, so that a client user can still feel that the performance is continued, and does not leave the performance site in experience, and the user can obtain the telepresence experience similar to the online performance viewing when viewing the video.
S103, after the client successfully pays for the target video, the media stream of the target video is sent to the client, so that the client plays the media stream of the target video.
Further, after the client user successfully pays for the target video, the client can request the server to play the target video, and at this time, the server sends the media stream of the target video to the client, so that the client resumes playing the media stream of the target video.
According to the video playing method provided by the embodiment of the invention, after the trial viewing time of the client for the target video is finished, the server performs first quality degradation processing on the media stream of the target video to obtain a first quality degradation media stream, and sends the first quality degradation media stream to the client so that the client plays the first quality degradation media stream, and compared with the prior art that the audio/video stream is directly cut off to interrupt the user viewing, the client still can feel that the performance is continued after the trial viewing of the target video is finished, and does not leave the performance site in experience, so that the user can obtain the telepresence experience similar to the offline viewing performance when viewing the video, and the performance which is limited and blocked can continuously attract the attention of the user, thereby improving the continuous viewing desire of the user. And the first degraded media stream is played, so that the complete target video is protected from leakage.
In a possible implementation manner, the media stream of the target video may include a video stream of the target video, and performing the first quality reduction processing on the media stream of the target video to obtain a first quality-reduced media stream may include:
and carrying out fuzzy processing and/or adding a preset quality-reducing dynamic effect on the video stream of the target video to obtain a first quality-reducing video stream, wherein the first quality-reducing media stream comprises the first quality-reducing video stream.
In one possible implementation, the video stream of the target video may be blurred using a gaussian blur algorithm. The preset degradation dynamic effect can be the dynamic effect of performing degradation processing on the target video to generate door closing, smoke, debris and the like.
In a possible implementation, the description is made on the first degraded video stream exhibiting a door-closing motion effect, and the blurring and/or adding the preset degraded motion effect to the video stream of the target video to obtain the first degraded video stream includes:
according to the horizontal axis coordinate of each pixel, starting from a row of pixels with the minimum horizontal axis coordinate, gradually increasing a pixel area subjected to blurring treatment to the direction with the maximum horizontal axis coordinate by taking the preset pixel width as a unit step length, starting from a row of pixels with the maximum horizontal axis coordinate, gradually increasing the pixel area subjected to blurring treatment to the direction with the minimum horizontal axis coordinate by taking the preset pixel width as a unit step length, adding a target material in the pixel area subjected to blurring treatment until all the pixel areas of the video stream are subjected to blurring treatment, and obtaining a first degraded video stream.
Aiming at the video stream of the target video, the server side uses a Gaussian fuzzy algorithm, according to the horizontal axis coordinate of each pixel, a fuzzy pixel area is gradually increased towards the direction with the maximum horizontal axis coordinate from a row of pixels with the minimum horizontal axis coordinate by taking the preset pixel width as a unit step length, meanwhile, the fuzzy pixel area is gradually increased towards the direction with the minimum horizontal axis coordinate from a row of pixels with the maximum horizontal axis coordinate by taking the preset pixel width as a unit step length, a target material is added in the fuzzy pixel area until all the pixel areas of the video stream are subjected to fuzzy processing, and therefore the effect of slowly closing a glass door is displayed in the playing area of the playing page of the client side.
Wherein, the field technical staff can be according to actual need to predetermine the pixel width and set up, exemplarily, if need realize the effect of quick closing glass door, then can increase the setting of predetermineeing the pixel width, if need realize the effect of slowly closing glass door, then can reduce the setting of predetermineeing the pixel width. The target material may be a picture with a specific texture, e.g. an arrow pointing left or right, etc.
For example, as shown in fig. 2, fig. 2 is a completely closed glass door that is displayed in a playing area of a client and obtained by performing a blurring process and/or adding a preset quality-degradation effect on a video stream of a target video by a server after a time for trying on the target video by the client is finished, so as to obtain a first quality-degradation video stream.
Of course, the embodiment of the present invention is only described in the context of the first degraded video stream exhibiting the door-closing behavior, and is not limited thereto.
In a possible implementation manner, the media stream of the target video may include an audio stream of the target video, and performing the first quality reduction processing on the media stream of the target video to obtain a first quality-reduced media stream includes:
and performing high-frequency and intermediate-frequency truncation on the audio stream of the target video to obtain a first quality-reduced audio stream, wherein the first quality-reduced media stream comprises the first quality-reduced audio stream.
In one possible implementation, the server may perform high-frequency and intermediate-frequency truncation on the audio stream of the target video by using an equalizer, and reserve low frequency to obtain the first degraded audio stream. The equalizer can adjust the electric signals with different frequencies to compensate the defects of the loudspeaker and the sound field and compensate and modify various sound sources. An equalizer on a common sound console can only respectively adjust three sections of high-frequency, medium-frequency and low-frequency electric signals.
In the embodiment of the present invention, the high-frequency and intermediate-frequency truncation may be performed synchronously with the video stream of the target video by performing the blurring processing and/or adding the preset degradation dynamic effect, or asynchronously, and specifically, the processing sequence of the video stream and the audio stream of the target video by the server is not limited in the embodiment of the present invention.
Corresponding to the first degraded video stream exhibiting a door-closing effect, the performing high-frequency and intermediate-frequency truncation on the audio stream of the target video to obtain a first degraded audio stream includes:
and gradually increasing the sizes of the high frequency and the medium frequency of the audio stream of the intercepted target video until all pixel areas of the video stream are subjected to fuzzy processing to obtain a first quality-reducing audio stream. Wherein the size of the blurred pixel area is positively correlated to the size of the high and medium frequencies of the truncated audio stream.
The server side carries out fuzzy processing and/or adds a preset degradation dynamic effect aiming at the video stream of the target video, and can also utilize an equalizer to progressively increase the sizes of high frequency and medium frequency of the audio stream of the intercepted target video so as to protect the audio stream data from leaking. Specifically, with the increase of the pixel area of the video stream blurring processing, the cut-off amplitude of the equalizer to the high frequency and the medium frequency of the audio stream is increased, and the low frequency is reserved, so that the effect that the volume heard when the glass door is slowly closed is reduced and is not complete is achieved in the playing area of the client, and when the blurring processing is performed on all the pixel areas of the video stream (namely, the glass door is completely closed), the volume cannot be heard or only the low frequency band in the audio stream can be heard, and the complete audio stream data is protected from being leaked.
For example, it may be set to close the glass door within 2 seconds, adjust the step size of the blurring process (i.e. the preset pixel width) for the video stream according to the width of the playing area of different electronic devices, and the equalizer increases the step size of the amplitude clipped for the high and medium frequencies of the audio stream. And then, the video stream is subjected to fuzzy processing according to the preset pixel width, and the high frequency and the medium frequency of the audio stream are cut off according to the set amplitude step length, so that the video volume which can be heard by a user is reduced and is not complete when the glass door is displayed and closed slowly in a playing area of a client, and the user can hear no sound volume or only hear the low frequency band in the audio stream (namely, the visual and auditory effects of the user across the glass door are simulated) when the glass door is completely closed.
After the client end finishes the trial viewing time for the target video, the server end conducts fuzzy processing on the video stream of the target video, so that the effect of slowly closing the glass door is displayed in the playing area of the client end, the visual effect of the glass door is simulated, the sizes of high frequency and medium frequency of the audio stream of the target video are gradually increased by utilizing an equalizer until all pixel areas of the video stream are subjected to fuzzy processing, the auditory effect of the glass door is simulated, and a user can still feel that the performance in the door is continued after the user views the fact that the glass door is closed, does not leave the performance site in experience, and simultaneously protects complete audio stream data from being leaked. Compared with the prior art that the user is interrupted by directly cutting off the audio and video stream, the embodiment of the invention does not interrupt the user directly in experience after the trial viewing time is finished, the user still can feel the performance in the door in experience, and the performance blocked by the limited performance can continuously attract the attention of the user, so that the user's intention of watching continuously is improved.
In a possible implementation manner, after the client successfully pays for the target video, the server may further perform:
adding a preset playing effect to the first degraded media stream to obtain a target media stream; and sending the target media stream to the client so that the client plays the target media stream.
In application, after the client pays for the target video successfully, the server may add a preset playing effect to the first degraded media stream before sending the media stream of the target video to the client, so as to obtain the target media stream, and send the target media stream to the client, so that the client plays the target media stream before resuming playing the target video.
Specifically, after the trial viewing time of the client for the target video is over, the first degraded media stream is played in a playing area of the client, for example, the door closing effect is performed. After the client pays for the target video successfully, the target media stream may be played in the playing area of the client, and the target media stream may be, for example, a door opening action corresponding to the door closing action. In other words, the preset play effect added to the first degraded media stream may be a dynamic effect opposite to the above-mentioned preset degraded dynamic effect, such as closing and opening doors, smoke/fog gathering and scattering, fragment merging and fragment opening, and so on.
In a possible implementation manner, the first degraded media stream includes a first degraded video stream, the door closing effect is presented corresponding to the first degraded video stream, and the adding a preset playing effect to the first degraded media stream to obtain the target media stream may include:
and aiming at the first degraded video stream, gradually increasing deblurred pixel areas towards the maximum and minimum directions of the horizontal axis coordinate respectively by taking the preset pixel width as a unit step length from a row of pixels in the middle of the horizontal axis coordinate according to the horizontal axis coordinate of each pixel, and removing target materials in the deblurred pixel areas until all the pixel areas of the first degraded video stream are deblurred.
In a possible implementation manner, the first degraded media stream includes a first degraded audio stream, and the performing high frequency and medium frequency truncation on the audio stream of the target video corresponds to the adding of the preset playing effect to the first degraded media stream to obtain the target media stream may include:
and gradually reducing the high frequency and the intermediate frequency of the cut-off first quality-reducing audio stream by using an equalizer until all pixel regions of the blurred first quality-reducing video stream are subjected to deblurring processing, wherein the size of the deblurring-processed pixel regions is positively correlated with the size of the high frequency and the intermediate frequency of the cut-off audio stream.
After the client successfully pays for the target video, the server gradually increases deblurred pixel regions in the directions of the maximum and minimum horizontal coordinates from a row of pixels in the middle of the horizontal axis coordinate according to the horizontal axis coordinate of each pixel by using a gaussian blur algorithm with a preset pixel width as a unit step length from the row of pixels in the middle of the horizontal axis coordinate, and removes the target in the deblurred pixel regions until all pixel regions of the first degraded video material stream are deblurred, that is, the inverse process of the blur process, so that the effect of opening the glass door is displayed in the playing region of the playing page of the client.
Wherein, the pixel width of predetermineeing can be set up according to actual demand to skilled person in the art, and is exemplary, if need realize opening the effect of glass door fast, then can increase the setting of predetermineeing the pixel width, if need realize slowly opening the effect of glass door, then can reduce the setting of predetermineeing the pixel width. The target material may be a picture with a specific texture, e.g. an arrow pointing left or right, etc.
The server may further gradually reduce, by using an equalizer, the size of the high frequency and the medium frequency of the first degraded audio stream to gradually recover the complete audio stream data with respect to the first degraded audio stream in the first degraded media stream. Specifically, the cut-off amplitude of the equalizer for the high frequency and the intermediate frequency of the first degraded audio stream may be reduced as the pixel area of the first degraded video stream deblurring process increases, so as to achieve the effect that the volume heard while the glass door is opened is gradually increased and complete in the playing area of the client, and the complete audio with the volume as the same as that before the glass door is closed is heard until all the pixel areas of the first degraded video stream are deblurred (that is, the glass door is completely opened).
For example, it may be set to open the glass door within 1 second, adjust the step size of the deblurring process (i.e. the preset pixel width in the deblurring process) for the first degraded video stream according to the width of the playing area of the different electronic device, and the equalizer reduces the step size of the amplitude clipped at the high and medium frequencies for the first degraded audio stream. And then, deblurring processing is carried out on the first degraded video stream according to the preset pixel width in the set deblurring processing, and high and medium frequencies of the first degraded audio stream are restored according to the set amplitude step length which is reduced and cut off, so that the video volume which can be heard by a user is increased and gradually complete when the glass door is displayed and opened in a playing area of a client, and when the glass door is completely opened, the complete audio with the same volume as that before the glass door is closed is heard, and the live broadcast performance is continuously watched.
After the client finishes the trial viewing time for the target video, the server performs first quality degradation processing on the media stream of the target video to obtain a first quality-degraded media stream, and then plays the first quality-degraded media stream in the playing area of the client, so that the situation that the audio and video stream is directly cut off when the trial viewing of the target video by a client user is finished is avoided, the watching of the user is interrupted, the user can feel that the performance is continued, the performance does not leave the performance site in experience, and meanwhile, the complete audio stream data is protected from being leaked. After the client successfully pays for the target video, the server adds a preset playing effect to the first degraded media stream to obtain the target media stream, and then plays the target media stream in a playing area of the client, and further plays the target video, so as to simulate a scene of continuously watching the performance after the on-site ticket purchasing is finished, and improve the experience of watching the live performance of the user.
In one possible implementation, the playing page of the client includes a playing area and a background area, wherein the first degraded media stream and the media stream of the target video are played in the playing area. The server side can also execute the following steps:
step one, performing second quality-reducing processing on a media stream of a target video to obtain a second quality-reducing media stream;
and step two, sending the second degraded media stream to the client so that the client plays the second degraded media stream in a background area.
In a possible implementation, the second degradation process may be to perform a resolution reduction process on the target video, or perform a blurring process on the target video and add a certain dynamic effect, and the like, wherein the dynamic effect may be, for example, a dynamic spot, a shadow, and the like.
The server may actively send the second degraded media stream to the client, or the client may request the second degraded media stream from the server, and then the server sends the second degraded media stream to the client for playing.
In a possible implementation manner, the media stream of the target video may include a video stream of the target video, and performing the second quality reduction processing on the media stream of the target video to obtain a second quality-reduced media stream includes:
and carrying out fuzzy processing on the video stream of the target video, and adding light spots and shadows to the video stream subjected to the fuzzy processing to obtain a second degraded video stream. Wherein the second degraded media stream comprises a second degraded video stream.
In one possible implementation, the video stream of the target video may be blurred using a gaussian blur algorithm.
In practical application, a gaussian fuzzy algorithm can be used to perform fuzzy processing on the video stream of the target video to obtain a fuzzy video stream, and further, light spots and shadows are added to the fuzzy video stream to obtain a second degraded video stream. Specifically, the light spot and the shadow are added to the fuzzy video stream, and the light spot can be a dynamic light spot, so that the second degraded video stream obtained by adding the dynamic light spot and the shadow can simulate the light effect in the performance scene when the performance is watched in the scene.
In one embodiment, a plurality of circular color blocks of different colors may be set to move randomly, a shadow may be added to each circular color block, then a gaussian blurring algorithm may be used to blur the moving circular color blocks to generate a dynamic picture, and the dynamic picture may be superimposed on the blurred video stream to generate a second degraded video stream.
And playing the second degraded video stream in a background area of the client, namely, taking the second degraded video stream as the background of the playing area in the playing page of the client, so that the background of the playing area of the client can simulate the lighting effect in the performance scene when the performance is watched in the field. And because the second degraded video stream is obtained by performing the video stream degradation processing on the basis of the target video, the second degraded video stream can be synchronized with the video stream of the target video, so that the media stream of the target video is played in the playing area by the client, and after the second degraded video stream is played in the background area synchronously, the playing content progress of the playing area in the playing page of the client is consistent with that of the background area, and the light effect in the performance scene during live-view performance can be simulated more truly. Furthermore, when watching the live performance in the playing interface, the user can feel the experience of more approaching the offline live performance, and can distinguish the live performance from the traditional network video.
Illustratively, as shown in fig. 3, the second degraded video stream is used as a background of a playing area in the playing page of the client and is played synchronously with the media stream of the target video in the playing area, so that the user can feel an experience of more approaching an online live performance when watching an online performance live broadcast of the playing area in the playing page.
In a possible implementation manner, the media stream of the target video may include an audio stream of the target video, and performing the second quality degradation processing on the media stream of the target video to obtain a second quality-degraded media stream includes:
and processing the audio stream of the target video by utilizing an equalizer and a reverberation algorithm to obtain a second quality-reduced audio stream, wherein the second quality-reduced media stream comprises the second quality-reduced audio stream.
In one case, the server may actively feed back the second degraded audio stream to the client. In another case, the second degraded audio stream may be sent to the client when the client requests the second degraded audio stream. Specifically, the user can select whether to turn on the sound field effect in the client playing page, and adjust the size of the sound field. If the sound field effect is turned on, the client can request a second degraded audio stream from the server, so that the audio heard by the live performance watched by the client user is the audio with the sound field effect. If the sound field effect is turned off, the original audio is heard live in the performance viewed by the client user.
The server may process the audio stream of the target video using an equalizer and a reverberation algorithm to obtain a second degraded audio stream with a characteristic soundfield effect when viewed live at the performance site.
The equalizer can adjust the electric signals with different frequencies to compensate the defects of the loudspeaker and the sound field and compensate and modify various sound sources. An equalizer on a common sound console can only respectively adjust three sections of high-frequency, medium-frequency and low-frequency electric signals. The length of reverberation time is an important acoustic characteristic of buildings such as concert halls, theaters, auditoriums, and the like.
In the embodiment of the invention, the server can utilize the equalizer to adjust the high-frequency, medium-frequency and low-frequency three-section frequencies of the audio stream of the target video, and adds reverberation time to the audio stream of the target video so as to generate the second degraded audio stream with the special sound field effect when the user watches the performance in the presence of the performance site, thereby simulating the hearing experience of the user when the user watches the performance in the presence of the performance.
Illustratively, the server may reduce the audio stream high, mid, and low frequencies of the target video using equalizers to reduce the volume and add reverberation time to the reduced volume audio stream to generate a second degraded audio stream with a soundfield effect characteristic of live viewing at the performance site.
The server side carries out fuzzy processing on the video stream of the target video and adds dynamic light spots and shadows to obtain a second degraded video stream, and utilizes an equalizer and a reverberation algorithm to process the audio stream of the target video to obtain a second degraded audio stream, and then can play the media stream of the target video in the playing area of the client side and play the second degraded media stream containing the second degraded video stream and the second degraded audio stream in the background area of the client side to realize acousto-optic simulation of real live performance, so that a user of the client side can feel experience of performance closer to the offline when the user of the client side plays the live performance on a viewing line of a playing page.
As shown in fig. 4, another video playing method provided in the embodiment of the present invention is applied to a client, and the method may include the following steps:
s401, after the trial viewing time for the target video is finished, a first quality-reducing media stream is obtained from the server side, and the first quality-reducing media stream is played.
The first quality-reducing media stream is obtained by performing first quality-reducing processing on the media stream of the target video by the service end.
In practical application, online live performance can be divided into paid performance and non-paid performance, and when online live performance is paid performance, a free preview video with a preset time length can be played for a user, and after the viewing time for a target video is over, a first degraded media stream can be obtained from a server, and then the first degraded media stream is played.
The first quality degradation processing may be resolution reduction processing performed on the target video by the server, or fuzzy processing performed on the target video and adding a certain quality degradation dynamic effect, or adding a certain quality degradation dynamic effect to the target video, where the quality degradation dynamic effect may be, for example, processing performed on the target video to generate dynamic effects such as closing a door, smoke, and debris. The first degraded media stream is a media stream with degraded video quality obtained by performing a first degradation process on the media stream of the target video, and accordingly, the media stream is incomplete or unclear compared with the media stream of the target video.
After the trial viewing time for the target video is finished, the client can play the first degraded media stream instead of directly cutting off the audio/video stream of the target video, so that a client user can still feel that the performance continues, and does not leave the performance site in experience, and the user can obtain the telepresence experience similar to the offline performance viewing when watching the video.
In a possible implementation manner, a prompt message may also be presented in a floating manner in a playing page where the first degraded media stream is played, so as to prompt the user whether to continue watching. For example, as shown in fig. 2, in the case that the first degraded media stream shows a door closing motion effect, the ticket purchasing related information may be further shown in a floating manner, so that the user can purchase tickets to continue watching the performance without leaving the performance field.
S402, after the user successfully pays for the target video, the media stream of the target video is obtained from the server side, and the media stream of the target video is played.
Illustratively, as shown in fig. 5, after the user selects to continue to watch the performance and the payment for the target video is successful, information of continuing to watch the performance may be displayed (the ticket check in fig. 5 is successful, the user welcomes to enter the scene), and further the media stream of the target video is obtained from the server to resume the watching of the media stream of the target video by the user.
According to the video playing method provided by the embodiment of the invention, after the trial viewing time of the target video by the client is finished, the first degraded media stream obtained by performing the first degradation processing on the media stream of the target video by the server is obtained from the server, and the first degraded media stream is played, so that compared with the prior art that the audio and video stream is directly cut off to interrupt the user viewing, the video playing method provided by the embodiment of the invention can still feel that the performance is continued after the trial viewing of the target video by the client is finished, and does not leave the performance site in experience, so that the user can obtain the telepresence experience similar to the offline viewing performance when viewing the video, and the limited blocked performance can continuously attract the attention of the user, thereby improving the continuous viewing desire of the user. And the first degraded media stream is played, so that the complete target video is protected from leakage.
In one possible implementation, after the user pays for the target video successfully, the client may further perform the following operations:
and acquiring a target media stream from the server, and playing the target media stream, wherein the target media stream is obtained by adding a preset playing effect to the first degraded media stream by the server.
In the application, the client may further obtain, from the server, the target media stream to which the preset play effect is added to the first degraded media stream after the user successfully pays for the target video and before the media stream of the target video is resumed to be played, and then play the target media stream before the playback of the target video is resumed.
For example, the first degraded media stream may be a blurred media stream with a door-closing effect added thereto, and accordingly, a playing effect opposite to the door-closing effect, such as a door-opening effect, may be added to the first degraded media stream. In other words, the preset play effect added to the first degraded media stream may be a dynamic effect opposite to the above-mentioned preset degraded dynamic effect, such as closing and opening doors, smoke/fog gathering and scattering, fragment merging and fragment opening, and so on.
For example, the first degraded media stream is a door-closing dynamic effect, and then after the user successfully pays for the target video, the target media stream with the door-opening dynamic effect can be played at the client to simulate a scene that the user purchases a ticket to enter a live performance scene, so that the user can feel the experience of more approaching the offline live performance when watching the online live performance on the playing page and directly playing the online performance, and obtain the experience similar to the offline live performance.
In one possible implementation, the playing page of the client includes a playing area and a background area, wherein the first degraded media stream and the media stream of the target video are played in the playing area. The client may also perform the following operations:
acquiring a second degraded media stream from the server side, and playing the second degraded media stream in a background area; and the second quality-reduced media stream is obtained by performing second quality-reduction processing on the media stream of the target video by the service end.
In a possible implementation, the second degradation process may be a resolution reduction process performed by the server on the target video, or a blurring process performed on the target video and adding a certain dynamic effect, and the like, where the dynamic effect may be, for example, a dynamic spot, a shadow, and the like.
Specifically, the second degraded media stream may include: the server-side carries out fuzzy processing on the video stream of the target video by utilizing a Gaussian fuzzy algorithm to obtain a fuzzy video stream, and further adds light spots and shadows to the fuzzy video stream to obtain a second degraded video stream; and processing the audio stream of the target video by utilizing an equalizer and a reverberation algorithm to obtain a second degraded audio stream.
And the client can play the media stream of the target video in the playing area of the playing page and play the second degraded media stream in the background area so as to realize acousto-optic simulation of real live performance and enable the client user to feel experience of performance closer to off-line performance when the performance is directly played on the watching line of the playing page.
As shown in fig. 6, another video playing method according to an embodiment of the present invention may include:
after the client-side finishes the trial viewing time for the target video, the server-side performs first quality-reduction processing on the media stream of the target video to obtain a first quality-reduction media stream, and sends the first quality-reduction media stream to the client-side.
And after the trial viewing time for the target video is finished, the client acquires the first quality-reducing media stream from the server and plays the first quality-reducing media stream.
And after the client successfully pays for the target video, the server adds a preset playing effect to the first degraded media stream to obtain a target media stream, and sends the target media stream to the client.
And after the user successfully pays for the target video, the client acquires the target media stream from the server and plays the target media stream.
And after the client successfully pays for the target video, the server sends the media stream of the target video to the client.
And after the user successfully pays for the target video, the client acquires the media stream of the target video from the server and plays the media stream of the target video.
And the server performs second quality-reducing processing on the media stream of the target video to obtain a second quality-reducing media stream, and sends the second quality-reducing media stream to the client.
And the client acquires the second degraded media stream from the server and plays the second degraded media stream in the background area.
Corresponding to the method embodiment, the embodiment of the invention also provides a corresponding device embodiment.
As shown in fig. 7, an embodiment of the present invention provides a video playing apparatus, applied to a server, where the apparatus includes:
the first video processing module 701 is configured to perform first quality reduction processing on a media stream of a target video after a trial viewing time of a client for the target video is finished, so as to obtain a first quality-reduced media stream;
a first video playing module 702, configured to send the first degraded media stream to the client, so that the client plays the first degraded media stream;
the second video playing module 703 is configured to send the media stream of the target video to the client after the client successfully pays for the target video, so that the client plays the media stream of the target video.
According to the video playing device provided by the embodiment of the invention, after the trial viewing time of the client for the target video is finished, the server performs first quality degradation processing on the media stream of the target video to obtain the first quality degradation media stream, and sends the first quality degradation media stream to the client, so that the client plays the first quality degradation media stream, and compared with the prior art that the audio/video stream is directly cut off to interrupt the user viewing, the client still can feel that the performance is continued after the trial viewing of the target video is finished, and does not leave the performance site in experience, so that the user can obtain the telepresence experience similar to the offline viewing performance when viewing the video, and the performance which is limited and blocked can continuously attract the attention of the user, thereby improving the continuous viewing desire of the user. And the first degraded media stream is played, so that the complete target video is protected from leakage.
Optionally, the media stream of the target video includes a video stream of the target video, and the first video processing module 701 includes:
and the first video processing submodule is used for carrying out fuzzy processing on the video stream of the target video and/or adding a preset quality-reducing dynamic effect to obtain a first quality-reducing video stream, wherein the first quality-reducing media stream comprises the first quality-reducing video stream.
Optionally, the media stream of the target video includes an audio stream of the target video, and the first video processing module 701 includes:
and the second video processing sub-module is used for performing high-frequency and intermediate-frequency truncation on the audio stream of the target video to obtain a first quality-reduced audio stream, wherein the first quality-reduced media stream comprises the first quality-reduced audio stream.
Optionally, the first video processing sub-module is specifically configured to:
according to the horizontal axis coordinate of each pixel, starting from a row of pixels with the minimum horizontal axis coordinate, gradually increasing a pixel area subjected to blurring treatment to the direction with the maximum horizontal axis coordinate by taking the preset pixel width as a unit step length, starting from a row of pixels with the maximum horizontal axis coordinate, gradually increasing the pixel area subjected to blurring treatment to the direction with the minimum horizontal axis coordinate by taking the preset pixel width as a unit step length, adding a target material in the pixel area subjected to blurring treatment until all the pixel areas of the video stream are subjected to blurring treatment, and obtaining a first degraded video stream.
Optionally, the second video processing sub-module is specifically configured to:
and gradually increasing the high frequency and the medium frequency of the audio stream of the cut-off target video until all pixel regions of the video stream are subjected to fuzzy processing to obtain a first quality-reducing audio stream, wherein the size of the fuzzy-processed pixel regions is positively correlated with the sizes of the high frequency and the medium frequency of the cut-off audio stream.
Optionally, the apparatus further comprises:
the second video processing module is used for adding a preset playing effect to the first degraded media stream to obtain a target media stream;
and the fifth video playing module is used for sending the target media stream to the client so that the client plays the target media stream.
Optionally, the playing page of the client includes a playing area and a background area, and the first degraded media stream and the media stream of the target video are played in the playing area; the above-mentioned device still includes:
the third video processing module is used for carrying out second quality reduction processing on the media stream of the target video to obtain a second quality-reduced media stream;
and the sixth video playing module is used for sending the second degraded media stream to the client so that the client plays the second degraded media stream in the background area.
Optionally, the media stream of the target video includes a video stream of the target video, and the third video processing module includes:
and the third video processing submodule is used for carrying out fuzzy processing on the video stream of the target video and adding light spots and shadows to the video stream after the fuzzy processing to obtain a second degraded video stream, wherein the second degraded media stream comprises the second degraded video stream.
Optionally, the media stream of the target video includes an audio stream of the target video, and the third video processing module includes:
and the fourth video processing submodule is used for processing the audio stream of the target video by utilizing an equalizer and a reverberation algorithm to obtain a second quality-reduced audio stream, wherein the second quality-reduced media stream comprises the second quality-reduced audio stream.
As shown in fig. 8, another video playing apparatus provided in the embodiment of the present invention is applied to a client, and the apparatus may include:
a third video playing module 801, configured to obtain a first quality-reduced media stream from the server after the trial viewing time for the target video is finished, and play the first quality-reduced media stream; the first quality-reducing media stream is obtained by performing first quality-reducing processing on the media stream of the target video by the service end;
the fourth video playing module 802 is configured to, after the user successfully pays for the target video, obtain the media stream of the target video from the server, and play the media stream of the target video.
According to the video playing device provided by the embodiment of the invention, after the trial viewing time of the client aiming at the target video is finished, the first degraded media stream obtained by performing the first degradation processing on the media stream of the target video by the server is obtained from the server, and the first degraded media stream is played, so that compared with the prior art that the watching of the user is interrupted by directly cutting off the audio/video stream, the video playing device provided by the embodiment of the invention can still feel that the performance is continued after the trial viewing of the target video by the client user is finished, and does not leave the performance site in experience, so that the user can obtain the telepresence experience similar to the offline watching performance when watching the video, and the limited blocked performance can continuously attract the attention of the user, and the continuous watching desire of the user is improved. And the first degraded media stream is played, so that the complete target video is protected from leakage.
Optionally, the apparatus further comprises:
and the seventh video playing module is used for acquiring the target media stream from the server and playing the target media stream, wherein the target media stream is obtained by adding a preset playing effect to the first degraded media stream by the server.
Optionally, the playing page of the client includes a playing area and a background area, and the first degraded media stream and the media stream of the target video are played in the playing area; the above-mentioned device still includes:
the eighth video playing module is used for acquiring the second degraded media stream from the server and playing the second degraded media stream in a background area; and the second quality-reduced media stream is obtained by performing second quality-reduction processing on the media stream of the target video by the service end.
An embodiment of the present invention further provides an electronic device, as shown in fig. 9, which includes a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete mutual communication through the communication bus 904,
a memory 903 for storing computer programs;
the processor 901 is configured to implement the steps of any of the above method embodiments when executing the program stored in the memory 903, so as to achieve the same technical effect.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned video playing methods.
In yet another embodiment of the present invention, a computer program product containing instructions is further provided, which when run on a computer causes the computer to perform the steps of any of the video playing methods in the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device/electronic apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to some descriptions of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (16)

1. A video playing method is applied to a server side, and the method comprises the following steps:
after the trial viewing time of the client for the target video is finished, performing first quality degradation processing on a media stream of the target video to obtain a first quality degradation media stream;
sending the first degraded media stream to the client, so that the client plays the first degraded media stream;
and after the client successfully pays for the target video, sending the media stream of the target video to the client so that the client plays the media stream of the target video.
2. The method of claim 1, wherein the media stream of the target video comprises a video stream of the target video, and wherein performing the first quality reduction processing on the media stream of the target video to obtain a first quality-reduced media stream comprises:
and carrying out fuzzy processing and/or adding a preset quality-reducing dynamic effect on the video stream of the target video to obtain a first quality-reducing video stream, wherein the first quality-reducing media stream comprises the first quality-reducing video stream.
3. The method of claim 2, wherein the media stream of the target video comprises an audio stream of the target video, and the performing the first quality reduction processing on the media stream of the target video to obtain a first quality-reduced media stream comprises:
and performing high-frequency and intermediate-frequency truncation on the audio stream of the target video to obtain a first degraded audio stream, wherein the first degraded media stream comprises the first degraded audio stream.
4. The method according to claim 3, wherein the blurring the video stream of the target video and/or adding a preset quality-reducing effect to obtain a first quality-reduced video stream comprises:
and gradually increasing the blurred pixel area in the direction with the maximum horizontal axis coordinate from the row of pixels with the minimum horizontal axis coordinate to the direction with the maximum horizontal axis coordinate by taking the preset pixel width as a unit step length according to the horizontal axis coordinate of each pixel in the video stream of the target video, and gradually increasing the blurred pixel area in the direction with the minimum horizontal axis coordinate from the row of pixels with the maximum horizontal axis coordinate to the preset pixel width as a unit step length, adding a target material in the blurred pixel area until all the pixel areas of the video stream are blurred, so as to obtain a first degraded video stream.
5. The method of claim 4, wherein said performing high-frequency and mid-frequency truncation on the audio stream of the target video to obtain a first degraded audio stream comprises:
gradually increasing and cutting off the high frequency and the medium frequency of the audio stream of the target video until all pixel areas of the video stream are subjected to fuzzy processing to obtain a first quality-reducing audio stream, wherein the size of the pixel areas subjected to fuzzy processing is positively correlated with the sizes of the high frequency and the medium frequency of the audio stream.
6. The method of claim 1, wherein after the client successfully pays for the target video, the method further comprises:
adding a preset playing effect to the first degraded media stream to obtain a target media stream;
and sending the target media stream to the client so as to enable the client to play the target media stream.
7. The method according to claim 1, wherein the playing page of the client includes a playing area and a background area, and the first degraded media stream and the media stream of the target video are played in the playing area; the method further comprises the following steps:
performing second quality reduction processing on the media stream of the target video to obtain a second quality-reduced media stream;
and sending the second degraded media stream to the client so that the client plays the second degraded media stream in the background area.
8. The method of claim 7, wherein the media stream of the target video comprises a video stream of the target video, and performing the second quality-reduction processing on the media stream of the target video to obtain a second quality-reduced media stream comprises:
and carrying out fuzzy processing on the video stream of the target video, and adding light spots and shadows to the video stream after the fuzzy processing to obtain a second degraded video stream, wherein the second degraded media stream comprises the second degraded video stream.
9. The method of claim 7, wherein the media stream of the target video comprises an audio stream of the target video, and wherein performing the second quality reduction processing on the media stream of the target video to obtain a second quality-reduced media stream comprises:
and processing the audio stream of the target video by utilizing an equalizer and a reverberation algorithm to obtain a second quality-reduced audio stream, wherein the second quality-reduced media stream comprises the second quality-reduced audio stream.
10. A video playing method is applied to a client side, and the method comprises the following steps:
after the trial viewing time for the target video is finished, acquiring a first quality-reducing media stream from a server, and playing the first quality-reducing media stream; the first quality-reducing media stream is obtained by performing first quality-reducing processing on the media stream of the target video by the service end;
and after the user successfully pays for the target video, acquiring the media stream of the target video from the server, and playing the media stream of the target video.
11. The method of claim 10, wherein after the user successfully pays for the target video, the method further comprises:
and acquiring a target media stream from the server, and playing the target media stream, wherein the target media stream is obtained by adding a preset playing effect to the first degraded media stream by the server.
12. The method according to claim 10, wherein the playing page of the client includes a playing area and a background area, and the first degraded media stream and the media stream of the target video are played in the playing area; the method further comprises the following steps:
acquiring a second degraded media stream from the server, and playing the second degraded media stream in the background area; and the second quality-reduced media stream is obtained by performing second quality-reduction processing on the media stream of the target video by the service end.
13. A video playing apparatus, applied to a server, the apparatus comprising:
the first video processing module is used for performing first quality reduction processing on the media stream of the target video after the trial viewing time of the client for the target video is finished to obtain a first quality reduction media stream;
a first video playing module, configured to send the first degraded media stream to the client, so that the client plays the first degraded media stream;
and the second video playing module is used for sending the media stream of the target video to the client after the client successfully pays for the target video so as to enable the client to play the media stream of the target video.
14. A video playing apparatus, applied to a client, the apparatus comprising:
the third video playing module is used for acquiring a first quality-reduced media stream from the server side after the trial viewing time for the target video is finished, and playing the first quality-reduced media stream; the first quality-reducing media stream is obtained by performing first quality-reducing processing on the media stream of the target video by the service end;
and the fourth video playing module is used for acquiring the media stream of the target video from the server and playing the media stream of the target video after the user successfully pays for the target video.
15. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-12 when executing a program stored in the memory.
16. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-12.
CN202111421250.9A 2021-11-26 2021-11-26 Video playing method and device, electronic equipment and storage medium Pending CN114257825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111421250.9A CN114257825A (en) 2021-11-26 2021-11-26 Video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111421250.9A CN114257825A (en) 2021-11-26 2021-11-26 Video playing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114257825A true CN114257825A (en) 2022-03-29

Family

ID=80791241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111421250.9A Pending CN114257825A (en) 2021-11-26 2021-11-26 Video playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114257825A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114727153A (en) * 2022-04-07 2022-07-08 湖南快乐阳光互动娱乐传媒有限公司 Play control method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016193275A1 (en) * 2015-06-01 2016-12-08 Magine Holding AB System and method for incentivizing personalized packages in a digital medium
CN111866592A (en) * 2020-07-31 2020-10-30 掌阅科技股份有限公司 Video live broadcast method, computing device and computer storage medium
CN111918076A (en) * 2020-07-20 2020-11-10 北京达佳互联信息技术有限公司 Payment method, device, server, terminal and storage medium for live video
CN112104898A (en) * 2020-08-31 2020-12-18 广州华多网络科技有限公司 Live connection control method and device, corresponding equipment and storage medium
CN112714327A (en) * 2020-12-21 2021-04-27 腾讯科技(深圳)有限公司 Interaction method, device and equipment based on live application program and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016193275A1 (en) * 2015-06-01 2016-12-08 Magine Holding AB System and method for incentivizing personalized packages in a digital medium
CN111918076A (en) * 2020-07-20 2020-11-10 北京达佳互联信息技术有限公司 Payment method, device, server, terminal and storage medium for live video
CN111866592A (en) * 2020-07-31 2020-10-30 掌阅科技股份有限公司 Video live broadcast method, computing device and computer storage medium
CN112104898A (en) * 2020-08-31 2020-12-18 广州华多网络科技有限公司 Live connection control method and device, corresponding equipment and storage medium
CN112714327A (en) * 2020-12-21 2021-04-27 腾讯科技(深圳)有限公司 Interaction method, device and equipment based on live application program and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114727153A (en) * 2022-04-07 2022-07-08 湖南快乐阳光互动娱乐传媒有限公司 Play control method and device

Similar Documents

Publication Publication Date Title
DE69923578T2 (en) METHOD AND DEVICE FOR PERSONALIZED ADVERTISING ADVERTISING
US11317173B2 (en) Remote cloud-based video production system in an environment where there is network delay
CN106131700B (en) A kind of sharing files method and device when net cast
CN104168507B (en) A kind of method of video playing, video process apparatus, browsing apparatus
CN104506922A (en) Method, device and equipment for broadcasting video signal
US11870940B2 (en) Method and system for facilitating high-fidelity audio sharing
US11363088B1 (en) Methods and apparatus for receiving virtual relocation during a network conference
WO2019114330A1 (en) Video playback method and apparatus, and terminal device
CN111107415A (en) Live broadcast room picture-in-picture playing method, storage medium, electronic equipment and system
CN114257825A (en) Video playing method and device, electronic equipment and storage medium
CN114025187A (en) Live broadcast method and device and electronic equipment
CN106792244A (en) Net cast method and device
CN108111897A (en) A kind of method and device for showing displaying information in video
CN103826158A (en) Network broadcasting device and method
CN105516756A (en) Network video storage method and mobile terminal
Sade et al. Enhancing audio description: a value added approach
CN108124164B (en) Video playing method and system, anchor terminal equipment and client terminal equipment
CN103079103A (en) Method, equipment and system for broadcasting time telling advertisement
KR20130065774A (en) On-line live-broadcasting advertisement system and method using overlay streaming
CN111263182A (en) Wheat connecting method, device, equipment and storage medium
US7379962B1 (en) Spatialized audio in a three-dimensional computer-based scene
JP2002540657A (en) Coding hot spots into television signals
CN108846707A (en) Interactive advertisement playback method and system
CN108769565A (en) Picture layout automatic switching method, server and local recording and broadcasting system
CN115243064B (en) Live broadcast control 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