CN110620960B - Video subtitle processing method and device - Google Patents

Video subtitle processing method and device Download PDF

Info

Publication number
CN110620960B
CN110620960B CN201810639251.2A CN201810639251A CN110620960B CN 110620960 B CN110620960 B CN 110620960B CN 201810639251 A CN201810639251 A CN 201810639251A CN 110620960 B CN110620960 B CN 110620960B
Authority
CN
China
Prior art keywords
word
subtitle
content
video
subtitle content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810639251.2A
Other languages
Chinese (zh)
Other versions
CN110620960A (en
Inventor
张磊
魏茉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201810639251.2A priority Critical patent/CN110620960B/en
Publication of CN110620960A publication Critical patent/CN110620960A/en
Application granted granted Critical
Publication of CN110620960B publication Critical patent/CN110620960B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a subtitle processing method and device for video. The method comprises the following steps: detecting whether the caption of the video contains caption content corresponding to words in a specified word library; if the first caption content in the caption corresponds to the first word in the specified word library, generating a hyperlink corresponding to the first caption content according to the link corresponding to the first word; and replacing the first subtitle content with the hyperlink corresponding to the first subtitle content in the subtitle. According to the method and the device, when a user watches the video, the interpretation information of the first word can be checked by triggering the hyperlink corresponding to the content of the first caption in the caption, the user does not need to manually search the interpretation information of the first word through a search engine, and the operation convenience is greatly improved.

Description

Video subtitle processing method and device
Technical Field
The present disclosure relates to the field of video technologies, and in particular, to a method and an apparatus for processing subtitles of a video.
Background
Currently, when a user watches a video, if a new word, a new word or an interested word is seen in a subtitle and the user wants to query the pronunciation or the paraphrase of the user, the user needs to open a browser and search through a search engine to obtain a result. This way the user operation is cumbersome.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for processing subtitles of a video.
According to a first aspect of the present disclosure, there is provided a subtitle processing method for a video, including:
detecting whether the caption of the video contains caption content corresponding to words in a specified word library;
if the first caption content in the caption corresponds to the first word in the specified word library, generating a hyperlink corresponding to the first caption content according to the link corresponding to the first word;
and replacing the first subtitle content with the hyperlink corresponding to the first subtitle content in the subtitle.
In a possible implementation manner, generating a hyperlink corresponding to the first subtitle content according to the link corresponding to the first word includes:
and taking the first subtitle content as the text of the hyperlink corresponding to the first subtitle content, taking the link corresponding to the first word as the link of the hyperlink corresponding to the first subtitle content, and generating the hyperlink corresponding to the first subtitle content.
In one possible implementation, the method further includes:
and managing the specified word stock according to the click rate of the hyperlink corresponding to the words in the specified word stock.
In a possible implementation manner, managing the specified word bank according to a click rate of a hyperlink corresponding to a word in the specified word bank includes:
and if the click rate of the hyperlink corresponding to the second word in the specified word library is smaller than a first threshold value, deleting the second word from the specified word library.
According to a second aspect of the present disclosure, there is provided a subtitle processing method for a video, including:
when a video subtitle comprises a hyperlink corresponding to first subtitle content, detecting a trigger operation aiming at the hyperlink corresponding to the first subtitle content, wherein the hyperlink corresponding to the first subtitle content is generated according to a link of a first word in a specified word library, and the first subtitle content corresponds to the first word;
and if the triggering operation aiming at the hyperlink corresponding to the first subtitle content is detected, displaying the explanation information of the first word.
In one possible implementation, displaying the interpretation information of the first word includes:
and opening a link corresponding to the first word through a floating window, and displaying the explanation information of the first word.
In one possible implementation, displaying the interpretation information of the first word includes:
and opening a link corresponding to the first word through a video window, and displaying the explanation information of the first word, wherein the video window represents a window for playing the video.
According to a third aspect of the present disclosure, there is provided a subtitle processing apparatus for a video, comprising:
the first detection module is used for detecting whether the caption of the video contains caption content corresponding to words in the specified word library;
the generating module is used for generating a hyperlink corresponding to the first subtitle content according to the link corresponding to the first word if the first subtitle content in the subtitle corresponds to the first word in the specified word library;
and the replacing module is used for replacing the first subtitle content with the hyperlink corresponding to the first subtitle content in the subtitle.
In one possible implementation, the generating module is configured to:
and taking the first subtitle content as the text of the hyperlink corresponding to the first subtitle content, taking the link corresponding to the first word as the link of the hyperlink corresponding to the first subtitle content, and generating the hyperlink corresponding to the first subtitle content.
In one possible implementation, the apparatus further includes:
and the management module is used for managing the specified word stock according to the click rate of the hyperlink corresponding to the words in the specified word stock.
In one possible implementation, the management module is configured to:
and if the click rate of the hyperlink corresponding to the second word in the specified word library is smaller than a first threshold value, deleting the second word from the specified word library.
According to a fourth aspect of the present disclosure, there is provided a subtitle processing apparatus for a video, comprising:
the second detection module is used for detecting a trigger operation aiming at a hyperlink corresponding to first subtitle content when the subtitle of a video contains the hyperlink corresponding to the first subtitle content, wherein the hyperlink corresponding to the first subtitle content is generated according to a link of a first word in a specified word library, and the first subtitle content corresponds to the first word;
and the display module is used for displaying the explanation information of the first word if the trigger operation of the hyperlink corresponding to the first caption content is detected.
In one possible implementation, the display module is configured to:
and opening a link corresponding to the first word through a floating window, and displaying the explanation information of the first word.
In one possible implementation, the display module is configured to:
and opening a link corresponding to the first word through a video window, and displaying the explanation information of the first word, wherein the video window represents a window for playing the video.
According to a fifth aspect of the present disclosure, there is provided a subtitle processing apparatus for a video, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the method of the first aspect.
According to a sixth aspect of the present disclosure, there is provided a subtitle processing apparatus for a video, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the method of the second aspect described above.
According to a seventh aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of the above third aspect.
According to an eighth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of the fourth aspect described above.
According to the video subtitle processing method and device, whether the subtitle of the video contains the subtitle content corresponding to the words in the specified word stock is detected, if the first subtitle content in the subtitle corresponds to the first words in the specified word stock, the hyperlink corresponding to the first subtitle content is generated according to the link corresponding to the first words, and the hyperlink corresponding to the first subtitle content is adopted to replace the first subtitle content in the subtitle, so that when a user watches the video, the hyperlink corresponding to the first subtitle content in the subtitle can be triggered to check the explanation information of the first words, the user does not need to manually search the explanation information of the first words through a search engine, and the operation convenience is greatly improved.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 illustrates a flowchart of a subtitle processing method for video according to an embodiment of the present disclosure.
Fig. 2 shows an exemplary flowchart of a subtitle processing method for video according to an embodiment of the present disclosure.
Fig. 3 illustrates a flowchart of a subtitle processing method for video according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram illustrating that a hyperlink corresponding to first subtitle content is included in a subtitle of a video in a subtitle processing method for the video according to an embodiment of the present disclosure.
Fig. 5 illustrates a block diagram of a subtitle processing apparatus for video according to an embodiment of the present disclosure.
Fig. 6 shows an exemplary block diagram of a subtitle processing apparatus for video according to an embodiment of the present disclosure.
Fig. 7 illustrates a block diagram of a subtitle processing apparatus for video according to an embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating an apparatus 800 for subtitle processing for video according to an example embodiment.
Fig. 9 is a block diagram illustrating an apparatus 1900 for subtitle processing for video according to an example embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Fig. 1 illustrates a flowchart of a subtitle processing method for video according to an embodiment of the present disclosure. The method can be applied to a server. As shown in fig. 1, the method includes steps S11 through S13.
In step S11, it is detected whether or not the subtitles of the video contain subtitle content corresponding to a word in the specified word library.
The video in the embodiment of the present disclosure may be any one of videos in a video website. The specified word stock may contain words and phrases that most users do not know or are unfamiliar with. Where words may include words and phrases. For example, words may include proper nouns and the like.
In step S12, if the first subtitle content in the subtitle corresponds to the first word in the specified word library, a hyperlink corresponding to the first subtitle content is generated according to the link corresponding to the first word.
In one possible implementation, if the first subtitle content is the same as the first word, it may be determined that the first subtitle content corresponds to the first word.
In another possible implementation manner, if the first subtitle content is identical to the paraphrase of the first word and there is no word identical to the first subtitle content in the specified word library, it may be determined that the first subtitle content corresponds to the first word. The meaning of the first caption content and the first word may be completely the same, or the cognition of most people on the first caption content and the first word is the same. For example, the first subtitle content is "digital camera", and the first word is "digital camera"; for another example, the first subtitle content is "Kilimamazono", and the first word is "Kilimamazon".
In another possible implementation manner, if the first subtitle content is different from the first word and the first subtitle content is a complex form of the first word or a simplified form of the first word, it may be determined that the first subtitle content corresponds to the first word.
It should be noted that, in the embodiment of the present disclosure, the first subtitle content refers to a certain subtitle content in the subtitles, and the "first" in the first subtitle content is only for convenience of expression and reference herein, and does not mean that there is a first subtitle content corresponding to the first subtitle content in a specific implementation manner of the present disclosure. "first" in the first word, "first" in the first threshold, and so on.
In one possible implementation manner, generating a hyperlink corresponding to the first subtitle content according to the link corresponding to the first word includes: and taking the first subtitle content as the text of the hyperlink corresponding to the first subtitle content, and taking the link corresponding to the first word as the link of the hyperlink corresponding to the first subtitle content to generate the hyperlink corresponding to the first subtitle content. In this implementation, the text content of the hyperlink corresponding to the first subtitle content is the same as the first subtitle content. For example, the first subtitle content is "", and the text content of the hyperlink corresponding to the first subtitle content is also "".
In step S13, the first subtitle content is replaced with the hyperlink corresponding to the first subtitle content in the subtitle.
In one possible implementation manner, in the subtitles, a display manner of the hyperlink corresponding to the first subtitle content is different from a display manner of the subtitle content which is not the hyperlink.
As an example of this implementation, the text in the hyperlink corresponding to the first subtitle content is underlined. The underline may be a single underline, a double underline, a dotted line, or the like.
As another example of this implementation, the font in the hyperlink corresponding to the first subtitle content is bolded.
As another example of this implementation, the color of the font in the hyperlink corresponding to the first subtitle content is different from the color of the font in the subtitle content that is not the hyperlink.
As another example of this implementation, the font size in the hyperlink corresponding to the first subtitle content is larger than the font size in the subtitle content that is not the hyperlink.
It should be noted that, although the above example describes a manner in which the hyperlink corresponding to the first subtitle content is displayed differently from a manner in which the subtitle content that is not the hyperlink is displayed, it can be understood by those skilled in the art that the present disclosure should not be limited thereto. The display mode of the hyperlink corresponding to the first subtitle content and the display mode of the subtitle content which is not the hyperlink can be flexibly set by a person skilled in the art according to the actual application scene requirement and/or personal preference, so that the display modes are different.
In another possible implementation manner, in the subtitles, the display manner of the hyperlink corresponding to the first subtitle content is the same as the display manner of the subtitle content which is not the hyperlink.
According to the method and the device, whether the caption of the video contains the caption content corresponding to the words in the specified word library is detected, if the first caption content in the caption corresponds to the first words in the specified word library, the hyperlink corresponding to the first caption content is generated according to the link corresponding to the first words, and the hyperlink corresponding to the first caption content is adopted to replace the first caption content in the caption, so that when a user watches the video, the explanation information of the first words can be checked by triggering the hyperlink corresponding to the first caption content in the caption, the user does not need to manually search the explanation information of the first words through a search engine, and the operation convenience is greatly improved.
Fig. 2 shows an exemplary flowchart of a subtitle processing method for video according to an embodiment of the present disclosure. As shown in fig. 2, the method may include steps S11 through S14.
In step S11, it is detected whether or not the subtitles of the video contain subtitle content corresponding to a word in the specified word library.
In step S12, if the first subtitle content in the subtitle corresponds to the first word in the specified word library, a hyperlink corresponding to the first subtitle content is generated according to the link corresponding to the first word.
In step S13, the first subtitle content is replaced with the hyperlink corresponding to the first subtitle content in the subtitle.
In step S14, the specified word library is managed based on the click rate of the hyperlink corresponding to the word in the specified word library.
In a possible implementation manner, the hyperlink corresponding to the second word in the specified word library may include hyperlinks corresponding to all subtitle content corresponding to the second word in the video.
In another possible implementation manner, the hyperlinks corresponding to the second word in the specified word library may include hyperlinks corresponding to all subtitle content corresponding to the second word in all videos.
In another possible implementation manner, the hyperlink corresponding to the second word in the specified word library may include hyperlinks corresponding to all subtitle content corresponding to the second word in the specified videos.
In another possible implementation manner, the hyperlinks corresponding to the second word in the specified word library may include hyperlinks corresponding to all subtitle content corresponding to the second word in all videos in which the playback amount is greater than the playback amount threshold in the specified time period. For example, the specified time period may be within one month.
It should be noted that, although the above example describes the hyperlink corresponding to the second word in the specified word library, the skilled person can understand that the disclosure should not be limited thereto. The person skilled in the art can flexibly determine the specific meaning of the hyperlink corresponding to the second word in the specified word library according to the actual application scene requirement and/or personal preference.
In this embodiment of the disclosure, the click rate of the hyperlink corresponding to the second word may be equal to the ratio of the number of times the hyperlink corresponding to the second word is clicked to the number of times the hyperlink corresponding to the second word is displayed.
In one possible implementation manner, managing the specified word library according to the click rate of the hyperlink corresponding to the word in the specified word library includes: and if the click rate of the hyperlink corresponding to the second word in the specified word library is smaller than the first threshold value, deleting the second word from the specified word library. In this implementation, if the click rate of the hyperlink corresponding to the second word in the specified word library is less than the first threshold, it may be indicated to a large extent that most users know or are familiar with the second word. Therefore, by deleting the second word from the specified word bank when the click rate of the hyperlink corresponding to the second word in the specified word bank is less than the first threshold, the creation of hyperlinks to words known or more familiar to most users can be avoided.
Fig. 3 illustrates a flowchart of a subtitle processing method for video according to an embodiment of the present disclosure. The method can be applied to terminal equipment such as a PC (Personal Computer), a tablet Computer or a mobile phone. As shown in fig. 3, the method may include step S31 and step S32.
In step S31, when the subtitle of the video includes a hyperlink corresponding to the first subtitle content, the hyperlink corresponding to the first subtitle content is generated according to a link of the first word in the specified word library, and the first subtitle content corresponds to the first word, the trigger operation for the hyperlink corresponding to the first subtitle content is detected.
In a possible implementation manner, the trigger operation for the hyperlink corresponding to the first subtitle content may be any type of trigger operation.
In another possible implementation manner, the trigger operation for the hyperlink corresponding to the first subtitle content may be a specified type of trigger operation. For example, the specified type of trigger operation may be a touch operation or a click operation.
Fig. 4 is a schematic diagram illustrating that a hyperlink corresponding to first subtitle content is included in a subtitle of a video in a subtitle processing method for the video according to an embodiment of the present disclosure. In the example shown in fig. 4, the first subtitle content is "kimura hill", the display mode of the hyperlink corresponding to the first subtitle content is different from the display mode of the subtitle content not being the hyperlink, and the text in the hyperlink corresponding to the first subtitle content is underlined.
In step S32, if a trigger operation for the hyperlink corresponding to the first subtitle content is detected, the interpretation information of the first word is displayed.
In one possible implementation, displaying the interpretation information of the first word includes: and opening a link corresponding to the first word through the floating window, and displaying the explanation information of the first word.
As an example of this implementation, in the process of displaying the interpretation information of the first word through the floating window, the video may continue to be played through the video window. In this example, displaying the interpretation information of the first word does not interrupt the user's process of viewing the video.
As another example of this implementation, the playing of the video may be paused while the interpretation information for the first word is displayed through the floating window. In this example, the floating window may be closed and the video may continue to play upon detecting an instruction to close the floating window.
In one possible implementation, displaying the interpretation information of the first word includes: and opening a link corresponding to the first word through a video window, and displaying the interpretation information of the first word, wherein the video window represents a window for playing the video. In this implementation manner, if a trigger operation for a hyperlink corresponding to the first subtitle content is detected, the video window may jump to a page of the interpretation information of the first word, and the interpretation information of the first word is displayed.
According to the embodiment of the disclosure, when the video subtitle contains the hyperlink corresponding to the first subtitle content, the trigger operation of the hyperlink corresponding to the first subtitle content is detected, and if the trigger operation of the hyperlink corresponding to the first subtitle content is detected, the explanation information of the first word is displayed, so that when a user watches the video, the explanation information of the first word can be checked by triggering the hyperlink corresponding to the first subtitle content in the subtitle, the user does not need to manually search the explanation information of the first word through a search engine, and the operation convenience is greatly improved.
Fig. 5 illustrates a block diagram of a subtitle processing apparatus for video according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus includes: a first detection module 51, configured to detect whether a subtitle of a video includes subtitle content corresponding to a word in a specified word library; the generating module 52 is configured to generate a hyperlink corresponding to the first subtitle content according to the link corresponding to the first word if the first subtitle content in the subtitle corresponds to the first word in the specified word library; and a replacing module 53, configured to replace the first subtitle content with a hyperlink corresponding to the first subtitle content in the subtitle.
In one possible implementation, the generation module 52 is configured to: and taking the first subtitle content as the text of the hyperlink corresponding to the first subtitle content, and taking the link corresponding to the first word as the link of the hyperlink corresponding to the first subtitle content to generate the hyperlink corresponding to the first subtitle content.
Fig. 6 shows an exemplary block diagram of a subtitle processing apparatus for video according to an embodiment of the present disclosure. As shown in fig. 6, in a possible implementation, the apparatus further includes: and the management module 54 is configured to manage the specified word bank according to the click rate of the hyperlink corresponding to the word in the specified word bank.
In one possible implementation, the management module 54 is configured to: and if the click rate of the hyperlink corresponding to the second word in the specified word library is smaller than the first threshold value, deleting the second word from the specified word library.
According to the method and the device, whether the caption of the video contains the caption content corresponding to the words in the specified word library is detected, if the first caption content in the caption corresponds to the first words in the specified word library, the hyperlink corresponding to the first caption content is generated according to the link corresponding to the first words, and the hyperlink corresponding to the first caption content is adopted to replace the first caption content in the caption, so that when a user watches the video, the explanation information of the first words can be checked by triggering the hyperlink corresponding to the first caption content in the caption, the user does not need to manually search the explanation information of the first words through a search engine, and the operation convenience is greatly improved.
Fig. 7 illustrates a block diagram of a subtitle processing apparatus for video according to an embodiment of the present disclosure. As shown in fig. 7, the apparatus includes: the second detection module 71 is configured to detect, when a video subtitle includes a hyperlink corresponding to first subtitle content, a trigger operation for the hyperlink corresponding to the first subtitle content, where the hyperlink corresponding to the first subtitle content is generated according to a link of a first word in a specified word library, and the first subtitle content corresponds to the first word; and the display module 72 is configured to display the interpretation information of the first word if a trigger operation for the hyperlink corresponding to the first subtitle content is detected.
In one possible implementation, the display module 72 is configured to: and opening a link corresponding to the first word through the floating window, and displaying the explanation information of the first word.
In one possible implementation, the display module 72 is configured to: and opening a link corresponding to the first word through a video window, and displaying the interpretation information of the first word, wherein the video window represents a window for playing the video.
According to the embodiment of the disclosure, when the video subtitle contains the hyperlink corresponding to the first subtitle content, the trigger operation of the hyperlink corresponding to the first subtitle content is detected, and if the trigger operation of the hyperlink corresponding to the first subtitle content is detected, the explanation information of the first word is displayed, so that when a user watches the video, the explanation information of the first word can be checked by triggering the hyperlink corresponding to the first subtitle content in the subtitle, the user does not need to manually search the explanation information of the first word through a search engine, and the operation convenience is greatly improved.
Fig. 8 is a block diagram illustrating an apparatus 800 for subtitle processing for video according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium, such as the memory 804, is also provided that includes computer program instructions executable by the processor 820 of the device 800 to perform the above-described methods.
Fig. 9 is a block diagram illustrating an apparatus 1900 for subtitle processing for video according to an example embodiment. For example, the apparatus 1900 may be provided as a server. Referring to fig. 9, the device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The device 1900 may also include a power component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input/output (I/O) interface 1958. The device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium, such as the memory 1932, is also provided that includes computer program instructions executable by the processing component 1922 of the apparatus 1900 to perform the above-described methods.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (16)

1. A method for processing subtitles of a video, comprising:
detecting whether the caption of the video contains caption content corresponding to words in a specified word library;
if first subtitle content in the subtitles corresponds to a first word in the specified word library, taking the first subtitle content as a text of a hyperlink corresponding to the first subtitle content, taking a link corresponding to the first word as a link of the hyperlink corresponding to the first subtitle content, and generating the hyperlink corresponding to the first subtitle content;
and replacing the first subtitle content with the hyperlink corresponding to the first subtitle content in the subtitle.
2. The method of claim 1, further comprising:
and managing the specified word stock according to the click rate of the hyperlink corresponding to the words in the specified word stock.
3. The method of claim 1, wherein managing the specified word bank according to a click rate of a hyperlink corresponding to a word in the specified word bank comprises:
and if the click rate of the hyperlink corresponding to the second word in the specified word library is smaller than a first threshold value, deleting the second word from the specified word library.
4. A subtitle processing method for video, using the subtitle of claim 1, comprising:
when a video subtitle comprises a hyperlink corresponding to first subtitle content, detecting a trigger operation aiming at the hyperlink corresponding to the first subtitle content, wherein a text of the hyperlink corresponding to the first subtitle content is the first subtitle content, a link of the hyperlink corresponding to the first subtitle content is a link corresponding to the first word, and the first subtitle content corresponds to the first word;
and if the triggering operation aiming at the hyperlink corresponding to the first subtitle content is detected, displaying the explanation information of the first word.
5. The method of claim 4, wherein displaying the interpretation information of the first word comprises:
and opening a link corresponding to the first word through a floating window, and displaying the explanation information of the first word.
6. The method of claim 4, wherein displaying the interpretation information of the first word comprises:
and opening a link corresponding to the first word through a video window, and displaying the explanation information of the first word, wherein the video window represents a window for playing the video.
7. A subtitle processing apparatus for video, comprising:
the first detection module is used for detecting whether the caption of the video contains caption content corresponding to words in the specified word library;
a generating module, configured to, if a first subtitle content in the subtitles corresponds to a first word in the specified word library, use the first subtitle content as a text of a hyperlink corresponding to the first subtitle content, use a link corresponding to the first word as a link of the hyperlink corresponding to the first subtitle content, and generate the hyperlink corresponding to the first subtitle content;
and the replacing module is used for replacing the first subtitle content with the hyperlink corresponding to the first subtitle content in the subtitle.
8. The apparatus of claim 7, further comprising:
and the management module is used for managing the specified word stock according to the click rate of the hyperlink corresponding to the words in the specified word stock.
9. The apparatus of claim 8, wherein the management module is configured to:
and if the click rate of the hyperlink corresponding to the second word in the specified word library is smaller than a first threshold value, deleting the second word from the specified word library.
10. A subtitle processing apparatus for video, comprising:
the second detection module is configured to detect, when a video subtitle includes a hyperlink corresponding to first subtitle content, a trigger operation for the hyperlink corresponding to the first subtitle content, where a text of the hyperlink corresponding to the first subtitle content is the first subtitle content, a link of the hyperlink corresponding to the first subtitle content is a link corresponding to the first word, and the first subtitle content corresponds to the first word;
and the display module is used for displaying the explanation information of the first word if the trigger operation of the hyperlink corresponding to the first caption content is detected.
11. The apparatus of claim 10, wherein the display module is configured to:
and opening a link corresponding to the first word through a floating window, and displaying the explanation information of the first word.
12. The apparatus of claim 10, wherein the display module is configured to:
and opening a link corresponding to the first word through a video window, and displaying the explanation information of the first word, wherein the video window represents a window for playing the video.
13. A subtitle processing apparatus for video, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any one of claims 1 to 3.
14. A subtitle processing apparatus for video, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any one of claims 4 to 6.
15. A non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of any one of claims 1 to 3.
16. A non-transitory computer readable storage medium having stored thereon computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of any of claims 4 to 6.
CN201810639251.2A 2018-06-20 2018-06-20 Video subtitle processing method and device Active CN110620960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810639251.2A CN110620960B (en) 2018-06-20 2018-06-20 Video subtitle processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810639251.2A CN110620960B (en) 2018-06-20 2018-06-20 Video subtitle processing method and device

Publications (2)

Publication Number Publication Date
CN110620960A CN110620960A (en) 2019-12-27
CN110620960B true CN110620960B (en) 2022-01-25

Family

ID=68920935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810639251.2A Active CN110620960B (en) 2018-06-20 2018-06-20 Video subtitle processing method and device

Country Status (1)

Country Link
CN (1) CN110620960B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113068077B (en) * 2020-01-02 2023-08-25 腾讯科技(深圳)有限公司 Subtitle file processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071554A (en) * 2017-01-16 2017-08-18 腾讯科技(深圳)有限公司 Method for recognizing semantics and device
CN107180058A (en) * 2016-03-11 2017-09-19 百度在线网络技术(北京)有限公司 A kind of method and apparatus for being inquired about based on caption information
CN107357768A (en) * 2017-07-26 2017-11-17 王�华 A kind of method and system for carrying out new word mark

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180058A (en) * 2016-03-11 2017-09-19 百度在线网络技术(北京)有限公司 A kind of method and apparatus for being inquired about based on caption information
CN107071554A (en) * 2017-01-16 2017-08-18 腾讯科技(深圳)有限公司 Method for recognizing semantics and device
CN107357768A (en) * 2017-07-26 2017-11-17 王�华 A kind of method and system for carrying out new word mark

Also Published As

Publication number Publication date
CN110620960A (en) 2019-12-27

Similar Documents

Publication Publication Date Title
CN107948708B (en) Bullet screen display method and device
CN108932253B (en) Multimedia search result display method and device
CN108259991B (en) Video processing method and device
US20200007944A1 (en) Method and apparatus for displaying interactive attributes during multimedia playback
CN114003326B (en) Message processing method, device, equipment and storage medium
CN109947981B (en) Video sharing method and device
CN109063101B (en) Video cover generation method and device
CN106960014B (en) Associated user recommendation method and device
CN108833952B (en) Video advertisement putting method and device
CN110519655B (en) Video editing method, device and storage medium
CN108495168B (en) Bullet screen information display method and device
EP3147802B1 (en) Method and apparatus for processing information
CN107122430B (en) Search result display method and device
CN110234030B (en) Bullet screen information display method and device
CN108320208B (en) Vehicle recommendation method and device
CN107147936B (en) Display control method and device for barrage
WO2019095913A1 (en) Interface display method and apparatus
WO2019109704A1 (en) Information display method and apparatus
CN108174269B (en) Visual audio playing method and device
WO2018188410A1 (en) Feedback response method and apparatus
CN106331328B (en) Information prompting method and device
CN109992754B (en) Document processing method and device
CN109756783B (en) Poster generation method and device
CN110955800A (en) Video retrieval method and device
CN110620960B (en) Video subtitle processing method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200520

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100000 room 26, 9 Building 9, Wangjing east garden four, Chaoyang District, Beijing.

Applicant before: BEIJING YOUKU TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant