CN113840163A - High-performance full-screen dynamic gift interaction method and device - Google Patents

High-performance full-screen dynamic gift interaction method and device Download PDF

Info

Publication number
CN113840163A
CN113840163A CN202110975982.6A CN202110975982A CN113840163A CN 113840163 A CN113840163 A CN 113840163A CN 202110975982 A CN202110975982 A CN 202110975982A CN 113840163 A CN113840163 A CN 113840163A
Authority
CN
China
Prior art keywords
information
gift
composite video
video
package
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
CN202110975982.6A
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.)
Yunzhilian Network Technology Beijing Co ltd
Original Assignee
Yunzhilian Network Technology Beijing 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 Yunzhilian Network Technology Beijing Co ltd filed Critical Yunzhilian Network Technology Beijing Co ltd
Priority to CN202110975982.6A priority Critical patent/CN113840163A/en
Publication of CN113840163A publication Critical patent/CN113840163A/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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • 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/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities

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 high-performance full-screen dynamic gift interaction method and device, and relates to the technical field of live broadcast interaction. The method comprises the following steps: the server side obtains a pre-generated composite video, the format of the composite video is MP4, and the composite video comprises a pure black and white video of an alpha channel and an original video of an RGB channel. Gift information corresponding to the composite video is acquired, and the on-shelf state of the composite video is updated. And storing the plurality of synthesized videos and the corresponding gift information to a preset address in the server, wherein the preset address is correspondingly provided with a preset interface. Selecting a gift information packet, obtaining arrangement information corresponding to the gift information packet, sequencing the arrangement information, decoding the gift information packet corresponding to the first arrangement information, obtaining a composite video to be played corresponding to the composite video, and rendering the composite video to be played for playing. The method can reduce the size of the file, save the storage space of the client, reduce the occupation of a CPU (central processing unit) and improve the video playing fluency.

Description

