WO2021018177A1 - 文字特效处理方法及装置 - Google Patents
文字特效处理方法及装置 Download PDFInfo
- Publication number
- WO2021018177A1 WO2021018177A1 PCT/CN2020/105438 CN2020105438W WO2021018177A1 WO 2021018177 A1 WO2021018177 A1 WO 2021018177A1 CN 2020105438 W CN2020105438 W CN 2020105438W WO 2021018177 A1 WO2021018177 A1 WO 2021018177A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- text
- special effect
- display
- terminal screen
- multimedia
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
Definitions
- the present disclosure relates to the field of image processing technology, and in particular to a method, device and computer-readable storage medium for processing text effects.
- a fixed version of an application program corresponds to a fixed text special effect, that is, once the application version is determined, the type of text special effect is determined. For example, there are fixed types of text effects in the current version, and other new text effects cannot be added. Only after the version is updated, the new text effects can be added to the application with the version update, which is very inflexible.
- the technical problem solved by the present disclosure is to provide a text special effect processing method, so as to at least partially solve the technical problem of inflexible text special effects in the prior art.
- a text special effect processing device a text special effect processing hardware device, a computer-readable storage medium and a text special effect processing terminal are also provided.
- a special text effect processing method including:
- a special text effect processing method including:
- a text special effect processing device including:
- the request sending module is configured to send a request for obtaining text special effect resources to the server; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
- the resource receiving module is configured to receive the text special effect resource sent by the server
- the special effect display module is configured to perform special effect processing on at least two sentences of text according to the text special effect resource, so that the text displayed at the current position of the terminal screen is transformed to display the next text following the playback progress of the multimedia.
- a text special effect processing device including:
- the request receiving module is configured to receive a request for obtaining text special effect resources sent by the client; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
- the resource sending module is configured to send the text special effect resource to the client, so that the client performs special effect processing on at least two sentences according to the text special effect resource, so that the text displayed at the current position of the terminal screen follows the The playback progress of the multimedia is changed to display the next sentence.
- An electronic device including:
- Memory for storing non-transitory computer readable instructions
- the processor is configured to run the computer-readable instructions so that the processor implements any of the above-mentioned text special effects processing methods when executed.
- a computer-readable storage medium for storing non-transitory computer-readable instructions.
- the computer executes any of the above-mentioned text special effects processing methods .
- a text special effect processing terminal includes any text special effect processing device described above.
- the embodiment of the present disclosure obtains text special effect resources from the server, and performs special effect processing on the text according to the text special effect resources, so that the text displayed at the current position of the terminal screen is transformed to display the next text following the playback progress of the multimedia. After updating the client, you can get the text effect resources, making the text effect more flexible.
- FIG. 1 is a schematic flowchart of a text special effect processing method according to an embodiment of the present disclosure
- FIG. 2 is a schematic flowchart of a method for processing text effects according to an embodiment of the present disclosure
- FIG. 3 is a schematic structural diagram of a text special effects processing device according to an embodiment of the present disclosure
- FIG. 4 is a schematic structural diagram of a text special effects processing device according to an embodiment of the present disclosure.
- Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
- the text special effect processing method mainly includes the following steps S11 to S13.
- Step S11 Send a request for obtaining text special effect resources to the server; wherein, the text special effect resources are used to realize the display special effects of texts associated with multimedia.
- the execution subject of this embodiment is a client installed on the terminal, for example, it may be a short video application or music playing software.
- the terminal may be a mobile terminal (for example, a smart phone, a tablet computer, etc.) or a fixed terminal (for example, a desktop computer).
- the multimedia can be a video, and the corresponding text is a line; it can also be music, and the corresponding text is a lyrics.
- the display special effect can be to enlarge or reduce the text, gradually disappear from the terminal screen, and gradually display on the terminal screen.
- multimedia options and/or text effect resource options can be provided on the client application interface, for example, a multimedia list is provided, where the multimedia list contains multiple multimedia names, such as video names or music names; and/or text effect resource lists , Where the text special effect resource list contains special effect information, such as zoom in or zoom out.
- a multimedia list is provided, where the multimedia list contains multiple multimedia names, such as video names or music names; and/or text effect resource lists , Where the text special effect resource list contains special effect information, such as zoom in or zoom out.
- Step S12 Receive the text special effect resource sent by the server.
- the server may be a third-party server, and the third-party server is mainly used to store text special effect resources. It may also be an application server corresponding to the client. The application server is used to store multimedia and text associated with the multimedia in addition to storing text special effect resources.
- Step S13 Perform special effect processing on at least two sentences of text according to the text special effect resource, so that the text displayed at the current position of the terminal screen is transformed to display the next text following the playback progress of the multimedia.
- the display position of the next sentence of text can be the current position or other preset positions.
- special effect processing is performed on at least two sentences of lyrics according to text special effect resources sent by the server, and during music playback, the lyrics displayed at the current position of the terminal screen follow the multimedia The playback progress of changes to display the next lyrics.
- the text special effect resource is obtained from the server, and the text is processed according to the text special effect resource, so that the text displayed at the current position of the terminal screen is transformed to display the next sentence following the playback progress of the multimedia.
- the text effects resources can be obtained, which makes the text effects more flexible.
- step S13 specifically includes:
- Step S131 Obtain the time stamp corresponding to the playback progress of the multimedia and the current text corresponding to the time stamp.
- the time stamp is the time length of the current playing time relative to the initial playing time.
- the corresponding relationship between the time stamp and the text can be preset, the corresponding time stamp is further determined according to the playback progress of the multimedia, and the corresponding text is obtained according to the time stamp.
- Step S132 Determine the display transparency of the current text according to the time stamp.
- the display transparency can be a value between 0-1.
- the display transparency changes from 0 to 1 the text is gradually displayed, and when the display transparency changes from 1 to 0, the current text gradually disappears.
- the specific value is determined in real time based on the timestamp.
- Step S133 Control the current text to disappear from the terminal screen following the multimedia playback progress according to the display transparency, and display the next text on the terminal screen.
- step S133 specifically includes:
- the display position can be the current position or other preset positions.
- the current lyrics are rendered on the terminal screen through a bitmap according to the timestamp.
- the transparency of the current lyrics can be set to a gradient, for example, from a transparency of 1 to a transparency of 0 .
- the transparency of the next lyrics to a gradient, for example, from a transparency of 0 to a transparency of 1, to form a fade-in effect.
- the determining the display position of the next sentence on the terminal screen specifically includes:
- the target position is used as the display position; or If the target position exceeds the first preset position of the terminal screen, the second preset position of the terminal screen is used as the display position.
- the first preset position and the second preset position can be customized.
- the first preset position is set to the bottom of the terminal screen
- the second preset position is set to the top of the terminal screen.
- the lyrics when displaying the next lyrics, get the next lyrics of the current lyrics, and move the position of the next lyrics to the next position.
- the position of the bitmap exceeds the preset position of the terminal screen, that is, the first preset position, the lyrics are rendered to the initial position, that is, the second preset position.
- step S133 specifically includes:
- the time difference between the time stamp of the current text and the time stamp of the next sentence is taken as the time length. Take music and lyrics as an example.
- rendering when the current lyrics disappear from the terminal screen, the next lyrics are rendered on the terminal screen through a bitmap, and the display transparency of the next lyrics is controlled so that the next lyrics increase with time Show slowly.
- step S133 specifically includes:
- the zoom factor is the ratio of enlargement or reduction of the text.
- the current lyrics are magnified.
- the magnification factor is proportional to the time.
- the transparency of the current lyrics is also proportional to the time. When the transparency changes from 1 to 0, the current lyrics are zooming in at the same time. Completely disappear.
- the determining the zoom factor of the current text includes:
- the real-time zoom factor is determined according to the first proportional function and the playback progress.
- the time difference between the time stamp of the current lyrics and the time stamp of the next lyrics is divided equally, and the zoom factor or zoom factor is proportional to the length of time, so that before the next lyrics are displayed, the current lyrics Just disappeared.
- the method further includes:
- the real-time display transparency is determined according to the second proportional function and the playback progress.
- step S133 specifically includes:
- the next sentence of text is moved from the first position to the current position for display.
- the current position, the first position and the second position are three different positions on the terminal screen.
- the current position may be the middle position of the terminal screen, and the first position may be below the middle position, The second position may be above the intermediate position.
- three positions are preset, the first position, the current position, and the second position.
- Get the timestamp display the current lyrics to the current position of the terminal screen through the bitmap, and move the current lyrics to the second display position as the playback progresses, and gradually shrink and increase the transparency until the current lyrics completely disappear; at the same time Display the next lyrics in a reduced size and a preset transparency in the first display position.
- move the next lyrics to the current position move the next lyrics to the current position, and gradually enlarge the next lyrics while moving And the transparency gradually becomes smaller.
- the method further includes:
- Step S15 Run a local script program according to the script file in the text special effect resource
- Step S16 Perform special effect processing on the text through the script program, so that the text is displayed on the terminal screen following the playback progress of the multimedia, and gradually disappears from the terminal screen.
- a script program can be written in advance, the script program is configured in the client, and the corresponding script text is included in the text special effect resource.
- the special effect processing of the text is realized by running the script program, so that the text displayed at the current position of the terminal screen is transformed into the next text following the playback progress of the multimedia .
- the text special effect processing method mainly includes the following steps S21 to S22.
- Step S21 Receive a request for acquiring text special effect resources sent by the client; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia.
- Step S22 Send the text special effect resource to the client, so that the client performs special effect processing on at least two sentences according to the text special effect resource, so that the text displayed at the current position of the terminal screen follows the multimedia The playback progress changes to display the next sentence.
- a text special effect resource is sent to the client, so that the client performs special effect processing on the text according to the text special effect resource, so that the text displayed at the current position of the terminal screen is transformed into a display following the playback progress of the multimedia
- the device embodiments of the present disclosure can be used to perform the steps implemented by the method embodiments of the present disclosure.
- an embodiment of the present disclosure provides a text effects processing device.
- the device can execute the steps in the text effect processing method embodiment described in the first embodiment.
- the device mainly includes: a request sending module 31, a resource receiving module 32, and a special effect display module 33; among them,
- the request sending module 31 is configured to send a request for obtaining text special effect resources to the server; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
- the resource receiving module 32 is configured to receive the text special effect resource sent by the server;
- the special effect display module 33 is configured to perform special effect processing on at least two sentences of text according to the text special effect resource, so that the text displayed at the current position of the terminal screen is transformed to display the next text following the playback progress of the multimedia.
- the special effect display module 33 includes: a text acquisition unit 331, a transparency determination unit 332, and a special effect display unit 333; wherein,
- the text obtaining unit 331 is configured to obtain the time stamp corresponding to the playback progress of the multimedia and the current text corresponding to the time stamp;
- the transparency determining unit 332 is configured to determine the display transparency of the current text according to the timestamp
- the special effect display unit 333 is configured to control the current text to disappear from the terminal screen following the multimedia playback progress according to the display transparency, and display the next text on the terminal screen.
- the special effect display unit 333 is specifically configured to: determine the display position of the next text on the terminal screen; control the current text to follow the multimedia playback progress gradually from the terminal according to the display transparency The screen fades out, and gradually fades in the next sentence at the display position.
- the special effect display unit 333 is specifically configured to: add a preset offset to the current position as a target position; if the target position does not exceed the first preset position of the terminal screen, The target position is used as the display position; or, if the target position exceeds the first preset position of the terminal screen, the second preset position of the terminal screen is used as the display position.
- the special effect display unit 333 is specifically configured to: obtain the time stamp of the next sentence of text; determine the time length according to the time stamp of the current text and the time stamp of the next sentence; control according to the display transparency The current text disappears from the terminal screen following the playback progress of the multimedia, and the next text is gradually displayed on the terminal screen according to the length of time.
- the special effect display unit 333 is specifically configured to: determine the zoom factor of the current text; according to the display transparency and the zoom factor, control the current text to follow the multimedia playback progress while zooming The terminal screen disappears, and the next sentence is displayed on the terminal screen.
- the special effect display unit 333 is specifically configured to: determine the time length according to the time stamp of the current text and the time stamp of the next sentence; divide the time length into equal parts according to the number of equal parts and the time The maximum value of the scaling coefficient determines a first proportional function; and the real-time scaling coefficient is determined according to the first proportional function and the playback progress.
- the special effect display unit 333 is further configured to: determine a second proportional function according to the number of equal parts and the maximum value of the display transparency; determine the real-time display transparency according to the second proportional function and the playback progress .
- the special effect display unit 333 is specifically configured to: display the next sentence of text in the first position of the terminal screen according to a preset transparency; and display the next sentence according to the display transparency and the playback progress
- the current text moves from the current position to the second position of the terminal screen and disappears; and the next sentence of text is moved from the first position to the current position for display.
- the device further includes: a script running module 34; wherein,
- the script running module 34 is used to run a local script program according to the script file in the text special effect resource; perform special effect processing on the text through the script program, so that the text displayed at the current position of the terminal screen follows the multimedia playback The progress changes to display the next sentence.
- an embodiment of the present disclosure provides a text effects processing device.
- the device can execute the steps in the text effect processing method embodiment described in the second embodiment.
- the device mainly includes: a request receiving module 41 and a resource sending module 42; among them,
- the request receiving module 41 is configured to receive a request for obtaining text special effect resources sent by the client; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
- the resource sending module 42 is configured to send the text special effect resource to the client, so that the client performs special effect processing on at least two sentences according to the text special effect resource, so that the text displayed at the current position of the terminal screen follows the The playback progress of the multimedia is changed to display the next sentence.
- FIG. 5 shows a schematic structural diagram of an electronic device 500 suitable for implementing the embodiments of the present disclosure.
- the terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (e.g. Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
- the electronic device shown in FIG. 5 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
- the electronic device 500 may include a processing device (such as a central processing unit, a graphics processor, etc.) 501, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 502 or from a storage device 506
- the program in the memory (RAM) 503 executes various appropriate actions and processing.
- the RAM 503 also stores various programs and data required for the operation of the electronic device 500.
- the processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504.
- An input/output (I/O) interface 505 is also connected to the bus 504.
- the following devices can be connected to the I/O interface 505: including input devices 506 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, liquid crystal display (LCD), speakers, vibration An output device 507 such as a device; a storage device 506 such as a magnetic tape and a hard disk; and a communication device 509.
- the communication device 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data.
- FIG. 5 shows an electronic device 500 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
- an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program contains program code for executing the method shown in the flowchart.
- the computer program may be downloaded and installed from the network through the communication device 509, or installed from the storage device 506, or installed from the ROM 502.
- the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
- the aforementioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
- the computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
- the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
- the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
- the client and server can communicate with any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
- Communication e.g., communication network
- Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future research and development network of.
- LAN local area networks
- WAN wide area networks
- the Internet e.g., the Internet
- end-to-end networks e.g., ad hoc end-to-end networks
- the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
- the above-mentioned computer-readable medium carries one or more programs.
- the electronic device sends a request to the server to obtain text special effect resources; wherein, the text special effect resources are used To realize the display special effects of text associated with multimedia; receive the text special effect resource sent by the server; perform special effect processing on at least two sentences according to the text special effect resource, so that the text displayed at the current position of the terminal screen follows the The playback progress of the multimedia is changed to display the next sentence.
- the computer program code used to perform the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
- the above-mentioned programming languages include but are not limited to object-oriented programming languages such as Java, Smalltalk, C++, and Including conventional procedural programming languages-such as "C" language or similar programming languages.
- the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
- the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
- LAN local area network
- WAN wide area network
- each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
- the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
- each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
- the units involved in the embodiments described in the present disclosure may be implemented in a software manner, or may be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
- exemplary types of hardware logic components include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logical device (CPLD) and so on.
- FPGA Field Programmable Gate Array
- ASIC Application Specific Integrated Circuit
- ASSP Application Specific Standard Product
- SOC System on Chip
- CPLD Complex Programmable Logical device
- a machine-readable medium may be a tangible medium, which may contain or store a program for use by or in combination with the instruction execution system, apparatus, or device.
- the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
- the machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any suitable combination of the foregoing.
- machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
- RAM random access memory
- ROM read-only memory
- EPROM or flash memory erasable programmable read-only memory
- CD-ROM portable compact disk read only memory
- magnetic storage device or any suitable combination of the above.
- a text special effect processing method including:
- the performing special effect processing on at least two sentences of text according to the text special effect resource so that the text displayed at the current position of the terminal screen is transformed to display the next text following the playback progress of the multimedia, including:
- the current text is controlled to disappear from the terminal screen following the playback progress of the multimedia, and the next text is displayed on the terminal screen.
- controlling the current text to follow the playback progress of the multimedia to disappear from the terminal screen according to the display transparency and displaying the next text on the terminal screen includes:
- the current text is controlled to gradually fade out from the terminal screen following the playback progress of the multimedia, and gradually fade in the next text at the display position.
- the determining the display position of the next sentence on the terminal screen includes:
- the target position does not exceed the first preset position of the terminal screen, use the target position as the display position; or,
- the second preset position of the terminal screen is used as the display position.
- controlling the current text to follow the playback progress of the multimedia to disappear from the terminal screen according to the display transparency and displaying the next text on the terminal screen includes:
- the current text is controlled to disappear from the terminal screen following the playback progress of the multimedia, and the next text is gradually displayed on the terminal screen according to the length of time.
- controlling the current text to follow the playback progress of the multimedia to disappear from the terminal screen according to the display transparency and displaying the next text on the terminal screen includes:
- the current text is controlled to follow the playback progress of the multimedia to zoom and disappear from the terminal screen, and the next text is displayed on the terminal screen.
- the determining the zoom factor of the current text includes:
- the real-time zoom factor is determined according to the first proportional function and the playback progress.
- the method further includes:
- the real-time display transparency is determined according to the second proportional function and the playback progress.
- controlling the current text to follow the playback progress of the multimedia to disappear from the terminal screen according to the display transparency and displaying the next text on the terminal screen includes:
- the next sentence of text is moved from the first position to the current position for display.
- the method further includes:
- the script program is used to perform special effects processing on the text, so that the text displayed at the current position of the terminal screen is transformed to display the next text following the playback progress of the multimedia.
- a text special effect processing method including:
- a text special effect processing device including:
- the request sending module is configured to send a request for obtaining text special effect resources to the server; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
- the resource receiving module is configured to receive the text special effect resource sent by the server
- the special effect display module is configured to perform special effect processing on at least two sentences of text according to the text special effect resource, so that the text displayed at the current position of the terminal screen is transformed to display the next text following the playback progress of the multimedia.
- the special effect display module includes:
- a text obtaining unit configured to obtain a time stamp corresponding to the playback progress of the multimedia and the current text corresponding to the time stamp;
- a transparency determining unit configured to determine the display transparency of the current text according to the time stamp
- the special effect display unit is configured to control the current text to disappear from the terminal screen following the playback progress of the multimedia according to the display transparency, and display the next text on the terminal screen.
- the special effect display unit is specifically configured to: determine the display position of the next sentence of text on the terminal screen; and control the current text to follow the multimedia playback progress gradually from the terminal screen according to the display transparency Fade out, and gradually fade in the next sentence at the display position.
- the special effect display unit is specifically configured to: add a preset offset to the current position as a target position; if the target position does not exceed the first preset position of the terminal screen, then Use the target position as the display position; or, if the target position exceeds the first preset position of the terminal screen, use the second preset position of the terminal screen as the display position.
- the special effect display unit is specifically configured to: obtain the time stamp of the next sentence of text; determine the time length according to the time stamp of the current text and the time stamp of the next sentence; The current text disappears from the terminal screen following the playback progress of the multimedia, and the next text is gradually displayed on the terminal screen according to the length of time.
- the special effect display unit is specifically configured to: determine the zoom factor of the current text; according to the display transparency and the zoom factor, control the current text to follow the multimedia playback progress while zooming The terminal screen disappears, and the next sentence is displayed on the terminal screen.
- the special effect display unit is specifically configured to: determine the time length according to the time stamp of the current text and the time stamp of the next sentence; divide the time length into equal parts according to the number of equal parts and the The maximum value of the zoom factor determines the first proportional function; and the real-time zoom factor is determined according to the first proportional function and the playback progress.
- the special effect display unit is further configured to: determine a second proportional function according to the number of equal parts and the maximum value of the display transparency; and determine the real-time display transparency according to the second proportional function and the playback progress.
- the special effect display unit is specifically configured to: display the next sentence of text on the first position of the terminal screen according to a preset transparency; and display the current text according to the display transparency and the playback progress The text moves from the current position to the second position of the terminal screen and disappears; and the next sentence of text is moved from the first position to the current position for display.
- the device further includes:
- the script running module is used to run a local script program according to the script file in the text special effect resource; perform special effect processing on the text through the script program, so that the text displayed at the current position of the terminal screen follows the multimedia playback The progress changes to display the next sentence.
- a text special effect processing device including:
- the request receiving module is configured to receive a request for obtaining text special effect resources sent by the client; wherein, the text special effect resources are used to realize the display special effects of text associated with multimedia;
- the resource sending module is configured to send the text special effect resource to the client, so that the client performs special effect processing on at least two sentences according to the text special effect resource, so that the text displayed at the current position of the terminal screen follows the The playback progress of the multimedia is changed to display the next sentence.
- an electronic device including:
- Memory for storing non-transitory computer readable instructions
- the processor is configured to run the computer-readable instructions to enable the processor to implement the above-mentioned text special effect processing method when executed.
- a computer-readable storage medium for storing non-transitory computer-readable instructions.
- the non-transitory computer-readable instructions are executed by a computer, the The computer executes the above-mentioned text special effect processing method.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
Claims (15)
- 一种文字特效处理方法,其特征在于,包括:向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;接收所述服务器发送的所述文字特效资源;根据所述文字特效资源对至少两句文字进行特效处理,使得在终端屏幕当前位置显示的文字跟随所述多媒体的播放进度变换为显示下一句文字。
- 根据权利要求1所述的方法,其特征在于,所述根据所述文字特效资源对至少两句文字进行特效处理,使得在终端屏幕当前位置显示的文字跟随所述多媒体的播放进度变换为显示下一句文字,包括:获取所述多媒体的播放进度对应的时间戳和所述时间戳对应的当前文字;根据所述时间戳确定所述当前文字的显示透明度;根据所述显示透明度控制所述当前文字跟随所述多媒体的播放进度从所述终端屏幕消失,并将下一句文字显示在所述终端屏幕上。
- 根据权利要求2所述的方法,其特征在于,所述根据所述显示透明度控制所述当前文字跟随所述多媒体的播放进度从所述终端屏幕消失,并将下一句文字显示在所述终端屏幕上,包括:确定所述下一句文字在所述终端屏幕的显示位置;根据所述显示透明度控制所述当前文字跟随所述多媒体的播放 进度逐渐从所述终端屏幕淡出,并在所述显示位置逐渐淡入所述下一句文字。
- 根据权利要求3所述的方法,其特征在于,所述确定所述下一句文字在所述终端屏幕的显示位置,包括:在所述当前位置的基础上加上预设偏移量作为目标位置;若所述目标位置未超出所述终端屏幕的第一预设位置,则将所述目标位置作为所述显示位置;或,若所述目标位置超出所述终端屏幕的第一预设位置,则将所述终端屏幕的第二预设位置作为所述显示位置。
- 根据权利要求2所述的方法,其特征在于,所述根据所述显示透明度控制所述当前文字跟随所述多媒体的播放进度从所述终端屏幕消失,并将下一句文字显示在所述终端屏幕上,包括:获取所述下一句文字的时间戳;根据所述当前文字的时间戳和所述下一句文字的时间戳确定时间长度;根据所述显示透明度控制所述当前文字跟随所述多媒体的播放进度从所述终端屏幕消失,并根据所述时间长度将所述下一句文字逐渐显示在所述终端屏幕上。
- 根据权利要求2所述的方法,其特征在于,所述根据所述显示透明度控制所述当前文字跟随所述多媒体的播放进度从所述终端屏幕消失,并将下一句文字显示在所述终端屏幕上,包括:确定所述当前文字的缩放系数;根据所述显示透明度和所述缩放系数控制所述当前文字跟随所述多媒体的播放进度进行缩放的同时从所述终端屏幕消失,并将所述下一句文字显示在所述终端屏幕上。
- 根据权利要求6所述的方法,其特征在于,所述确定所述当前文字的缩放系数,包括:根据所述当前文字的时间戳和所述下一句文字的时间戳确定时间长度;对所述时间长度进行等分,根据等分份数和所述缩放系数的最大值确定第一正比例函数;根据所述第一正比例函数和所述播放进度确定实时缩放系数。
- 根据权利要求7所述的方法,其特征在于,所述方法还包括:根据所述等分份数和所述显示透明度的最大值确定第二正比例函数;根据所述第二正比例函数和所述播放进度确定实时显示透明度。
- 根据权利要求2所述的方法,其特征在于,所述根据所述显示透明度控制所述当前文字跟随所述多媒体的播放进度从所述终端屏幕消失,并将下一句文字显示在所述终端屏幕上,包括:根据预设透明度将所述下一句文字显示在所述终端屏幕的第一位置;根据所述显示透明度和所述将所述播放进度将所述当前文字从所述当前位置移动到所述终端屏幕的第二位置处消失;将所述下一句文字由所述第一位置移动至所述当前位置显示。
- 根据权利要求1-9任一项所述的方法,其特征在于,所述方法还包括:根据所述文字特效资源中的脚本文件运行本地的脚本程序;通过所述脚本程序对所述文字进行特效处理,使得在终端屏幕当前位置显示的文字跟随所述多媒体的播放进度变换为显示下一句文字。
- 一种文字特效处理方法,其特征在于,包括:接收客户端发送的获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;向所述客户端发送所述文字特效资源,以使所述客户端根据所述文字特效资源对至少两句文字进行特效处理,使得在终端屏幕当前位置显示的文字跟随所述多媒体的播放进度变换为显示下一句文字。
- 一种文字特效处理装置,其特征在于,包括:请求发送模块,用于向服务器发送获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示特效;资源接收模块,用于接收所述服务器发送的所述文字特效资源;特效显示模块,用于根据所述文字特效资源对至少两句文字进行特效处理,使得在终端屏幕当前位置显示的文字跟随所述多媒体的播放进度变换为显示下一句文字。
- 一种文字特效处理装置,其特征在于,包括:请求接收模块,用于接收客户端发送的获取文字特效资源的请求;其中,所述文字特效资源用于实现与多媒体相关联的文字的显示 特效;资源发送模块,用于向所述客户端发送所述文字特效资源,以使所述客户端根据所述文字特效资源对至少两句文字进行特效处理,使得在终端屏幕当前位置显示的文字跟随所述多媒体的播放进度变换为显示下一句文字。
- 一种电子设备,包括:存储器,用于存储非暂时性计算机可读指令;以及处理器,用于运行所述计算机可读指令,使得所述处理器执行时实现根据权利要求1-10任一项所述的文字特效处理方法及权利要求11所述的文字特效处理方法。
- 一种计算机可读存储介质,用于存储非暂时性计算机可读指令,当所述非暂时性计算机可读指令由计算机执行时,使得所述计算机执行权利要求1-10任一项所述的文字特效处理方法及权利要求11所述的文字特效处理方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910708517.9A CN112395825A (zh) | 2019-08-01 | 2019-08-01 | 文字特效处理方法及装置 |
CN201910708517.9 | 2019-08-01 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021018177A1 true WO2021018177A1 (zh) | 2021-02-04 |
Family
ID=74228223
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/105438 WO2021018177A1 (zh) | 2019-08-01 | 2020-07-29 | 文字特效处理方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112395825A (zh) |
WO (1) | WO2021018177A1 (zh) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150109532A1 (en) * | 2013-10-23 | 2015-04-23 | Google Inc. | Customizing mobile media captioning based on mobile media rendering |
CN104899184A (zh) * | 2014-03-04 | 2015-09-09 | 腾讯科技(深圳)有限公司 | 文字处理方法、装置及系统 |
CN106340287A (zh) * | 2016-08-25 | 2017-01-18 | 广安欧奇仕电子科技有限公司 | 一种手机歌曲点唱的处理方法 |
CN108055592A (zh) * | 2017-11-21 | 2018-05-18 | 广州视源电子科技股份有限公司 | 字幕显示方法、装置、移动终端及存储介质 |
CN109672919A (zh) * | 2018-12-26 | 2019-04-23 | 新华三技术有限公司合肥分公司 | 字幕显示方法、装置及用户终端 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102207208B1 (ko) * | 2014-07-31 | 2021-01-25 | 삼성전자주식회사 | 음악 정보 시각화 방법 및 장치 |
CN107943964A (zh) * | 2017-11-27 | 2018-04-20 | 腾讯音乐娱乐科技(深圳)有限公司 | 歌词显示方法、装置及计算机可读存储介质 |
CN109257499B (zh) * | 2018-09-30 | 2021-07-27 | 腾讯音乐娱乐科技(深圳)有限公司 | 一种歌词的动态展示方法及装置 |
CN109902282B (zh) * | 2019-02-20 | 2023-05-09 | 腾讯音乐娱乐科技(深圳)有限公司 | 一种文字排版方法、装置和存储介质 |
-
2019
- 2019-08-01 CN CN201910708517.9A patent/CN112395825A/zh active Pending
-
2020
- 2020-07-29 WO PCT/CN2020/105438 patent/WO2021018177A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150109532A1 (en) * | 2013-10-23 | 2015-04-23 | Google Inc. | Customizing mobile media captioning based on mobile media rendering |
CN104899184A (zh) * | 2014-03-04 | 2015-09-09 | 腾讯科技(深圳)有限公司 | 文字处理方法、装置及系统 |
CN106340287A (zh) * | 2016-08-25 | 2017-01-18 | 广安欧奇仕电子科技有限公司 | 一种手机歌曲点唱的处理方法 |
CN108055592A (zh) * | 2017-11-21 | 2018-05-18 | 广州视源电子科技股份有限公司 | 字幕显示方法、装置、移动终端及存储介质 |
CN109672919A (zh) * | 2018-12-26 | 2019-04-23 | 新华三技术有限公司合肥分公司 | 字幕显示方法、装置及用户终端 |
Also Published As
Publication number | Publication date |
---|---|
CN112395825A (zh) | 2021-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7412553B2 (ja) | 情報表示方法及び装置、電子デバイス、並びにコンピュータ読取可能媒体 | |
US20230107220A1 (en) | Video processing method and apparatus, electronic device, and computer readable storage medium | |
WO2021135626A1 (zh) | 菜单项选择方法、装置、可读介质及电子设备 | |
WO2021114979A1 (zh) | 视频页面显示方法、装置、电子设备和计算机可读介质 | |
WO2021190129A1 (zh) | 页面处理方法、装置、电子设备及计算机可读存储介质 | |
CN111459364B (zh) | 图标更新方法、装置和电子设备 | |
CN110070592B (zh) | 特效包的生成方法、装置和硬件装置 | |
CN112307375A (zh) | 页面展示方法、装置、电子设备和计算机可读介质 | |
CN110837333A (zh) | 调整多媒体文件的播放进度方法、装置、终端及存储介质 | |
WO2023216936A1 (zh) | 视频播放方法、装置、电子设备、存储介质和程序产品 | |
WO2020224294A1 (zh) | 用于处理信息的系统、方法和装置 | |
CN114363686B (zh) | 多媒体内容的发布方法、装置、设备和介质 | |
CN112181571A (zh) | 浮窗显示方法、装置、终端及存储介质 | |
CN114187170B (zh) | 图像特效包的生成方法、装置、设备及存储介质 | |
CN111259636A (zh) | 文档渲染方法、装置和电子设备 | |
CN113766303B (zh) | 多屏互动方法、装置、设备及存储介质 | |
CN111273830A (zh) | 显示数据方法、装置、电子设备和计算机可读介质 | |
JP2024515693A (ja) | テーブル展示方法、装置、機器及び媒体 | |
EP4134904A1 (en) | Image special effect configuration method, image recognition method, apparatuses, and electronic device | |
WO2021114981A1 (zh) | 视频播放页面显示方法、装置、电子设备和介质 | |
WO2024027648A1 (zh) | 信息的显示方法、装置、电子设备和存储介质 | |
WO2024001893A1 (zh) | 素材展示方法、装置、设备、计算机可读存储介质及产品 | |
WO2024022179A1 (zh) | 媒体内容的显示方法、装置、电子设备和存储介质 | |
WO2023207543A1 (zh) | 媒体内容的发布方法、装置、设备、存储介质和程序产品 | |
CN111460211A (zh) | 音频信息播放方法、装置和电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20846971 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20846971 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20846971 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20846971 Country of ref document: EP Kind code of ref document: A1 |