CN115278338A - Video wallpaper processing method, device, equipment and medium thereof - Google Patents

Video wallpaper processing method, device, equipment and medium thereof Download PDF

Info

Publication number
CN115278338A
CN115278338A CN202210899162.8A CN202210899162A CN115278338A CN 115278338 A CN115278338 A CN 115278338A CN 202210899162 A CN202210899162 A CN 202210899162A CN 115278338 A CN115278338 A CN 115278338A
Authority
CN
China
Prior art keywords
wallpaper
video
dynamic
file
service
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.)
Granted
Application number
CN202210899162.8A
Other languages
Chinese (zh)
Other versions
CN115278338B (en
Inventor
刘生权
张殷杭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Baiguoyuan Information Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN202210899162.8A priority Critical patent/CN115278338B/en
Publication of CN115278338A publication Critical patent/CN115278338A/en
Application granted granted Critical
Publication of CN115278338B publication Critical patent/CN115278338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application relates to a video wallpaper processing method, a device, equipment, a medium and a product thereof in the technical field of network videos, wherein the method comprises the following steps: responding to a dynamic wallpaper setting instruction of a currently played video file, and controlling a dynamic wallpaper rendering service to be in a starting state; pushing the file acquisition address of the video file to the dynamic wallpaper rendering service, and driving the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into dynamic video wallpaper and output the dynamic video wallpaper to a wallpaper preview window for display; and acquiring a wallpaper application result pushed by the dynamic wallpaper rendering service, and outputting the wallpaper application result to the current page. The method and the device have the advantages that the video played in the video application is rendered into the dynamic wallpaper for the user to customize the system desktop wallpaper, the wallpaper rendering service is independent of the video application and can run in the resident system, the dynamic wallpaper is resident and output to the system desktop for displaying, and the use experience of the user is improved.

Description

Video wallpaper processing method, device, equipment and medium thereof
Technical Field
The present application relates to the field of network video technologies, and in particular, to a video wallpaper processing method and a corresponding apparatus, a video wallpaper processing device, a computer-readable storage medium, and a computer program product.
Background
An existing video content platform has a large amount of video content for browsing and watching by a platform user, exquisite video content in the video content platform makes the platform user pleasant, a part of platform users in the platform browse the exquisite video content so that screenshot processing is usually performed, favorite video frames in the video content are intercepted and used as wallpaper of a system desktop, however, if the platform user wants to use the video content as the system wallpaper, screen recording operation such as video recording and the like is usually performed by means of a third party application, so that a generated video file is used as the system wallpaper, or a video file with the video content downloaded through a video downloading function provided by the content platform is used as the system wallpaper, but part of equipment does not support the unrendered video file to be used as the system wallpaper, and the display effect of the video file generated through the operation as the system wallpaper is poor, for example, the size, the number, the code rate and the resolution of the video are not matched with the equipment, and the final presented effect does not accord with the expectation of the user.
In summary, in order to solve the problem that users in a video content platform use video content as system wallpaper to meet their personalized needs, the applicant has made corresponding research in view of solving the problem.
Disclosure of Invention
An object of the present application is to solve the above-mentioned problems and provide a video wallpaper processing method and a corresponding device, a video wallpaper processing apparatus, a computer-readable storage medium, and a computer program product.
According to an aspect of the present application, there is provided a video wallpaper processing method, including the steps of:
responding to a dynamic wallpaper setting instruction of a currently played video file, and controlling a dynamic wallpaper rendering service to be in a starting state;
pushing the file acquisition address of the video file to the dynamic wallpaper rendering service, and driving the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into dynamic video wallpaper and output the dynamic video wallpaper to a wallpaper preview window for display;
and acquiring a wallpaper application result pushed by the dynamic wallpaper rendering service, and outputting the wallpaper application result to the current page.
According to another aspect of the present application, there is provided a video wallpaper processing apparatus, including:
the wallpaper instruction response module is used for responding to a dynamic wallpaper instruction set by a currently played video file and controlling the dynamic wallpaper rendering service to be in a starting state;
the dynamic wallpaper preview module is used for pushing the file acquisition address of the video file to the dynamic wallpaper rendering service, driving the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into dynamic video wallpaper, and outputting the dynamic video wallpaper to a wallpaper preview window for display;
and the application result output module is used for acquiring a wallpaper application result pushed by the dynamic wallpaper rendering service and outputting the wallpaper application result to the current page.
According to another aspect of the present application, there is provided a video wallpaper processing device, comprising a central processor and a memory, wherein the central processor is configured to call and run a computer program stored in the memory to execute the steps of the video wallpaper processing method described herein.
According to another aspect of the present application, a computer-readable storage medium is provided, which stores a computer program implemented according to the video wallpaper processing method in the form of computer-readable instructions, and when the computer program is called by a computer, the computer program executes the steps included in the method.
According to another aspect of the present application, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method described in any one of the embodiments of the present application.
Compared with the prior art, the method has the advantages that the corresponding dynamic video wallpaper generated by rendering a video file played in the video application program is used as the system wallpaper of the terminal device, the function of generating the dynamic video wallpaper is provided for a platform user, the personalized requirements of the platform user are met, and the exposure of the video content of the platform is improved, wherein the video application program and the dynamic wallpaper rendering service are independent from each other, the video application program and the dynamic wallpaper rendering service operate in the terminal device of the user independently, neither one of the video application program and the dynamic wallpaper rendering service affects the operation condition of the other, so that after the video application program stops operating in the terminal device, the dynamic wallpaper rendering service bound with the system wallpaper service can still output the dynamic video wallpaper rendered by the video application program to the graphical user interface of the terminal device for playing and displaying, the dynamic video wallpaper is taken as the system wallpaper service of the terminal device by the video application program, the platform user can display the dynamic video wallpaper in the system desktop for browsing without opening the video application program, the dynamic wallpaper and the system wallpaper service has high adaptability, and the system wallpaper can be set as the dynamic video wallpaper to operate smoothly without opening the computing resources of the terminal device of the terminal desktop of the terminal device.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic diagram of a typical network deployment architecture related to implementing the technical solution of the present application;
FIG. 2 is a schematic flow diagram of an exemplary embodiment of a video wallpaper processing method of the present application;
FIG. 3 is an exemplary graphical user interface for presenting a video playback page with a set dynamic wallpaper control in a video application of the present application;
FIG. 4 is an exemplary graphical user interface for presenting a video playback page in a video application without a set dynamic wallpaper control of the present application;
FIG. 5 is an exemplary graphical user interface for presenting a wallpaper preview window of the subject application;
FIG. 6 is an exemplary graphical user interface presenting a video playback page displaying wallpaper application results characterized as a successful wallpaper application;
FIG. 7 is an exemplary graphical user interface presenting a video playback page displaying wallpaper application results characterized as a de-wallpaper application of the present application;
FIG. 8 is a schematic flowchart of an embodiment of the present application relating to a process of controlling a dynamic wallpaper rendering service to be in a startup state;
FIG. 9 is a schematic flow chart illustrating verification of a wallpaper of a video file according to an embodiment of the present application;
FIG. 10 is a flowchart illustrating a process of rendering a video file into dynamic video wallpaper by the dynamic wallpaper rendering service and outputting the dynamic video wallpaper to a wallpaper preview window for display in an embodiment of the present application;
FIG. 11 is a flowchart illustrating a video scaling process performed on a video file according to an embodiment of the present disclosure;
FIG. 12 is an exemplary diagram of an exemplary rendering texture coordinate system, visual range, and rendering coordinate system of the present application;
FIG. 13 is an exemplary illustration of a rendering texture coordinate system, a visibility range, a rendering coordinate system, and a texture coordinate range of the present application;
FIG. 14 is a schematic flowchart illustrating a process of clipping an original size of a video frame to a target high width ratio by a video frame clipper in an embodiment of the present application;
FIG. 15 is a functional block diagram of an exemplary embodiment of a video wallpaper processing apparatus of the present application;
fig. 16 is a block diagram of a basic structure of a video wallpaper processing device according to an embodiment of the present application.
Detailed Description
The same applies to service clusters, also called "servers" in this application. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided, and in physical space, the servers may be independent from each other but can be called through an interface, or may be integrated into one physical computer or a set of computer clusters. Those skilled in the art will appreciate this variation and should not be so limited as to restrict the implementation of the network deployment of the present application.
The person skilled in the art will know this: although the various methods of the present application are described based on the same concept so as to be common to each other, they may be independently performed unless otherwise specified. In the same way, for each embodiment disclosed in the present application, it is proposed based on the same inventive concept, and therefore, concepts of the same expression and concepts of which expressions are different but are appropriately changed only for convenience should be equally understood.
The embodiments to be disclosed herein can be flexibly constructed by cross-linking related technical features of the embodiments unless the mutual exclusion relationship between the related technical features is stated in the clear text, as long as the combination does not depart from the inventive spirit of the present application and can meet the needs of the prior art or solve the deficiencies of the prior art. Those skilled in the art will appreciate variations therefrom.
Referring to fig. 1, the hardware basis required for implementing the related art embodiments of the present application may be deployed according to the architecture shown in the figure. The server 80 is deployed at the cloud end, and serves as an online server, which may be responsible for further connecting to related data servers and other servers providing related support, so as to form a logically associated server cluster to provide services for related terminal devices, such as the smart phone 81 and the personal computer 82 shown in the figure, or a third-party server (not shown). The smart phone and the personal computer may both access the internet through a known network access manner, and establish a data communication link with the cloud server 80 so as to run a terminal application related to the service provided by the server, for example, the smart phone 81 and the personal computer 82 generally run an application to display a preview window of a target live broadcast room or a terminal device of a live broadcast room interface, and the server 80 may provide a video data stream and a service data stream of the target live broadcast room to the terminal device.
Referring to fig. 2, a video wallpaper processing method according to the present application, in an exemplary embodiment, includes the following steps:
s11, responding to a dynamic wallpaper setting instruction of a currently played video file, and controlling a dynamic wallpaper rendering service to be in a starting state;
the video file is generally output to a video playing page to be played and displayed, the video file output and played in the video playing page is generally obtained from a server of a platform, wherein the video file capable of triggering the setting of the dynamic wallpaper instruction is generally a video file meeting a wallpaper rule, the wallpaper rule generally specifies the video duration and the video quality of the video file, the video duration is generally set within a range of 3-5 seconds, correspondingly, the video quality is generally based on setting a corresponding video resolution threshold, a video code rate threshold, a video frame number threshold and other parameter thresholds which influence video playing display quality, and by checking the video quality of the video file, the dynamic video wallpaper rendered by the video file with better playing display quality is screened, and the impression of the dynamic video wallpaper is improved; the video file with the video duration and the video quality being more than or equal to the wallpaper enabling rule is endowed with a wallpaper enabling identification, namely the video file with the wallpaper enabling identification can be triggered to act on a dynamic wallpaper setting instruction; the execution end for executing and verifying whether the video file meets the wallpaper-enabled video file can be a terminal device of a platform user or a business server of the platform, if the execution party is the terminal device, after the terminal device acquires the video file from the server of the platform, whether the video file meets the wallpaper-enabled rule or not is verified, and if the execution party is the terminal device, a wallpaper-enabled identifier corresponding to the video file is given; if the executive party is the server, the server verifies whether each video file of the executive party meets the wallpaper rule respectively, endows a wallpaper identification corresponding to each video file meeting the wallpaper rule, and pushes the video file and the wallpaper identification to the terminal equipment when the video file is pushed to the terminal equipment of the platform user, so that the terminal equipment can determine the video file as the video file capable of triggering the dynamic wallpaper setting instruction through the wallpaper identification of the terminal equipment after receiving the video file.
Specifically, referring to fig. 3 and 4, when a video file with the dynamic wallpaper set is played in a video playing page, the video file played in the video playing page shown in fig. 3 satisfies the wallpaper rule, the set dynamic wallpaper control S301 acting on the video file is displayed in the video playing page shown in fig. 3, if the video file does not satisfy the wallpaper rule, the video playing page of the video file during playing and displaying is the video playing page shown in fig. 4, and the set dynamic wallpaper control S301 shown in fig. 3 is not included in fig. 4; a user of the terminal device on the video playing page shown in fig. 3 triggers the dynamic wallpaper setting instruction acting on the video file currently playing in fig. 3 by touching the dynamic wallpaper setting control S301.
After responding to the set dynamic wallpaper instruction acting on the currently played video file, the video application program playing the video file controls the dynamic wallpaper rendering service for rendering the corresponding dynamic video wallpaper for the video file to be in a starting state, specifically, the video application program inquires the service state of the dynamic wallpaper rendering service, when the service state is the service not started, the system wallpaper service is started, and after the dynamic wallpaper rendering service is bound with the system wallpaper service, the dynamic wallpaper rendering service is started; the video application program and the dynamic wallpaper rendering service are independent of each other, the video application program and the dynamic wallpaper rendering service are operated in terminal equipment of a user independently, and neither one of the video application program and the dynamic wallpaper rendering service affects the operation condition of the other one of the video application program and the dynamic wallpaper rendering service, so that after the video application program stops operating in the terminal equipment, the dynamic wallpaper rendering service bound with the system wallpaper service can still output dynamic video wallpaper rendered by the video application program to a graphical user interface of the terminal equipment for playing and displaying, and the dynamic video wallpaper is used as system wallpaper of the system wallpaper service of the terminal equipment; the specific implementation of the dynamic wallpaper rendering service will be described in the following steps, which is not repeated herein.
Step S12, pushing the file acquisition address of the video file to the dynamic wallpaper rendering service, driving the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into dynamic video wallpaper, and outputting the dynamic video wallpaper to a wallpaper preview window for displaying;
and after the dynamic wallpaper rendering service is started, pushing a dynamic wallpaper rendering instruction containing the video file to the dynamic wallpaper rendering service so that the dynamic wallpaper rendering service responds to the dynamic wallpaper rendering instruction, acquires the file acquisition address contained in the instruction, acquires the video file through the file acquisition address, renders the video file into the dynamic video wallpaper, and outputs the dynamic video wallpaper to a wallpaper preview window for display.
The file acquisition address generally refers to a file network downloading address of the video file, and after the dynamic wallpaper rendering service acquires the file acquisition address, the video file is downloaded from a server for storing the video file through the file acquisition address; correspondingly, the file acquisition address can also be a local storage address, and the dynamic wallpaper rendering service queries a local storage location corresponding to the file acquisition address in the current device through the file acquisition address so as to acquire the video file from the local storage location.
After the dynamic wallpaper rendering service acquires the video file, checking whether the high ratio of the video bandwidth of the video file meets the requirement of cutting rule, and if so, performing video ratio cutting processing on the video file; because the terminal device for playing the video file is generally a mobile terminal device, such as a mobile phone terminal or a tablet terminal, the width-to-height ratio of the screen of the mobile phone terminal is generally 9: the width-to-height ratio of a tablet computer screen is generally 16:10, and the video aspect ratio of the video file output for play is in addition to the aspect ratio of 9: in addition to 16, the high ratio of the video bandwidth of a part of the video files is 4:3 or 16:9, therefore, if the current terminal is a mobile phone terminal and the aspect ratio of the screen is 9: 3, the width-to-height ratio of the video file needs to be cut to be 9, 16, which meets the width-to-height ratio of the current terminal, so that the dynamic video wallpaper obtained by rendering the video file can be output to a graphical user interface of the current terminal for playing and displaying under the condition of not stretching the size ratio, the display effect of the dynamic video wallpaper is optimized, and the appearance of the dynamic video wallpaper is improved; in a specific implementation manner of the rule to be clipped, the dynamic rendering service determines a width-to-height ratio of a current device screen, calculates a difference between the width-to-height ratio of the current device screen and a video width-to-height ratio of the video file, determines whether the difference does not exceed a preset width-to-height ratio threshold, if the difference does not exceed the preset width-to-height ratio threshold, does not perform video scale clipping on the video file, and if the difference exceeds the preset width-to-height ratio threshold, performs video scale clipping on the video file.
When the wallpaper rendering service processes a video file with a high width and a high proportion to be cut, a video decoder is called to decode the video file to generate a video frame data set, a video width and height cutter is called to respectively cut the original width and height proportions of all video frames in the video frame data set into a target width and height proportion, video frames with the target width and high proportion are cached in a video frame cache region, a video encoder is called to encode all the video frames in the video frame cache region into a video file, and the video width and height proportion of the video file is the target width and height proportion; when the video frame is cut, the video width height clipper initializes the visual range of a texture coordinate system, determines the interface width height ratio data of the current terminal, calculates the target width height ratio and the offset value corresponding to the video frame according to the interface width height ratio data, further converts the target width height ratio and the offset value into the texture coordinate range in the visual range, draws the current video frame to the texture coordinate range, and clips the original width height ratio of the current video frame into the target width height ratio.
The dynamic wallpaper rendering service renders the video file into the dynamic video wallpaper, and draws the dynamic video wallpaper into a wallpaper preview page to be displayed; the dynamic video wallpaper is a video file suitable for being used as wallpaper of terminal equipment through rendering and converting the video file into the dynamic video wallpaper through the dynamic wallpaper rendering service, although both are video files essentially, when the dynamic video wallpaper is more suitable for being used as the wallpaper of the terminal equipment, in addition to the clipping with the high width and the high proportion, the video file can be more suitable for being output and played in the high screen width and the high proportion of the terminal equipment, the dynamic video wallpaper is rendered into the dynamic video wallpaper for being output and played as the wallpaper of the terminal equipment through optimizing the video resolution, the video bitrate, the video frame number and the file format, and the dynamic video wallpaper generated through rendering can be effectively output to a graphical user interface of the terminal equipment as the wallpaper of the terminal equipment to be displayed through optimizing the video resolution, the video bitrate, the video frame number and the video frame number to prevent the dynamic video wallpaper from occupying the operation memory of the terminal equipment due to the overhigh video resolution, video bitrate and video frame number, so that the system of the terminal equipment cannot run smoothly.
In one embodiment, the video width-to-height ratio, the video resolution, the video bitrate, and the video frame number of a video file in the dynamic wallpaper rendering service may be opened to a user at a terminal device for customizing, so that the user can customize the rendering requirement of the video file as needed, specifically, the dynamic wallpaper rendering service generates a rendering customized editing window for generating the video file to be rendered into dynamic video wallpaper, and displays the rendering customized editing window into a graphical user interface, the rendering customized editing window displays a control component for customizing the video width-to-height ratio, the video resolution, the video bitrate, and the video frame number of the video file for the user to perform customized editing, and the dynamic wallpaper rendering service renders the video file into a corresponding dynamic video wallpaper for display into the preview window according to the video width-to-height ratio, the video resolution, the video bitrate, and the video frame number edited in each control component.
Referring to fig. 5, the wallpaper preview window is used for outputting the dynamic video wallpaper for a user at a current terminal to view a display effect of the dynamic video wallpaper, the wallpaper preview window is generally provided by a system wallpaper service in an operating system of the current terminal, for example, for an Android (Android) operating system, a system wallpaper service provided by the wallpaper preview window is generally a WallpaperService, and since the dynamic wallpaper rendering service is bound to the system wallpaper service, the dynamic wallpaper rendering service can generate the wallpaper preview window through an interface provided by the WallpaperService, so as to output a dynamic wallpaper video obtained by rendering to the wallpaper preview window for display and play; referring to fig. 5, after the dynamic wallpaper rendering service renders the video file into the dynamic video wallpaper, the dynamic video wallpaper is output to the wallpaper preview window shown in fig. 5 for display and playing.
Specifically, referring to fig. 5, when a user at a current terminal can set a displayed dynamic video wallpaper in the wallpaper preview window to a system wallpaper of the current terminal through a wallpaper setting control S501 shown in fig. 5, the wallpaper application event that the wallpaper application succeeds is triggered, the wallpaper rendering service generates a wallpaper application result that is characterized by the successful wallpaper application and pushes the wallpaper application result to a video application program that plays the video file, when the user closes the wallpaper preview window through a cancel control S502 shown in fig. 5 and cancels the setting of the dynamic video wallpaper to the system wallpaper of the current terminal, the wallpaper rendering service generates a wallpaper application result that is characterized by the successful wallpaper application and pushes the wallpaper application result to the video application program that plays the video file, and when the user closes the wallpaper preview window through a cancel control S502 shown in fig. 5 and cancels the setting of the dynamic video wallpaper to the system wallpaper of the current terminal, the wallpaper application rendering service generates a wallpaper application result that is characterized by the cancel application and pushes the wallpaper application result to the video application program.
In an embodiment, after the wallpaper rendering service renders and generates the dynamic video wallpaper, the dynamic video wallpaper is pushed to a server of a platform corresponding to the video application program, so that the server correspondingly stores the dynamic video wallpaper and a unique identifier of a video file to which the dynamic video wallpaper belongs in a wallpaper library, so that when the wallpaper rendering service in other terminal devices needs to render the dynamic video wallpaper of the video file, a wallpaper acquisition instruction can be pushed to the server, and the server responds to the instruction to acquire the dynamic video wallpaper from the wallpaper library and pushes the dynamic video wallpaper to a wallpaper rendering service of the terminal device, so that the wallpaper rendering service can acquire the dynamic video wallpaper of the video file without rendering and output the dynamic video wallpaper to the wallpaper preview window for display, thereby saving computing resources of the terminal device and improving the use experience of users.
And S13, acquiring a wallpaper application result pushed by the dynamic wallpaper rendering service, and outputting the wallpaper application result to a current page.
The dynamic wallpaper rendering service responds to a wallpaper application event in the wallpaper preview window, generates a corresponding wallpaper application result according to the wallpaper application event and pushes the wallpaper application result to the video application program, the wallpaper application event is divided into a wallpaper application success event and a wallpaper cancellation application event, specifically, referring to fig. 5, a wallpaper setting control S501 shown in fig. 5 can trigger the wallpaper application success event, the dynamic wallpaper rendering service responds to the event to generate a wallpaper application result representing the successful wallpaper application and pushes the wallpaper application result to the video application program, correspondingly, a cancellation control S502 shown in fig. 5 can trigger the wallpaper cancellation application event, and the dynamic wallpaper rendering service responds to the event to generate a wallpaper application result representing the wallpaper cancellation application and pushes the wallpaper application result to the video application program.
After receiving the wallpaper application result pushed by the dynamic wallpaper rendering service, outputting the wallpaper application result to a current page where the video file is currently played for display, and displaying different notification texts in the current page for the different wallpaper application results, specifically, referring to fig. 6 and 7, a notification file displayed in a wallpaper application result notification window S601 shown in fig. 6 is a wallpaper application result representing that wallpaper application is successful, and a notification file displayed in a wallpaper application result notification window S701 shown in fig. 7 is a wallpaper application result representing that wallpaper application is cancelled, where a user may share the dynamic video wallpaper rendered by the dynamic wallpaper rendering service to other platform users in the platform through the illustrated wallpaper application result notification window S601 or S701.
The method is different from the existing dynamic wallpaper which is generated by performing system wallpaper setting on a screenshot of a platform user or performing screen recording by means of a third-party application program and has low quality, the method is characterized in that a corresponding dynamic video wallpaper is generated by rendering a video file played in a video application program and is used as the system wallpaper of the terminal device, the dynamic video wallpaper generation function is provided for the platform user, the personalized requirement of the platform user is met, and the exposure degree of the video content of the platform is improved, wherein the video application program and the dynamic wallpaper rendering service are independent from each other, the video application program and the dynamic wallpaper rendering service are independently operated in the terminal device of the user, the operation condition of the other party is not influenced when either party is in an unactivated state, so that after the video application program stops operating in the terminal device, the dynamic wallpaper rendering service bound with the system wallpaper service can still output the rendered dynamic video wallpaper to be played and displayed in a graphical user interface of the terminal device, the dynamic video wallpaper is used as the system wallpaper of the system wallpaper service of the terminal device, the platform user can display the dynamic video wallpaper in a system wallpaper without starting the video application program to ensure that the dynamic wallpaper of the terminal device can be smoothly browsed by the system wallpaper resources.
According to another embodiment of the present application, referring to fig. 8, controlling a dynamic wallpaper rendering service in a startup state includes the following steps:
step S111, inquiring the service state of the dynamic wallpaper rendering service;
after a dynamic wallpaper setting instruction acting on a currently played video file is responded, the service state of a dynamic wallpaper rendering service is inquired, the service state is used for representing whether the dynamic wallpaper rendering service is started or not, and if the service state represents that the service is started, a video application program pushes the video file into the dynamic wallpaper rendering service so as to drive the dynamic wallpaper rendering service to generate corresponding dynamic video wallpaper according to the video file rendering.
Step S112, when the service state is that the service is not started, starting a system wallpaper service, and binding a dynamic wallpaper rendering service with the system wallpaper service;
the system wallpaper service is a system wallpaper service of a running system of the current equipment, and is independent of the video application program and the dynamic wallpaper rendering service, when the service state of the dynamic wallpaper rendering service is characterized as that the service is not started, the system wallpaper service is started, and the dynamic wallpaper rendering service is bound with the system wallpaper service, so that the dynamic wallpaper rendering service can output dynamic video wallpaper generated by rendering to the wallpaper preview window for displaying by means of a wallpaper preview function of the system wallpaper service.
Step S113, starting the dynamic wallpaper rendering service.
After the dynamic wallpaper rendering service is bound with the system wallpaper service, the dynamic wallpaper rendering service is started, so that a video file corresponding to a dynamic wallpaper setting instruction is pushed to the dynamic wallpaper rendering service, and the dynamic wallpaper rendering service is driven to generate corresponding dynamic video wallpaper according to the video file rendering.
In the embodiment disclosed above, the dynamic wallpaper rendering service is generally activated and started when being used, so as to save the operation resources of the device, and by binding the dynamic wallpaper rendering service with the system wallpaper service, the dynamic wallpaper rendering service can output the dynamic video wallpaper generated by rendering to the wallpaper preview window for displaying by means of the wallpaper preview function of the system wallpaper service, and the dynamic video wallpaper is used as the wallpaper of the system, so that the device can also output the dynamic video wallpaper to the desktop of the system for displaying and playing without starting a video application program and the dynamic wallpaper rendering service, thereby optimizing the use experience of the user.
According to another embodiment of the present application, please refer to fig. 3, 4 and 9, the method for setting dynamic wallpaper in response to a currently playing video file includes the following steps:
step S111', checking whether video characteristic information of a currently played video file meets a preset wallpaper rule or not, wherein the video characteristic information comprises video duration information and video quality information;
when a video application program outputs a video file to a video playing page for playing and displaying, whether the video file can be rendered into dynamic video wallpaper is checked, the video application program acquires video duration information and video quality information contained in video characteristic information of the video file, wherein the video quality information contains information representing the playing and displaying quality of the video, such as the resolution, the size and the frame number of the video, so as to judge whether the video duration information and the video quality information meet a preset wallpaper rule, specifically, whether the video duration information is in a duration threshold range in the wallpaper rule is judged, the duration threshold range is generally set to be a reasonable duration range of 3-10 seconds or 2-6 seconds, and whether each item of information in the video quality information meets each quality threshold in the wallpaper rule is judged.
And verifying whether the video file can be rendered into dynamic video wallpaper or not, wherein the dynamic video wallpaper can be given charge of a business server in a platform to which the video application program belongs, the business server verifies whether the video file needing to be pushed to the running video application program meets the wallpaper rule or not, the video file meeting the wallpaper rule is endowed with a wallpaper identifier, the video application program has the wallpaper identifier for the video file, the video application program determines that the wallpaper rule is met, and the video file can be rendered into the dynamic video wallpaper.
Step S112', when the video file meets the wallpaper rule, displaying a dynamic wallpaper setting control in the current interface;
referring to fig. 3 and 4, a video file played in the video playing page shown in fig. 3 satisfies the wallpaper enabling rule, a set dynamic wallpaper control S301 acting on the video file is displayed in the video playing page, if the video file does not satisfy the wallpaper enabling rule, the video playing page of the video file during playing and displaying will be the video playing page shown in fig. 4, and the set dynamic wallpaper control S301 shown in fig. 3 is not included in fig. 4.
And step S113', a dynamic wallpaper setting instruction acting on the video file is triggered in response to the touch event acting on the dynamic wallpaper setting control.
Referring to fig. 3, a user of a terminal device on the video playback page shown in fig. 3 triggers the instruction for setting dynamic wallpaper, which is applied to the video file currently played in fig. 3, by touching the set dynamic wallpaper control S301.
In the embodiment disclosed above, the output played video file is subjected to wallpaper verification, the video application program opens the right to render the video file meeting the wallpaper rules into the dynamic video wallpaper, the video file suitable for rendering the dynamic video wallpaper is screened for the user in advance, the display effect of the generated dynamic video wallpaper can be improved, the look and feel of the dynamic video wallpaper displayed as the system wallpaper in the equipment are improved, and the use experience of the user is optimized.
According to another embodiment of the present application, referring to fig. 3, 5 and 10, the driving of the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into dynamic video wallpaper to be output to a wallpaper preview window for display includes the following steps:
step S121, responding to a dynamic wallpaper rendering instruction pushed by a video application program, acquiring a file acquisition address contained in the instruction, and acquiring a video file through the file acquisition address;
referring to fig. 3, fig. 3 is a video playing page of a video application program, a video file played in the video playing page shown in fig. 3 satisfies the wallpaper enabling rule, a set dynamic wallpaper control S301 acting on the video file is to be displayed in the video playing page, and after the video application program responds to a set dynamic wallpaper instruction triggered by the set dynamic wallpaper control S301, the video application program pushes the dynamic wallpaper rendering instruction of the video file played and displayed in fig. 3 to a dynamic wallpaper rendering service, so that the dynamic wallpaper rendering service responds to the dynamic wallpaper rendering instruction, and obtains a file obtaining address contained in the instruction to obtain the video file, and renders the video file into a dynamic video wallpaper.
Step S122, judging whether the high ratio of the video bandwidth of the video file meets the requirement of cutting rule, if so, cutting the video file according to the video ratio;
because the terminal device for playing the video file is generally a mobile terminal device, such as a mobile phone terminal or a tablet terminal, the width-to-height ratio of the screen of the mobile phone terminal is generally 9: the width-to-height ratio of a tablet computer screen is generally 16:10, and the video aspect ratio of the video file output for play is in addition to the aspect ratio of 9: in addition to 16, the high ratio of the video bandwidth of a part of the video files is 4:3 or 16:9, therefore, if the current terminal is a mobile phone terminal and the aspect ratio of the screen is 9: 3, the width-to-height ratio of the video file needs to be cut to be 9, 16, which meets the width-to-height ratio of the current terminal, so that the dynamic video wallpaper obtained by rendering the video file can be output to a graphical user interface of the current terminal for playing and displaying under the condition of not stretching the size ratio, the display effect of the dynamic video wallpaper is optimized, and the appearance of the dynamic video wallpaper is improved; in a specific implementation manner of the rule to be clipped, the dynamic rendering service determines a width-to-height ratio of a current device screen, calculates a difference between the width-to-height ratio of the current device screen and a video width-to-height ratio of the video file, determines whether the difference does not exceed a preset width-to-height ratio threshold, if the difference does not exceed the preset width-to-height ratio threshold, does not perform video scale clipping on the video file, and if the difference exceeds the preset width-to-height ratio threshold, performs video scale clipping on the video file.
Step S123, rendering the video file into dynamic video wallpaper, and drawing the dynamic video wallpaper into a wallpaper preview page for display;
referring to fig. 5, after rendering the video file into a dynamic video wallpaper, the dynamic wallpaper rendering service outputs the dynamic video wallpaper to the wallpaper preview window shown in fig. 5 for display and play.
Step S124, responding to the wallpaper application event of the wallpaper preview window, and pushing a wallpaper application result of the event to the video application program.
Referring to fig. 5, a user at a current terminal may set, through a wallpaper setting control S501 shown in fig. 5, a displayed dynamic video wallpaper in a wallpaper preview window to be a system wallpaper of the current terminal, to trigger a wallpaper application successful event, the wallpaper rendering service may generate, in response to the event, a wallpaper application result that is characterized by the successful wallpaper application and push the wallpaper application result to a video application program that plays the video file, and when the user closes the wallpaper preview window through a cancel control S502 shown in fig. 5 and cancels the setting of the displayed dynamic video wallpaper to be the system wallpaper of the current terminal, the wallpaper application event that is characterized by the successful wallpaper application and triggers the cancellation of the wallpaper application, the rendering service may generate, in response to the event, an application result that is characterized by the cancellation of the wallpaper application and push the wallpaper application result to the video application program.
In the embodiment disclosed above, the dynamic wallpaper rendering service cuts the size of the video file, so that the dynamic video wallpaper generated by rendering can adapt to the screen size of the terminal device, the appearance of the dynamic video wallpaper is improved, and meanwhile, the dynamic video wallpaper is output by means of the wallpaper preview window of the system wallpaper service, so that the user can browse the video dynamic wallpaper as the display effect of the system wallpaper.
According to another embodiment of the present application, please refer to fig. 11, which determines whether the high ratio of the video bandwidth of the video file meets the requirement for clipping rule, and if so, performs the video ratio clipping process on the video file, including the following steps:
step S1221, calling a video decoder to decode the video file to generate a video frame data set;
and decoding the video file into the video frame data set consisting of a plurality of video frames through the video decoder so as to process the video file frame by frame and cut the original width-to-height ratio of the video file into a target width-to-height ratio which is suitable for the high ratio of the screen width of the terminal equipment.
The video decoder and the video encoder are generally constructed based on a video-audio transcoding express bus (MediaCoder), the video-audio transcoding express bus is a general audio-video batch transcoding tool, a plurality of excellent audio-video codecs and tools from open source communities are integrated into a general solution, audio and video files can be converted among various formats, the video decoder and the video encoder are combined to process the video files frame by frame, and the video decoder is used for performing wide-scale and high-scale cropping processing on video frames generated by decoding the video files through the video decoder.
Step S1222, invoking a video width and height clipper to respectively clip the original width and height ratio of all video frames in the video frame data set to a target width and height ratio, and cache the video frames with the target width and height ratio in a video frame cache region;
the video width and height clipper is generally constructed based on an Open Graphics Library (OpenGL), which is a cross-language, cross-platform Application Programming Interface (API) for rendering 2D and 3D vector Graphics. This interface consists of nearly 350 different function calls for drawing complex images, and the dynamic wallpaper rendering service clips the original aspect ratio of the video frames to the target aspect ratio adapted to the screen aspect ratio of the terminal device through an application programming interface provided by an open graphics library.
And after the video frame is cut into the target width-height ratio by the video width-height cutter, caching the video frame into the video frame cache region, sequencing the video frame cache region according to the storage time of the video frame so that a subsequent video encoder can encode and synthesize the video frames into a video file which accords with the playing sequence of the original video file in sequence, and taking the video file as dynamic video wallpaper.
Step S1223, a video encoder is called to encode all video frames in the video frame buffer area into a video file, where the video width-to-height ratio of the video file is the target width-to-height ratio.
And the video encoder encodes and synthesizes the video frames into corresponding video files according to the storage time of each video frame stored in the video frame buffer area, and the video sizes of the video frames are cut to be suitable for the target width-height ratio of the screen width-height ratio of the terminal equipment, so that the video sizes of the video files encoded and synthesized by the video encoder are different from the video sizes of the video files pushed by the video application program.
In the embodiment disclosed above, by cutting the width-to-height ratio of the video file into the screen width-to-height ratio suitable for the terminal device, compared with a method of playing and displaying the video file in accordance with the screen width-to-height ratio of the terminal device by stretching or zooming the video file, the dynamic video wallpaper finally generated by the video file subjected to the ratio cutting processing has a better display effect in the system desktop of the terminal device, and thus the viewing experience of the user is effectively improved.
According to another embodiment of the present application, referring to fig. 12 to 14, invoking a video frame clipping unit to respectively clip the original size of all video frames contained in the video frame data set to a target aspect ratio comprises the following steps:
step S12221, initializing a visual range of a texture coordinate system, and determining interface aspect ratio data of the current terminal;
referring to fig. 12, the texture coordinate system is the texture coordinate system S1201 shown in fig. 12, and the corresponding visual range is the coordinate range S1202 defined by the coordinates (0,0), the coordinates (0,1), the coordinates (1,1) and the coordinates (1,0) shown in fig. 12, wherein the drawing coordinate system S1203 shown in fig. 12 is used for locating the subsequent texture coordinate range.
The interface width high proportion data is the screen width high proportion data of the current terminal, the video width high clipper inquires the equipment screen information about the hardware configuration from the running system of the current terminal, and the interface width high proportion data is obtained from the video screen information.
Step S12222, calculating a target aspect ratio and an offset value corresponding to the video frame according to the interface aspect ratio data;
the viewing width height clipper calculates a target width height ratio and an offset value according with the visual range through the visual range of the texture coordinate system and the interface width height ratio data, please refer to fig. 12, an origin in the drawing coordinate system S1203 in fig. 12 is used for calculating the offset value, and the visual range shown in fig. 12 is used for converting the interface width height ratio data into the target width height ratio in the visual range.
Step S12223, converting the target width-to-height ratio and the offset value into a texture coordinate range in the visual range, and drawing the current video frame into the texture coordinate range, so as to cut the original width-to-height ratio of the current video frame into the target width-to-height ratio.
Referring to fig. 13, the texture coordinate range is shown as the texture coordinate range S1301 shown in fig. 13, the origin (0,0) of the texture coordinate range S1301 is centered in the drawing coordinate system S1203 according to the offset value, the coordinate range of the texture coordinate range S1301 is shown in the coordinate range S1202, and the aspect ratio of the texture coordinate range S1301 conforms to the target aspect ratio.
And the video width height clipping device centers and draws each video frame into the texture coordinate range, and clips the original width height ratio of the current video frame into the target width height ratio.
In the embodiment disclosed above, the video width and height clipper converts the interface width and height ratio of the terminal device into a visible range in the initialized texture coordinate system, and the corresponding offset value is also centered in the visible range, so as to clip the original width and height ratio of the video frame into the target width and height ratio, so that the width and height ratio of the finally generated dynamic video wallpaper matches the screen width and height ratio of the terminal device, and the copied dynamic video wallpaper is stretched or scaled and output to the interface, which affects the viewing experience of the user.
Referring to fig. 15, a video wallpaper processing apparatus adapted for one of the purposes of the present application is provided: a wallpaper instruction response module 11, configured to respond to a dynamic wallpaper instruction set for a currently played video file, and control a dynamic wallpaper rendering service to be in a start state; the dynamic wallpaper preview module 12 is configured to push a file acquisition address of the video file to the dynamic wallpaper rendering service, and drive the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into a dynamic video wallpaper, and output the dynamic video wallpaper to a wallpaper preview window for display; and the application result output module 13 is configured to acquire a wallpaper application result pushed by the dynamic wallpaper rendering service, and output the wallpaper application result to the current page.
According to some embodiments of the present application, the wallpaper instruction response module 11 includes:
the service state query sub-module is used for querying the service state of the dynamic wallpaper rendering service; the service binding processing submodule is used for starting the system wallpaper service when the service state is the service not started, and binding the dynamic wallpaper rendering service with the system wallpaper service; and the rendering range starting module is used for starting the dynamic wallpaper rendering service.
According to some embodiments of the present application, the wallpaper instruction response module 11 further includes:
the wallpaper rule checking submodule is used for checking whether video characteristic information of a currently played video file meets a preset wallpaper rule or not, and the video characteristic information comprises video duration information and video quality information; the setting control display submodule is used for displaying a dynamic wallpaper setting control in a current interface when the video file meets the wallpaper rule; and the wallpaper instruction generation submodule is used for responding to a touch event acting on the dynamic wallpaper setting control and triggering a dynamic wallpaper setting instruction acting on the video file.
According to some embodiments of the present application, the dynamic wallpaper preview module 12 includes: the video file acquisition sub-module is used for responding to a dynamic wallpaper rendering instruction pushed by a video application program, acquiring a file acquisition address contained in the instruction, and acquiring a video file through the file acquisition address; the video proportion judgment submodule is used for judging whether the high proportion of the video bandwidth of the video file meets the requirement of the cutting rule or not, and if so, performing video proportion cutting processing on the video file; the dynamic wallpaper drawing submodule is used for rendering the video file into dynamic video wallpaper, drawing the dynamic video wallpaper into a wallpaper preview page and displaying the dynamic video wallpaper; and the application result pushing submodule is used for responding to a wallpaper application event of the wallpaper preview window and pushing a wallpaper application result of the event to the video application program.
Another embodiment of the present application also provides a video wallpaper processing apparatus. As shown in fig. 16, the video wallpaper processing device may be implemented by a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected by a system bus. The computer readable storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable a processor to realize a video wallpaper processing method when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform the video wallpaper processing method of the present application. The network interface of the computer device is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 16 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In this embodiment, the processor is configured to execute specific functions of each module in fig. 16, and the memory stores program codes and various types of data required for executing the modules or sub-modules. The network interface is used for data transmission to and from a user terminal or a server. The memory in the present embodiment stores program codes and data necessary for executing all modules in the video wallpaper processing apparatus of the present application, and the server can call the program codes and data of the server to execute the functions of all modules.
The present application further provides a storage medium storing computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the video wallpaper processing method of any of the embodiments of the present application.
The present application also provides a computer program product comprising computer programs/instructions which, when executed by one or more processors, implement the steps of the method as described in any of the embodiments of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments of the present application may be implemented by hardware related to instructions of a computer program, where the computer program may be stored in a computer-readable storage medium, and when executed, the computer program may include the processes of the embodiments of the methods as described above. The storage medium may be a computer-readable storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The foregoing is only a few embodiments of the present application and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present application, and that these improvements and modifications should also be considered as the protection scope of the present application.
In summary, the video played in the video application is rendered into the dynamic wallpaper for the user to customize the desktop wallpaper of the system, and the wallpaper rendering service is independent of the video application and can run in a resident system, so that the dynamic wallpaper is resident and output to the desktop of the system for display, and the use experience of the user is improved.

Claims (10)

1. A video wallpaper processing method is characterized by comprising the following steps:
responding to a dynamic wallpaper setting instruction of a currently played video file, and controlling a dynamic wallpaper rendering service to be in a starting state;
pushing the file acquisition address of the video file to the dynamic wallpaper rendering service, and driving the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into dynamic video wallpaper and output the dynamic video wallpaper to a wallpaper preview window for display;
and acquiring a wallpaper application result pushed by the dynamic wallpaper rendering service, and outputting the wallpaper application result to the current page.
2. The method of claim 1, wherein controlling the dynamic wallpaper rendering service to be in a startup state comprises the steps of:
querying a service state of the dynamic wallpaper rendering service;
when the service state is service not started, starting a system wallpaper service, and binding a dynamic wallpaper rendering service with the system wallpaper service;
the dynamic wallpaper rendering service is started.
3. The method of claim 1, wherein the step of responding to a set dynamic wallpaper command for a currently playing video file comprises the steps of:
checking whether video characteristic information of a currently played video file meets a preset wallpaper rule or not, wherein the video characteristic information comprises video duration information and video quality information;
when the video file meets the wallpaper rule, displaying a dynamic wallpaper setting control in a current interface;
and responding to the touch event acting on the dynamic wallpaper setting control, and triggering a dynamic wallpaper setting instruction acting on the video file.
4. The method as claimed in claim 1, wherein the step of driving the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into dynamic video wallpaper output to a wallpaper preview window for display comprises the following steps:
responding to a dynamic wallpaper rendering instruction pushed by a video application program, acquiring a file acquisition address contained in the instruction, and acquiring a video file through the file acquisition address;
judging whether the video width high proportion of the video file meets the requirement of a clipping rule or not, and if so, performing video proportion clipping processing on the video file;
rendering the video file into dynamic video wallpaper, and drawing the dynamic video wallpaper into a wallpaper preview page for display;
and responding to a wallpaper application event of the wallpaper preview window, and pushing a wallpaper application result of the event to the video application program.
5. The method of claim 4, wherein determining whether the high video rate of the video file meets the clipping requirement rule, and if so, performing video rate clipping processing on the video file comprises the following steps:
calling a video decoder to decode the video file to generate a video frame data set;
calling a video width and height clipper, respectively clipping the original width and height proportion of all video frames contained in the video frame data set into a target width and height proportion, and caching the video frames with the target width and height proportion into a video frame cache region;
and calling a video encoder to encode all video frames in the video frame buffer area into a video file, wherein the video width-height ratio of the video file is the target width-height ratio.
6. The method of claim 5, wherein invoking a video frame cropper to respectively crop the original size of the video frame data set including all video frames to a target width-to-height ratio comprises:
initializing a visual range of a texture coordinate system, and determining interface aspect ratio data of the current terminal;
calculating a target aspect ratio and an offset value corresponding to the video frame according to the interface aspect ratio data;
and converting the target width-height ratio and the offset value into a texture coordinate range in the visual range, and drawing the current video frame into the texture coordinate range so as to cut the original width-height ratio of the current video frame into the target width-height ratio.
7. A video wallpaper processing apparatus, comprising:
the wallpaper instruction response module is used for responding to a dynamic wallpaper instruction set by a currently played video file and controlling the dynamic wallpaper rendering service to be in a starting state;
the dynamic wallpaper preview module is used for pushing the file acquisition address of the video file to the dynamic wallpaper rendering service, driving the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into dynamic video wallpaper, and outputting the dynamic video wallpaper to a wallpaper preview window for display;
and the application result output module is used for acquiring a wallpaper application result pushed by the dynamic wallpaper rendering service and outputting the wallpaper application result to the current page.
8. A video wallpaper processing device comprising a central processor and a memory, wherein the central processor is configured to invoke execution of a computer program stored in the memory to perform the steps of the method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that it stores, in the form of computer-readable instructions, a computer program implemented according to the method of any one of claims 1 to 6, which, when invoked by a computer, performs the steps comprised by the corresponding method.
10. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 6.
CN202210899162.8A 2022-07-28 2022-07-28 Video wallpaper processing method and device, equipment and medium thereof Active CN115278338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210899162.8A CN115278338B (en) 2022-07-28 2022-07-28 Video wallpaper processing method and device, equipment and medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210899162.8A CN115278338B (en) 2022-07-28 2022-07-28 Video wallpaper processing method and device, equipment and medium thereof

Publications (2)

Publication Number Publication Date
CN115278338A true CN115278338A (en) 2022-11-01
CN115278338B CN115278338B (en) 2023-09-19

Family

ID=83770577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210899162.8A Active CN115278338B (en) 2022-07-28 2022-07-28 Video wallpaper processing method and device, equipment and medium thereof

Country Status (1)

Country Link
CN (1) CN115278338B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140044412A1 (en) * 2012-08-08 2014-02-13 Samsung Electronics Co., Ltd. Terminal and method for generating live image
CN106250536A (en) * 2016-08-05 2016-12-21 腾讯科技(深圳)有限公司 A kind of space page background method to set up, Apparatus and system
CN109729423A (en) * 2018-12-27 2019-05-07 麒麟合盛网络技术股份有限公司 A kind of desktop wallpaper setting method and device
CN109727301A (en) * 2018-12-29 2019-05-07 北京字节跳动网络技术有限公司 Generate method, apparatus, electronic equipment and the storage medium of dynamic wallpaper
CN111240774A (en) * 2019-12-31 2020-06-05 Oppo广东移动通信有限公司 Dynamic wallpaper generation method and device, storage medium and electronic equipment
CN111612875A (en) * 2020-04-23 2020-09-01 北京达佳互联信息技术有限公司 Dynamic image generation method and device, electronic equipment and storage medium
CN111880879A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Playing method, device, equipment and storage medium of dynamic wallpaper
WO2021262137A1 (en) * 2020-06-22 2021-12-30 Google Llc Generating videos
CN114296854A (en) * 2021-12-28 2022-04-08 珠海豹趣科技有限公司 Desktop wallpaper display method and device, electronic equipment and readable storage medium
CN114339325A (en) * 2021-12-30 2022-04-12 珠海豹趣科技有限公司 Multi-engine dynamic wallpaper playing method and device based on android system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140044412A1 (en) * 2012-08-08 2014-02-13 Samsung Electronics Co., Ltd. Terminal and method for generating live image
CN106250536A (en) * 2016-08-05 2016-12-21 腾讯科技(深圳)有限公司 A kind of space page background method to set up, Apparatus and system
CN109729423A (en) * 2018-12-27 2019-05-07 麒麟合盛网络技术股份有限公司 A kind of desktop wallpaper setting method and device
CN109727301A (en) * 2018-12-29 2019-05-07 北京字节跳动网络技术有限公司 Generate method, apparatus, electronic equipment and the storage medium of dynamic wallpaper
CN111240774A (en) * 2019-12-31 2020-06-05 Oppo广东移动通信有限公司 Dynamic wallpaper generation method and device, storage medium and electronic equipment
CN111612875A (en) * 2020-04-23 2020-09-01 北京达佳互联信息技术有限公司 Dynamic image generation method and device, electronic equipment and storage medium
WO2021262137A1 (en) * 2020-06-22 2021-12-30 Google Llc Generating videos
CN111880879A (en) * 2020-07-24 2020-11-03 上海米哈游天命科技有限公司 Playing method, device, equipment and storage medium of dynamic wallpaper
CN114296854A (en) * 2021-12-28 2022-04-08 珠海豹趣科技有限公司 Desktop wallpaper display method and device, electronic equipment and readable storage medium
CN114339325A (en) * 2021-12-30 2022-04-12 珠海豹趣科技有限公司 Multi-engine dynamic wallpaper playing method and device based on android system

Also Published As

Publication number Publication date
CN115278338B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN107770626B (en) Video material processing method, video synthesizing device and storage medium
CN110827378B (en) Virtual image generation method, device, terminal and storage medium
CN111541930B (en) Live broadcast picture display method and device, terminal and storage medium
US11418832B2 (en) Video processing method, electronic device and computer-readable storage medium
CN110071938B (en) Virtual image interaction method and device, electronic equipment and readable storage medium
EP2267606A2 (en) Method and device for displaying individualized user interface
JP2005535012A (en) Animated messaging
US7599838B2 (en) Speech animation with behavioral contexts for application scenarios
CN113099298A (en) Method and device for changing virtual image and terminal equipment
CN111629253A (en) Video processing method and device, computer readable storage medium and electronic equipment
WO2020150693A1 (en) Systems and methods for generating personalized videos with customized text messages
CN113411664A (en) Video processing method and device based on sub-application and computer equipment
CN110930325B (en) Image processing method and device based on artificial intelligence and storage medium
CN112231727A (en) Data processing method and device, electronic equipment, server and storage medium
KR20220167358A (en) Generating method and device for generating virtual character, electronic device, storage medium and computer program
CN115510347A (en) Presentation file conversion method and device, electronic equipment and storage medium
US6271858B1 (en) Incremental update for dynamic/animated textures on three-dimensional models
WO2008001961A1 (en) Mobile animation message service method and system and terminal
KR101915792B1 (en) System and Method for Inserting an Advertisement Using Face Recognition
US7529674B2 (en) Speech animation
CN115278338B (en) Video wallpaper processing method and device, equipment and medium thereof
CN111432142A (en) Video synthesis method, device, equipment and storage medium
CN116126177A (en) Data interaction control method and device, electronic equipment and storage medium
CN106383705B (en) Method and device for setting mouse display state in application thin client
CN112543350A (en) Live broadcast interaction method and device

Legal Events

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