Dynamic photo processing method and device

By transcoding the first format video in dynamic photos into a second format video with better compatibility and publishing content based on static pictures, the compatibility problem of dynamic photos is solved, and the high compatibility display effect of dynamic photos is achieved.

CN119562090APending Publication Date: 2025-03-04SHANGHAI BILIBILI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411814622.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

When sharing dynamic photos to other platforms, due to the lack of specific photo frames and controls, they lead to compatibility issues, which cannot be displayed normally, and the results users want cannot be guaranteed.

Method used

By obtaining the pending dynamic photos, including still pictures and videos in the first format, transcoding the videos in the first format into videos in the second format with better compatibility, and publishing content based on the videos and still pictures in the second format.

Benefits of technology

Convert videos with poor compatibility in dynamic photos into videos with better compatibility, avoid relying on specific photo frames and controls, improve compatibility of dynamic photos, and ensure that users who publish content achieve the desired results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119562090A_ABST
    Figure CN119562090A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a dynamic photo processing method, and the method comprises the steps: obtaining a to-be-processed dynamic photo which comprises a static image and a video of a first format corresponding to the static image; transcoding the video in the first format into a video in a second format, wherein the compatibility of the second format is greater than that of the first format; and performing content publishing based on the video in the second format and the static picture. According to the technical scheme provided by the embodiment of the invention, the compatibility of the dynamic photo can be improved, and a user issuing the content can realize a desired effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing technology, and in particular, to a dynamic photo processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] A dynamic photo (also called a live photo) not only contains a static photo, but also records 1.5 seconds of dynamic images and audio before and after the shooting.

[0003] Because dynamic photos rely on specific photo frameworks and controls to process complex multimedia file formats, when users share dynamic photos to other platforms, such as posting dynamic photos as personal updates on a certain platform, incompatibility will occur due to the lack of corresponding photo frameworks and controls, making it impossible to display dynamic photos normally and unable to guarantee the effect that users want.

[0004] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention

[0005] Embodiments of the present application provide a dynamic photo processing method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the technical problems raised above.

[0006] One aspect of an embodiment of the present application provides a dynamic photo processing method, the method comprising: Acquire a dynamic photo to be processed, where the dynamic photo to be processed includes a static image and a video in a first format corresponding to the static image; transcoding the video in the first format into a video in a second format, wherein the compatibility of the second format is greater than that of the first format; Content is published based on the video in the second format and the static image.

[0007] Optionally, the first format includes MOV format and the second format includes at least one of MP4 format, WMV format, AVI format, FLV format, WebM format and MKV format.

[0008] Optionally, transcoding the video in the first format into a video in a second format includes: The video in the first format is transcoded into a video in a second format, and watermark processing is performed on the video in the second format during the transcoding process.

[0009] Optionally, before publishing content based on the video in the second format and the static picture, the method further includes: The static image is watermarked.

[0010] Optionally, the method further comprises: In case transcoding fails or the transcoding time exceeds a preset time, converting the dynamic photo to be processed into a target static picture; Content is published based on the target static image.

[0011] Optionally, transcoding the video in the first format into a video in a second format includes: Obtaining an input transcoding configuration, wherein the transcoding configuration includes a resolution, a bit rate, a frame rate, and a configuration of a second format; The video in the first format is transcoded into a video in a second format according to the transcoding configuration.

[0012] Optionally, transcoding the video in the first format into a video in a second format includes: Acquire computing resource data of current transcoding and attribute data of the video in the first format, wherein the attribute data includes file size, encoding format, resolution, frame rate, and bit rate; Determine a transcoding configuration using an artificial intelligence model according to the computing resource data and the attribute data, wherein the transcoding configuration includes a resolution, a bit rate, a frame rate, and a configuration of a second format; The video in the first format is transcoded into a video in a second format according to the transcoding configuration.