High-performance full-screen dynamic gift interaction method and device
Technical Field
The invention relates to the technical field of live broadcast interaction, in particular to a high-performance full-screen dynamic gift interaction method and device.
Background
Along with the wind gap of the live broadcast market is bigger and bigger, the user gradually generates visual fatigue to the effect of common small gift animation, and the cool big gift animation is produced at the same time, thereby not only bringing visual impact of full screen to the user, but also promoting the benign emotional interaction between the main broadcast and the vermicelli. In order to have better user experience in a live broadcast scene, the playing of cool gift animation is required to be more highly, the memory and the CPU of the mobile phone are required to be consumed as less as possible, the mobile phone is prevented from being overheated and the frequency is reduced, and the influence of picture blocking on the user experience is avoided.
The defects and shortcomings of the prior art are as follows:
the GIF (Graphics Interchange Format) technology is suitable for pictures with few colors, the expressive force of the GIF is limited for cool large animation, and a large amount of memory consumption and blockage of a mobile phone are caused, so that the scheme cannot be selected.
The new generation of picture format introduced by google in 2010 in WebP technology has great advantages in performance and file compression for GIF comparison, which is also a technology commonly adopted by the live broadcast world and is sufficient for live broadcast projects operated only locally. However, WebP cannot satisfy the global service of live broadcasting, and firstly, the performance consumption of a mobile phone CPU is too large, which causes frame dropping of video acquisition of a camera, resulting in an over-low frame rate of push streaming, thereby causing a pause; secondly, the global business gift requirement quantity is large, and 1000 WebP large animations occupy the 3GB storage space of the mobile phone.
And 3, the WebP also needs to introduce a third-party code to play, the breakdown caused by the three-party code is mostly difficult to solve, and the instability is invisibly added to the front-end application.
Disclosure of Invention
The invention aims to provide a high-performance full-screen dynamic gift interaction method which can reduce the size of a file, save the storage space of a client, reduce CPU occupation and improve the video playing fluency.
Another objective of the present invention is to provide a high-performance full-screen dynamic gift interactive device, which has all the benefits of the above method.
The embodiment of the invention is realized by the following steps:
one embodiment of the present invention provides a high-performance full-screen dynamic gift interaction method, including:
the method comprises the steps that a server side obtains a pre-generated composite video, the format of the composite video is MP4, and the composite video comprises a pure black and white video of an alpha channel and an original video of an RGB channel;
obtaining gift information corresponding to the synthesized video, and updating the on-shelf state of the synthesized video;
storing a plurality of the synthesized videos and the corresponding gift information thereof to a preset address in a server, wherein the preset address is correspondingly provided with a preset interface, and the preset interface is used for a client to download data so as to obtain a gift information package;
selecting the gift information package, obtaining arrangement information corresponding to the gift information package, sequencing the arrangement information, decoding the gift information package corresponding to the first arrangement information, obtaining a composite video to be played corresponding to the composite video, and rendering the composite video to be played for playing.
The method can reduce the size of the file, save the storage space of the client, reduce the occupation of a CPU (central processing unit) and improve the video playing fluency.
In some embodiments of the present invention, the obtaining of gift information corresponding to the composite video and the updating of the on-shelf status of the composite video includes:
the gift information comprises ID information, name information, price information, experience value information and resource array information;
the ID information is set to an ID for identifying the composite video;
the name information is set to identify a name of the composite video;
the price information is set to identify a price of the composite video;
the experience value information is set to identify an experience value of the composite video;
the resource array information is configured to provide a download link and a check string for the composite video.
In some embodiments of the present invention, the resource array information includes small-size resource information and large-size resource information, and the small-size resource information and the large-size resource information are respectively adapted to a small-size screen and a large-size screen.
In some embodiments of the invention, the check string is an MD5 check string
Specifically, the MD5 verification algorithm can ensure the integrity and the safety of the file and effectively avoid the abnormal playing phenomenon.
In some embodiments of the present invention, in the step of storing a plurality of the composite videos and the corresponding gift information thereof to a preset address in a server, where the preset address is provided with a preset interface, the method includes:
the preset addresses comprise full gift list addresses and gift list addresses of areas where users are located, and the full gift list addresses and the gift list addresses of the areas where the users are located are correspondingly provided with full gift list interfaces and gift list interfaces of the areas where the users are located respectively.
In some embodiments of the present invention, in the step that the preset interface is configured for the client to download data to obtain the gift information package, the method includes:
calling the preset interface to acquire the gift information, downloading the gift information package, and simultaneously downloading gift thumbnails corresponding to the gift information package;
after the gift information package is downloaded, the gift information package is encrypted, the encrypted gift information package is compared with the check character string to obtain a comparison result, and if the comparison result is consistent, the next step is carried out.
In some embodiments of the present invention, the selecting the gift information package comprises:
checking whether the gift resource package is cached in a client side, if not, popping up a prompt in the client side, and if so, executing a payment step;
the payment step comprises the steps of checking whether the balance of a user account of the client is larger than the price of the price information or not, if not, popping up a recharging page, and if so, executing a fee deduction step;
and the fee deducting step comprises calling a preset interface provided by the server, deducting the account balance and sending the information to be played to the client.
In some embodiments of the present invention, the rendering the composite video to be played includes:
checking whether a composite video resource corresponding to the gift information packet exists or not, if not, downloading through the server side, displaying the downloading progress on an interface of the client side, and after the downloading is finished, clicking a play button to add the play queue;
checking, namely checking the validity of the synthesized video resource, comparing the synthesized video resource with the gift information package by adopting a check character string, if the synthesized video resource is illegal, deleting the gift information package, and returning to the checking step;
a sorting step, checking whether a gift video which is being played or not is in the sorting queue, if not, executing a rendering step;
and a rendering step, wherein the composite video is played by adopting video rendering.
In some embodiments of the present invention, in the step of sorting the arrangement information, the sorting manner is sorting according to time sequence.
One of the embodiments of the present invention provides a mobile voice interaction device based on an intelligent headset, including:
a video generation module configured to generate a composite video in advance;
a server module configured to store the composite video and its corresponding gift information;
the client module is arranged and used for selecting gift information packages, obtaining arrangement information corresponding to the gift information packages, sequencing the arrangement information, decoding the gift information packages corresponding to the first arrangement information, obtaining corresponding composite videos to be played, and rendering and playing the composite videos to be played.
Compared with the prior art, the embodiment of the invention has at least the following advantages or beneficial effects:
(1) the invention can effectively reduce the file size by 60 percent and above. The original 1000 WebP files need 3GB storage space, the invention only needs within 1.2G, and the storage space of the mobile phone of the user is greatly saved.
(2) The invention can effectively save CPU and has smooth playing.
(3) The invention ensures the integrity and the safety of the file and effectively avoids abnormal playing through the MD5 verification algorithm of the file.
(4) The large animation of the invention is simple to make and easy to operate, and saves labor cost.
(5) The MP4 mature technology is used for playing the large animation, all mobile phone systems can be well supported, a third-party SDK is not required to be additionally introduced, and the problem of model adaptation is not required to be worried about.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flow chart illustrating a high-performance full-screen dynamic gift interaction method according to some embodiments of the present invention;
FIG. 2 is a flowchart illustrating the steps of selecting a gift package according to some embodiments of the present invention;
FIG. 3 is a flowchart illustrating steps in rendering a composite video to be played according to some embodiments of the invention;
Detailed Description
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only examples or embodiments of the present description, and that for a person skilled in the art, the present description can also be applied to other similar scenarios on the basis of these drawings without inventive effort. Unless otherwise apparent from the context, or otherwise indicated, like reference numbers in the figures refer to the same structure or operation.
It should be understood that "device," "apparatus," "unit" and/or "module" as used herein is a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, other words may be substituted by other expressions if they accomplish the same purpose.
As used in this specification and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural, unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.
Having thus described the basic concept, it will be apparent to those skilled in the art that the foregoing detailed disclosure is to be regarded as illustrative only and not as limiting the present specification. Various modifications, improvements and adaptations to the present description may occur to those skilled in the art, although not explicitly described herein. Such modifications, improvements and adaptations are proposed in the present specification and thus fall within the spirit and scope of the exemplary embodiments of the present specification.
Also, the description uses specific words to describe embodiments of the description. Reference throughout this specification to "one embodiment," "an embodiment," and/or "some embodiments" means that a particular feature, structure, or characteristic described in connection with at least one embodiment of the specification is included. Therefore, it is emphasized and should be appreciated that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, some features, structures, or characteristics of one or more embodiments of the specification may be combined as appropriate.
Additionally, the order in which the elements and sequences are processed, the use of alphanumeric characters, or the use of other designations in this specification is not intended to limit the order of the processes and methods in this specification, unless otherwise specified in the claims. While various presently contemplated embodiments of the invention have been discussed in the foregoing disclosure by way of example, it is to be understood that such detail is solely for that purpose and that the appended claims are not limited to the disclosed embodiments, but, on the contrary, are intended to cover all modifications and equivalent arrangements that are within the spirit and scope of the embodiments herein. For example, although the apparatus components described above may be implemented by hardware devices, they may also be implemented by software-only solutions, such as installing the described apparatus on an existing server or mobile device.
Similarly, it should be noted that in the preceding description of embodiments of the present specification, various features are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure aiding in the understanding of one or more of the embodiments. This method of disclosure, however, is not intended to imply that more features than are expressly recited in a claim. Indeed, the embodiments may be characterized as having less than all of the features of a single embodiment disclosed above.
Finally, it should be understood that the examples in this specification are only intended to illustrate the principles of the examples in this specification. Other variations are also possible within the scope of the present description. Thus, by way of example, and not limitation, alternative configurations of the embodiments of the specification can be considered consistent with the teachings of the specification. Accordingly, the embodiments of the present description are not limited to only those embodiments explicitly described and depicted herein.
Examples
Fig. 1 is a flowchart illustrating a high-performance full-screen dynamic gift interaction method according to some embodiments of the present invention.
Referring to fig. 1, a high-performance full-screen dynamic gift interaction method includes the following steps:
s100, the server side obtains a pre-generated composite video, the format of the composite video is MP4, and the composite video comprises a pure black and white video of an alpha channel and an original video of an RGB channel.
Specifically, in this embodiment, graphics video processing software such as ae (adobe After effects) is used to create a composite video (MP4 format) with pure black and white on the left, original video on the right, an alpha channel on the left, and an RGB channel on the right. In the actual operation, the UI design unit derives two resolution atmospheres 864 × 936 and 422 × 458 when creating a video, sets the frame rate to 10 frames per second, the bit rate to 1000kbps, and the constant quality RF to 30; the audio sampling rate is set to 11 Hz; the videos of the gift thumbnail sizes 186 × 100, 100 × 100 are pure black and white videos and the original videos.
Among them, MP4 is a set of compression coding standards for audio and video information, which is established by the Moving Picture Experts Group (MPEG) under the international organization for standardization (ISO) and the International Electrotechnical Commission (IEC). The main uses of the MP4 format are streaming over the internet, compact discs, voice transmission (video telephony), and television broadcasting. MP4 contains most of the features of MPEG-1 and MPEG-2 and other format advantages, and adds and extends support for Virtual Reality Modeling Language (VRML), object-oriented composite files (including sound, video and VRML objects), and Digital Rights Management (DRM) and other interactive features. One of the more advanced features of MPEG-4 over MPEG-2 is that macro blocks are not used for image analysis, but individual images are used as change records, so that no square frame appears even though the image has a fast change speed and insufficient code rate. Compared with a video in a WebP format, the synthetic video in the MP4 format can effectively reduce the size of a file by more than 60%, effectively save a CPU and enable the video to be played more smoothly. The MP4 is used as a mature technology, all mobile phone systems can be well supported, an SDK of a third party is not required to be additionally introduced, and the problem of model adaptation is not required to be worried about.
And S200, acquiring gift information corresponding to the composite video, and updating the shelving state of the composite video.
In this step, the gift information includes ID information, name information, price information, experience value information, and resource array information; the ID information is set to an ID for identifying the composite video; the name information is set to identify a name of the composite video; the price information is set to identify a price of the composite video; the experience value information is set to identify an experience value of the composite video; the resource array information is configured to provide a download link and a check string for the composite video. It will be appreciated that in some embodiments, the gift may be named airplane, price 100 dollars, experience value 100, and provided with a download link and a check string
In this embodiment, the check character string is an MD5 check character string, and the MD5 check algorithm can ensure the integrity and security of the file and effectively avoid the occurrence of abnormal playback.
In this embodiment, the resource array information includes small-size resource information and large-size resource information, and the small-size resource information and the large-size resource information are respectively adapted to the terminal devices of the small-size screen and the large-size screen. Thereby avoiding the occurrence of the phenomenon that the display effect of the resource array is not good.
S300, storing the plurality of synthesized videos and the corresponding gift information thereof to a preset address in a server, wherein the preset address is correspondingly provided with a preset interface which is used for a client to download data so as to obtain a gift information package;
in this step, the method comprises the following steps:
the preset addresses comprise full gift list addresses and gift list addresses of areas where users are located, and the full gift list addresses and the gift list addresses of the areas where the users are located are respectively and correspondingly provided with full gift list interfaces and gift list interfaces of the areas where the users are located.
Specifically, the full gift list address and the gift list address of the area where the user is located are divided into two data storage groups, namely, a large data storage group and a small data storage group in the server, the full gift list address can show all gift information for the user, and the gift list address of the area where the user is located can show specific gift information for the user in a specific area. For example, users in a metropolitan area may have gift information such as bamboo.
In the step of the present embodiment, where the preset interface is configured for the client to download data to obtain the gift information package, the method includes:
calling a preset interface to acquire gift information, downloading a gift information packet, and simultaneously downloading gift thumbnails corresponding to the gift information packet;
after the gift information package is downloaded, the gift information package is encrypted, the encrypted gift information package is compared with the check character string to obtain a comparison result, and if the comparison result is consistent, the next step is carried out. The next step is the subsequent step S400.
S400, selecting the gift information package, obtaining arrangement information corresponding to the gift information package, sequencing the arrangement information, decoding the gift information package corresponding to the first arrangement information, obtaining the corresponding composite video to be played, and rendering the composite video to be played for playing.
Referring to fig. 2, the step of selecting the gift package includes:
checking whether the gift resource package is cached in the client, if not, popping up a prompt in the client, and if so, executing a payment step;
the payment step comprises the steps of checking whether the balance of a user account of the client is larger than the price of the price information or not, if not, popping up a recharge page, and if so, executing a fee deduction step;
and the fee deducting step comprises calling a preset interface provided by the server, deducting the account balance and sending the information to be played to the client.
Referring to fig. 3, the step of rendering the composite video to be played includes:
checking whether a composite video resource corresponding to the gift information packet exists or not, if not, downloading through the server side, displaying the downloading progress on an interface of the client side, and after the downloading is finished, clicking a playing button to add the playing queue;
checking, namely checking the validity of the synthesized video resource, comparing the synthesized video resource by adopting a check character string and the gift information package, if the synthesized video resource is illegal, deleting the gift information package, and returning to the checking step;
a sorting step, checking whether a gift video which is being played or not is in the sorting queue, if not, executing a rendering step;
and a rendering step, wherein the composite video is played by adopting video rendering.
Specifically, in the rendering process based on OPENGLES, each frame of data is taken, that is, the RGB value of each pixel is taken from the right video (original video), and then the Alpha value corresponding to the pixel is taken from the left video (pure black and white video), so as to form a new RGBA, which is rendered by the shader. During rendering, a filter is written again, and the mixing function of OpenGL is used, namely, the source color and the target color are respectively taken out, multiplied by a coefficient and then added, so that a new color is obtained, and the special effect is realized. Assuming that the four components (red, green, blue, alpha values) of the source color are (Rs, Gs, Bs, As), the four components of the target color are (Rd, Gd, Bd, Ad), and further the source factor is (Sr, Sg, Sb, Sa), and the target factor is (Dr, Dg, Db, Da), the new color generated by mixing can be expressed As: (Rs Sr + Rd + Dr, Gs + Sg + Gd + Dg, Bs + Sb + Bd + Db, As + Sa + Ad + Da). Here, glBlendFunc (GL _ SRC _ ALPHA, GL _ ONE _ minute _ SRC _ ALPHA) is set to indicate that the source color is multiplied by its ALPHA value, and the target color is multiplied by 1.0 MINUS the ALPHA value of the source color, such that the larger the ALPHA value of the source color is, the larger the proportion of the source color in the new color is, and the smaller the proportion of the target color is. This realizes the playback of MP4 with transparency.
In particular, the actual implementation code comprises, for example,
a fragment shader: the method can be used for color filling of each pixel in the picture/video/graph, and the color filling of the pixel point of each picture in the video is modified. The modification codes are as follows:
Figure BDA0003227289340000131
Figure BDA0003227289340000141
and (3) a vertex shader: the vertex-related operation can be used for generating information such as texture coordinates, colors, point positions and the like and transmitting the information to the subsequent stage. The code fragments are as follows:
Figure BDA0003227289340000142
Figure BDA0003227289340000151
some embodiments of the invention can also provide an electronic device. The electronic device includes a memory, a processor, and a communication interface, which are electrically connected to each other, directly or indirectly, to enable transmission or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to a high-performance full-screen dynamic gift interaction method provided in an embodiment of the present application, and the processor executes various functional applications and data processing by executing the software programs and modules stored in the memory. The communication interface may be used for communicating signaling or data with other node devices.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor may be an integrated circuit chip having signal processing capabilities. The processor 620 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.
It is to be understood that the electronic device may also include more or fewer components, or have a different configuration. The components thereof may be implemented in hardware, software, or a combination thereof.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based devices that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
To sum up, the high-performance full-screen dynamic gift interaction method and device provided by the embodiment of the application comprise the following steps: the server side obtains a pre-generated composite video, the format of the composite video is MP4, and the composite video comprises a pure black and white video of an alpha channel and an original video of an RGB channel. Gift information corresponding to the composite video is acquired, and the on-shelf state of the composite video is updated. And storing the plurality of synthesized videos and the corresponding gift information to a preset address in the server, wherein the preset address is correspondingly provided with a preset interface, and the preset interface is used for the client to download data so as to obtain a gift information packet. Selecting a gift information packet, obtaining arrangement information corresponding to the gift information packet, sequencing the arrangement information, decoding the gift information packet corresponding to the first arrangement information, obtaining a composite video to be played corresponding to the composite video, and rendering the composite video to be played for playing. The method can reduce the size of the file, save the storage space of the client, reduce the occupation of a CPU (central processing unit) and improve the video playing fluency.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A high-performance full-screen dynamic gift interaction method is characterized by comprising the following steps:
the method comprises the steps that a server side obtains a pre-generated composite video, the format of the composite video is MP4, and the composite video comprises a pure black and white video of an alpha channel and an original video of an RGB channel;
obtaining gift information corresponding to the synthesized video, and updating the on-shelf state of the synthesized video;
storing a plurality of the synthesized videos and the corresponding gift information thereof to a preset address in a server, wherein the preset address is correspondingly provided with a preset interface, and the preset interface is used for a client to download data so as to obtain a gift information package;
selecting the gift information package, obtaining arrangement information corresponding to the gift information package, sequencing the arrangement information, decoding the gift information package corresponding to the first arrangement information, obtaining a composite video to be played corresponding to the composite video, and rendering the composite video to be played for playing.
2. The method of claim 1, wherein the step of obtaining gift information corresponding to the composite video and updating the on-shelf status of the composite video comprises:
the gift information comprises ID information, name information, price information, experience value information and resource array information;
the ID information is set to an ID for identifying the composite video;
the name information is set to identify a name of the composite video;
the price information is set to identify a price of the composite video;
the experience value information is set to identify an experience value of the composite video;
the resource array information is configured to provide a download link and a check string for the composite video.
3. The method of claim 2, wherein the resource array information comprises small-size resource information and large-size resource information, and the small-size resource information and the large-size resource information are respectively adapted to a small-size screen and a large-size screen.
4. The method of claim 2, wherein the check string is an MD5 check string.
5. The method of claim 1, wherein the step of storing the plurality of composite videos and the corresponding gift information to a predetermined address in a server, the predetermined address corresponding to a predetermined interface, comprises:
the preset addresses comprise full gift list addresses and gift list addresses of areas where users are located, and the full gift list addresses and the gift list addresses of the areas where the users are located are correspondingly provided with full gift list interfaces and gift list interfaces of the areas where the users are located respectively.
6. The method of claim 2, wherein the step of setting the predetermined interface for the client to download data to obtain the gift package comprises:
calling the preset interface to acquire the gift information, downloading the gift information package, and simultaneously downloading gift thumbnails corresponding to the gift information package;
after the gift information package is downloaded, the gift information package is encrypted, the encrypted gift information package is compared with the check character string to obtain a comparison result, and if the comparison result is consistent, the next step is carried out.
7. The method of claim 2, wherein the step of selecting the gift information package comprises:
checking whether the gift resource package is cached in a client side, if not, popping up a prompt in the client side, and if so, executing a payment step;
the payment step comprises the steps of checking whether the balance of a user account of the client is larger than the price of the price information or not, if not, popping up a recharging page, and if so, executing a fee deduction step;
and the fee deducting step comprises calling a preset interface provided by the server, deducting the account balance and sending the information to be played to the client.
8. The method of claim 1, wherein the step of rendering the composite video to be played comprises:
checking whether a composite video resource corresponding to the gift information packet exists or not, if not, downloading through the server side, displaying the downloading progress on an interface of the client side, and after the downloading is finished, clicking a play button to add the play queue;
checking, namely checking the validity of the synthesized video resource, comparing the synthesized video resource with the gift information package by adopting a check character string, if the synthesized video resource is illegal, deleting the gift information package, and returning to the checking step;
a sorting step, checking whether a gift video which is being played or not is in the sorting queue, if not, executing a rendering step;
and a rendering step, wherein the composite video is played by adopting video rendering.
9. The method of claim 1, wherein the step of sorting the arrangement information is performed in a time sequential manner.
10. A high-performance full screen dynamic gift interactive device, comprising:
a video generation module configured to generate a composite video in advance;
a server module configured to store the composite video and its corresponding gift information;
the client module is arranged and used for selecting gift information packages, obtaining arrangement information corresponding to the gift information packages, sequencing the arrangement information, decoding the gift information packages corresponding to the first arrangement information, obtaining corresponding composite videos to be played, and rendering and playing the composite videos to be played.
CN202110975982.6A 2021-08-24 2021-08-24 High-performance full-screen dynamic gift interaction method and device Pending CN113840163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110975982.6A CN113840163A (en) 2021-08-24 2021-08-24 High-performance full-screen dynamic gift interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110975982.6A CN113840163A (en) 2021-08-24 2021-08-24 High-performance full-screen dynamic gift interaction method and device

