CN115269915A - Lyric display method and device, large screen terminal and storage medium - Google Patents
Lyric display method and device, large screen terminal and storage medium Download PDFInfo
- Publication number
- CN115269915A CN115269915A CN202210772483.1A CN202210772483A CN115269915A CN 115269915 A CN115269915 A CN 115269915A CN 202210772483 A CN202210772483 A CN 202210772483A CN 115269915 A CN115269915 A CN 115269915A
- Authority
- CN
- China
- Prior art keywords
- picture
- video
- character
- frame
- text
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/74—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/64—Browsing; Visualisation therefor
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The application relates to a lyric display method, a lyric display device, a large-screen terminal and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a video for making a special effect, decoding the video to obtain each decoded frame of video picture, extracting text content from lyrics of music played in the decoding process in the process of decoding each frame of video picture, drawing the text content into text pictures, fusing each frame of video picture and the text pictures corresponding to each frame of video picture to obtain fused special effect words, displaying the special effect words as the lyrics, and solving the problem that the experience feeling is poor due to the fact that the lyrics in the related technology are single in special effect display function.
Description
Technical Field
The present application relates to the field of multimedia technologies, and in particular, to a lyric display method, apparatus, large screen terminal, and storage medium.
Background
Nowadays, the fast-paced life brings huge pressure to people, and people hope to relax pressure and enjoy mood through the modes of listening to songs and singing songs, and then bring better life quality.
However, in the related art, the font color of the lyrics displayed by the music software is not pure color or gradient color, namely ASS special effect subtitles, and the lyrics special effect display mode is single, so that immersive experience feeling cannot be brought to a user, and the user experience feeling is poor.
In the related art, the problem of poor experience caused by single lyric special effect display function is not provided with an effective solution.
Disclosure of Invention
The embodiment of the application provides a lyric display method, a lyric display method and device, a large-screen terminal and a storage medium, and at least solves the problem that experience is poor due to the fact that a lyric special effect display function is single in the related technology.
In a first aspect, an embodiment of the present application provides a lyric display method, including:
acquiring a video for making a special effect;
decoding the video to obtain each decoded frame of video picture;
in the process of decoding the video pictures of each frame, extracting character contents from lyrics of music played in the decoding process, and drawing the character contents into character pictures;
and fusing the video pictures of each frame and the character pictures corresponding to the video pictures of each frame to obtain fused special effect characters, and displaying the special effect characters as lyrics.
In some embodiments, in the process of decoding the video pictures of each frame, after extracting the text content of the lyrics of the music played in the decoding process, the method further includes:
performing discrete processing on the music played in the decoding process to obtain a processed time domain function;
calculating the number of characters in the character content, performing average cutting on the oscillogram corresponding to the time domain function according to the number of the characters, and taking the longitudinal coordinate value corresponding to each cutting point as the adjustment value of each character in the character content;
and adjusting the size of each character to the size of the corresponding adjustment value, and drawing the adjusted character content into the character picture.
In some embodiments, after the text content is drawn into a text picture, the method further comprises:
converting the binary image of the character image into an SDF image through an SDF algorithm;
and fusing each frame of video picture with the SDF picture corresponding to each frame of video picture to obtain fused special effect characters, and displaying the special effect characters as lyrics.
In some embodiments, the fusing the frames of video pictures and the text pictures corresponding to the frames of video pictures includes:
and performing Boolean operation on the video pictures of each frame and the character pictures corresponding to the video pictures of each frame.
In some embodiments, when the text image has a text region and an image region, the text region is disposed on the image region, and the text region has corresponding text, the fusing the frame of video image and the text image corresponding to the frame of video image includes:
after Boolean operation is carried out on each frame of video picture and the character picture corresponding to each frame of video picture, a picture intersection area and a character intersection area are formed;
and hiding the content of the picture intersection area and displaying the content of the video picture in the character intersection area as the fused special effect character under the condition that the color of the picture area is white and the color of the character in the character area is black.
In some embodiments, said decoding the video comprises:
the video is hard decoded or soft decoded.
In some embodiments, in a case where the large screen terminal is provided with a text display area, displaying the special effect text as the lyrics includes:
filling a pure-color picture in the character display area to obtain a filled character display area;
and displaying the special effect words as lyrics in the filled word display area.
In a second aspect, an embodiment of the present application provides a lyric display apparatus, including:
an acquisition unit configured to acquire a video for producing a special effect;
the decoding unit is used for decoding the video to obtain each decoded frame of video picture;
the extraction unit is used for extracting the word content of lyrics of music played in the decoding process in the process of decoding each frame of video picture;
the drawing unit is used for drawing the text content into a text picture, wherein the text picture is provided with a text area and a picture area, the text area is arranged on the picture area, and the text area is provided with corresponding texts;
and the display unit is used for fusing each frame of video picture and the character picture corresponding to each frame of video picture to obtain fused special effect characters which are used as lyrics to display the special effect characters.
In a third aspect, an embodiment of the present application provides a large-screen terminal, where the large-screen terminal includes: a display, a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the lyrics display method according to the first aspect as described above, the display being for displaying an interactive interface.
In a fourth aspect, embodiments of the present application provide a storage medium, on which a computer program is stored, which when executed by a processor implements the method according to the first aspect.
Compared with the prior art, the lyric display method provided by the embodiment of the application comprises the steps of firstly, obtaining a video for making a special effect, decoding the video to obtain each decoded frame of video picture, extracting text content from lyrics of music played in the decoding process in the process of decoding each frame of video picture, and drawing the text content into the text picture, wherein compared with the prior method that animation frame by frame is used as the special effect, the compression ratio is slow, the compression ratio is high in the method that the video is decoded, and the time for making the lyrics subsequently is shortened; and then, fusing each frame of video picture and the character picture corresponding to each frame of video picture to obtain a fused special effect character, and displaying the special effect character as lyrics. That is to say, in the process of continuously decoding and playing the video, since the special effect words after fusion are continuously changed, the special effect of the lyrics displayed by the large-screen terminal is continuously changed, the scheme of displaying the current lyrics is enriched, when music software on the large-screen terminal plays the music, the atmosphere of the music is more favorably created, the experience of the user is improved, and the problem that the experience is poor due to the single special effect display function of the lyrics in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a first flowchart of a lyric display method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a second process of a lyric display method according to an embodiment of the present application;
FIG. 3 is a first schematic diagram of a special effect lyric according to an embodiment of the present application;
FIG. 4 is a binary image of a text picture according to an embodiment of the present application;
FIG. 5 is a diagram of an SDF according to an embodiment of the present application;
FIG. 6 is a block diagram of a structure of a lyric display apparatus according to an embodiment of the present application;
fig. 7 is an internal structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that such a development effort might be complex and tedious, but would nevertheless be a routine undertaking of design, fabrication, and manufacture for those of ordinary skill having the benefit of this disclosure, given the benefit of this disclosure, without departing from the scope of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by one of ordinary skill in the art that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but rather can include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
In the related technology, the lyric font color displayed by the music software is not pure color or gradient color, namely ASS special effect subtitles, the lyric special effect display mode is single, immersive experience feeling cannot be brought to a user, and the user experience feeling is poor.
In order to solve the above problems, the present invention provides a lyric display method. Fig. 1 is a first flowchart of a lyric display method according to an embodiment of the present invention, and as shown in fig. 1, in an embodiment of the present invention, the lyric display method provided in the present invention may be used as a special effect method for displaying lyrics, and may also be used in a screen saver method or other scenes requiring displaying special effects of characters, where the method includes the following steps:
step S101, acquiring a video for making a special effect; the format of the video for making the special effect may be MP4 format or other format, which is not limited herein;
step S102, decoding the video to obtain each decoded frame of video picture; compared with the prior art that the compression rate is slow by using a frame-by-frame animation as a special effect mode, the method has the advantages that the compression rate is high and the time for making lyrics subsequently is shortened by decoding the video;
step S103, in the process of decoding each frame of video picture, extracting the words of the music played in the decoding process, and drawing the words into the words picture.
The method comprises the following steps that text contents can be drawn into a text picture through an Android frame, the text picture is provided with a text area and a picture area, the text area is arranged on the picture area, and corresponding texts are arranged in the text area; in other embodiments, of course, the Android frame may be replaced by an existing IOS application program frame, an Android application system frame, or another frame, as long as the extracted text content can be drawn into a corresponding text image, which is not limited herein.
In addition, since a person skilled in the art knows that the Android frame is an existing Android application frame, details are not described here.
And step S104, fusing each frame of video picture and the character picture corresponding to each frame of video picture to obtain fused special effect characters, and displaying the special effect characters as lyrics. That is to say, in the process of continuously decoding and playing the video, because the special effect words after each fusion are continuously changed, the special effect of the lyrics displayed by the large-screen terminal is continuously changed, the scheme of displaying the current lyrics is enriched, music software on the large-screen terminal plays music, the atmosphere of the music is more favorable to creating, the experience of the user is improved, and the problem that the experience is poor due to the single special effect display function of the lyrics in the related technology is solved. In addition, each frame of video picture and the text picture corresponding to each frame of video picture may be fused through OpenGL (Open Graphics Library), and since a person skilled in the art knows the working principle of OpenGL, the details are not repeated here.
Through the steps S101 to S104, in the present embodiment, a video for making a special effect is obtained, the video is decoded to obtain each decoded frame of video picture, in the process of decoding each frame of video picture, text content is extracted from lyrics of music played in the decoding process, and the text content is drawn into a text picture, compared with the previous case that a frame-by-frame animation is used as a special effect, and the compression ratio is slow, in the present embodiment, the compression ratio is high by decoding the video, and the time for making the lyrics subsequently is shortened; and then, fusing each frame of video picture with the character picture corresponding to each frame of video picture to obtain a fused special effect character, and displaying the special effect character as lyrics. That is to say, in the process of continuously decoding and playing the video, since the special effect words after fusion are continuously changed, the special effect of the lyrics displayed by the large-screen terminal is continuously changed, the scheme of displaying the current lyrics is enriched, when music software on the large-screen terminal plays the music, the atmosphere of the music is more favorably created, the experience of the user is improved, and the problem that the experience is poor due to the single special effect display function of the lyrics in the related technology is solved.
Fig. 2 is a schematic diagram of a second process of a lyric display method according to an embodiment of the present application, and as shown in fig. 2, in order to enrich the display effect of the lyrics, in some embodiments, after extracting text content from the lyrics of music played during decoding of each frame of video picture, the method further includes the following steps:
performing discrete processing on the music played in the decoding process to obtain a processed time domain function;
calculating the number of characters in the character content, averagely cutting the oscillogram corresponding to the time domain function according to the number of the characters, and taking the longitudinal coordinate value (amplitude value) corresponding to each cutting point as the adjustment value of each character in the character content;
and adjusting the size of each character to the size of the corresponding adjustment value, and drawing the adjusted character content into a character picture through an Android frame. In the embodiment, in the decoding process of each frame of video picture, because the music played in the decoding process is different, the obtained time domain functions are also different, and further, the subsequent longitudinal coordinate values corresponding to the cutting points are also different as the adjustment values of the characters, so that the corresponding characters (lyrics) in each character picture are amplified and reduced, each frame of video picture and the character picture corresponding to each frame of video picture are fused through OpenGL in the subsequent process, the fused special effect characters are obtained and displayed as the lyrics, the music of the song is visually displayed in the special effect form of the lyrics, the lyrics are enabled to present different display effects, and the user experience is improved.
Fig. 3 is a first schematic diagram of a special effect lyric according to an embodiment of the present application, fig. 4 is a binary diagram of a text image according to an embodiment of the present application, fig. 5 is an SDF diagram according to an embodiment of the present application, as shown in fig. 3 to 5, in order to reduce the influence of edge aliasing of a text on the overall lyric effect, in some embodiments, after the text content is drawn into the text image, the method further includes the following steps:
converting the binary image of the character image into an SDF (Signed distance function) image through an SDF algorithm; in this example, the transparency of the SDF graphic character center is 1.0, and correspondingly, the transparency is smaller as the SDF graphic character center is farther away from the character center, in other words, the SDF graphic character can be understood as a contour map of characters;
and fusing each frame of video picture with the SDF picture corresponding to each frame of video picture through OpenGL to obtain fused special effect words, and displaying the fused special effect words as lyrics according to the sequence of fusion. Because the transparency of the character edge is low, the transparency is also reduced when the edge is mixed, the problem of edge saw tooth of the character can be effectively improved, and better experience is brought to a user. In other examples, of course, a person skilled in the art can adjust the central transparency of the SDF graph text by modifying a software program or an algorithm, so that the edge of the text emits light to generate a special effect, the whole lyric has more rendering power, and the experience of people is improved.
In order to bring about a better lyric fusion effect, in some embodiments, the fusion of each frame of video picture and the text picture corresponding to each frame of video picture comprises the following steps:
boolean operation (Boolean) is carried out on each frame of video picture and the text picture corresponding to each frame of video picture, the text picture and the video picture corresponding to each frame of video picture can be cut at different positions through the Boolean operation, so that the cut special effect text generates different fusion effects, the lyric special effect display function is richer, and the problem that the use experience is poor due to the fact that the lyric special effect display function is single in the prior art is solved. In addition, as a person skilled in the art knows that boolean operation is performed on two objects (a video image and a text image corresponding to the video image) to perform operations of union, difference and intersection, so as to obtain a new fusion mode of object forms, which is not described herein in detail.
Specifically, in some optional embodiments, when the text picture has a text region and a picture region, the text region is disposed on the picture region, and the text region has corresponding text, fusing each frame of video picture and the text picture corresponding to each frame of video picture includes:
after Boolean operation is carried out on each frame of video picture and the character picture corresponding to each frame of video picture, a picture intersection area and a character intersection area are formed;
and under the condition that the color of the picture area is white and the color of the characters on the character area is black, hiding the content of the picture intersection area, and displaying the content of the video picture in the character intersection area as the fused special effect characters. Of course, in some other embodiments, the colors of the characters in the picture area and the character area can be changed to make the fused characters display different effects; the above fusion process can be understood by those skilled in the art as a function of masking the layer in Photoshop, i.e. the masking (i.e. on the glass sheet) is colored (black and white can be applied), the masking becomes completely transparent where black is applied, the image of the current layer is not visible, and the coloring becomes opaque when white is applied, so that the image on the current layer can be seen.
In order to accommodate different configurations of music players on the market, and to meet the needs of different users, in some embodiments, decoding the video includes the following steps:
the video is hard decoded or soft decoded. The video is decoded by hard decoding mainly through a graphics card core GPU, so that the CPU occupancy rate is low and the power consumption is low; the CPU is responsible for decoding and playing the video in a mode of decoding the video through soft decoding, and the decoded video picture is better in image quality due to the fact that the video picture is not limited by a video format, so that the effect of fusing each frame of video picture and the text picture corresponding to each frame of video picture through OpenGL subsequently is better, the whole lyric effect is better, and the user experience is improved.
In order to form different special effects of the hollowed-out lyrics, in some embodiments, in the case that a large-screen terminal is provided with a text display area, displaying special effect text as lyrics includes:
filling a pure-color picture in the character display area to obtain a filled character display area;
the special effect words are displayed in the filled word display area as the lyrics, wherein particularly when the pure color picture is black, the lyrics form a hollow-out style effect more obviously, and a better experience effect can be brought to a user.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The embodiment also provides a device for filling components in a display interface, and the system is used for implementing the above embodiments and preferred embodiments, and the description of the system is omitted for brevity. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a structure of a lyric display apparatus according to an embodiment of the present application, as shown in fig. 6, the apparatus including:
an acquisition unit 61 configured to acquire a video for producing a special effect;
a decoding unit 62, configured to decode the video to obtain decoded video pictures of each frame;
an extracting unit 63, configured to extract text content from lyrics of music played in a decoding process in a process of decoding each frame of video picture;
the drawing unit 64 is used for drawing the text content into a text picture, wherein the text picture is provided with a text area and a picture area, the text area is arranged on the picture area, and the text area is provided with corresponding text;
and the display unit 65 is configured to fuse each frame of video picture with a text picture corresponding to each frame of video picture to obtain a fused special effect text, and display the special effect text as lyrics. In the embodiment, a video for making a special effect is obtained, the video is decoded to obtain each decoded frame of video picture, in the process of decoding each frame of video picture, the words content of lyrics of music played in the decoding process is extracted, and the words content is drawn into the words picture, compared with the previous situation that the compression ratio is slow by taking a frame-by-frame animation as a special effect, the compression ratio is high by the method of decoding the video, and the time for making the lyrics subsequently is shortened; and then, fusing each frame of video picture and the character picture corresponding to each frame of video picture to obtain a fused special effect character, and displaying the special effect character as lyrics. That is to say, in the process of continuously decoding and playing the video, because the special effect words after each fusion are continuously changed, the special effect of the lyrics displayed by the large-screen terminal is continuously changed, the scheme of displaying the current lyrics is enriched, music software on the large-screen terminal plays music, the atmosphere of the music is more favorable to creating, the experience of the user is improved, and the problem that the experience is poor due to the single special effect display function of the lyrics in the related technology is solved.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the above modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
This application has still provided a large screen terminal, and this large screen terminal includes: the lyric display system comprises a display, a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the lyric display method when being executed by the processor, and the display is used for displaying an interactive interface. The large-screen terminal includes, but is not limited to, a television terminal, a projector terminal, or a mobile terminal such as a mobile phone or a computer.
The present embodiment also provides an electronic device, comprising a memory having a computer program stored therein and a processor configured to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
step S101, acquiring a video for making a special effect;
step S102, decoding the video to obtain each decoded frame of video picture;
step S103, in the process of decoding each frame of video picture, extracting character contents from lyrics of music played in the decoding process, and drawing the character contents into character pictures;
and step S104, fusing each frame of video picture and the character picture corresponding to each frame of video picture to obtain fused special effect characters, and displaying the special effect characters as lyrics respectively.
It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiment and optional implementation manners, and details of this embodiment are not described herein again.
In addition, in combination with the lyric display method in the above embodiment, the embodiment of the present application may provide a storage medium to implement. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements any of the lyric display methods of the above embodiments.
In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a lyric display method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, fig. 7 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application, and as shown in fig. 7, there is provided an electronic device, which may be a server, and an internal structure diagram of which may be as shown in fig. 7. The electronic device comprises a processor, a network interface, an internal memory and a non-volatile memory connected by an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used for providing calculation and control capabilities, the network interface is used for communicating with an external terminal through network connection, the internal memory is used for providing an environment for an operating system and the running of a computer program, the computer program is executed by the processor to realize a lyric display method, and the database is used for storing data.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the electronic devices to which the subject application may be applied, and that a particular electronic device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather, all combinations of features which are not inconsistent with each other should be construed as being within the scope of the present disclosure.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.
Claims (10)
1. A method for displaying lyrics, the method comprising the steps of:
acquiring a video for making a special effect;
decoding the video to obtain each decoded frame of video picture;
in the process of decoding the video pictures of each frame, extracting character contents from lyrics of music played in the decoding process, and drawing the character contents into character pictures;
and fusing the video pictures of each frame and the character pictures corresponding to the video pictures of each frame to obtain fused special effect characters, and displaying the special effect characters as lyrics.
2. The method of claim 1, wherein during the decoding of the video pictures, after extracting text content from lyrics of music played during the decoding, the method further comprises:
performing discrete processing on the music played in the decoding process to obtain a processed time domain function;
calculating the number of characters in the character content, averagely cutting the oscillogram corresponding to the time domain function according to the number of the characters, and taking the longitudinal coordinate value corresponding to each cutting point as the adjustment value of each character in the character content;
and adjusting the size of each character to the size of the corresponding adjustment value, and drawing the adjusted character content into the character picture.
3. The method of claim 1, wherein after the text content is rendered into a text picture, the method further comprises:
converting the binary image of the character image into an SDF image through an SDF algorithm;
and fusing each frame of video picture with the SDF picture corresponding to each frame of video picture to obtain fused special effect characters, and displaying the special effect characters as lyrics.
4. The method of claim 1, wherein the fusing the video pictures and the text pictures corresponding to the video pictures comprises:
and performing Boolean operation on the video pictures of each frame and the character pictures corresponding to the video pictures of each frame.
5. The method according to claim 4, wherein in a case that the text picture has a text region and a picture region, the text region is disposed on the picture region, and the text region has corresponding text, the fusing the frame of video picture and the text picture corresponding to the frame of video picture comprises:
after Boolean operation is carried out on each frame of video picture and the character picture corresponding to each frame of video picture, a picture intersection area and a character intersection area are formed;
and hiding the content of the picture intersection area and displaying the content of the video picture in the character intersection area as the fused special effect character under the condition that the color of the picture area is white and the color of the character in the character area is black.
6. The method of claim 1, wherein said decoding the video comprises:
the video is hard decoded or soft decoded.
7. The method of claim 1, wherein in case that a large screen terminal is provided with a text display area, displaying the special effect text as lyrics comprises:
filling a pure-color picture in the character display area to obtain a filled character display area;
and displaying the special effect words as lyrics in the filled word display area.
8. A lyric display apparatus, characterized in that the apparatus comprises:
an acquisition unit configured to acquire a video for producing a special effect;
the decoding unit is used for decoding the video to obtain each decoded frame of video picture;
the extraction unit is used for extracting the word content of lyrics of music played in the decoding process in the process of decoding each frame of video picture;
the drawing unit is used for drawing the text content into a text picture, wherein the text picture is provided with a text area and a picture area, the text area is arranged on the picture area, and the text area is provided with corresponding text;
and the display unit is used for fusing each frame of video picture and the character picture corresponding to each frame of video picture to obtain fused special effect characters which are used as lyrics to display the special effect characters.
9. A large-screen terminal, comprising: a display, a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the method according to any one of claims 1 to 7, the display for displaying an interactive interface.
10. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any one of claims 1 to 7 when executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210772483.1A CN115269915A (en) | 2022-06-30 | 2022-06-30 | Lyric display method and device, large screen terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210772483.1A CN115269915A (en) | 2022-06-30 | 2022-06-30 | Lyric display method and device, large screen terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115269915A true CN115269915A (en) | 2022-11-01 |
Family
ID=83762589
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210772483.1A Pending CN115269915A (en) | 2022-06-30 | 2022-06-30 | Lyric display method and device, large screen terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115269915A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116186240A (en) * | 2022-11-29 | 2023-05-30 | 上海图客科技有限公司 | WebGL-based dynamic high-performance batch text rendering method, system and program product |
-
2022
- 2022-06-30 CN CN202210772483.1A patent/CN115269915A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116186240A (en) * | 2022-11-29 | 2023-05-30 | 上海图客科技有限公司 | WebGL-based dynamic high-performance batch text rendering method, system and program product |
CN116186240B (en) * | 2022-11-29 | 2024-04-02 | 上海图客科技有限公司 | WebGL-based dynamic high-performance batch text rendering method, system and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11507727B2 (en) | Font rendering method and apparatus, and computer-readable storage medium | |
CN106611435B (en) | Animation processing method and device | |
US7089504B1 (en) | System and method for embedment of emotive content in modern text processing, publishing and communication | |
CN112188304B (en) | Video generation method, device, terminal and storage medium | |
CN112087655B (en) | Method and device for presenting virtual gift and electronic equipment | |
US11451858B2 (en) | Method and system of processing information flow and method of displaying comment information | |
CN108846886B (en) | AR expression generation method, client, terminal and storage medium | |
US20220353587A1 (en) | Method and apparatus for generating music poster, electronic device, and medium | |
CN113778419B (en) | Method and device for generating multimedia data, readable medium and electronic equipment | |
CN111221596A (en) | Font rendering method and device and computer readable storage medium | |
CN113411664A (en) | Video processing method and device based on sub-application and computer equipment | |
CN115269915A (en) | Lyric display method and device, large screen terminal and storage medium | |
CN111857878B (en) | Skeleton screen page generation method and device, electronic equipment and storage medium | |
CN117576388A (en) | Image processing method and device, storage medium and electronic equipment | |
CN108961361B (en) | Method and system for generating special effect text image and computer equipment | |
CN117376660A (en) | Subtitle element rendering method, device, equipment, medium and program product | |
US9064350B2 (en) | Methods of providing graphics data and displaying | |
KR20140031438A (en) | Apparatus and method of reconstructing mobile contents | |
CN115250335A (en) | Video processing method, device, equipment and storage medium | |
CN110548290A (en) | Image-text mixed arranging method and device, electronic equipment and storage medium | |
CN115391692A (en) | Video processing method and device | |
CN110992438B (en) | Picture editing method and device | |
Zhu | Application of Element Symbol of Beijing Opera Facial Painting (Lianpu) in Smart Phone Theme Design | |
CN113259712B (en) | Video processing method and related device | |
Hou | Research on Flattening Style Design of Game Interface Based on Cognitive Psychology |
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 |