[0013] Another aspect of an embodiment of the present application provides a dynamic photo processing device, the device comprising: An acquisition module, used for acquiring a dynamic photo to be processed, wherein the dynamic photo to be processed includes a static image and a video in a first format corresponding to the static image; A transcoding module, used for transcoding the video in the first format into a video in a second format, wherein the compatibility of the second format is greater than that of the first format; A publishing module is used to publish content based on the video in the second format and the static image.

[0014] Another aspect of an embodiment of the present application provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein: the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described above.

[0015] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.

[0016] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.

[0017] The above technical solution adopted in the embodiment of the present application may have the following advantages: By obtaining the dynamic photos to be processed, which include static images and videos in a first format corresponding to the static images, transcoding the videos in the first format into videos in a second format with better compatibility, and publishing content based on the videos in the second format and the static images, videos with poor compatibility (such as MOV videos) in the dynamic photos can be converted into other videos with better compatibility, thereby eliminating the need to rely on specific photo frameworks and controls, thereby ensuring that users who publish content achieve the desired effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0019] Figure 1 The operating environment diagram of the dynamic photo processing method according to the first embodiment of the present application is schematically shown; Figure 2 The flowchart of the dynamic photo processing method according to the first embodiment of the present application is schematically shown; Figure 3 The newly added process of the dynamic photo processing method according to the first embodiment of the present application is schematically shown; Figure 4 Schematically shows Figure 2 Flow chart of sub-steps of step S202; Figure 5 Schematically shows Figure 2 Another sub-step flow chart of step S202; Figure 6 The following is a schematic diagram showing an example of a process flow of a dynamic photo processing method according to Embodiment 1 of the present application; Figure 7 A block diagram of a dynamic photo processing device according to Embodiment 2 of the present application is schematically shown; and Figure 8 The hardware architecture diagram of the computer device according to the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0021] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0022] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.

[0023] First, the following terms are explained: Dynamic photo (also known as live picture): It is a photo format launched by Apple. It not only contains a static photo, but also records 1.5 seconds of dynamic images and audio before and after the shooting.

[0024] Video transcoding: refers to the process of converting video files from one format to another by adjusting parameters such as resolution, encoding, and bit rate.

[0025] Watermark: refers to embedding specific information in digital media such as images, videos, and audios. This information is usually invisible or difficult to detect. This embedded information can be copyright information, author information, serial numbers, etc., which plays a role in protecting copyright, preventing tampering, and tracing sources.

[0026] Personal updates: refers to timely information or content posted by users on social media, forums, communities and other online platforms. This information can be in the form of text, pictures, videos, links, etc. Users can interact with other users, share their lives, express their opinions, etc. through this information or content.

[0027] Secondly, in order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below: Since dynamic photos add dynamic elements to static photos, making photos more vivid and interesting, users are increasingly fond of using dynamic photos to publish personal content (such as personal updates) on the platform, thereby improving the display effect of the published content.

[0028] However, dynamic photos rely on the photo framework and controls provided by iOS to process the corresponding format. When dynamic photos are shared to other platforms, incompatibility usually occurs due to the lack of corresponding photo framework and controls, making it impossible for dynamic photos to be displayed normally, and unable to guarantee the display effect that the user who posted the content wants.

[0029] To this end, the embodiment of the present application provides a technical solution for processing dynamic photos. In this technical solution, by transcoding the video of the dynamic photo into a video with better compatibility for content publishing, the dynamic photo does not need to rely on a specific photo framework and controls, improves the compatibility of the dynamic photo, and ensures that the user who publishes the content achieves the desired effect. See below for details.

[0030] Finally, for ease of understanding, an exemplary operating environment is provided below.

[0031] like Figure 1 As shown, the environment diagram includes a service platform 2, a network 4, and a client 6, wherein: The service platform 2 may be composed of a single or multiple computing devices. The multiple computing devices may include virtualized computing instances. Virtualized computing instances may include virtual machines, such as simulations of computer systems, operating systems, servers, etc. The computing device may load a virtual machine based on a virtual image and / or other data defining specific software (e.g., operating system, dedicated application, server) for simulation. As the demand for different types of processing services changes, different virtual machines may be loaded and / or terminated on one or more computing devices. A hypervisor may be implemented to manage the use of different virtual machines on the same computing device.

[0032] The service platform 2 may be configured to communicate with the client 6 or the like via a network 4. The network 4 includes various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and / or the like. The network 4 may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof, and the like, or wireless links, such as cellular links, satellite links, Wi-Fi links, and the like.

[0033] The service platform 2 can provide storage, reading, writing, querying, deleting and other services, such as providing the client with a video format transcoding service for dynamic photos.

[0034] The client 6 may be an electronic device running an operating system such as Windows, Android™ or iOS, such as a smart phone, a tablet device, a laptop computer, a virtual reality device, a gaming device, a set-top box, a vehicle terminal, or a smart TV. Based on the above operating system, various applications may be run, such as an application for uploading dynamic photos for personal dynamic publishing.

[0035] The client 6 may provide / configure a user access page for manipulating the service platform 2 or uploading an object, etc.

[0036] It should be noted that the above devices are exemplary, and the number and type of devices are adjustable in different scenarios or according to different needs.

[0037] The following uses the service platform as the execution subject to introduce the technical solution of the present application through multiple embodiments. It should be noted that these embodiments can be implemented in a variety of different forms and should not be interpreted as being limited to the embodiments described here.

[0038] Embodiment 1 Figure 2 The flowchart of the dynamic photo processing method according to the first embodiment of the present application is schematically shown.

[0039] like Figure 2 As shown, the dynamic photo processing method may include steps S200 to S204, wherein: Step S200, obtaining a dynamic photo to be processed, where the dynamic photo to be processed includes a static image and a video in a first format corresponding to the static image.

[0040] Step S202: transcode the video in the first format into a video in a second format, where the compatibility of the second format is greater than that of the first format.

[0041] Step S204: publishing content based on the video and static image in the second format.

[0042] The dynamic photo processing method provided in this embodiment obtains the dynamic photo to be processed, which includes a static image and a video in a first format corresponding to the static image, transcodes the video in the first format into a video in a second format with better compatibility, and publishes content based on the video in the second format and the static image. Videos with poor compatibility (such as MOV videos) in the dynamic photo can be converted into other videos with better compatibility, thereby eliminating the need to rely on specific photo frameworks and controls, thereby ensuring that users who publish content achieve the desired effects.

[0043] The following combination Figure 2 , each step in steps S200~S204 and other optional steps are described in detail.

[0044] Step S200 , obtain the dynamic photos to be processed, where the dynamic photos to be processed include static pictures and videos in a first format corresponding to the static images.

[0045] Specifically, the dynamic photos to be processed can be uploaded by the user through the client. For example, the user opens the client corresponding to the service platform, selects the album of the terminal device where the client is located, selects several photos (which may include dynamic photos and ordinary static photos) from the album and uploads them to the service platform to publish personal content (such as publishing personal dynamics). After receiving the photos uploaded by the user, the service platform obtains the dynamic photos to be processed from the uploaded photos. Among them, the dynamic photos to be processed can be one or more. After the photos are uploaded to the service platform, they can be stored in the designated location of the service platform, and a file link is generated according to the storage location. The service platform obtains the corresponding file according to the file link for processing.

[0046] Step S202 , transcode a video in a first format into a video in a second format, where the compatibility of the second format is greater than that of the first format.

[0047] For example, the first format may include the MOV format, and of course, other formats that are included for dynamic photos and require specific frames may also be included in the first format. The second format may include at least one of the MP4 format, the WMV format, the AVI format, the FLV format, the WebM format, and the MKV format, and of course, other formats with better compatibility than the first format are also included in the second format.

[0048] The service platform can transcode videos in the first format into one or more videos in the second format. For example, if the computing resources of the service platform are sufficient, MOV videos can be transcoded into two or more common video formats. When other users view the published content, the service platform can automatically recommend a suitable video format based on the video formats supported by the terminal devices of other users and the network conditions; or, other users can select the corresponding video format for viewing as needed, thereby achieving the self-adaptation of the video format and ensuring the effect of dynamic photo display.

[0049] Of course, since the service platform usually needs to process a large amount of data, it is also possible to transcode only the video in the first format into a video format with higher compatibility. For example, a MOV video can be transcoded into a video in MP4 format. Since MP4 has the best compatibility, transcoding a MOV video into a video in MP4 format can ensure compatibility to the greatest extent, thereby effectively ensuring the display effect of dynamic photos. In addition, since the transcoding time is generally long, asynchronous transcoding or distributed transcoding methods can be used for transcoding, thereby improving transcoding efficiency, reducing transcoding time and user waiting time, and improving user experience.

[0050] Step S204 , content publishing based on videos and static images in the second format.

[0051] After transcoding to the video in the second format, the service platform can review the uploaded content (which may include the video in the second format corresponding to the dynamic photo to be processed, static pictures, other uploaded ordinary photos and other texts, etc.), and if the review is passed, the content is published based on the video in the second format, static pictures and other content. Optionally, the service platform can also choose to review the uploaded content before transcoding, and then transcode it if the review is passed, and publish the content after the transcoding is successful.

[0052] In an optional embodiment, in step S202, transcoding the video in the first format into the video in the second format may further include: transcoding the video in the first format into the video in the second format, and performing watermark processing on the video in the second format during the transcoding process.

[0053] The watermark can be a picture watermark, a text watermark, etc. The watermark can be located at the upper left corner, upper right corner, lower left corner, lower right corner, or the center of the video. The watermark can be set to a certain transparency so that it does not block the video content. Specifically, a transparent watermark image can be generated in advance before transcoding, and the watermark processing is completed by superimposing a watermark mask in each frame image during the transcoding process.

[0054] In this embodiment, by transcoding a video in a first format into a video in a second format and performing watermark processing on the video in the second format during the transcoding process, the watermark processing operation on the video can be completed simultaneously during the transcoding process, so that the watermark can be used to achieve the purposes of protecting copyright and tracing the source.

[0055] In an optional embodiment, before step S204, that is, before publishing content based on the video and static image in the second format, the method may further include: performing watermark processing on the static image of the dynamic photo to be processed.

[0056] Specifically, the service platform can add watermarks to static images of the photos to be processed between the time when the static images are uploaded to the service platform and the time when the dynamic images are published. For example, the watermark can be added when the static images of the photos to be processed are uploaded to the service platform. The watermark type, watermark position, transparency, and size of the watermark added to the static images of the dynamic photos to be processed can be the same as or different from the watermark added during the transcoding process. The specific settings can be based on actual needs and are not limited here.

[0057] In this embodiment, by performing watermark processing on the static image of the dynamic photo to be processed and then publishing the content, the static image and video corresponding to the dynamic photo can be added with watermarks, thereby further strengthening the copyright protection of the content.

[0058] In an optional embodiment, if Figure 3 As shown, the method may further include steps S300 to S302: Step S300, when transcoding fails or the transcoding time exceeds a preset time, convert the dynamic photo to be processed into a target static picture.

[0059] Step S302: publishing content based on the target static image.

[0060] Transcoding failure may refer to transcoding failure and still failure after a predetermined number of retries. The preset duration may be set according to actual needs, such as 10 minutes, and is not specifically limited here.

[0061] Specifically, when the service platform transcodes a video in the first format into a video in the second format, if it is determined that the transcoding fails or the transcoding time exceeds the preset time, the dynamic photo to be processed is downgraded to an ordinary target static image, and then the content is published according to the target static image. If some of the dynamic photos to be processed are successfully transcoded, the published content may include the successfully transcoded video in the second format and the corresponding static image.

