CN111629227A - Video conversion method, device, system, electronic equipment and storage medium - Google Patents
Video conversion method, device, system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111629227A CN111629227A CN202010270367.0A CN202010270367A CN111629227A CN 111629227 A CN111629227 A CN 111629227A CN 202010270367 A CN202010270367 A CN 202010270367A CN 111629227 A CN111629227 A CN 111629227A
- Authority
- CN
- China
- Prior art keywords
- video
- conversion
- user
- converted
- images
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 218
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000012545 processing Methods 0.000 claims abstract description 75
- 230000015654 memory Effects 0.000 claims description 19
- 230000010365 information processing Effects 0.000 claims description 10
- 230000000977 initiatory effect Effects 0.000 claims description 9
- 238000013473 artificial intelligence Methods 0.000 claims description 8
- 230000000007 visual effect Effects 0.000 claims description 6
- 230000000694 effects Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 238000012795 verification Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000003211 malignant effect Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000002411 adverse Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23424—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a video conversion method, a device, a system, an electronic device and a storage medium, which relate to the field of video processing, wherein the method comprises the following steps: acquiring a video conversion request initiated by a user aiming at any video; performing conversion processing on the video, wherein the conversion processing comprises: selecting M frames of images from the video, wherein M is a positive integer, converting the M frames of images into a quadratic element cartoon style, and returning the quadratic element cartoon style to a user so that the user can select one frame of image from the M frames of images as a cover of the converted video; and converting the video into a quadratic element cartoon style, and returning the converted video to the user. By applying the scheme, the requirements of different users can be met, the presentation mode of the video is enriched, the display effect of the video is improved, and the like.
Description
Technical Field
The present application relates to computer application technologies, and in particular, to a video conversion method, apparatus, system, electronic device, and storage medium in the field of video processing.
Background
With the development of internet technology, short videos, small videos and the like are increasingly favored by users. According to actual needs, certain conversion processing can be carried out on the video.
The current conversion processing is usually to process the video within the range of the current secondary element, for example, processing such as adding of stickers, video filters, video splicing and the like is realized on the basis of the original video, elements which are preferred by young people such as secondary element cartoons are not fused, and the requirements of different users cannot be met.
Disclosure of Invention
The application provides a video conversion method, a video conversion device, a video conversion system, an electronic device and a storage medium.
A video conversion method, comprising:
acquiring a video conversion request initiated by a user aiming at any video;
performing conversion processing on the video, wherein the conversion processing comprises:
selecting M frames of images from the video, wherein M is a positive integer, converting the M frames of images into a quadratic element cartoon style, and returning the quadratic element cartoon style to the user so that the user can select one frame of image from the M frames of images as a cover of the converted video;
and converting the video into a quadratic element cartoon style, and returning the converted video to the user.
A video conversion method, comprising:
aiming at any video, sending a video conversion request to a server;
acquiring the converted M frame images and the converted video returned by the server; the converted M frames of images are obtained by performing quadratic element cartoon style conversion on the M frames of images selected from the videos by the server, M is a positive integer, and the converted videos are obtained by performing quadratic element cartoon style conversion on the videos by the server;
and determining a frame of image selected by a user from the converted M frames of images, and taking the selected image as a cover of the converted video.
A video conversion apparatus comprising: a conversion processing module;
the conversion processing module is configured to obtain a video conversion request initiated by a user for any video, and perform conversion processing on the video, where the conversion processing includes: selecting M frames of images from the video, wherein M is a positive integer, converting the M frames of images into a quadratic element cartoon style, and returning the quadratic element cartoon style to the user so that the user can select one frame of image from the M frames of images as a cover of the converted video; and converting the video into a quadratic element cartoon style, and returning the converted video to the user.
A video conversion apparatus comprising: a request initiating module and an information processing module;
the request initiating module is used for sending a video conversion request to the server aiming at any video;
the information processing module is used for acquiring the converted M frame images and the converted videos returned by the server; the converted M frames of images are obtained by performing quadratic element cartoon style conversion on the M frames of images selected from the videos by the server, M is a positive integer, and the converted videos are obtained by performing quadratic element cartoon style conversion on the videos by the server; and determining a frame of image selected by a user from the converted M frames of images, and taking the selected image as a cover of the converted video.
A video conversion system comprising: two video conversion devices as described above.
An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method as described above.
A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method as described above.
One embodiment in the above application has the following advantages or benefits: the cross-secondary video conversion mode is provided, a traditional video can be converted into a secondary cartoon style video, some images in the video can be selected, and a user can conveniently select favorite images from the images converted into the secondary cartoon style to serve as a video cover, so that the requirements of different users are met, the video presentation mode is enriched, the video display effect is improved, and the like. It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a flow chart of a first embodiment of a video conversion method according to the present application;
FIG. 2 is a flow chart of a second embodiment of a video conversion method according to the present application;
fig. 3 is a schematic diagram illustrating an overall implementation process of the video conversion method according to the present application;
FIG. 4 is a schematic structural diagram of a first embodiment 40 of a video conversion apparatus according to the present application;
FIG. 5 is a schematic structural diagram of a second embodiment 50 of a video conversion apparatus according to the present application;
FIG. 6 is a block diagram of an electronic device according to the method of an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In addition, it should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Fig. 1 is a flowchart of a first embodiment of a video conversion method according to the present application. As shown in fig. 1, the following detailed implementation is included.
In 101, a video conversion request initiated by a user for any video is obtained.
At 102, a conversion process is performed on the video, the conversion process comprising: selecting M frames of images from the video, wherein M is a positive integer, converting the M frames of images into a quadratic element cartoon style, and returning the quadratic element cartoon style to a user so that the user can select one frame of image from the M frames of images as a cover of the converted video; and converting the video into a quadratic element cartoon style, and returning the converted video to the user.
Preferably, an execution subject of the method of the present embodiment may be a server, and a user may interact with the server through a client.
Preferably, after the video conversion request of the user is obtained, preprocessing may also be performed, and the preprocessing may include the following operations.
1) And carrying out legality verification on the user according to the user information carried in the video conversion request, and if the user information passes the verification, carrying out conversion processing on the video.
What is specifically included in the user information may be determined according to actual needs, for example, a user name and a key of the user may be included. The validity of the user can be checked according to the user information, such as determining whether the user name is a registered user name, determining whether the key is a pre-negotiated key, and the like. If the verification is passed, that is, the user is determined to be a legal user, the video can be converted, and if the verification is not passed, the video conversion request can be ignored.
Through the verification operation, illegal user behaviors can be prevented, adverse effects on services caused by malignant network requests can be prevented, and the like.
2) And acquiring the recorded times of video conversion requests initiated by the user within the latest preset time, comparing the times with a preset threshold, and if the times are less than or equal to the threshold, converting the video.
The specific value of the latest preset time length can be determined according to actual needs, and the specific value of the threshold can also be determined according to actual needs.
The method comprises the steps of recording the number of times of initiating video conversion requests by the same user in the latest preset time, comparing the number of times with a threshold, carrying out conversion processing on videos if the number of times is less than or equal to the threshold, and neglecting the video conversion request if the number of times is greater than the threshold.
By the request frequency control operation, it is possible to prevent a malicious attack and reduce resource waste.
3) And if the video conversion request can be normally processed according to the service stability, converting the video.
The service stability can be judged according to the number of the processed requests, the service capability and the like, if the video conversion request can be normally processed according to the service stability, the video can be converted, and if not, the video conversion request can be ignored.
In addition, when the service is abnormal, the standby service can be started to ensure the user experience, and meanwhile, relevant warning operators can be informed to search problems in time. If necessary, the standby service can be started when the service is not abnormal, so that resource expansion and the like are realized.
Through the operation, the video conversion request can be processed normally, and the user experience is improved.
In practical applications, only one operation of 1), 2), and 3) may be performed, any two operations may be performed, and the three operations may be performed. Assuming that both operations 1) and 2) are performed, only when the check is passed and the number of times is less than or equal to the threshold value, the subsequent processing, that is, the conversion processing of the video is continued.
Before the video is subjected to the conversion processing, a video conversion task for the video can also be preferably generated and put into the first buffer area. And according to a preset scheduling strategy, when the fetching condition is met every time, P video conversion tasks are fetched from the first cache region, wherein P is a positive integer, and the conversion processing is carried out on the video corresponding to the fetched video conversion tasks.
For example, a certain number of video conversion tasks may be fetched from the first buffer area at regular intervals according to the conversion capability and the like according to the first-in first-out principle, and the videos corresponding to the fetched video conversion tasks may be converted. The number of video conversion tasks to be fetched at a time, etc. may be determined according to actual circumstances.
Through caching and scheduling, sufficient conversion time can be reserved for each video, and the conversion success rate is improved.
In addition, subsequently, the converted M-frame image and the converted video may be placed in the second cache region as a conversion result, and when the query request of the user is obtained, the conversion result may be returned to the user.
If a request for canceling the conversion of the video by the user is received, the process may be terminated, that is, the process for the video may be terminated. For example, if a video conversion task corresponding to a video is not yet taken out from the first cache region when a request for canceling the conversion of the video by the user is received, the video conversion task corresponding to the video may be deleted from the first cache region, so that the video is not subjected to subsequent processing.
When the video is converted, the animation processing of the image and the animation processing of the video can be performed respectively. The animation processing of the image may be selecting M frames of images from the video, where M is a positive integer, respectively converting the M frames of images into a quadratic element cartoon style, and returning the quadratic element cartoon style to the user, so that the user can select one frame of image from the M frames of images as a cover of the converted video.
The specific value of M can be determined according to actual needs, and is usually greater than one, such as 10. How to select the M frames of images may also be determined according to actual needs, for example, the M frames of images may be randomly selected, and for example, the M frames of images with clear human images, easy recognition and front faces may be selected.
The M-frame images can be respectively converted into a two-dimensional cartoon style by calling an Artificial Intelligence (AI) intelligent vision conversion algorithm, which is specifically realized in the prior art. Converting to a two-dimensional cartoon style may refer to converting characters therein to two-dimensional cartoon characters, etc.
The converted M-frame image may be placed in the second cache area as a conversion result, and when the query request of the user is obtained, returned to the user. The user can select a favorite frame image from the converted M frame images as the cover of the converted video according to personal preferences.
When the video is converted into the quadratic element cartoon style, the video can be firstly cut into N video segments, wherein N is a positive integer larger than one, then the N video segments can be concurrently converted into the quadratic element cartoon style respectively, and then the converted video segments can be spliced, so that the converted video is obtained.
The specific value of N may be determined according to actual needs, for example, if the total duration of the video is 20 seconds, the video may be divided into 4 video segments, and the duration of each video segment is 5 seconds. And aiming at each video clip, an AI intelligent visual conversion algorithm can be respectively called to convert the video clip into a quadratic element cartoon style. A video clip is composed of a plurality of frames of images and is therefore essentially the same as the transition of images.
By segmenting the video segments and concurrently converting each video segment, the video conversion duration can be shortened, the conversion speed is increased, the waiting time of a user is reduced, and the like.
And further, the convertible video is used as a conversion result and is put into a second cache region, and when the query request of the user is obtained, the conversion result is returned to the user.
Preferably, the query time interval of the user can be determined and returned to the user. Such as a reasonable query time interval, which can be determined based on the conversion capability and the number of requests to be processed. Thus, the user can send out the query request periodically according to the query time interval.
Correspondingly, when the query request periodically sent based on the query time interval is acquired, if the conversion result of the video cached in the second cache region is determined, that is, the video is determined to be converted, the conversion result can be returned to the user, and the conversion result includes the converted M-frame image, the converted video and the like.
When the query request periodically transmitted based on the query time interval is acquired, if it is determined that the video is being subjected to conversion processing, processing progress information may be returned to the user, and the processing progress may be determined in an existing manner, such as 60% processed.
And/or when the query request periodically sent based on the query time interval is acquired, if the video conversion is determined to fail, the conversion failure information can be returned to the user, and the user can be reminded to retry and the like. Failure of video conversion may be caused by various reasons, such as abnormal service or unreadable data contained in the video.
By determining the query time interval, blind and frequent queries by the user can be avoided, thereby reducing unnecessary resource consumption and the like. In addition, based on the query request, the user can know the processing situation of the video and the like in time.
Fig. 2 is a flowchart of a second embodiment of a video conversion method according to the present application. As shown in fig. 2, the following detailed implementation is included.
In 201, a video conversion request is sent to the server for any video.
In 202, obtaining the converted M-frame image and the converted video returned by the server; the converted M frames of images are obtained by performing quadratic element cartoon style conversion on the M frames of images selected from the videos by the service end, M is a positive integer, and the converted videos are obtained by performing quadratic element cartoon style conversion on the videos by the service end.
In 203, a frame image selected by the user from the converted M frames of images is determined, and the selected frame image is used as a cover of the converted video.
Preferably, an execution subject of the method of the present embodiment may be a client, and a user may interact with a server through the client.
Preferably, the query time interval determined by the server may also be obtained, and accordingly, based on the query time interval, the query request may be periodically sent to the server, and the query result returned by the server is obtained, where if the video conversion is completed, the query result may include the converted M-frame image and the converted video. If the video is undergoing conversion processing, the query result may include processing progress information. And/or, if the video conversion fails, the conversion failure information can be included in the query result.
With the above introduction, fig. 3 is a schematic diagram of an overall implementation process of the video conversion method according to the present application, and please refer to the related description above.
It is noted that while for simplicity of explanation, the foregoing method embodiments are described as a series of acts or combination of acts, those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application. In addition, for parts which are not described in detail in a certain embodiment, reference may be made to the related descriptions in other embodiments.
In a word, based on the scheme of each method embodiment, cross-dimension video conversion can be realized, namely, a traditional video can be converted into a video with a quadratic element cartoon style, and meanwhile, some images in the video can be selected, so that a user can conveniently select favorite images from the images converted into the quadratic element cartoon style to serve as a video cover, the requirements of different users are met, the video presentation mode is enriched, the video display effect is improved, and the like.
The above is a description of method embodiments, and the embodiments of the present application are further described below by way of apparatus embodiments.
Fig. 4 is a schematic structural diagram of a first embodiment 40 of a video conversion apparatus according to the present application. As shown in fig. 4, the apparatus includes a conversion processing module 401 and may further include a data caching module 402.
The conversion processing module 401 may obtain a video conversion request initiated by a user for any video, and perform conversion processing on the video, where the conversion processing may include: selecting M frames of images from the video, wherein M is a positive integer, converting the M frames of images into a quadratic element cartoon style, and returning the quadratic element cartoon style to a user so that the user can select one frame of image from the M frames of images as a cover of the converted video; and converting the video into a quadratic element cartoon style, and returning the converted video to the user.
Preferably, the conversion processing module 401 may divide the video into N video segments, where N is a positive integer greater than one, concurrently convert the N video segments into a quadratic cartoon style, and splice the converted video segments to obtain the converted video.
The conversion processing module 401 may respectively convert the M-frame image into a two-dimensional cartoon style by invoking an AI intelligent visual conversion algorithm, and similarly, the conversion processing module 401 may convert the video into the two-dimensional cartoon style by invoking the AI intelligent visual conversion algorithm.
After obtaining the video conversion request, the conversion processing module 401 may further perform validity check on the user according to user information carried in the video conversion request, if the check is passed, perform conversion processing on the video, and/or obtain the number of times that the user initiated the video conversion request within the last predetermined time period, compare the number of times with a preset threshold, if the number of times is less than or equal to the threshold, perform conversion processing on the video, and/or, if it is determined that the video conversion request can be normally processed according to service stability, perform conversion processing on the video.
The conversion processing module 401 may further generate video conversion tasks for the video, place the video conversion tasks into a first cache region in the data cache module 402, and according to a predetermined scheduling policy, when the fetching conditions are met each time, fetch P video conversion tasks from the first cache region, where P is a positive integer, and perform conversion processing on the video corresponding to the fetched video conversion tasks.
The conversion processing module 401 may further place the converted M-frame image and the converted video as a conversion result in a second cache region of the data cache module 402, and when the query request of the user is obtained, return the conversion result to the user.
Further, the conversion processing module 401 may also determine a query time interval of the user and return the query time interval to the user, and when the query request periodically sent based on the query time interval is obtained, if it is determined that the conversion result of the video is cached in the second cache region, the conversion result may be returned to the user.
When the query request periodically sent based on the query time interval is acquired, if the video is determined to be subjected to conversion processing, the processing progress information can be returned to the user, and/or when the query request periodically sent based on the query time interval is acquired, if the video conversion is determined to be failed, the conversion failure information can be returned to the user.
Fig. 5 is a schematic structural diagram of a second embodiment 50 of a video conversion apparatus according to the present application. As shown in fig. 5, includes: a request initiating module 501 and an information processing module 502.
The request initiating module 501 may send a video conversion request to the server for any video.
The information processing module 502 can obtain the converted M-frame image and the converted video returned by the server; the converted M frames of images are obtained by performing quadratic element cartoon style conversion on the M frames of images selected from the videos by the service end, M is a positive integer, and the converted videos are obtained by performing quadratic element cartoon style conversion on the videos by the service end; and determining one frame of image selected by the user from the converted M frames of images, and taking the selected image as a cover of the converted video.
The information processing module 502 may also obtain the query time interval determined by the server. Accordingly, the request initiation module 501 may periodically send a query request to the server based on the query time interval. If the video conversion is completed, the query result obtained by the information processing module 502 includes the converted M-frame image and the converted video. If the video is being converted, the query result includes processing progress information, and/or if the video conversion fails, the query result includes conversion failure information.
The application also discloses a video conversion system, which can include: the video conversion apparatus in the embodiment shown in fig. 4 and 5.
For the specific work flow of the above device and system embodiments, please refer to the related description in the above method embodiments, and further description is omitted.
In a word, the scheme of the device and the system can convert the traditional video into the video with the quadratic element cartoon style, can select some images in the video, and is convenient for a user to select favorite images from the images converted into the quadratic element cartoon style as video covers, so that the requirements of different users are met, the presentation mode of the video is enriched, the display effect of the video is improved, and the like; through operations such as verification, request frequency control and the like, illegal user behaviors can be prevented, adverse effects on services caused by malignant network requests can be prevented, malignant attacks can be prevented, resource waste can be reduced, and video conversion requests can be processed normally; through the caching and scheduling of the video conversion tasks, sufficient conversion time can be reserved for each video, and the conversion success rate and the like are further improved; by segmenting the video segments and concurrently converting the video segments, the video conversion time can be shortened, the conversion speed is increased, the waiting time of a user is reduced, and the like; by determining the query time interval, the user can be prevented from blindly and frequently querying, so that unnecessary resource consumption and the like are reduced, and in addition, the user can timely know the video processing condition and the like based on the query request.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 6 is a block diagram of an electronic device according to the method of the embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 6, the electronic apparatus includes: one or more processors Y01, a memory Y02, and interfaces for connecting the various components, including a high speed interface and a low speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information for a graphical user interface on an external input/output device (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor Y01 is taken as an example.
Memory Y02 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the methods provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the methods provided herein.
Memory Y02 is provided as a non-transitory computer readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods of the embodiments of the present application. The processor Y01 executes various functional applications of the server and data processing, i.e., implements the method in the above-described method embodiments, by executing non-transitory software programs, instructions, and modules stored in the memory Y02.
The memory Y02 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Additionally, the memory Y02 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory Y02 may optionally include memory located remotely from processor Y01, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, blockchain networks, local area networks, mobile communication networks, and combinations thereof.
The electronic device may further include: an input device Y03 and an output device Y04. The processor Y01, the memory Y02, the input device Y03 and the output device Y04 may be connected by a bus or in another manner, and the connection by the bus is exemplified in fig. 6.
The input device Y03 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device, such as a touch screen, keypad, mouse, track pad, touch pad, pointer, one or more mouse buttons, track ball, joystick, or other input device. The output device Y04 may include a display device, an auxiliary lighting device, a tactile feedback device (e.g., a vibration motor), and the like. The display device may include, but is not limited to, a liquid crystal display, a light emitting diode display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific integrated circuits, computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable logic devices) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a cathode ray tube or a liquid crystal display monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area networks, wide area networks, blockchain networks, and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (23)
1. A method for video conversion, comprising:
acquiring a video conversion request initiated by a user aiming at any video;
performing conversion processing on the video, wherein the conversion processing comprises:
selecting M frames of images from the video, wherein M is a positive integer, converting the M frames of images into a quadratic element cartoon style, and returning the quadratic element cartoon style to the user so that the user can select one frame of image from the M frames of images as a cover of the converted video;
and converting the video into a quadratic element cartoon style, and returning the converted video to the user.
2. The method of claim 1,
the converting the video into a quadratic cartoon style comprises:
dividing the video into N video segments, wherein N is a positive integer greater than one;
concurrently converting the N video clips into a quadratic element cartoon style respectively;
and splicing the converted video clips to obtain the converted video.
3. The method of claim 1,
the converting the M frame images into a quadratic element cartoon style comprises the following steps: converting the M frame images into a quadratic element cartoon style by calling an Artificial Intelligence (AI) intelligent visual conversion algorithm;
the converting the video into a quadratic cartoon style comprises: and converting the video into a quadratic element cartoon style by calling the AI intelligent vision conversion algorithm.
4. The method of claim 1,
the method further comprises the following steps:
carrying out validity check on the user according to user information carried in the video conversion request, and if the user information passes the validity check, carrying out conversion processing on the video;
and/or acquiring the recorded times of video conversion requests initiated by the user within the latest preset time, comparing the times with a preset threshold, and if the times are less than or equal to the threshold, converting the video;
and/or if the video conversion request can be processed normally according to the service stability, performing conversion processing on the video.
5. The method of claim 1,
the method further comprises the following steps:
generating video conversion tasks aiming at the videos, putting the video conversion tasks into a first cache region, taking out P video conversion tasks from the first cache region when the video conversion tasks meet the taking-out condition each time according to a preset scheduling strategy, wherein P is a positive integer, and converting the videos corresponding to the taken-out video conversion tasks;
and putting the converted M frames of images and the converted video into a second cache region as conversion results, and returning the conversion results to the user when acquiring the query request of the user.
6. The method of claim 5,
the method further comprises the following steps:
determining the query time interval of the user and returning the query time interval to the user;
when the query request periodically sent based on the query time interval is acquired, if the conversion result of the video is determined to be cached in the second cache region, the conversion result is returned to the user.
7. The method of claim 6,
the method further comprises the following steps:
when the query request periodically sent based on the query time interval is acquired, if the video is determined to be being subjected to conversion processing, returning processing progress information to the user;
and/or when the query request periodically sent based on the query time interval is acquired, if the video conversion is determined to fail, returning conversion failure information to the user.
8. A method for video conversion, comprising:
aiming at any video, sending a video conversion request to a server;
acquiring the converted M frame images and the converted video returned by the server; the converted M frames of images are obtained by performing quadratic element cartoon style conversion on the M frames of images selected from the videos by the server, M is a positive integer, and the converted videos are obtained by performing quadratic element cartoon style conversion on the videos by the server;
and determining a frame of image selected by a user from the converted M frames of images, and taking the selected image as a cover of the converted video.
9. The method of claim 8,
the method further comprises the following steps:
acquiring the query time interval determined by the server;
and periodically sending a query request to the server side based on the query time interval, and acquiring a query result returned by the server side, wherein if the conversion of the video is completed, the query result comprises the converted M-frame image and the converted video.
10. The method of claim 9,
if the video is being converted, the query result comprises processing progress information;
and/or if the video conversion fails, the query result comprises conversion failure information.
11. A video conversion apparatus, comprising: a conversion processing module;
the conversion processing module is configured to obtain a video conversion request initiated by a user for any video, and perform conversion processing on the video, where the conversion processing includes: selecting M frames of images from the video, wherein M is a positive integer, converting the M frames of images into a quadratic element cartoon style, and returning the quadratic element cartoon style to the user so that the user can select one frame of image from the M frames of images as a cover of the converted video; and converting the video into a quadratic element cartoon style, and returning the converted video to the user.
12. The apparatus of claim 11,
the conversion processing module divides the video into N video clips, wherein N is a positive integer larger than one, the N video clips are concurrently converted into a quadratic element cartoon style respectively, and the converted video clips are spliced to obtain the converted video.
13. The apparatus of claim 11,
the conversion processing module converts the M frame images into a quadratic element cartoon style by calling an Artificial Intelligence (AI) intelligent visual conversion algorithm;
and the conversion processing module converts the video into a quadratic element cartoon style by calling the AI intelligent vision conversion algorithm.
14. The apparatus of claim 11,
the conversion processing module is further configured to perform validity check on the user according to user information carried in the video conversion request, perform conversion processing on the video if the user information passes the check, and/or obtain the number of times that the user initiates a video conversion request within a recent predetermined time period, compare the number of times with a preset threshold, perform conversion processing on the video if the number of times is less than or equal to the threshold, and/or perform conversion processing on the video if it is determined that the video conversion request can be normally processed according to service stability.
15. The apparatus of claim 11,
the device further comprises: a data caching module;
the conversion processing module is further configured to generate video conversion tasks for the video, place the video conversion tasks into a first cache area in the data cache module, and take out P video conversion tasks from the first cache area according to a predetermined scheduling policy when taking-out conditions are met each time, where P is a positive integer, and perform conversion processing on the video corresponding to the taken-out video conversion tasks;
the conversion processing module is further configured to place the converted M-frame image and the converted video as a conversion result into a second cache area in the data cache module, and when the query request of the user is obtained, return the conversion result to the user.
16. The apparatus of claim 15,
the conversion processing module is further configured to determine a query time interval of the user, return the query time interval to the user, and when the query request periodically sent based on the query time interval is acquired, return the conversion result to the user if it is determined that the conversion result of the video is cached in the second cache region.
17. The apparatus of claim 16,
the conversion processing module is further configured to, when the query request periodically sent based on the query time interval is obtained, if it is determined that the video is being converted, return processing progress information to the user, and/or, when the query request periodically sent based on the query time interval is obtained, if it is determined that the video conversion is failed, return conversion failure information to the user.
18. A video conversion apparatus, comprising: a request initiating module and an information processing module;
the request initiating module is used for sending a video conversion request to the server aiming at any video;
the information processing module is used for acquiring the converted M frame images and the converted videos returned by the server; the converted M frames of images are obtained by performing quadratic element cartoon style conversion on the M frames of images selected from the videos by the server, M is a positive integer, and the converted videos are obtained by performing quadratic element cartoon style conversion on the videos by the server; and determining a frame of image selected by a user from the converted M frames of images, and taking the selected image as a cover of the converted video.
19. The apparatus of claim 18,
the information processing module is further used for acquiring the query time interval determined by the server;
the request initiating module is further used for periodically sending a query request to the server based on the query time interval;
if the video is converted, the query result obtained by the information processing module includes the converted M-frame image and the converted video.
20. The apparatus of claim 19,
if the video is being converted, the query result comprises processing progress information;
and/or if the video conversion fails, the query result comprises conversion failure information.
21. A video conversion system, comprising: the video conversion device according to any one of claims 11-17, and the video conversion device according to any one of claims 18-20.
22. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-10.
23. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010270367.0A CN111629227A (en) | 2020-04-08 | 2020-04-08 | Video conversion method, device, system, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010270367.0A CN111629227A (en) | 2020-04-08 | 2020-04-08 | Video conversion method, device, system, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111629227A true CN111629227A (en) | 2020-09-04 |
Family
ID=72272513
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010270367.0A Pending CN111629227A (en) | 2020-04-08 | 2020-04-08 | Video conversion method, device, system, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111629227A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140282000A1 (en) * | 2013-03-15 | 2014-09-18 | Tawfiq AlMaghlouth | Animated character conversation generator |
CN108989609A (en) * | 2018-08-10 | 2018-12-11 | 北京微播视界科技有限公司 | Video cover generation method, device, terminal device and computer storage medium |
CN109151338A (en) * | 2018-07-10 | 2019-01-04 | Oppo广东移动通信有限公司 | Image processing method and related product |
CN109474851A (en) * | 2018-10-30 | 2019-03-15 | 百度在线网络技术(北京)有限公司 | Video conversion method, device and equipment |
CN110232722A (en) * | 2019-06-13 | 2019-09-13 | 腾讯科技(深圳)有限公司 | A kind of image processing method and device |
CN110505455A (en) * | 2019-08-30 | 2019-11-26 | 北京青岳科技有限公司 | A kind of the monitor video access method and system of secret protection |
-
2020
- 2020-04-08 CN CN202010270367.0A patent/CN111629227A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140282000A1 (en) * | 2013-03-15 | 2014-09-18 | Tawfiq AlMaghlouth | Animated character conversation generator |
CN109151338A (en) * | 2018-07-10 | 2019-01-04 | Oppo广东移动通信有限公司 | Image processing method and related product |
CN108989609A (en) * | 2018-08-10 | 2018-12-11 | 北京微播视界科技有限公司 | Video cover generation method, device, terminal device and computer storage medium |
CN109474851A (en) * | 2018-10-30 | 2019-03-15 | 百度在线网络技术(北京)有限公司 | Video conversion method, device and equipment |
CN110232722A (en) * | 2019-06-13 | 2019-09-13 | 腾讯科技(深圳)有限公司 | A kind of image processing method and device |
CN110505455A (en) * | 2019-08-30 | 2019-11-26 | 北京青岳科技有限公司 | A kind of the monitor video access method and system of secret protection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111158799A (en) | Page rendering method and device, electronic equipment and storage medium | |
CN112100481A (en) | Search method, search device, electronic device, and storage medium | |
US20210149558A1 (en) | Method and apparatus for controlling terminal device, and non-transitory computer-readle storage medium | |
CN111770375B (en) | Video processing method and device, electronic equipment and storage medium | |
CN112000394A (en) | Method, apparatus, device and storage medium for accessing an applet | |
CN111813623A (en) | Page monitoring method and device, electronic equipment and storage medium | |
CN111881387A (en) | Data processing method, device, equipment and medium for small program | |
CN112084395A (en) | Search method, search device, electronic device, and storage medium | |
CN111831383A (en) | Window splicing method, device, equipment and storage medium | |
CN113158098A (en) | Page generation method, device, equipment and medium | |
JP2021197186A (en) | Image processing method, apparatus, electronic device and readable storage medium | |
CN113986936A (en) | Data processing method and device, electronic equipment and storage medium | |
CN113094139A (en) | UI style updating method and device | |
CN112069137A (en) | Method and device for generating information, electronic equipment and computer readable storage medium | |
CN114554110B (en) | Video generation method, device, electronic equipment and storage medium | |
CN109831673B (en) | Live broadcast room data processing method, device, equipment and storage medium | |
CN111970560A (en) | Video acquisition method and device, electronic equipment and storage medium | |
CN111629227A (en) | Video conversion method, device, system, electronic equipment and storage medium | |
CN113542888B (en) | Video processing method and device, electronic equipment and storage medium | |
CN112770415B (en) | Information processing method and device for wireless hotspots | |
US11386043B2 (en) | Method, device, and computer program product for managing snapshot in application environment | |
CN114168607A (en) | Global serial number generation method, device, equipment, medium and product | |
CN112148279A (en) | Log information processing method and device, electronic equipment and storage medium | |
CN112752323A (en) | Method and device for changing hotspot access state | |
US9465876B2 (en) | Managing content available for content prediction |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200904 |