Publications (1)

Publication Number Publication Date
CN113840163A true CN113840163A (en) 2021-12-24

Family

ID=78961123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110975982.6A Pending CN113840163A (en) 2021-08-24 2021-08-24 High-performance full-screen dynamic gift interaction method and device

Country Status (1)

Country Link
CN (1) CN113840163A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093307A (en) * 2017-12-29 2018-05-29 广州酷狗计算机科技有限公司 Obtain the method and system of played file
CN111163329A (en) * 2020-01-02 2020-05-15 北京字节跳动网络技术有限公司 Live broadcast room gift list configuration method, device, medium and electronic equipment
CN111866595A (en) * 2020-07-24 2020-10-30 广州市百果园信息技术有限公司 Virtual gift list generation method, virtual gift recommendation method and device
CN111935492A (en) * 2020-08-05 2020-11-13 上海识装信息科技有限公司 Live gift display and construction method based on video file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093307A (en) * 2017-12-29 2018-05-29 广州酷狗计算机科技有限公司 Obtain the method and system of played file
CN111163329A (en) * 2020-01-02 2020-05-15 北京字节跳动网络技术有限公司 Live broadcast room gift list configuration method, device, medium and electronic equipment
CN111866595A (en) * 2020-07-24 2020-10-30 广州市百果园信息技术有限公司 Virtual gift list generation method, virtual gift recommendation method and device
CN111935492A (en) * 2020-08-05 2020-11-13 上海识装信息科技有限公司 Live gift display and construction method based on video file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
大学霸IT达人: "《从实践中学习Nmap渗透测试》", 30 June 2021, 机械工业出版社, pages: 9 - 12 *