[0062] In this embodiment, by converting the dynamic photo to be processed into a target static image when transcoding fails or the transcoding time exceeds the preset time, and publishing content based on the target static image, it is possible to avoid certain transcoding tasks from occupying too much computing resources and ensure the stability of the platform operation.

[0063] In an optional embodiment, in step S202, the video in the first format is transcoded into a video in a second format, such as Figure 4 As shown, the method may further include steps S400 to S402: Step S400: obtaining an input transcoding configuration, where the transcoding configuration includes configurations of resolution, bit rate, frame rate, and a second format.

[0064] Step S402: transcode the video in the first format into the video in the second format according to the transcoding configuration.

[0065] The input transcoding configuration can be specifically input by the user of the client, and the client can provide a corresponding user interface for the transcoding configuration, so that the user can perform relevant configuration of the transcoding on the client. After the user completes the configuration of the transcoding configuration, it can be sent to the service platform through the client. Before transcoding, the service platform obtains the corresponding transcoding configuration and transcodes the MOV video into a video of the second format according to the corresponding transcoding configuration.

[0066] In this embodiment, by obtaining the input transcoding configuration, the transcoding configuration includes the configuration of resolution, bit rate, frame rate and second format, and transcoding the video in the first format into the video in the second format according to the transcoding configuration, the user can customize the transcoding configuration according to their needs, thereby improving the flexibility of the transcoding configuration and meeting the diverse needs of users.

[0067] In an optional embodiment, in step S202, the video in the first format is transcoded into a video in a second format, such as Figure 5 As shown, the method may further include steps S500 to S504: Step S500, obtaining computing resource data of the current transcoding and attribute data of the video in the first format, wherein the attribute data includes file size, encoding format, resolution, frame rate and bit rate.

[0068] Step S502, determining the transcoding configuration using an artificial intelligence model based on the computing resource data and the attribute data, where the transcoding configuration includes the configuration of resolution, bit rate, frame rate, and the second format.

[0069] Step S504: transcode the video in the first format into a video in the second format according to the transcoding configuration.

[0070] The computing resource data of the current transcoding may include data such as CPU utilization, GPU utilization, memory usage, disk I / O, etc. Since the service platform usually performs multiple concurrent transcoding tasks on a server or cluster, the computing resource data of the current transcoding can be estimated based on the remaining resources and concurrency of the server or cluster. Alternatively, if transcoding is performed after applying for resources, the computing resource data of the current transcoding may be the resource data corresponding to the application.

[0071] The artificial intelligence model can be trained using historical transcoded data and machine learning algorithms (such as decision trees, random forests, and neural networks). The input is the transcoded computing resource data and the corresponding attribute data of the first format video, and the output is the corresponding transcoding configuration.

[0072] After obtaining the computing resource data of the current transcoding and the attribute data of the video in the first format, the service platform can input the computing resource data and the attribute data into the trained artificial intelligence model, obtain the corresponding transcoding configuration according to the output of the artificial intelligence model, and then transcode the video in the first format into the video in the second format according to the transcoding configuration.

[0073] In this embodiment, by obtaining computing resource data of the current transcoding and attribute data of the video in the first format, the attribute data includes file size, encoding format, resolution, frame rate and bit rate; an artificial intelligence model is used to determine the transcoding configuration based on the computing resource data and the attribute data, the transcoding configuration includes resolution, bit rate, frame rate and configuration of the second format, and the video in the first format is transcoded into the video in the second format according to the transcoding configuration. The appropriate transcoding configuration can be determined based on the computing resources of the current transcoding and the attributes of the video in the first format itself, thereby improving the flexibility of the transcoding configuration and the intelligence of the transcoding.

[0074] In order to make this application easier to understand, the following Figure 6 Provide an example application. Figure 6 As shown in the figure, the processing of dynamic photos may include uploading, publishing personal dynamics, transcoding callback, transcoding result processing, transcoding verification and resource processing. 1. Upload: 1. Users upload image files and video files of dynamic photos (live images) through the client. The images in the image files can be watermarked when uploading to add watermarks; 2. The uploaded files are stored in the specified location, and a resource link is generated based on the storage location for use in the dynamic publishing process.

