1. Technical Field
Embodiments of the present disclosure relate to query processing, and more specifically relates to techniques for searching video content in a video file.
2. Description of Related Art
A media player plays multimedia files including audio and video. Media players include icons for controlling playing of the multimedia files. Examples of these icons are a play button, a pause button, a stop button, a fast forward button, and a fast backward button, all in virtual form.
When playing a video forwards or backwards, a user must to repeatedly press the fast forward button or the fast backward button. Such operations are time-consuming and troublesome.
In general, the word “module,” as used hereinafter, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware. It will be appreciated that modules may comprise connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable storage medium or other computer storage device.
The video content search system 10 includes computerized codes in the form of one or more programs, which are stored in the storage device 13. In the present embodiment, the one or more programs of the video content search system 10 are described in the form of function modules (see
The control device 12 may be a processor, a microprocessor, an application-specific integrated circuit (ASIC), or a field programmable gate array, (FPGA) for example.
The storage device 13 may include some type(s) of non-transitory computer-readable storage mediums, such as a hard disk drive, a compact disc, a digital video disc, or a tape drive.
The storage device 13 stores videos 130 that can be played by the media player 11. Each of the videos 130 includes a plurality of video frames, each frame is a still image which composes the complete video. Referring to
The display device 14 displays the videos 130 stored in the storage device 13 when the videos 130 are played by the media player 11.
In step S01, the receiving module 100 determines if a keyword is received. The receiving module 100 may provide an input box to receive a keyword. When a keyword is received, step S02 is implemented. Otherwise, until a keyword is received, step S01 is repeated.
In step S02, the match module 101 compares the keyword with the subtitles 133 of a video 130 currently being played by the media player 11. In one embodiment, the match module 101 compares the keyword with the characters 134 in the subtitles 133 to find one or more single matching subtitles which contain the keyword. For example, referring to
In step S03, the match module 101 determines if at least one matching subtitle is found. The process goes to Step S01 when no matching subtitle is found. Otherwise, step S04 is implemented if at least one matching subtitle is found.
In step S04, the output module 102 outputs the matching subtitles to the display device 14. In one embodiment, the output module 102 may output the matching subtitles using a list which is displayed on the display device 14 for a user to select one of the matching subtitles. In one embodiment, in the list, the matching subtitles are ranked according to the earliest start time stamp 135 followed by the later start time stamps 135 of each of the matching subtitles.
In step S05, the selection module 103 receives a selected subtitle from the matching subtitles.
In step S06, the play control module 104 controls the media player 11 to jump a video frame currently being played to a video frame corresponding to the selected subtitle. In one embodiment, the play control module 104 controls the media player 11 to jump a video frame currently being played to a video frame corresponding to the selected subtitle according to the start time stamp 135 of the selected subtitle.
It should be emphasized that the above-described embodiments of the present disclosure, including any particular embodiments, are merely possible examples of implementations, set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
101143517 | Nov 2012 | TW | national |