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

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

Info

Publication number
CN115278338B
CN115278338B CN202210899162.8A CN202210899162A CN115278338B CN 115278338 B CN115278338 B CN 115278338B CN 202210899162 A CN202210899162 A CN 202210899162A CN 115278338 B CN115278338 B CN 115278338B
Authority
CN
China
Prior art keywords
video
wallpaper
dynamic
file
aspect ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210899162.8A
Other languages
Chinese (zh)
Other versions
CN115278338A (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

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 and a device, equipment, media and products thereof in the technical field of network video, 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 a 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 outputting the dynamic video wallpaper into 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 the application, the video played in the video application is rendered into the dynamic wallpaper for customizing the system desktop wallpaper by a user, and the wallpaper rendering service can run independently of the video application and can be resident on a system, so that 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 and 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 thereof.
Background
The existing video content platform has massive video content for viewing by platform users, the exquisite video content in the video content platform enables the platform users to be pleasant, part of platform users in the platform browse the exquisite video content to enable screenshot processing to be carried out normally, favorite video frames in the video content are intercepted to be used as wallpaper of a system desktop, but if the platform users want to use the video content as the system wallpaper, recording screen recording operations such as video recording are carried out normally by means of third party applications to record the video content, so that the generated video file is used as the system wallpaper, or the video file of the video content is 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 use of unrendered video files as the system wallpaper, and the video file generated through the operations is used as the display effect of the system wallpaper, for example, the size, the number of frames, the code rate and the resolution of video are not matched with the equipment, and the final display effect does not meet the expectations of the users.
To sum up, in order to solve the problem that the user uses the video content as the system wallpaper in the video content platform to meet the personalized requirement, the inventor makes a corresponding exploration in consideration of solving the problem.
Disclosure of Invention
The object of the present application is to solve the above-mentioned problems and to provide a video wallpaper processing method and corresponding apparatus, a video wallpaper processing device, a computer readable storage medium, and a computer program product.
According to one aspect of the present application, there is provided a video wallpaper processing method comprising 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 a 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 outputting the dynamic video wallpaper into 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 comprising:
the wallpaper instruction response module is used for responding to a dynamic wallpaper instruction of a currently played video file and controlling the dynamic wallpaper rendering service to be in a starting state;
the dynamic wallpaper previewing module is used for 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 outputting the dynamic video wallpaper to a wallpaper previewing window for display;
And the application result output module is used for acquiring the 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, said central processor being arranged to invoke the execution of a computer program stored in said memory to perform the steps of the video wallpaper processing method according to the present application.
According to another aspect of the present application, there is provided a computer readable storage medium storing in the form of computer readable instructions a computer program implemented in accordance with the video wallpaper processing method, the computer program when executed by a computer call performing the steps comprised by the method.
According to another aspect of the application there is provided a computer program product comprising computer programs/instructions which when executed by a processor implement the steps of the method of any one of the embodiments of the application.
Compared with the prior art, the method and the system have the advantages that the corresponding dynamic video wallpaper is generated by rendering the video files played in the video application program and used as the system wallpaper of the terminal equipment, the personalized requirements of the platform user are met by providing the dynamic video wallpaper generating function for the platform user, the exposure degree of video content of the platform is improved, the video application program and the dynamic wallpaper rendering service are mutually independent, the video application program and the dynamic wallpaper rendering service are respectively independently operated in the terminal equipment of the user, the operation condition of the other party is not influenced by any one side in an unactuated state, so that when the video application program stops operating in the terminal equipment, the dynamic wallpaper rendering service bound with the system wallpaper service can still output the dynamic video wallpaper rendered by the dynamic video application program to a graphical user interface of the terminal equipment for playing and displaying, the dynamic video wallpaper serving as the system wallpaper of the terminal equipment, the platform user can display the dynamic video wallpaper in a system desktop without starting the video application program, the video dynamic wallpaper and the system wallpaper service have higher adaptability, and the user can set the system of the system desktop as the dynamic video wallpaper without occupying the operation resources of the terminal equipment, and the terminal equipment can be ensured to be smoothly operated.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a typical network deployment architecture according to an embodiment of the present application;
FIG. 2 is a flowchart of an exemplary embodiment of a video wallpaper processing method according to the present application;
FIG. 3 is a graphical user interface of an exemplary presentation video application of the present application with a video play page with a set dynamic wallpaper control;
FIG. 4 is a graphical user interface of an exemplary presentation video application of the present application without a video play page with a set dynamic wallpaper control;
FIG. 5 is an exemplary graphical user interface of the present application presenting a wallpaper preview window;
FIG. 6 is a graphical user interface of an exemplary presented video playback page of the application displaying wallpaper application results characterized by a successful wallpaper application;
FIG. 7 is a graphical user interface of an exemplary present application presenting a video playback page featuring wallpaper application results for canceling a wallpaper application;
FIG. 8 is a flowchart illustrating a method for controlling a dynamic wallpaper rendering service to be in a startup state according to an embodiment of the application;
FIG. 9 is a flowchart of a wallpaper verification process for a video file according to an embodiment of the present application;
FIG. 10 is a flowchart of a dynamic wallpaper rendering service rendering a video file as a dynamic video wallpaper and outputting the dynamic video wallpaper to a wallpaper preview window for display in an embodiment of the application;
FIG. 11 is a flowchart of a video scaling process for a video file according to an embodiment of the present application;
FIG. 12 is an exemplary diagram of an exemplary rendered texture coordinate system, visual range, and rendered coordinate system of the present application;
FIG. 13 is an exemplary diagram of an exemplary rendered texture coordinate system, visual field, drawing coordinate system, and texture coordinate field of the present application;
FIG. 14 is a flow chart of an embodiment of the present application for a video frame cropping device to crop the original size of a video frame to a target aspect ratio;
FIG. 15 is a functional block diagram of an exemplary embodiment of a video wallpaper processing device according to the present application;
fig. 16 is a basic structural block diagram of a video wallpaper processing apparatus according to an embodiment of the present application.
Detailed Description
The term "server" in the present application is equally applicable to the case of service clusters. The servers should be logically partitioned, physically separate from each other but interface-callable, or integrated into a physical computer or group of computers, according to network deployment principles understood by those skilled in the art. Those skilled in the art will appreciate this variation and should not be construed as limiting the implementation of the network deployment approach of the present application.
Those skilled in the art will appreciate that: although the various methods of the present application are described based on the same concepts so as to be common to each other, the methods may be performed independently of each other unless specifically indicated otherwise. Similarly, for the various embodiments disclosed herein, all concepts described herein are presented based on the same general inventive concept, and thus, concepts described herein with respect to the same general inventive concept, and concepts that are merely convenient and appropriately modified, although different, should be interpreted as equivalents.
The various embodiments of the present application to be disclosed herein, unless the plain text indicates a mutually exclusive relationship with each other, the technical features related to the various embodiments may be cross-combined to flexibly construct a new embodiment as long as such combination does not depart from the inventive spirit of the present application and can satisfy the needs in the art or solve the deficiencies in the prior art. This variant will be known to the person skilled in the art.
Referring to fig. 1, the hardware base required for implementing the related technical solution of the present application may be deployed according to the architecture shown in the figure. The server 80 of the present application is deployed at the cloud as an online server, and may be responsible for further connecting to related data servers and other servers providing related support, so as to form a logically related service cluster, to provide services for related terminal devices, such as a smart phone 81 and a personal computer 82 shown in the figure, or a third party server (not shown). The smart phone and the personal computer can access the internet through a well-known network access manner, and establish a data communication link with the server 80 in the cloud end so as to run a terminal application program related to a service provided by the server, for example, the smart phone 81 and the personal computer 82 generally run the application program to display a preview window of a target live broadcasting room or a terminal device of a live broadcasting room interface, and the server 80 can provide a video data stream and a service data stream of the target live broadcasting room for the terminal device.
Referring to fig. 2, in an exemplary embodiment of a video wallpaper processing method of the present application, the method includes the following steps:
step 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 files are generally output to a video playing page to be played and displayed, the video files which are output and played in the video playing page are generally obtained from a server of a platform, wherein the video files which can trigger the dynamic wallpaper setting instruction are generally video files meeting wallpaper rule, the wallpaper rule generally prescribes video duration and video quality of the video files, the video duration is generally set in a range of 3-5 seconds and corresponds to the video duration, the video quality is generally based on setting corresponding video resolution threshold, video code rate threshold, video frame number threshold and other parameter threshold which influence video playing and displaying quality, and the video quality of the video files is checked to screen the dynamic video wallpaper which is rendered by the video files with better playing and displaying quality, so that the look and feel 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-capable rule is endowed with a wallpaper-capable identifier, namely, a dynamic wallpaper setting instruction which can be acted on the video file with the wallpaper-capable identifier is triggered; executing and checking whether the video file meets the wallpaper rule or not, wherein an executing end of the wallpaper video file can be a terminal device of a platform user or a service server of the platform, if the executing end is the terminal device, the terminal device checks whether the video file meets the wallpaper rule or not after acquiring the video file from the server of the platform, and if the video file meets the wallpaper rule, the corresponding wallpaper identifier of the video file is given; if the executive party is a server, the server checks whether each video file provided by the executive party meets the wallpaper-capable rule, endows each video file which meets the wallpaper-capable rule with corresponding wallpaper-capable identifiers, and pushes the video file and the wallpaper-capable identifiers to the terminal equipment together when pushing the video file to the terminal equipment of a 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-capable identifiers provided by the terminal equipment after receiving the video file.
When the video file with the set dynamic wallpaper is played in the video playing page, the corresponding set dynamic wallpaper control is displayed in the video playing page, specifically, please refer to fig. 3 and fig. 4, the video file played in the video playing page shown in fig. 3 meets the wallpaper rule, the set dynamic wallpaper control S301 acting on the video file is displayed in the video playing page, if the video file does not meet the wallpaper rule, the video playing page of the video file when playing and displaying is the video playing page as shown in fig. 4, and the set dynamic wallpaper control S301 shown in fig. 3 is not included in fig. 4; the user of the terminal device in the video playing page shown in fig. 3 sets the dynamic wallpaper control S301 through touch control, and triggers the dynamic wallpaper setting instruction acting on the video file currently played in fig. 3.
After responding to the dynamic wallpaper setting instruction acted on the video file currently played by the video application program, the video application program playing the video file enables a dynamic wallpaper rendering service which is controlled to render 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 not the starting service, the system wallpaper service is started, and after binding the dynamic wallpaper rendering service with the system wallpaper service, the dynamic wallpaper rendering service is started; the video application program and the dynamic wallpaper rendering service are mutually independent, the two parties are respectively and independently operated in the terminal equipment of the user, the operation condition of the other party is not influenced when any party is in an un-started state, and the video application program and the dynamic wallpaper rendering service are mutually independent, so that after the video application program stops operating at the terminal equipment, 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 a graphical user interface of the terminal equipment for playing and displaying, and the dynamic video wallpaper is used as the system wallpaper of the system wallpaper service of the terminal equipment; specific embodiments of the dynamic wallpaper rendering service will be described in the following steps, and the present application is not repeated.
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 display;
after the dynamic wallpaper rendering service is started, a dynamic wallpaper rendering instruction containing the video file is pushed to the dynamic wallpaper rendering service, so that the dynamic wallpaper rendering service responds to the dynamic wallpaper rendering instruction, the file acquisition address contained in the instruction is acquired, the video file is acquired through the file acquisition address, the video file is further rendered into the dynamic video wallpaper, and the dynamic video wallpaper is output to a wallpaper preview window to be displayed.
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 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 position 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 position.
After the dynamic wallpaper rendering service acquires the video file, checking whether the video aspect ratio of the video file meets the rule to be cut, and if so, performing video proportion cutting processing on the video file; since the terminal device for playing the video file is generally a mobile terminal device, such as a mobile phone terminal or a tablet computer terminal, the aspect ratio of the mobile phone terminal screen is generally 9:16, the aspect ratio of the tablet screen is generally 16:10, and the video aspect ratio of the output video file is in accordance with 9 of the aspect ratio of the mobile phone: 16, the video aspect ratio of the partial video file is 4:3 or 16:9, therefore, if the current terminal is a mobile phone terminal and the aspect ratio of its screen is 9:16, the video aspect ratio of the output video file is 4:3, cutting the aspect ratio of the video file to be 9:16 which accords with the aspect ratio of the current terminal, so that the dynamic video wallpaper rendered by 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 proportion, the display effect of the dynamic video wallpaper is optimized, and the look and feel of the dynamic video wallpaper is improved; in the specific implementation manner of the to-be-cut rule, the dynamic rendering service determines an aspect ratio of the current device screen, calculates a difference value between the aspect ratio of the current device screen and the video aspect ratio of the video file, determines whether the difference value does not exceed a preset aspect ratio threshold, if not, does not perform video proportional cutting processing on the video file, and if yes, performs video proportional cutting processing on the video file, wherein the to-be-cut rule allows a certain error between the aspect ratio of the device screen and the video aspect ratio of the video file, and the value of the error is specified by the aspect ratio threshold instead of processing all video files with different aspect ratios between the aspect ratio of the video file and the aspect ratio of the device screen, so as to ensure that the video file renders a complete video picture with the video file in the obtained dynamic video wallpaper, save computing resources of the device, and improve the rendering speed of the dynamic video wallpaper.
When the wallpaper rendering service processes a video file of which the aspect ratio is required to be cut, a video decoder is called to decode the video file to generate a video frame data set, a video wide-high cutter is called to cut the original aspect ratio of all video frames contained in the video frame data set into target aspect ratio examples, video frames with the target aspect ratio examples are cached in a video frame cache area, and then a video encoder is called to encode all video frames in the video frame cache area into a video file, wherein the video aspect ratio examples of the video file are the target aspect ratio examples; when the video frame clipping process is performed, the video wide-height clipping device initializes a visual range of a texture coordinate system, determines interface aspect ratio data of a current terminal, calculates a target aspect ratio case and an offset value corresponding to the video frame according to the interface aspect ratio data, converts the target aspect ratio case and the offset value into the texture coordinate range in the visual range, and draws the current video frame to the texture coordinate range, so as to clip the original aspect ratio case of the current video frame into the target aspect ratio case.
The dynamic wallpaper rendering service renders a video file into the dynamic video wallpaper, and draws the dynamic video wallpaper into a wallpaper preview page for display; the dynamic video wallpaper is a video file which is rendered and converted into wallpaper suitable for being used as a terminal device through the dynamic wallpaper rendering service, although the video file is basically the video file, when the dynamic video wallpaper is more suitable for being used as the wallpaper of the terminal device, besides the aspect ratio embodiment clipping is carried out so that the video file can be more suitable for being output and played by the aspect ratio embodiment of the terminal device, the video file is generally subjected to video resolution, video code rate, video frame number and file format optimization processing to be rendered into the dynamic video wallpaper to be output and played by being used as the wallpaper of the terminal device, and the video resolution, the video code rate and the video frame number are optimized to prevent the video resolution, the video code rate and the video frame number from being excessively high, so that the system of the terminal device cannot be smoothly operated, and the file format of the video file is modified into the format supported by the wallpaper service playing video of the terminal device, so that the obtained dynamic video wallpaper can be effectively output as the system wallpaper to be displayed in a graphical user interface of the terminal device.
In an embodiment, in the dynamic wallpaper rendering service, a video aspect ratio, a video resolution, a video code rate and a video frame number of a video file can be opened to a user at a terminal device for customizing, so that the user can customize a rendering requirement of the video file according to needs, specifically, the dynamic wallpaper rendering service generates a rendering custom editing window for generating the video file to be rendered into the dynamic video wallpaper currently to a graphical user interface for displaying, related controls for customizing the video aspect ratio, the video resolution, the video code rate and the video frame number of the video file are displayed in the rendering custom editing window for the user to perform custom editing, and the dynamic wallpaper rendering service renders the video file into corresponding dynamic video wallpaper according to the video aspect ratio, the video resolution, the video code rate and the video frame number edited in each control and outputs the corresponding dynamic video wallpaper to the wallpaper preview window for displaying.
Referring to fig. 5, the wallpaper preview window is configured to output the dynamic video wallpaper for a user at a current terminal to browse a display effect of the dynamic video wallpaper, where 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 is generally WallpaperService, and since the dynamic wallpaper rendering service is bound with the system wallpaper service, the dynamic wallpaper rendering service may generate the wallpaper preview window through an interface provided by WallpaperService, so as to output the rendered dynamic video wallpaper to the wallpaper preview window for display and play; referring to fig. 5, after the video file is rendered into the dynamic video wallpaper by the dynamic wallpaper rendering service, the dynamic video wallpaper is output to the wallpaper preview window shown in fig. 5 for display and play.
After the wallpaper rendering service outputs the dynamic video wallpaper to the wallpaper preview window for display, the wallpaper rendering service responds to a wallpaper application event acting on the wallpaper preview window to respond to the wallpaper application event of the wallpaper preview window to push a corresponding wallpaper application result of the event to a video application, specifically, please refer to fig. 5, a user at a current terminal can set the displayed wallpaper preview window to display the wallpaper application event which is successful in playing the dynamic video wallpaper as the system wallpaper of the current terminal through a wallpaper setting control S501 shown in fig. 5, the wallpaper rendering service generates a wallpaper application result which is characterized in that the wallpaper application is successful and pushes the wallpaper application result to a video application program which is played the video file in response to the event, and when the user closes the displayed wallpaper preview window and cancels the system wallpaper which is set the dynamic video wallpaper as the current terminal through a cancellation control S502 shown in fig. 5, the wallpaper application event which is triggered to cancel the wallpaper application is pushed to the video application program in response to the event.
In an embodiment, after the wallpaper rendering service renders 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 stores the dynamic video wallpaper and a unique identifier of a video file to which the dynamic video wallpaper belongs in a wallpaper library, when the wallpaper rendering service in other terminal equipment needs to render the dynamic video wallpaper of the video file, a wallpaper obtaining instruction can be pushed to the server, the server responds to the instruction to obtain the dynamic video wallpaper from the wallpaper library and push the dynamic video wallpaper to a wallpaper rendering service of the terminal equipment, so that the wallpaper rendering service can obtain the dynamic video wallpaper of the video file without rendering and output the dynamic video wallpaper to a wallpaper preview window for display, thereby saving computing resources of the terminal equipment and improving use experience of a user.
And S13, acquiring a wallpaper application result pushed by the dynamic wallpaper rendering service, and outputting the wallpaper application result to the current page.
The dynamic wallpaper rendering service responds to the wallpaper application event in the wallpaper preview window to generate a corresponding wallpaper application result according to the wallpaper application event and push the corresponding 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, please refer 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 indicating that the wallpaper application is successful and push the wallpaper application result to the video application program, and 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 indicating that the wallpaper application is cancelled and push 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 by different wallpaper application results, specifically, please refer to fig. 6 and fig. 7, the notification file displayed in the wallpaper application result notification window S601 shown in fig. 6 is a wallpaper application result representing that the wallpaper application is successful, and the notification file displayed in the wallpaper application result notification window S701 shown in fig. 7 is a wallpaper application result representing that the wallpaper application is cancelled, wherein the user may share the dynamic video wallpaper rendered by the dynamic wallpaper rendering service to other platform users in the platform through the shown wallpaper application result notification window S601 or S701.
Different from the existing dynamic wallpaper with lower quality generated by performing system wallpaper setting by self screenshot of a platform user or performing screen recording by means of a third party application program, the method uses the corresponding dynamic video wallpaper generated by rendering the video file played in the video application program as the system wallpaper of the terminal equipment, and provides the platform user with a dynamic video wallpaper generating function to meet the personalized requirements of the platform user, and improves the exposure of the video content of the platform, wherein the video application program and the dynamic wallpaper rendering service are mutually independent, the two parties respectively independently operate in the terminal equipment of the user, and neither party is in an uninitiated state, so that when the video application program stops operating in the terminal equipment, 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 equipment for playing and displaying, the dynamic video wallpaper serving as the system wallpaper of the terminal equipment, so that the platform user can display the dynamic video wallpaper in the system desktop without opening the video application program, the video wallpaper and the system wallpaper serving the system desktop have higher adaptability, and the user can smoothly operate the system wallpaper without occupying the terminal equipment to operate the system wallpaper, and the system wallpaper resources can be smoothly set up and operate the system wallpaper.
According to another embodiment of the present application, please refer to fig. 8, which controls the dynamic wallpaper rendering service to be in a start state, comprising the following steps:
step S111, inquiring the service state of the dynamic wallpaper rendering service;
after responding to a dynamic wallpaper setting instruction acting on a currently played video file, inquiring a service state of a dynamic wallpaper rendering service, wherein 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 render according to the video file to generate corresponding dynamic video wallpaper.
Step S112, when the service state is not started service, starting system wallpaper service, and binding dynamic wallpaper rendering service with the system wallpaper service;
the system wallpaper service refers to a system wallpaper service of an operation system of the current equipment, is independent of the video application program and the dynamic wallpaper rendering service, is started when the service state of the dynamic wallpaper rendering service is characterized as not being started, and is bound with the system wallpaper service, so that the dynamic wallpaper rendering service can output dynamic video wallpapers generated by rendering to the wallpaper preview window for display by means of the wallpaper preview function of the system wallpaper service.
Step S113, starting the dynamic wallpaper rendering service.
After binding the dynamic wallpaper rendering service with the system wallpaper service, starting the dynamic wallpaper rendering service to push a video file corresponding to a dynamic wallpaper setting instruction into the dynamic wallpaper rendering service, and driving the dynamic wallpaper rendering service to render and generate corresponding dynamic video wallpaper according to the video file.
In the embodiment disclosed above, the dynamic wallpaper rendering service is generally activated and started when in use, 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 display 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 output the dynamic video wallpaper to the system desktop for display and play without starting a video application program and the dynamic wallpaper rendering service, and the use experience of a user is optimized.
According to another embodiment of the present application, please refer to fig. 3, 4 and 9, responding to the dynamic wallpaper setting command of the currently playing video file, comprising the following steps:
Step S111', checking whether video characteristic information of a currently played video file meets a preset wallpaper rule, wherein the video characteristic information comprises video duration information and video quality information;
when the video application program outputs the video file to the video playing page for playing and displaying, whether the video file can be rendered into dynamic video wallpaper is checked, the video application program obtains video duration information and video quality information contained in video characteristic information of the video file, wherein the video quality information contains information representing playing and displaying quality of the video such as resolution, size and frame number of the video, so as to judge whether the video duration information and the video quality information meet the preset wallpaper rule, specifically, whether the video duration information is in a duration threshold range in the wallpaper rule, the duration threshold range is generally set to be a reasonable duration range such as 3-10 seconds or 2-6 seconds, and whether all information in the video quality information meets all quality thresholds in the wallpaper rule is judged.
Checking whether the video file can be rendered into the dynamic video wallpaper is responsible for a service server in a platform to which the video application program belongs, checking whether the video file which needs to be pushed to the running video application program meets the wallpaper rule by the service server, giving the wallpaper identification to the met video file, determining that the wallpaper rule is met by the video application program when the video file is provided with the wallpaper identification, and rendering the video file 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 fig. 4, a 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, and if the video file does not satisfy the wallpaper rule, the video playing page of the video file when played and displayed is the video playing page shown in fig. 4, and fig. 4 does not have the set dynamic wallpaper control S301 shown in fig. 3.
Step S113', in response to the touch event acting on the dynamic wallpaper setting control, triggering a dynamic wallpaper setting instruction acting on the video file.
Referring to fig. 3, a user of the terminal device in the video playing page shown in fig. 3 sets a dynamic wallpaper control S301 through touch, and triggers the dynamic wallpaper setting instruction applied to the video file currently playing in fig. 3.
In the embodiment disclosed above, the output video file to be played is subjected to wallpaper verification, the video application program opens the authority of rendering the video file meeting the wallpaper rule into the dynamic video wallpaper, and screens the video file suitable for rendering the dynamic video wallpaper for the user in advance, so that the display effect of the generated dynamic video wallpaper can be improved, the look and feel of the dynamic video wallpaper displayed in the device as the system wallpaper can be improved, and the use experience of the user can be optimized.
According to another embodiment of the present application, please refer to fig. 3, 5 and 10, the method for driving the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into a dynamic video wallpaper, and outputting the dynamic video wallpaper 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 meets the wallpaper rule, a dynamic wallpaper setting control S301 acting on the video file is displayed in the video playing page, after the video application program responds to a dynamic wallpaper setting instruction triggered by the dynamic wallpaper setting control S301, the dynamic wallpaper rendering instruction of the video file played and displayed in fig. 3 is pushed to a dynamic wallpaper rendering service, so that the dynamic wallpaper rendering service responds to the dynamic wallpaper rendering instruction, acquires a video file from a file acquisition address included in the acquisition instruction, and renders the video file into dynamic video wallpaper.
Step S122, judging whether the video aspect ratio of the video file meets the rule to be cut, if so, carrying out video proportion cutting processing on the video file;
since the terminal device for playing the video file is generally a mobile terminal device, such as a mobile phone terminal or a tablet computer terminal, the aspect ratio of the mobile phone terminal screen is generally 9:16, the aspect ratio of the tablet screen is generally 16:10, and the video aspect ratio of the output video file is in accordance with 9 of the aspect ratio of the mobile phone: 16, the video aspect ratio of the partial video file is 4:3 or 16:9, therefore, if the current terminal is a mobile phone terminal and the aspect ratio of its screen is 9:16, the video aspect ratio of the output video file is 4:3, cutting the aspect ratio of the video file to be 9:16 which accords with the aspect ratio of the current terminal, so that the dynamic video wallpaper rendered by 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 proportion, the display effect of the dynamic video wallpaper is optimized, and the look and feel of the dynamic video wallpaper is improved; in the specific implementation manner of the to-be-cut rule, the dynamic rendering service determines an aspect ratio of the current device screen, calculates a difference value between the aspect ratio of the current device screen and the video aspect ratio of the video file, determines whether the difference value does not exceed a preset aspect ratio threshold, if not, does not perform video proportional cutting processing on the video file, and if yes, performs video proportional cutting processing on the video file, wherein the to-be-cut rule allows a certain error between the aspect ratio of the device screen and the video aspect ratio of the video file, and the value of the error is specified by the aspect ratio threshold instead of processing video files with different aspect ratios between the aspect ratio of the video file and the aspect ratio of the device screen, so as to ensure that the video file rendered dynamic video wallpaper has a complete video picture of the video file, save computing resources of the device, and improve the rendering speed of the dynamic video wallpaper.
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 the video file is rendered into the dynamic video wallpaper by the dynamic wallpaper rendering service, the dynamic video wallpaper is output 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 the wallpaper application result of the event to the video application program.
Referring to fig. 5, when the user at the current terminal sets the wallpaper setting control S501 shown in fig. 5 to set the system wallpaper of the current terminal as the wallpaper application event that triggers the wallpaper application to succeed, the wallpaper rendering service generates a wallpaper application result representing that the wallpaper application is successful in response to the event 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 and cancels the system wallpaper that sets the dynamic video wallpaper as the current terminal through the cancellation control S502 shown in fig. 5, the wallpaper rendering service triggers the wallpaper application event that cancels the wallpaper application and responds to the event and pushes the wallpaper application result representing that the wallpaper application is cancelled 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 look and feel 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 a 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, determining whether the video aspect ratio of the video file satisfies the rule to be cropped, if so, performing the video scale cropping process on the video file, including the following steps:
step S1221, calling a video decoder to decode a video file to generate a video frame data set;
decoding, by the video decoder, the video file into the video frame dataset of a plurality of video frames to process the video file frame by frame, clipping an original aspect ratio aspect of the video file to a target aspect ratio that is adapted to an aspect ratio of the terminal device.
The video decoder and the video encoder are generally constructed based on a media code express (mediacode), which is a universal audio and video batch code conversion tool that integrates a plurality of excellent audio and video codecs and tools from an open source community into a universal solution, and can convert audio and video files between various formats, and the video files are processed frame by the combined use of the video decoder and the video encoder, and the video frames generated by decoding the video files by the video decoder are processed by aspect ratio cropping by the video width and height cropping device.
Step S1222, calling a video width and height cutter, cutting the original aspect ratio of the video frame dataset containing all video frames into target aspect ratio, and buffering the video frames with the target aspect ratio into a video frame buffer;
the video wide-height clipper is typically built based on an open graphics library (Open Graphics Library, abbreviated: openGL), which is a cross-language, cross-platform Application Programming Interface (API) for rendering 2D, 3D vector graphics. This interface consists of nearly 350 different function calls for rendering complex images, the dynamic wallpaper rendering service tailors the original aspect ratio of video frames to the target aspect ratio adapted to the aspect ratio of the terminal device through an application programming interface provided by the open graphics library.
After the video width and height cutter cuts the video frames into the target aspect ratio, the video frames are cached in the video frame cache area, and the video frame cache area is ordered according to the storage time of the video frames, so that the video encoder can encode and synthesize each video frame into a video file conforming to the playing sequence of the original video file in sequence, and the video file is used as the dynamic video wallpaper.
Step S1223, invoking the video encoder to encode all video frames in the video frame buffer into a video file, the video aspect ratio of which is the target aspect ratio.
The video encoder encodes the video frames into corresponding video files in sequence 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 into the target aspect ratio case suitable for the aspect ratio case 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 clipping the aspect ratio of the video file to be suitable for the aspect ratio of the terminal device, compared with the manner of playing and displaying the video file by stretching or scaling the video file to conform to the aspect ratio of the terminal device, the dynamic video wallpaper finally generated by the video file processed by the proportion clipping has better display effect in the system desktop of the terminal device, thereby effectively improving the viewing experience of the user.
According to another embodiment of the present application, please refer to fig. 12 to 14, a video frame cropping device is invoked to crop the original dimensions of the video frame dataset containing all video frames to the target aspect ratio, comprising the steps of:
Step S12221, initializing the visual range of the texture coordinate system, and determining the interface aspect ratio data of the current terminal;
referring to fig. 12, the texture coordinate system is shown as texture coordinate system S1201 in fig. 12, and the corresponding visible range is shown as coordinate range S1202 defined by coordinates (0, 0), coordinates (0, 1), coordinates (1, 1) and coordinates (1, 0) in fig. 12, where the drawing coordinate system S1203 in fig. 12 is used for positioning the subsequent texture coordinate range.
The interface aspect ratio data is the aspect ratio data of the current terminal, the video width and height cutter queries equipment screen information about hardware configuration from the running system of the current terminal, and the interface aspect ratio data is obtained from the video screen information.
Step S12222, calculating the target aspect ratio and offset value corresponding to the video frame according to the interface aspect ratio data;
the video aspect ratio clipper calculates a target aspect ratio and an offset value conforming to the visual range from the visual range of the texture coordinate system and the interface aspect ratio data, please refer to fig. 12, the origin in the drawing coordinate system S1203 in fig. 12 is used to calculate the offset value, and the visual range shown in fig. 12 is used to convert the interface aspect ratio data into a target aspect ratio in the visual range.
Step S12223 converts the target aspect ratio case and the offset value into a texture coordinate range in the visual range, and draws the current video frame to the texture coordinate range to clip the original aspect ratio case of the current video frame to the target aspect ratio case.
Referring to fig. 13, the texture coordinate range is shown as texture coordinate range S1301 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 in the coordinate range S1202, and the aspect ratio of the texture coordinate range S1301 conforms to the target aspect ratio.
The video wide-height clipper centers and draws each video frame into the texture coordinate range, clipping the original aspect ratio case of the current video frame to the target aspect ratio case.
In the embodiment disclosed above, the video wide-height clipper converts the interface aspect ratio of the terminal device into a visual range in the initialized texture coordinate system, and the corresponding offset value is also centered in the visual range to clip the original aspect ratio of the video frame into the target aspect ratio, so that the aspect ratio of the finally generated dynamic video wallpaper matches the aspect ratio of the terminal device, and the copied dynamic video wallpaper is stretched or scaled out into the interface, affecting the viewing experience of the user.
Referring to fig. 15, a video wallpaper processing device according to one of the objects of the present application is provided: the wallpaper instruction response module 11 is used for responding to a dynamic wallpaper setting instruction of a currently played video file and controlling the dynamic wallpaper rendering service to be in a starting state; the dynamic wallpaper previewing 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 previewing window for display; and the application result output module 13 is used for acquiring the wallpaper application result pushed by the dynamic wallpaper rendering service and outputting the wallpaper application result to the current page.
According to some embodiments of the present application, the wallpaper command response module 11 comprises:
the service state inquiry sub-module is used for inquiring the service state of the dynamic wallpaper rendering service; the service binding processing sub-module is used for starting the system wallpaper service when the service state is not started service, and binding the dynamic wallpaper rendering service with the system wallpaper service; and the rendering range starting sub-module is used for starting the dynamic wallpaper rendering service.
According to some embodiments of the present application, the wallpaper command response module 11 further comprises:
the wallpaper rule checking sub-module is used for 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; the setting control display sub-module is used for displaying a dynamic wallpaper setting control in a current interface when the video file meets wallpaper rule; and the wallpaper instruction generation sub-module is used for responding to a touch event acted on the dynamic wallpaper setting control and triggering a dynamic wallpaper setting instruction acted on the video file.
According to some embodiments of the present application, the dynamic wallpaper preview module 12 comprises: 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 judging sub-module is used for judging whether the video aspect ratio of the video file meets the rule to be cut, and if so, the video proportion cutting processing is carried out on the video file; the dynamic wallpaper drawing submodule is used for rendering the video file into dynamic video wallpaper, and drawing the dynamic video wallpaper into a wallpaper preview page for display; and the application result pushing sub-module is used for responding to the wallpaper application event of the wallpaper preview window and pushing the 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 a control information sequence, and the computer readable instructions can enable the processor to realize a video wallpaper processing method when the computer readable instructions are executed by the processor. The processor of the computer device is used to provide computing and control capabilities, supporting the operation of the entire computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the video wallpaper processing method of the application. The network interface of the computer device is for communicating with a terminal connection. It will be appreciated by those skilled in the art that the structure shown in FIG. 16 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
The processor in this embodiment is configured to perform specific functions of each module in fig. 16, and the memory stores program codes and various types of data required for executing the above-described modules or sub-modules. The network interface is used for data transmission between the user terminal or the server. The memory in the present embodiment stores program codes and data necessary for executing all modules in the video wallpaper processing device 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 application also provides a storage medium storing computer readable instructions that, 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 application.
The 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 of any of the embodiments of the application.
Those skilled in the art will appreciate that all or part of the processes implementing the methods of the above embodiments of the present application may be implemented by a computer program for instructing relevant hardware, where the computer program may be stored on a computer readable storage medium, where the program, when executed, may include processes implementing the embodiments of the methods 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 (Random Access Memory, RAM).
The foregoing is only a partial embodiment of the present application, and it should be noted that it will be apparent to those skilled in the art that modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations are intended to be comprehended within the 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 can be operated independently of the resident system of the video application, so that the dynamic wallpaper is resident and output to the desktop display of the system, and the use experience of the user is improved.

Claims (9)

1. A video wallpaper processing method, comprising the steps of:
the video application program responds to a dynamic wallpaper setting instruction of a currently played video file, and controls a dynamic wallpaper rendering service to be in a starting state, wherein the video application program and the dynamic wallpaper rendering service are independently operated in the same terminal equipment;
the video application program pushes the file acquisition address of the video file to the dynamic wallpaper rendering service, and drives the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address into dynamic video wallpaper, and the dynamic video wallpaper is output to a wallpaper preview window for display;
And the video application program obtains the wallpaper application result pushed by the dynamic wallpaper rendering service and outputs 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:
inquiring a service state of the dynamic wallpaper rendering service;
when the service state is not started, starting a system wallpaper service, and binding a dynamic wallpaper rendering service with the system wallpaper service;
and starting the dynamic wallpaper rendering service.
3. The method of claim 1, wherein the video application program is responsive to a set dynamic wallpaper instruction of a currently playing video file, comprising 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 the current interface;
and responding to a touch event acted on the dynamic wallpaper setting control, and triggering a dynamic wallpaper setting instruction acted on the video file.
4. The method of claim 1, wherein driving the dynamic wallpaper rendering service to render the video file acquired by the file acquisition address as a dynamic video wallpaper output to a wallpaper preview window for display comprises the steps of:
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 aspect ratio of the video file meets the rule to be cut, if so, carrying out video proportion cutting treatment on the video file;
rendering the video file into dynamic video wallpaper, and drawing the dynamic video wallpaper into a wallpaper preview window for display;
and responding to the wallpaper application event of the wallpaper preview window, and pushing the wallpaper application result of the event to the video application program.
5. The method of claim 4, wherein determining whether the video aspect ratio of the video file satisfies the cropping rule, and if so, performing the video scaling cropping process on the video file comprises the steps of:
invoking a video decoder to decode the video file to generate a video frame data set;
Invoking a video width and height cutter to cut the original aspect ratio of all video frames contained in the video frame data set into target aspect ratio, and caching the video frames with the target aspect ratio into a video frame cache region;
invoking a video encoder to encode all video frames in the video frame buffer into a video file having a video aspect ratio of the target aspect ratio.
6. The method of claim 5, wherein invoking a video wide-height clipper to clip the original dimensions of the video frame dataset containing all video frames to target aspect ratio cases, respectively, comprises the steps of:
initializing a visual range of a texture coordinate system, and determining interface aspect ratio data of a current terminal;
calculating a target aspect ratio case and an offset value corresponding to the video frame according to the interface aspect ratio data;
the target aspect ratio case and the offset value are converted into a texture coordinate range in the visual range, and the current video frame is drawn to the texture coordinate range to clip the original aspect ratio case of the current video frame to the target aspect ratio case.
7. A video wallpaper processing apparatus applied to a terminal device, comprising:
The wallpaper instruction response module is set to respond to a dynamic wallpaper instruction set by a video application program of a currently played video file, and control a dynamic wallpaper rendering service to be in a starting state, wherein the video application program and the dynamic wallpaper rendering service are respectively and independently operated in the same terminal equipment;
the dynamic wallpaper preview module is configured to push a file acquisition address of the video file to the dynamic wallpaper rendering service by the video application program, and drive 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 the application result output module is set to acquire wallpaper application results pushed by the dynamic wallpaper rendering service by the video application program and output the wallpaper application results to the current page.
8. A video wallpaper handling device comprising a central processor and a memory, characterized in that the central processor is arranged to invoke a computer program stored in the memory for performing the steps of the method according to any 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.
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 CN115278338A (en) 2022-11-01
CN115278338B true 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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101994295B1 (en) * 2012-08-08 2019-06-28 삼성전자주식회사 Terminal and method for generating live image in terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115278338A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
WO2019086037A1 (en) Video material processing method, video synthesis method, terminal device and storage medium
KR101298370B1 (en) Acceleration of rendering of web-based content
CN111541930B (en) Live broadcast picture display method and device, terminal and storage medium
JP2023539820A (en) Interactive information processing methods, devices, equipment, and media
US20090210213A1 (en) Selecting a language encoding of a static communication in a virtual universe
JP2005512231A (en) How to express emotions in text messages
WO2002010898A2 (en) Method and system for receiving interactive dynamic overlays through a data stream and displaying them over a video content
CN113316078B (en) Data processing method and device, computer equipment and storage medium
KR102390187B1 (en) Method and system for providing translation for conference assistance
US20050222844A1 (en) Method and apparatus for generating spatialized audio from non-three-dimensionally aware applications
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
US10002611B1 (en) Asynchronous audio messaging
CN115278338B (en) Video wallpaper processing method and device, equipment and medium thereof
WO2008001961A1 (en) Mobile animation message service method and system and terminal
CN111818279A (en) Subtitle generating method, display method and interaction method
CN112328140B (en) Image input method, device, equipment and medium thereof
CN113254822A (en) Object editing method and device, electronic equipment and storage medium
CN106383705B (en) Method and device for setting mouse display state in application thin client
CA2941948A1 (en) Adjustable dual-tone multi-frequency phone system
CN110636320A (en) Animation generation method and device for live broadcast, storage medium and electronic equipment
CN111966931A (en) Rendering method and device of control
CN111736942A (en) Multi-application scene display method and device in VR system and VR equipment
US20230222722A1 (en) Video preview method and apparatus, and non-transitory computer-readable storage medium
US10771620B1 (en) Virtualization of smartphone functions in a virtual reality application

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