[0075] 2. Personal dynamic release: 1. When publishing personal dynamics, determine whether the published content contains live pictures. If it contains live pictures, obtain the watermark mask for each live picture concurrently; 2. Generate an asynchronous transcoding task for the MOV video corresponding to the live image, enter the transcoding callback part, transcode and watermark the MOV video, and return the ID corresponding to the transcoding so that the completion status of the transcoding task can be determined according to the ID; 3. When transcoding is completed, perform persistence processing and push release messages for use by the resource processing part; 4. The publishing process is completed.

[0076] 3. Transcoding callback: 1. Enter the transcoding callback process, perform corresponding transcoding processing according to the logic of the transcoding result processing part, and push the transcoding result to the data bus; 2. The transcoding callback ends.

[0077] 4. Transcoding result processing: 1. Enter the transcoding result processing to determine whether the current transcoding task has timed out. If it has timed out, the transcoding task will be processed by the logic of the transcoding verification part; if it has not timed out, determine whether the transcoding is successful. If successful, the transcoded video will be written to the database; if it fails, it will be downgraded to a normal picture; 2. Determine whether all videos have been transcoded. If all videos have been transcoded, determine whether the dynamic has not been deleted. If not, push a release message and push it for review; 3. The publishing process is completed.

[0078] 5. Transcoding verification: 1. Enter transcoding verification to determine whether the dynamic is not public, transcoding is not completed and has timed out, mark it as timed out, and downgrade the live picture that has not been transcoded to a normal picture; 2. Push the release message and push the result for review; 3. The transcoding verification is completed.

[0079] 6. Resource processing: 1. Renew and soft delete resources based on release messages; 2. Carry out corresponding resource processing; 3. Resource processing is completed.

[0080] In this exemplary application, the processing of dynamic photos is completed through six parts: uploading, dynamic publishing, transcoding callback, transcoding result processing, transcoding verification and resource processing. During normal transcoding, MOV videos are transcoded into videos in a more compatible format. In case of timeout or transcoding failure, dynamic photos are downgraded to ordinary pictures. This can ensure that most dynamic photos are displayed normally when they are published dynamically for personal purposes, ensuring the effect desired by users who publish content. At the same time, it can also avoid a transcoding task from occupying too much computing resources when there is a timeout or transcoding failure, thereby ensuring the stability of the service platform operation. In addition, by watermarking pictures and videos, the purpose of copyright protection can be effectively achieved.

[0081] Embodiment 2 Figure 7 The block diagram of the dynamic photo processing device according to the second embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Figure 7 As shown, the apparatus 600 may include: an acquisition module 610, a transcoding module 620 and a publishing module 630, wherein: An acquisition module 610 is used to acquire a dynamic photo to be processed, where the dynamic photo to be processed includes a static image and a video in a first format corresponding to the static image; A transcoding module 620, configured to transcode the video in the first format into a video in a second format, wherein the compatibility of the second format is greater than that of the first format; The publishing module 630 is used to publish content based on the video in the second format and the static picture.

[0082] In an optional embodiment, the first format includes an MOV format, and the second format includes at least one of an MP4 format, a WMV format, an AVI format, an FLV format, a WebM format, and an MKV format.

[0083] In an optional embodiment, the transcoding module 620 is further configured to: The video in the first format is transcoded into a video in a second format, and watermark processing is performed on the video in the second format during the transcoding process.

[0084] In an optional embodiment, the device 600 is further used for: The static image is watermarked.

[0085] In an optional embodiment, the device 600 is further used for: In case transcoding fails or the transcoding time exceeds a preset time, converting the dynamic photo to be processed into a target static picture; Content is published based on the target static image.