Similar Documents

Publication Publication Date Title
CN106611435B (en) Animation processing method and device
US20130219425A1 (en) Method and apparatus for streaming advertisements concurrently with requested video
CN107801083A (en) A kind of network real-time interactive live broadcasting method and device based on three dimensional virtual technique
CN109922344B (en) Techniques for encoding, decoding, and representing high dynamic range images
CN109168014A (en) A kind of live broadcasting method, device, equipment and storage medium
US9224156B2 (en) Personalizing video content for Internet video streaming
CN111669646A (en) Method, device, equipment and medium for playing transparent video
US20130301918A1 (en) System, platform, application and method for automated video foreground and/or background replacement
CN109840879B (en) Image rendering method and device, computer storage medium and terminal
US11943489B2 (en) Method and system for automatic real-time frame segmentation of high resolution video streams into constituent features and modifications of features in each frame to simultaneously create multiple different linear views from same video source
US20160044294A1 (en) System and method for personal floating video
WO2020258907A1 (en) Virtual article generation method, apparatus and device
US20230007277A1 (en) Immersive video coding using object metadata
CN114245228A (en) Page link releasing method and device and electronic equipment
US10636178B2 (en) System and method for coding and decoding of an asset having transparency
CN114205662A (en) Low-delay video rendering method and device for iOS (internet operating system) end
CN110769241B (en) Video frame processing method and device, user side and storage medium
CN113840163A (en) High-performance full-screen dynamic gift interaction method and device
CN117065357A (en) Media data processing method, device, computer equipment and storage medium
CN113450293A (en) Video information processing method, device and system, electronic equipment and storage medium
Djaziri-Larbi et al. Voicing of animated GIF by data hiding: A technique to add sound to the GIF format
US20240236388A1 (en) Method and system for automatic real-time frame segmentation of high resolution video streams into constituent features and modifications of features in each frame to simultaneously create multiple different linear views from same video source
US20130329939A1 (en) Decoding a quilted image representation into a digital asset along with content control data
CN115022713A (en) Video data processing method and device, storage medium and electronic equipment
KR20220067771A (en) Image processing device and image playing device for high resolution image streaming and operaing method of thereof

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