[0086] In an optional embodiment, the transcoding module 620 is further configured to: Obtaining an input transcoding configuration, wherein the transcoding configuration includes a resolution, a bit rate, a frame rate, and a configuration of a second format; The video in the first format is transcoded into a video in a second format according to the transcoding configuration.

[0087] In an optional embodiment, the transcoding module 620 is further configured to: Acquire computing resource data of current transcoding and attribute data of the video in the first format, wherein the attribute data includes file size, encoding format, resolution, frame rate, and bit rate; Determine a transcoding configuration using an artificial intelligence model according to the computing resource data and the attribute data, wherein the transcoding configuration includes a resolution, a bit rate, a frame rate, and a configuration of a second format; The video in the first format is transcoded into a video in a second format according to the transcoding configuration.

[0088] Embodiment 3 Figure 8The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing a dynamic photo processing method according to the third embodiment of the present application is shown schematically. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle-mounted terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Figure 8 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10010 can be an internal storage module of the computer device 10000, such as a hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 can also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 can also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed in the computer device 10000, such as the program code of the dynamic photo processing method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.

[0089] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.

[0090] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0091] It should be pointed out that Figure 8 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0092] In this embodiment, the dynamic photo processing method stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as processor 10020) to complete the embodiment of the present application.

[0093] Embodiment 4 An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the dynamic photo processing method in the embodiment are implemented.

[0094] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Of course, the computer-readable storage medium may also include both an internal storage unit of a computer device and an external storage device thereof. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on a computer device, such as the program code of the dynamic photo processing method in the embodiment, etc. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.

[0095] Embodiment 5 An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.

[0096] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0097] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A dynamic photo processing method, characterized in that: The method comprises: Acquire a dynamic photo to be processed, where the dynamic photo to be processed includes a static image and a video in a first format corresponding to the static image; transcoding the video in the first format into a video in a second format, wherein the compatibility of the second format is greater than that of the first format; Content is published based on the video in the second format and the static image.

2. The method according to claim 1, characterized in that The first format includes an MOV format, and the second format includes at least one of an MP4 format, a WMV format, an AVI format, an FLV format, a WebM format, and an MKV format.

3. The method according to claim 1, characterized in that: Transcoding the video in the first format into a video in a second format, comprising: The video in the first format is transcoded into a video in a second format, and watermark processing is performed on the video in the second format during the transcoding process.

4. The method according to claim 3, characterized in that Before publishing content based on the video in the second format and the static picture, the method further includes: The static image is watermarked.

5. The method according to claim 1, characterized in that The method further comprises: In case transcoding fails or the transcoding time exceeds a preset time, converting the dynamic photo to be processed into a target static picture; Content is published based on the target static image.

6. The method according to any one of claims 1 to 5, characterized in that: Transcoding the video in the first format into a video in a second format, comprising: Obtaining an input transcoding configuration, wherein the transcoding configuration includes a resolution, a bit rate, a frame rate, and a configuration of a second format; The video in the first format is transcoded into a video in a second format according to the transcoding configuration.

7. The method according to any one of claims 1 to 5, characterized in that: Transcoding the video in the first format into a video in a second format, comprising: Acquire computing resource data of current transcoding and attribute data of the video in the first format, wherein the attribute data includes file size, encoding format, resolution, frame rate, and bit rate; Determine a transcoding configuration using an artificial intelligence model according to the computing resource data and the attribute data, wherein the transcoding configuration includes a resolution, a bit rate, a frame rate, and a configuration of a second format; The video in the first format is transcoded into a video in a second format according to the transcoding configuration.

8. A dynamic photo processing device, characterized in that: The device comprises: An acquisition module, used for acquiring a dynamic photo to be processed, wherein the dynamic photo to be processed includes a static image and a video in a first format corresponding to the static image; A transcoding module, used for transcoding the video in the first format into a video in a second format, wherein the compatibility of the second format is greater than that of the first format; A publishing module is used to publish content based on the video in the second format and the static image.

9. A computer device, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; wherein: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.