CN106791494B - The generation method and device of video caption - Google Patents

The generation method and device of video caption Download PDF

Info

Publication number
CN106791494B
CN106791494B CN201611177053.6A CN201611177053A CN106791494B CN 106791494 B CN106791494 B CN 106791494B CN 201611177053 A CN201611177053 A CN 201611177053A CN 106791494 B CN106791494 B CN 106791494B
Authority
CN
China
Prior art keywords
caption
information
server
client
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
CN201611177053.6A
Other languages
Chinese (zh)
Other versions
CN106791494A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611177053.6A priority Critical patent/CN106791494B/en
Publication of CN106791494A publication Critical patent/CN106791494A/en
Application granted granted Critical
Publication of CN106791494B publication Critical patent/CN106791494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/278Subtitling
    • 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/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/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/23614Multiplexing of additional data and video streams
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/4722End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting additional data associated with the content

Abstract

The invention discloses a kind of generation method of video caption and devices.Wherein, this method comprises: server obtains a plurality of caption information;Server is identified a plurality of caption information according to the broadcast information of target video, obtains a plurality of mark caption information associated with target video, wherein broadcast information is information of the target video in playing process;Server determines the first caption information according to the first broadcast information that the first request carries from a plurality of mark caption information, wherein the first request is sent by client when playing target video, and broadcast information includes the first broadcast information;Server sends the first caption information to client, wherein client shows the first caption content in the first caption information according to the first time information in the first caption information.The present invention solves the technical issues of flexibility that video caption generates in the related technology.

Description

The generation method and device of video caption
Technical field
The present invention relates to video fields, in particular to the generation method and device of a kind of video caption.
Background technique
Currently, the subtitle that Online Video generates when playing, is generated and by compiling mode firmly by plug-in subtitle file mode It generates.Wherein, subtitle is added in a manner of compiling firmly, video file and subtitle file integrate, and it is complicated for operation, once and word Curtain error, has no idea to change and remove, can not change in time, need to recompile entire video, load new subtitle, video The flexibility that subtitle generates is low;Online plug-in subtitle mode, video file and subtitle file separation, will import when playing Subtitle file will recompile entire subtitle file, load new subtitle when subtitle error, and dependent on player with The compatibility of subtitle file, the flexibility for causing video caption to generate are low.
For the low problem of flexibility that above-mentioned video caption generates, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of generation method of video caption and devices, at least to solve to regard in the related technology The technical issues of flexibility that frequency subtitle generates.
According to an aspect of an embodiment of the present invention, a kind of generation method of video caption is provided.Server obtains more Caption information;Server is identified a plurality of caption information according to the broadcast information of target video, obtains and target video Associated a plurality of mark caption information, wherein broadcast information is information of the target video in playing process;Server according to The first broadcast information that first request carries determines the first caption information from a plurality of mark caption information, wherein the first request It is sent by client when playing target video, broadcast information includes the first broadcast information;Server sends first to client Caption information, wherein client shows first in the first caption information according to the first time information in the first caption information Caption content.
According to an aspect of an embodiment of the present invention, a kind of generation method of video caption is additionally provided.The video caption Generation method include: client when playing target video, to server send carry target video first play letter First request of breath;It is true from a plurality of mark caption information according to the first broadcast information in the first request that client receives server The first fixed caption information, wherein a plurality of mark caption information is associated with target video, and by server according to target video Broadcast information a plurality of caption information is identified to obtain, broadcast information be information of the target video in playing process, broadcast Putting information includes the first broadcast information;Client shows the first caption information according to the first time information in the first caption information In the first caption content.
According to another aspect of an embodiment of the present invention, a kind of generating means of video caption are additionally provided.The video caption Generating means include: acquiring unit, for making server obtain a plurality of caption information;Unit is identified, for making server root A plurality of caption information is identified according to the broadcast information of target video, obtains a plurality of mark subtitle associated with target video Information, wherein broadcast information is information of the target video in playing process;Determination unit, for making server according to first The first broadcast information carried is requested to determine the first caption information from a plurality of mark caption information, wherein the first request is by visitor Family end is sent when playing target video, and broadcast information includes the first broadcast information;First transmission unit, for make server to Client sends the first caption information, wherein client shows the first word according to the first time information in the first caption information The first caption content in curtain information.
According to another aspect of an embodiment of the present invention, a kind of generating means of video caption are additionally provided.The video caption Generating means include: the first transmission unit, for making client when playing target video, to server transmission carry mesh Mark the first request of the first broadcast information of video;First receiving unit is asked for making client receive server according to first The first caption information for asking the first broadcast information to determine from a plurality of mark caption information, wherein a plurality of mark caption information It is associated with target video, and a plurality of caption information is identified to obtain according to the broadcast information of target video by server, Broadcast information is information of the target video in playing process, and broadcast information includes the first broadcast information;First display unit is used In making client show according to the first time information in the first caption information the first caption content in the first caption information.
In embodiments of the present invention, a plurality of caption information is obtained by server;Server is according to the broadcasting of target video Information is identified a plurality of caption information, obtains a plurality of mark caption information associated with target video, wherein plays letter Breath is information of the target video in playing process;Server requests the first broadcast information carried from a plurality of mark according to first The first caption information is determined in caption information, wherein the first request is sent by client when playing target video, broadcast information Including the first broadcast information;Server sends the first caption information to client, wherein client is according in the first caption information First time information show the first caption content in the first caption information, achieved the purpose that generate video caption, thus The technical effect for improving the flexibility that video caption generates is realized, and then solves the spirit that video caption generates in the related technology The technical problem of activity.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the hardware environment of the generation method of video caption according to an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the generation method of video caption according to an embodiment of the present invention;
Fig. 3 is the flow chart of the generation method of another video caption according to an embodiment of the present invention;
Fig. 4 is the flow chart for the method that a kind of server according to an embodiment of the present invention obtains a plurality of caption information;
Fig. 5 is the flow chart of the generation method of another video caption according to an embodiment of the present invention;
Fig. 6 is the flow chart of the generation method of another video caption according to an embodiment of the present invention;
Fig. 7 is the flow chart of the generation method of another video caption according to an embodiment of the present invention;
Fig. 8 is that a kind of client according to an embodiment of the present invention is shown according to the first time information in the first caption information The flow chart of the method for the first caption content in first caption information;
Fig. 9 is the flow chart of the generation method of another video caption according to an embodiment of the present invention;
Figure 10 is the flow chart of the generation method of another video caption according to an embodiment of the present invention;
Figure 11 is the structural schematic diagram that a kind of video caption according to an embodiment of the present invention generates system;
Figure 12 is a kind of schematic diagram of barrage effect of the embodiment of the present invention;
Figure 13 is a kind of schematic diagram of video caption effect according to an embodiment of the present invention;
Figure 14 is the schematic diagram of another video caption effect according to an embodiment of the present invention;
Figure 15 is a kind of schematic diagram of the generating means of video caption according to an embodiment of the present invention;
Figure 16 is the schematic diagram of the generating means of another video caption according to an embodiment of the present invention;
Figure 17 is the schematic diagram of the generating means of another video caption according to an embodiment of the present invention;
Figure 18 is the schematic diagram of the generating means of another video caption according to an embodiment of the present invention;
Figure 19 is the schematic diagram of the generating means of another video caption according to an embodiment of the present invention;
Figure 20 is the schematic diagram of the generating means of another video caption according to an embodiment of the present invention;And
Figure 21 is a kind of structural block diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the generation method of video caption in server side is provided.
Optionally, in the present embodiment, the generation method of above-mentioned video caption can be applied to as shown in Figure 1 by servicing In the hardware environment that device 102 and terminal 104 are constituted.Fig. 1 is a kind of generation side of video caption according to an embodiment of the present invention The schematic diagram of the hardware environment of method.As shown in Figure 1, server 102 is attached by network with terminal 104, above-mentioned network packet Include but be not limited to: wide area network, Metropolitan Area Network (MAN) or local area network, terminal 104 are not limited to PC, mobile phone, tablet computer etc..The present invention is real The generation method for applying the video caption of example can be executed by server 102, can also be executed, be can also be by terminal 104 It is executed jointly by server 102 and terminal 104.Wherein, terminal 104 executes the generation method of the video caption of the embodiment of the present invention It is also possible to be executed by client mounted thereto.
Fig. 2 is a kind of flow chart of the generation method of video caption according to an embodiment of the present invention.As shown in Fig. 2, the view The generation method of frequency subtitle may comprise steps of:
Step S202, server obtain a plurality of caption information.
In the technical solution that above-mentioned steps S202 of the present invention is provided, server obtains a plurality of caption information.
Subtitle is to show non-visual content in video with written form, can be the text of films and television programs post-production Word.Server obtains the subtitle file that client is sent, which is the subtitle file of preset format, for example, the subtitle The format of file is the data interchange format (JavaScript Object Notation, referred to as JSON) of lightweight.Service Subtitle file is stored in the first preset memory locations, for example, by subtitle after obtaining the subtitle file that client is sent by device File is stored in can be in the database of real time access subtitle service.Server store subtitle file after, to subtitle file into Row parsing, obtains a plurality of caption information, can be shown and target video pair when target video plays by a plurality of caption information The caption content answered.Optionally, every caption information includes caption content and temporal information corresponding with caption content, In, temporal information may include caption content client start display time and caption content it is continuously display in client Duration.Subtitle file is parsed in server, after obtaining a plurality of caption information, server deposits a plurality of caption information Storage is in the second preset memory locations, for example, by a plurality of caption information structured storage in the number for being used for backstage real time access service According in library.
Step S204, server are identified a plurality of caption information according to the broadcast information of target video, obtain and mesh Mark the associated a plurality of mark caption information of video.
In the technical solution that above-mentioned steps S204 of the present invention is provided, server is according to the broadcast information of target video to more Caption information is identified, and obtains a plurality of mark caption information associated with target video, wherein broadcast information is target Information of the video in playing process.
Target video is the video played on the client, and the broadcasting content of target video is opposite with a plurality of caption information It answers.The broadcast information of target video is to the video content of broadcasting relevant broadcast information of the target video in playing process, ID including target video, the broadcast informations such as play time, playing duration.After server obtains a plurality of caption information, clothes Business device obtains the broadcast information of target video, and server marks a plurality of caption information by the broadcast information of target video Know, that is, determine target video in playing process, when playing specific video content should matched caption content, specifically Video content is one-to-one with the caption content being matched to.Server is by the broadcast information of target video to a plurality of subtitle Information is identified, so that target video is associated with a plurality of caption information.The broadcast information that server passes through target video Every caption information is identified, obtains every mark caption information associated with target video, and by every identifier word Curtain information is stored in the database of server, so that every caption information is mutually independent, when needing to edit to caption information When, just for specifically the caption information edited being needed to modify, it is not relying on entire video file or subtitle file, is improved Target video generates the flexibility of subtitle when playing, and avoids and is programmed into subtitle in video file with inline form, or Person will hang over outside subtitle file on video file caused by the low problem of the flexibility that generates of video caption.
Step S206, server are determined from a plurality of mark caption information according to the first broadcast information that the first request carries First caption information.
In the technical solution that above-mentioned steps S206 of the present invention is provided, server is played according to first that the first request carries Information determines the first caption information from a plurality of mark caption information, wherein the first request is playing target video by client When send, broadcast information include the first broadcast information.
A plurality of caption information is identified according to the broadcast information of target video in server, is obtained and target video phase After associated a plurality of mark caption information, the moment is responded first, server receives client and sends out when playing target video That send carries the first request of the first broadcast information, wherein and the broadcast information of target video includes above-mentioned first broadcast information, First broadcast information is the broadcast information corresponding with the first default video-frequency band in target video, and the first request is client Request server issues the request of caption information corresponding with the first default video-frequency band, carries the first broadcast information.Service Device after receiving the first request, obtain the first broadcast information, to first request respond, according to the first broadcast information from Selection the first caption information corresponding with the first default video-frequency band in a plurality of mark caption information, so that it is determined that in client terminal playing The caption content shown on the client when target video is to the first default video-frequency band.
Step S208, server send the first caption information to client.
In the technical solution that above-mentioned steps S208 of the present invention is provided, server sends the first caption information to client, Wherein, client shows the first caption content in the first caption information according to the first time information in the first caption information.
Server according to the first broadcast information from a plurality of mark caption information determine the first caption information after, service Device sends the first caption information to client.First caption information include the first caption content, and with the first caption content phase Corresponding first time information, first time information include the time and first that the first caption content starts display in client The caption content duration continuously display in client.After client receives the first caption information, when target video plays When to video-frequency band corresponding with first time information, the first caption content is shown, for example, aobvious in the lower section of the screen of client Show the first caption content, which may include a plurality of subtitle.
After client shows caption content according to the first caption information, client display server customer in response again The caption content holding the request sent and issuing realizes the purpose for generating video caption until target video broadcasting terminates, and keeps away Exempt from for subtitle to be programmed into video file with inline form, or view caused on video file will have been hung over outside subtitle file The low problem of the flexibility that frequency subtitle generates, and then improve the flexibility of video caption generation.
The embodiment obtains a plurality of caption information by server;Server is according to the broadcast information of target video to a plurality of Caption information is identified, and obtains a plurality of mark caption information associated with target video, wherein broadcast information is target view Information of the frequency in playing process;The first broadcast information that server is carried according to the first request is from a plurality of mark caption information Determine the first caption information, wherein the first request is sent by client when playing target video, and broadcast information is broadcast including first Put information;Server sends the first caption information to client, wherein client is according to the first time in the first caption information Information shows the first caption content in the first caption information, has achieved the purpose that generate video caption, to realize raising The technical effect for the flexibility that video caption generates, and then solve the technology for the flexibility that video caption generates in the related technology Problem.
As an alternative embodiment, first time information includes the display start time and of the first caption content The display duration of one caption content is also not finished in client and broadcasts after server sends the first caption information to client In the case where putting target video, the second request of response carries server after the display start time of the first caption content the Two broadcast informations determine the second caption information from a plurality of mark caption information;Server sends the second subtitle letter to client Breath.
Fig. 3 is the flow chart of the generation method of another video caption according to an embodiment of the present invention.As shown in figure 3, should The generation method of video caption the following steps are included:
Step S301, server response second after the display start time of the first caption content request carry second Broadcast information determines the second caption information from a plurality of mark caption information.
In the technical solution that above-mentioned steps S301 of the present invention is provided, the feelings for playing target video are also not finished in client Under condition, server the second broadcast information that the second request of response carries after the display start time of the first caption content is from more Item, which identifies, determines the second caption information in caption information, wherein at the time of the second request of response between display start time Duration is less than or equal to the display duration of the first caption content, and broadcast information includes the second broadcast information.
A plurality of caption information is stored in server, including the first caption information, first caption information and target are regarded Default video content in frequency matches.First caption information includes the first caption content and corresponding with the first caption content First time information.Wherein, first time information is temporal information of first caption content when client is shown, including the One caption content client display start time and the first caption content client display duration.It is opened in display Begin the moment, the first caption content starts to show on the client, the default view to match in target video with the first caption information Frequency content also starts to show, when the display of the first caption content reaches display duration, match with the first caption content pre- Setting video content, which is shown, to be terminated, so that it is synchronous to achieve the purpose that target video is shown with caption content.
After server sends the first caption information to client, judge whether client terminates to play target video. If it is judged that broadcasting target video is also not finished in client, and the second response moment after showing start time, server Receive the second request for carrying the second broadcast information that client is sent, wherein the broadcast information of target video includes above-mentioned Second broadcast information, second broadcast information are the corresponding broadcast information of the second default video-frequency band in target video, second Default video-frequency band is the video-frequency band and then played after the first default video-frequency band broadcasting terminates on the client.Client is again Secondary request server issues the second request of the second caption information corresponding with the second default video-frequency band, which carries There is the second broadcast information.Server obtains the second broadcast information after receiving the second request, rings to the second request It answers, the second subtitle corresponding with the second default video-frequency band is selected to believe from a plurality of mark caption information according to the second broadcast information Breath, so that it is determined that in the second subtitle shown on the client when client terminal playing target video is to the second default video-frequency band Hold.
Duration between above-mentioned second response moment and the display start time of the first caption content is less than or equal to the first word The display duration of curtain content, that is, in the first caption content when also display is not finished in client, the first user end to server Send the second request.
Step S302, server send the second caption information to client.
In the technical solution that above-mentioned steps S302 of the present invention is provided, server sends the second caption information to client, Wherein, client shows according to the second temporal information in the second caption information after the first caption content shows and terminates The second caption content in two caption informations.
The second request of response carries after the display start time of the first caption content in server second plays letter For breath after determining the second caption information in a plurality of mark caption information, server sends the second caption information to client.Visitor Family end shows the second caption content after the first caption content is shown, according to the display start time of the second caption content, Until reaching the display duration of the second caption content.Optionally, the corresponding display duration of second caption content can be with first The corresponding display duration of caption content is identical, can also be different, to guarantee during target video plays, target video It is corresponding with caption information, and then guarantee that the broadcasting of target video is synchronous with the display of caption content.
Optionally, after server sends the second caption information to client, judge whether client terminates to play mesh Mark video.If it is judged that broadcasting target video is also not finished in client, the third after showing start time responds the moment, Server receives the third request for carrying third broadcast information that client is sent, and is repeated in above-mentioned server and issues first The process of caption information and the second caption information, details are not described herein again, until target video broadcasting terminates.
Broadcasting target is also not finished in client after server sends the first caption information to client in the embodiment In the case where video, server the second broadcasting that the second request of response carries after the display start time of the first caption content Information determines the second caption information from a plurality of mark caption information, wherein when starting at the time of the second request of response with display Duration between quarter is less than or equal to the display duration of the first caption content, and broadcast information includes the second broadcast information;Server to Client sends the second caption information, wherein client is after the first caption content shows and terminates, according to the second caption information In the second temporal information show the second caption content in the second caption information, thus reach realize video caption generation Purpose, and then improve the flexibility of video caption generation.
As an alternative embodiment, step S202, it includes: server to pre- that server, which obtains a plurality of caption information, If the original subtitle file of format is parsed, obtain the original caption content of a plurality of original caption information and with original caption content Corresponding original time information.
Fig. 4 is the flow chart for the method that a kind of server according to an embodiment of the present invention obtains a plurality of caption information.Such as Fig. 4 It is shown, the server obtain the method for a plurality of caption information the following steps are included:
Step S401, server obtain the original subtitle file of preset format.
In the technical solution that above-mentioned steps S401 of the present invention is provided, server obtains the original subtitle text of preset format Part.
It is original subtitle file that server, which starts the subtitle file obtained, which can be word to be replaced Curtain file.The format of the original subtitle file can be JSON format, can edit to original subtitle file.
Step S402, server parse original subtitle file, obtain a plurality of original caption information.
In the technical solution that above-mentioned steps S402 of the present invention is provided, server parses original subtitle file, obtains To a plurality of original caption information, wherein every original subtitle information includes original caption content and opposite with original caption content The original time information answered.
After the original subtitle file that server obtains preset format, server parses original subtitle file, Obtain a plurality of original caption information.The original subtitle information includes original caption content and original corresponding with original caption content Beginning temporal information.Original subtitle file is stored in first after obtaining the original subtitle file that client is sent by server Preset memory locations, for example, original subtitle file is stored in can be in the database of real time access subtitle service.It is deposited in server After storing up original subtitle file, original subtitle file is parsed, a plurality of original caption information is obtained, passes through a plurality of original word Curtain information can show original caption content corresponding with target video when target video plays.Optionally, every original word Curtain information includes original word curtain content and original time information corresponding with original caption content, wherein original time information May include original caption content client start display time and original caption content it is continuously display in client Duration.
The original caption content of every original caption information and original time information are stored in pre- by step S403, server If storage location.
In the technical solution that above-mentioned steps S403 of the present invention is provided, server is by the original word of every original caption information Curtain content and original time information are stored in preset memory locations.
Original subtitle file is parsed in server, after obtaining a plurality of original caption information, server will be a plurality of Original caption information is stored in the second preset memory locations, for example, a plurality of caption information structured storage is being used for backstage in fact When access service database in.
The embodiment obtains the original subtitle file of preset format by server;Server carries out original subtitle file Parsing, obtain a plurality of original caption information, wherein every original subtitle information include original caption content and in original subtitle Hold corresponding original time information;Server deposits the original caption content of every original caption information and original time information Storage realizes the purpose that server obtains a plurality of caption information in preset memory locations.
As an alternative embodiment, in server by the original caption content of every original caption information and original Temporal information is stored in after preset memory locations, is obtained in server to the target caption information in a plurality of original caption information Update caption information after being edited includes in the case where updating caption content, and server is in preset memory locations by target Original caption content in caption information replaces with update caption content;Updating the feelings that caption information includes renewal time information Under condition, the original time information in target caption information is replaced with renewal time information in preset memory locations by server.
Fig. 5 is the flow chart of the generation method of another video caption according to an embodiment of the present invention.As shown in figure 5, should The generation method of video caption is further comprising the steps of:
Step S501, server acquisition the target caption information in a plurality of original caption information is edited after more New caption information.
In the technical solution that above-mentioned steps S501 of the present invention is provided, server is obtained in a plurality of original caption information Target caption information edited after update caption information, wherein update caption information include update caption content and/or Renewal time information.
Server edits the target caption information in a plurality of original caption information, optionally, caption content error, Or the temporal information in target caption information and the volume progress that caption content plays it is not corresponding, for example, in target caption information Caption content play time it is advanced compared to the video content in target video, perhaps surpass after or playing duration elongate Or the caption contents such as shortening are not matched that with target video, then target caption information is needed to be edited.Server obtains Compiled good update caption information, the update caption information include in the update subtitle being updated to original caption content Hold, renewal time information that perhaps original time information is updated or to update caption information both included updating in subtitle Holding also includes renewal time information, and updating caption information can be determined compared to the place that original caption information changes by user.
Original caption content in target caption information is replaced with update in preset memory locations by step S502, server Caption content.
It include updating caption content updating caption information in the technical solution that above-mentioned steps S502 of the present invention is provided In the case of, the original caption content in target caption information is replaced with update caption content in preset memory locations by server.
When updating caption information includes updating caption content, original subtitle that server will be stored in preset memory locations Content replaces with update caption content.Server includes more in the request that customer in response end is sent when playing target video After the request of the update caption information of new caption content, and is determined from a plurality of mark caption information according to broadcast information and update word Curtain information sends and updates caption information to client, and client updates word according to the temporal information display updated in caption information Update caption content in curtain information, can be used to implement the error correction of caption content, to improve the spirit of video caption generation Activity is avoided and is programmed into subtitle in video file with inline form, or institute on video file will be hung over outside subtitle file The low problem of the flexibility that caused video caption generates.
Original time information in target caption information is replaced with update in preset memory locations by step S503, server Temporal information.
It include renewal time information updating caption information in the technical solution that above-mentioned steps S503 of the present invention is provided In the case of, the original time information in target caption information is replaced with renewal time information in preset memory locations by server.
When updating caption information includes renewal time, original time information that server will be stored in preset memory locations Replace with renewal time information.Server is when the request that customer in response end is sent when playing target video includes updating Between information update caption information request after, and according to broadcast information from a plurality of mark caption information determine update subtitle believe Breath sends and updates caption information to client, and client updates word according to the renewal time information display updated in caption information Caption content in curtain information is avoided to improve the flexibility of video caption generation and is incorporated into subtitle with inline form The flexibility that video caption into video file, or caused by hanging over outside subtitle file on video file generates is low to ask Topic.
It optionally, include updating caption content when updating caption information both, when also including renewal time information, server will When the original caption content of preset memory locations storage and original caption information replace with respectively and update caption content and update Between information.
The embodiment is by depositing the original caption content of every original caption information and original time information in server Storage is after preset memory locations, after the target caption information in a plurality of original caption information is edited in server acquisition Update caption information, wherein updating caption information includes updating caption content and/or renewal time information;Updating subtitle Information includes in the case where updating caption content, and server will be in the original subtitle in target caption information in preset memory locations Appearance replaces with update caption content;In the case where updating caption information includes renewal time information, server is in default storage Original time information in target caption information is replaced with renewal time information by position, realizes the editor to video caption, Improve the flexibility of video caption generation.
As an alternative embodiment, server according to the broadcast information of target video to a plurality of caption information into Line identifier takes server to the original view of target video before obtaining a plurality of mark caption information associated with target video Frequency file is encoded, and the encoded video file of target video is obtained;Server obtains broadcast information from encoded video file; Server is identified a plurality of caption information according to broadcast information, obtains a plurality of mark subtitle letter associated with target video Breath.
Fig. 6 is the flow chart of the generation method of another video caption according to an embodiment of the present invention.As shown in fig. 6, should The generation method of video caption is further comprising the steps of:
Step S601, server obtain the original video files of target video.
In the technical solution that above-mentioned steps S601 of the present invention is provided, in server according to the broadcast information pair of target video A plurality of caption information is identified, and before obtaining a plurality of mark caption information associated with target video, server obtains mesh Mark the original video files of video.
Step S602, server encode original video files, obtain the encoded video file of target video.
In the technical solution that above-mentioned steps S602 of the present invention is provided, server encodes original video files, obtains To the encoded video file of target video.
Video caption and in generation method, and traditional that subtitle is embedded in video file in a manner of compiling firmly is different It is that the video file of the embodiment is the file of absolute coding, that is, subtitle file is separated with video file, in this way, When editing to subtitle file, video file is not interfered with, improves the flexibility of video caption generation.In server root A plurality of caption information is identified according to the broadcast information of target video, obtains a plurality of mark subtitle associated with target video Before information, server obtains the original video files of target video, which is sent by client;Server exists After receiving original video files, original video files are encoded, obtain the encoded video file of target video, will be compiled Code video file is stored in the database of server.
Server is identified a plurality of caption information according to the broadcast information of target video, obtains related to target video The a plurality of mark subtitle information of connection includes: server obtains broadcast information from encoded video file;Server is believed according to broadcasting Breath is identified a plurality of caption information, obtains a plurality of mark caption information associated with target video.
Server obtains the broadcast information of target video from encoded video file, on which includes but is not limited to State the first broadcast information, the second broadcast information.Server is after the broadcast information for obtaining target video, according to broadcast information pair A plurality of caption information is identified, and keeps a plurality of caption information associated with target video, so that client is playing target When the default video-frequency band of video, shows the caption content of caption information corresponding with default video-frequency band, reach target video and broadcasting The video content shown during putting is corresponding with caption content.
As an alternative embodiment, above-mentioned broadcast information include it is following any one or more: target video exists Identification information in playing process;Play time of the target video in playing process;Target video broadcasting in playing process Put duration.
The broadcast information of target video is information of the target video in playing process, may include that target video is playing Identification information in the process, for example, the id information of target video, is used for unique identification target video, it also may include target view Play time of the frequency in playing process, for example, video content corresponding with caption information was played in entire target video Broadcast start time in journey terminates play time etc., also may include playing duration of the target video in playing process, than Such as, the playing duration of video content corresponding with caption information.
It should be noted that the broadcast information of the embodiment includes identification information of the target video in playing process, broadcasts Put the time, any one or more in playing duration is merely a preferred embodiment of the present invention, do not represent the embodiment of the present invention Broadcast information only include above-mentioned identification information, play time, playing duration.In order to realize server broadcasting according to target video The different broadcast informations putting information to be identified a plurality of caption information, and being carried in server according to each request are from a plurality of It identifying and determines corresponding caption information in caption information, the embodiment of the present invention can also include the broadcast information of other types, this Place no longer illustrates one by one.
The embodiment is obtained by being identified according to the broadcast information of target video to a plurality of caption information in server Before a plurality of mark caption information associated with target video, server obtains the original video files of target video;Service Device encodes original video files, obtains the encoded video file of target video;Server is obtained from encoded video file Take broadcast information;Server is identified a plurality of caption information according to broadcast information, obtains associated with target video more Item identifies caption information, realizes the purpose for generating video caption, and then improves the flexibility of video caption generation.
According to embodiments of the present invention, a kind of embodiment of the generation method of the video caption of client-side is additionally provided.
Optionally, in the present embodiment, the generation method of above-mentioned video caption can also be applied to as shown in Figure 1 by taking In the hardware environment that business device 102 and terminal 104 are constituted.As shown in Figure 1, server 102 is connected by network with terminal 104 Connect, above-mentioned network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or local area network, terminal 104 are not limited to PC, mobile phone, plate electricity Brain etc..The generation method of the video caption of the embodiment of the present invention can be executed by server 102, can also by terminal 104 It executes, can also be and executed jointly by server 102 and terminal 104.Wherein, terminal 104 executes the video of the embodiment of the present invention The generation method of subtitle is also possible to be executed by client mounted thereto.
Fig. 7 is the flow chart of the generation method of another video caption according to an embodiment of the present invention.As shown in fig. 7, should The generation method of video caption may comprise steps of:
Step S702, client send the first broadcasting for carrying target video to server when playing target video First request of information.
In the technical solution that above-mentioned steps S702 of the present invention is provided, client is when playing target video, to server Send the first request of the first broadcast information for carrying target video.
The target video of client terminal playing be separated with subtitle file, the video of absolute coding.Client is playing target During video, when being played to the first default video-frequency band of target video, target video is carried to server transmission First request of the first broadcast information.First broadcast information may include that the ID of target video, the first default video-frequency band start At the time of broadcasting, the broadcast informations such as the playing duration of the first default video-frequency band.
Step S704, client receive server according to the first broadcast information in the first request from a plurality of mark caption information First caption information of middle determination.
In the technical solution that above-mentioned steps S704 of the present invention is provided, client receives server according to the in the first request The first caption information that one broadcast information is determined from a plurality of mark caption information, wherein a plurality of mark caption information and target Video is associated, and is identified to obtain to a plurality of caption information according to the broadcast information of target video by server, plays letter Breath is information of the target video in playing process, and broadcast information includes the first broadcast information.
After sending the first request of the first broadcast information for carrying target video in user end to server, server In the first request that the first response time of day response client is sent, and stored from preset memory locations according to the first request a plurality of It identifies and determines the first caption information in caption information, wherein a plurality of mark caption information is associated with target video, and by servicing Device is identified to obtain according to the broadcast information of target video to a plurality of caption information.Client receives first that server is sent Caption information.
Step S706, client show in the first caption information according to the first time information in the first caption information One caption content.
Above-mentioned steps S706 of the present invention provide technical solution in, client according in the first caption information first when Between information show the first caption content in the first caption information.
Server is received in client to request and according to the first broadcast information in the first response time of day response first from a plurality of After identifying the first caption information determined in caption information, client obtains the first time information in the first caption information, For example, the first caption content is at the time of client starts display and the first caption content is when client is continuously display It is long etc..Client starts to show that the moment shows the first caption content according in first time information, in continuously display first word When the duration of curtain content reaches the display duration in first time information, client terminates to show the first caption content.
The embodiment, when playing target video, is carried the first of target video to server transmission and broadcast by client Put the first request of information;Client receives server according to the first broadcast information in the first request from a plurality of mark caption information First caption information of middle determination, wherein a plurality of mark caption information is associated with target video, and by server according to target The broadcast information of video is identified to obtain to a plurality of caption information, and broadcast information is letter of the target video in playing process Breath, broadcast information include the first broadcast information;Client shows the first word according to the first time information in the first caption information The first caption content in curtain information has achieved the purpose that generate video caption, to realize what raising video caption generated The technical effect of flexibility, and then solve the technical issues of flexibility of video caption generation in the related technology.
As an alternative embodiment, first time information includes the display start time and of the first caption content The display duration of one caption content, step S706, client show first according to the first time information in the first caption information The first caption content in caption information includes: the client when the display start time of client terminal playing to the first caption content End starts to show the first caption content in default display position;Reach the first caption content in the time for showing the first caption content Display duration when, client terminate show the first caption content;The first word is not up in the time for showing the first caption content When the display duration of curtain content, client continues to show the first caption content.
Fig. 8 is that a kind of client according to an embodiment of the present invention is shown according to the first time information in the first caption information The flow chart of the method for the first caption content in first caption information.As shown in figure 8, method includes the following steps:
Step S801, when the display start time of client terminal playing to the first caption content, client is in default display Position starts to show the first caption content.
In the technical solution that above-mentioned steps S801 of the present invention is provided, first time information includes the aobvious of the first caption content The display duration for showing start time and the first caption content, when the display start time of client terminal playing to the first caption content When, client starts to show the first caption content in default display position.
It include display start time in first broadcast information, at this point, client has received first that server issues Caption information.To start time is shown, client starts to show the first word in default display position client terminal playing target video Curtain information in the first caption content, can the position as defined in client top layer show the first caption content, first subtitle The content that content is played with target video matches, wherein predeterminated position can surface in client screen or client End screen just issues, herein without limitation.
Step S802, when client judges to show whether the time of the first caption content reaches the display of the first caption content It is long.
In the technical solution that above-mentioned steps S802 of the present invention is provided, the time of client judgement the first caption content of display Whether the display duration of first caption content is reached.
During showing the first caption content, with the broadcasting of the first default video-frequency band in target video, client The time of the first caption content of end display is being accumulated, and client judges to show whether the time of the first caption content reaches the first word The display duration of curtain content.
Step S803 terminates the first caption content of display.
In the technical solution that above-mentioned steps S803 of the present invention is provided, if the client determine that the first caption content of display Time when reaching the display duration of the first caption content, terminate the first caption content of display.
Client judge show the first caption content duration whether reach the display duration of the first caption content after, If the client determine that client terminates when the time of the first caption content of display reaches the display duration of the first caption content Show the first caption content.
Step S804 continues to show the first caption content.
In the technical solution that above-mentioned steps S804 of the present invention is provided, if the client determine that the first caption content of display Time when being not up to the display duration of the first caption content, continue to show the first caption content.
The embodiment includes display start time and the first caption content of the first caption content by first time information Display duration, when the display start time of client terminal playing to the first caption content, client is opened in default display position Begin the first caption content of display;Client judges to show the display whether time of the first caption content reaches the first caption content Duration;If the client determine that terminating when the time of the first caption content of display reaches the display duration of the first caption content Show the first caption content;If the client determine that the time of the first caption content of display is not up to the aobvious of the first caption content When showing duration, continue to show the first caption content, it is aobvious according to the first time information in the first caption information to realize client Show the purpose of the first caption content in the first caption information, and then improves the flexibility of video caption generation.
As an alternative embodiment, client receive server according to first request in the first broadcast information from After the first caption information determined in a plurality of mark caption information, the case where playing target video is also not finished in client Under, subsequent time of the client in the display start time of the first caption content carries the second broadcast information to server transmission Second request;Client receives the second subtitle letter that the second request of server response is determined from a plurality of mark caption information Breath.
Fig. 9 is the flow chart of the generation method of another video caption according to an embodiment of the present invention.As shown in figure 9, should The generation method of video caption is further comprising the steps of:
Step S901, subsequent time of the client in the display start time of the first caption content is sent to server to be carried There is the second request of the second broadcast information.
In the technical solution that above-mentioned steps S901 of the present invention is provided, server is received according in the first request in client Broadcasting mesh is also not finished in client after the first caption information determined in a plurality of mark caption information in first broadcast information In the case where marking video, subsequent time of the client in the display start time of the first caption content is carried to server transmission Second request of the second broadcast information, wherein the duration between subsequent time and the display start time of the first caption content is small In the display duration for being equal to the first caption content.
Server is received in client to request and according to the first broadcast information in the first response time of day response first from a plurality of After identifying the first caption information determined in caption information, in the case where client is also not finished and plays target video, visitor Subsequent time of the family end in display start time sends the second request for carrying the second broadcast information to server, which opens The duration to begin between moment and subsequent time is less than or equal to the display duration of the first caption content, that is, client is in the first word When display is also not finished in curtain content, the second request is sent to server.Wherein, the second broadcast information is second in target video The default corresponding broadcast information of video-frequency band, the second default video-frequency band are to terminate on the client in the first default video-frequency band broadcasting The video-frequency band and then played later.
Step S902, client receive the second word that the second request of server response is determined from a plurality of mark caption information Curtain information.
In the technical solution that above-mentioned steps S902 of the present invention is provided, client receives server response second and requests from more Item identifies the second caption information determined in caption information, wherein broadcast information includes the second broadcast information.
After user end to server sends the second request for carrying the second broadcast information, server obtains second and plays Information responds the second request, is selected from a plurality of mark caption information according to the second broadcast information and the second default view Corresponding second caption information of frequency range, so that it is determined that when client terminal playing target video is to the second default video-frequency band in client Second caption content of upper display.Client receives the second caption information that server issues.
Step S903, client show in the second caption information according to the second temporal information in the second caption information Two caption contents.
Above-mentioned steps S903 of the present invention provide technical solution in, client terminate display the first caption content it Afterwards, the second caption content in the second caption information is shown according to the second temporal information in the second caption information.
After client receives the second caption information, judge whether the first caption content terminates to show.If it is judged that First caption content terminates to show, then the second caption content is shown according to the temporal information of the second caption information, for example, according to Two caption contents start to show the moment to show the second caption content, until the time of display reaches the aobvious of the second caption content Show duration.Optionally, the corresponding display duration of second caption content can display corresponding with the first caption content when appearance Together, it can also be different, to guarantee that target video is corresponding with caption information, Jin Erbao during target video plays The broadcasting for demonstrate,proving target video is synchronous with the display of caption content.
The embodiment is by receiving server according to the first broadcast information in the first request from a plurality of identifier word in client After the first caption information determined in curtain information, in the case where client is also not finished and plays target video, client exists The subsequent time of the display start time of first caption content sends the second request for carrying the second broadcast information to server, Wherein, the duration between subsequent time and the display start time of the first caption content is less than or equal to the display of the first caption content Duration;Client receives the second caption information that the second request of server response is determined from a plurality of mark caption information, wherein Broadcast information includes the second broadcast information;Client is after terminating to show the first caption content, according in the second caption information The second temporal information show the second caption content in the second caption information, realize the purpose that video caption generates, Jin Erti The flexibility that high video caption generates.
As an alternative embodiment, showing according to the first time information in the first caption information in client Before the first caption content in one caption information, client is according to setting instruction to the original display pattern of the first caption content It is configured, obtains updating Show Styles;Client is according to the first time information in the first caption information to update display sample Formula shows the first caption content in the first caption information.
Figure 10 is the flow chart of the generation method of another video caption according to an embodiment of the present invention.As shown in Figure 10, The generation method of the video caption is further comprising the steps of:
Step S1001, client reception is used to indicate to be set to what the original display pattern of the first caption content was configured Set instruction.
In the technical solution that above-mentioned steps S1001 of the present invention is provided, in client according to the in the first caption information Before one temporal information shows the first caption content in the first caption information, client reception is used to indicate in the first subtitle The setting instruction that the original display pattern of appearance is configured.
Client can the font Show Styles to the caption content that server issues be adjusted.Optionally, in client Before end shows the first caption content according to the first time information in the first caption information, receive for the first caption content The setting instruction that is configured of original display pattern, which includes that the font type of caption content, font are big The patterns such as small, font color.
Step S1002, client are configured the original display pattern of the first caption content according to setting instruction, obtain Update Show Styles.
In the technical solution that above-mentioned steps S1002 of the present invention is provided, client is according to setting instruction in the first subtitle The original display pattern of appearance is configured, and obtains updating Show Styles.
The setting being configured to the original display pattern of the first caption content, which is used to indicate, in client reception instructs it Afterwards, client is configured the original display pattern of the first caption content according to setting instruction, obtains updating Show Styles.
Client is shown in the first subtitle in the first caption information according to the first time information in the first caption information Appearance includes: that client is shown in the first caption information according to the first time information in the first caption information with updating Show Styles The first caption content.
After client is configured the original display pattern of the first caption content according to setting instruction, client root According to the first time information in the first caption information the first caption content in the first caption information is updated Show Styles into Row display, optionally, user can be according to the Show Styles of the hobby adjustment caption content of oneself, in this way by caption information In the Show Styles of caption content be configured, to improve the flexibility of video caption generation.
Optionally, if client according to the second temporal information in the second caption information show the second caption content it Before, the setting instruction being configured for the original display pattern to the second caption content is received, client refers to according to the setting Order is configured the original display pattern of the second caption content, obtains updating Show Styles.Client is believed according to the second subtitle The second temporal information in breath shows the second caption content in the second caption information to update Show Styles, until target video Broadcasting terminates.If client is not received by the setting instruction being configured to the Show Styles of caption content, client The caption content for the caption information that the subsequent Show Styles display server with the last time setting issues, to improve video The flexibility that subtitle generates, avoids when needing the Show Styles to subtitle to be modified, to update with inline mode It is incorporated into the video file of subtitle, or to update the flexibility that video caption caused by entire plug-in subtitle file generates low The problem of.
As an alternative embodiment, above-mentioned broadcast information include it is following any one or more: target video exists Identification information in playing process;Play time of the target video in playing process;Target video broadcasting in playing process Put duration.
The embodiment is by showing the first caption information according to the first time information in the first caption information in client In the first caption content before, client is received to be used to indicate and is configured to the original display pattern of the first caption content Setting instruction;Client is configured the original display pattern of the first caption content according to setting instruction, obtains updating display Pattern;Client is shown in the first caption information according to the first time information in the first caption information with updating Show Styles First caption content, to improve the flexibility of video caption generation.
Embodiment 2
Technical solution of the present invention is illustrated below with reference to preferred embodiment.
The embodiment of the present invention plays carry scheme mainly for Online Video subtitle in real time, and the scheme of the present embodiment is as follows:
The first step, subtitle and video separation, video absolute coding, for subtitle with JSON or other formats, being transferred to can be real When access subtitle service in, subtitle parsing after, according to single caption content and temporal information, structuring be stored in backstage in real time visit The service of asking, and it is identified as associated video subtitle;
Second step obtains subtitle store-service, according to current time, request will be played according to broadcast information when broadcasting The caption content of 20s duration, subtitle re-request subsequent 20s duration subtitle, successively request to video to broadcast after playing Put end;
Third step, front end player are played according to the caption content requested to subtitle sart point in time, in player (FLASH) top layer specified position shows caption content, and continues the end time played to subtitle.
Caption content font style, user can be voluntarily according to hobby adjustment font style and sizes.
Figure 11 is the structural schematic diagram that a kind of video caption according to an embodiment of the present invention generates system.As shown in figure 11, Subtitle file is uploaded to storage server by client, and storage server can obtain video file from another client, to view Frequency file carries out absolute coding, the video file of coding is issued to PC terminal, so that subtitle file be separated with video file. Subtitle file is stored with JSON format or other formats, can be stored into the service of real time access subtitle.Server is to subtitle text Part is parsed, and according to single caption content and temporal information, structured storage is identified as in the service of backstage real time access Associated video subtitle.PC terminal obtains subtitle from server according to the broadcast information of target video and deposits when playing target video Storage service, according to current time, request plays the caption content of 20 seconds durations, played in caption content end it is default when Between, the caption content of next 20 seconds durations is requested to server again, successively requests caption content to server, until target regards Frequency, which plays, to be terminated, and optionally, the server of the embodiment includes storage server for being stored to subtitle file, to word The resolution server that curtain file is parsed, the encoder server etc. for being encoded to video file.
The embodiment of the present invention is to realize that formatted form is in video online request by caption content, by asking in real time It asks, directly shows in player top layer, realize subtitle and video result of broadcast simultaneously, it is opposite with traditional caption and video hard coded It is online to play or video online request carry subtitle file, advantage are, when caption content is wrong, time deviation when, can be with By backstage online editing, subsequent subtitle time or content are directly adjusted, front end is played and is come into force in real time.Traditional hard coded shape Formula needs to recompile video content, and carry subtitle mode needs to update subtitle file, and subtitle file again, for User being played on can not come into force in real time;In addition the present invention can support the customized subtitle font pattern of user and size, It can arbitrarily personalization show, improve the flexibility of video caption generation.
Embodiment 3
The application environment of the embodiment of the present invention can be, but not limited to referring to the application environment in above-described embodiment, the present embodiment In this is repeated no more.The embodiment of the invention provides the optional tools of one kind of the generation method for implementing above-mentioned video caption Body application.
The embodiment of the present invention is played mainly for Online Video subtitle and is shown, provide it is a set of it is new, can flexibly control it is aobvious Sample formula, the broadcasting scheme for being easy to error correction, realizing subtitle and video, to show the similar current internet of effect straight for result of broadcast simultaneously It broadcasts or program request barrage form.Such as Figure 12, wherein Figure 12 is a kind of schematic diagram of barrage effect of the embodiment of the present invention, video bullet Curtain can be the comment information that user sends in real time according to the content of video playing, may be displayed on upper in client screen Side.
Figure 13 is a kind of schematic diagram of video caption effect according to an embodiment of the present invention.As shown in figure 13, caption content It is corresponding with the video content that target video plays, that is, caption content is the default corresponding caption content of video-frequency band.The implementation For example when playing, client obtains subtitle store-service, according to current time, request will be played centainly according to broadcast information The caption content of duration re-requests subsequent caption content after caption content will play, and successively requests to video Broadcasting terminates.Front end player is played according to the caption content requested to subtitle sart point in time, at player (FLASH) Top layer specified position shows caption content, for example, show the caption content " someone exists " to match with the video content played, And at the time of continuing to caption content to terminate display;User can improve voluntarily according to hobby adjustment font style and size The flexibility that video caption generates.
Figure 14 is the schematic diagram of another video caption effect according to an embodiment of the present invention.As shown in figure 14, Yong Huke Voluntarily according to hobby, caption content " someone exists " is adjusted to the font style and size different from Figure 13, improves view The flexibility that frequency subtitle generates.
When caption content is wrong, time deviation when, can by backstage online editing, directly adjust the subsequent subtitle time or Person's content plays front end and comes into force in real time, improves the flexibility of video caption generation
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 4
According to embodiments of the present invention, it additionally provides a kind of for implementing the video caption of the generation method of above-mentioned video caption Generating means.Figure 15 is a kind of schematic diagram of the generating means of video caption according to an embodiment of the present invention.As shown in figure 15, The generating means of the video caption may include: acquiring unit 10, mark unit 20, determination unit 30 and the first transmission unit 40。
Acquiring unit 10, for making server obtain a plurality of caption information.
Unit 20 is identified, for being identified server to a plurality of caption information according to the broadcast information of target video, Obtain a plurality of mark caption information associated with target video, wherein broadcast information is target video in playing process Information.
Determination unit 30, for believing that server from a plurality of mark subtitle according to the first broadcast information that the first request carries The first caption information is determined in breath, wherein the first request is sent by client when playing target video, and broadcast information includes the One broadcast information.
First transmission unit 40, for making server send the first caption information to client, wherein client is according to the First time information in one caption information shows the first caption content in the first caption information.
Figure 16 is the schematic diagram of the generating means of another video caption according to an embodiment of the present invention.As shown in figure 16, The generating means of the video caption may include: acquiring unit 10, mark unit 20, determination unit 30 and the first transmission unit 40.The generating means of the video caption further include: response unit 50 and the second transmission unit 60.
It should be noted that the acquiring unit 10 of the embodiment, mark unit 20, determination unit 30 and the first transmission unit 40 is identical as the effect in the generating means of the video caption of embodiment illustrated in fig. 15, and details are not described herein again.
First time information includes the display duration of the display start time and the first caption content of the first caption content.
Response unit 50, for being also not finished in client after server sends the first caption information to client In the case where playing target video, so that server is responded the second request after the display start time of the first caption content and carry The second broadcast information from a plurality of mark caption information determine the second caption information, wherein response second request at the time of with Show that the duration between start time is less than or equal to the display duration of the first caption content, broadcast information includes the second broadcasting letter Breath.
Second transmission unit 60, for making server send the second caption information to client, wherein client is first Caption content is shown after terminating, and second in the second caption information is shown according to the second temporal information in the second caption information Caption content.
Figure 17 is the schematic diagram of the generating means of another video caption according to an embodiment of the present invention.As shown in figure 17, The generating means of the video caption may include: acquiring unit 10, mark unit 20, determination unit 30 and the first transmission unit 40.Wherein, acquiring unit 10 includes: to obtain module 11, parsing module 12 and memory module 13.
It should be noted that the acquiring unit 10 of the embodiment, mark unit 20, determination unit 30 and the first transmission unit 40 is identical as the effect in the generating means of the video caption of embodiment illustrated in fig. 15, and details are not described herein again.
Module 11 is obtained, for making server obtain the original subtitle file of preset format.
Parsing module 12 obtains a plurality of original caption information for parsing server to original subtitle file, In, every original subtitle information includes original caption content and original time information corresponding with original caption content.
Memory module 13, for making server by the original caption content and original time information of every original caption information It is stored in preset memory locations.
Optionally, above-mentioned broadcast information include it is following any one or more: mark of the target video in playing process Information;Play time of the target video in playing process;Playing duration of the target video in playing process.
It should be noted that the acquiring unit 10 in the embodiment can be used for executing the step in the embodiment of the present application 1 S202, the mark unit 20 in the embodiment can be used for executing the step S204 in the embodiment of the present application 1, in the embodiment Determination unit 30 can be used for executing the step S206 in the embodiment of the present application 1, and the first transmission unit 40 in the embodiment can For executing the step S208 in the embodiment of the present application 1.
The embodiment of the present invention is by acquiring unit 10, for making server obtain a plurality of caption information.Unit 20 is identified, is used In being identified server to a plurality of caption information according to the broadcast information of target video, obtain associated with target video A plurality of mark caption information, wherein broadcast information is information of the target video in playing process.Determination unit 30, for making Server determines the first caption information according to the first broadcast information that the first request carries from a plurality of mark caption information, In, the first request is sent by client when playing target video, and broadcast information includes the first broadcast information.First transmission unit 40, for make server to client send the first caption information, wherein client according in the first caption information first when Between information show the first caption content in the first caption information, achieved the purpose that generate video caption, mentioned to realize The technical effect for the flexibility that high video caption generates, and then solve the skill for the flexibility that video caption generates in the related technology Art problem.
According to embodiments of the present invention, it additionally provides a kind of for implementing the video caption of the generation method of above-mentioned video caption Generating means.Figure 18 is the schematic diagram of the generating means of another video caption according to an embodiment of the present invention.Such as Figure 18 institute Show, the generating means of the video caption may include: the first transmission unit 70, the first receiving unit 80 and the first display unit 90。
First transmission unit 70 carries target view to server transmission for making client when playing target video First request of the first broadcast information of frequency.
First receiving unit 80, for making client receive server according to the first broadcast information in the first request from a plurality of Identify the first caption information determined in caption information, wherein a plurality of mark caption information is associated with target video, and by taking Business device is identified to obtain according to the broadcast information of target video to a plurality of caption information, and broadcast information is that target video is playing Information in the process, broadcast information include the first broadcast information.
First display unit 90, for making client show the first word according to the first time information in the first caption information The first caption content in curtain information.
Figure 19 is the schematic diagram of the generating means of another video caption according to an embodiment of the present invention.As shown in figure 19, The generating means of the video caption may include: the first transmission unit 70, the first receiving unit 80 and the first display unit 90.Its In, the first display unit 90 includes: the first display module 91, judgment module 92, ending module 93 and the second display module 94.
It should be noted that the first transmission unit 70 of the embodiment, the first receiving unit 80 and the first display unit 90 Identical as the effect in the generating means of the video caption of embodiment illustrated in fig. 18, details are not described herein again.
First time information includes the display duration of the display start time and the first caption content of the first caption content.
First display module 91, for when the display start time of client terminal playing to the first caption content, client Start to show the first caption content in default display position.
Judgment module 92, for making client judge to show whether the time of the first caption content reaches the first caption content Display duration.
Ending module 93 shows that the time of the first caption content reaches the first caption content for judging in client When showing duration, terminate the first caption content of display.
Second display module 94 shows that the time of the first caption content is not up to the first subtitle for judging in client When the display duration of content, continue to show the first caption content.
Figure 20 is the schematic diagram of the generating means of another video caption according to an embodiment of the present invention.As shown in figure 20, The generating means of the video caption may include: the first transmission unit 70, the first receiving unit 80 and the first display unit 90.Its In, the first display unit 90 includes: the first display module 91, judgment module 92, ending module 93 and the second display module 94.It should The generating means of video caption further include: the second transmission unit 100 and the second receiving unit 110.
It should be noted that the first transmission unit 70 of the embodiment, the first receiving unit 80 and the first display unit 90, First display module 91, judgment module 92, ending module 93 and the second display module 94 and embodiment illustrated in fig. 19 video words Effect in the generating means of curtain is identical, and details are not described herein again.
Second transmission unit 100, for receiving server according to the first broadcast information in the first request from more in client After item identifies the first caption information determined in caption information, in the case where client is also not finished and plays target video, Client is set to carry the second broadcast information to server transmission in the subsequent time of the display start time of the first caption content The second request, wherein the duration between the display start time of subsequent time and the first caption content is less than or equal to the first word The display duration of curtain content.
Second receiving unit 110, for making client receive the second request of server response from a plurality of mark caption information Second caption information of middle determination, wherein broadcast information includes the second broadcast information;Second display unit, for making client After terminating to show the first caption content, shown in the second caption information according to the second temporal information in the second caption information The second caption content.
Optionally, above-mentioned broadcast information include it is following any one or more: mark of the target video in playing process Information;Play time of the target video in playing process;Playing duration of the target video in playing process.
It should be noted that the first transmission unit 70 in the embodiment can be used for executing in the embodiment of the present application 1 Step S702, the first receiving unit 80 in the embodiment can be used for executing the step S704 in the embodiment of the present application 1, the reality Applying the first display unit 90 in example can be used for executing step S706 in the embodiment of the present application 1.
The embodiment of the present invention is by the first transmission unit 70, for making client when playing target video, to server Send the first request of the first broadcast information for carrying target video.First receiving unit 80, for making client receive clothes The first caption information that business device is determined from a plurality of mark caption information according to the first broadcast information in the first request, wherein more Item identify caption information it is associated with target video, and by server according to the broadcast information of target video to a plurality of caption information It is identified to obtain, broadcast information is information of the target video in playing process, and broadcast information includes the first broadcast information.The One display unit 90, for showing that client in the first caption information according to the first time information in the first caption information First caption content has achieved the purpose that generate video caption, to realize the skill for improving the flexibility that video caption generates Art effect, and then solve the technical issues of flexibility of video caption generation in the related technology.
Herein it should be noted that example and application scenarios phase that said units and module are realized with corresponding step Together, but it is not limited to the above embodiments disclosure of that.It should be noted that a part of said units and module as device It may operate in hardware environment as shown in Figure 1, hardware realization can also be passed through, wherein hardware by software realization Environment includes network environment.
Embodiment 5
According to embodiments of the present invention, additionally provide a kind of server for implementing the generation method of above-mentioned video caption or Terminal.
Figure 21 is a kind of structural block diagram of terminal according to an embodiment of the present invention.As shown in figure 21, which may include: One or more (one is only shown in figure) processors 211, memory 213 and transmitting device 215, as shown in figure 21, the end End can also include input-output equipment 217.
Wherein, memory 213 can be used for storing software program and module, such as the video caption in the embodiment of the present invention Generation method and the corresponding program instruction/module of device, the software journey that processor 211 is stored in memory 213 by operation Sequence and module realize the generation method of above-mentioned video caption thereby executing various function application and data processing.It deposits Reservoir 213 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage fills It sets, flash memory or other non-volatile solid state memories.In some instances, memory 213 can further comprise relative to place The remotely located memory of device 211 is managed, these remote memories can pass through network connection to terminal.The example packet of above-mentioned network Include but be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 215 is used to that data to be received or sent via network, can be also used for processor with Data transmission between memory.Above-mentioned network specific example may include cable network and wireless network.In an example, Transmitting device 215 includes a network adapter (Network Interface Controller, NIC), can pass through cable It is connected with other network equipments with router so as to be communicated with internet or local area network.In an example, transmission dress 215 are set as radio frequency (Radio Frequency, RF) module, is used to wirelessly be communicated with internet.
Wherein, specifically, memory 213 is for storing application program.
The application program that processor 211 can call memory 213 to store by transmitting device 215, to execute following steps It is rapid:
Server obtains a plurality of caption information;
Server is identified a plurality of caption information according to the broadcast information of target video, obtains related to target video The a plurality of mark caption information of connection, wherein broadcast information is information of the target video in playing process;
Server determines the first subtitle according to the first broadcast information that the first request carries from a plurality of mark caption information Information, wherein the first request is sent by client when playing target video, and broadcast information includes the first broadcast information;
Server to client send the first caption information, wherein client according in the first caption information first when Between information show the first caption content in the first caption information.
Processor 211 is also used to execute following step: when first time information includes that the display of the first caption content starts Carve and the first caption content display duration, server to client send the first caption information after, client also not Terminate in the case where playing target video, server responds the second request after the display start time of the first caption content and takes Second broadcast information of band determines the second caption information from a plurality of mark caption information, wherein at the time of the second request of response Duration between display start time is less than or equal to the display duration of the first caption content, and broadcast information includes the second broadcasting letter Breath;Server sends the second caption information to client, wherein client after the first caption content shows and terminates, according to The second temporal information in second caption information shows the second caption content in the second caption information.
Processor 211 is also used to execute following step: the original subtitle file of server acquisition preset format;Server pair Original subtitle file is parsed, and a plurality of original caption information is obtained, wherein every original subtitle information includes in original subtitle Appearance and original time information corresponding with original caption content;Server is by the original caption content of every original caption information Preset memory locations are stored in original time information.
Processor 211 is also used to execute following step: in server by the original caption content of every original caption information After being stored in preset memory locations with original time information, server is obtained to the target subtitle in a plurality of original caption information Information edited after update caption information, wherein updating caption information includes updating caption content and/or renewal time Information;In the case where updating caption information includes updating caption content, server believes target subtitle in preset memory locations Original caption content in breath replaces with update caption content;In the case where updating caption information includes renewal time information, Original time information in target caption information is replaced with renewal time information in preset memory locations by server.
Processor 211 is also used to execute following step: in server according to the broadcast information of target video to a plurality of subtitle Information is identified, and before obtaining a plurality of mark caption information associated with target video, server obtains target video Original video files;Server encodes original video files, obtains the encoded video file of target video;Server root A plurality of caption information is identified according to the broadcast information of target video, obtains a plurality of mark subtitle associated with target video Information includes: that server obtains broadcast information from encoded video file;Server is according to broadcast information to a plurality of caption information It is identified, obtains a plurality of mark caption information associated with target video.
The application program that processor 211 can also call memory 213 to store by transmitting device 215, it is following to execute Step:
Client sends the first of the first broadcast information for carrying target video to server when playing target video Request;
Client receives what server was determined from a plurality of mark caption information according to the first broadcast information in the first request First caption information, wherein a plurality of mark caption information is associated with target video, and the broadcasting according to target video by server It puts information a plurality of caption information is identified to obtain, broadcast information is information of the target video in playing process, plays letter Breath includes the first broadcast information;
Client is shown in the first subtitle in the first caption information according to the first time information in the first caption information Hold.
Processor 211 is also used to execute following step: when first time information includes that the display of the first caption content starts Carve the display duration with the first caption content, when the display start time of client terminal playing to the first caption content, client Start to show the first caption content in default display position;Client judges to show whether the time of the first caption content reaches the The display duration of one caption content;If the client determine that the time of the first caption content of display reaches the first caption content When showing duration, terminate the first caption content of display;If the client determine that the time of the first caption content of display is not up to When the display duration of the first caption content, continue to show the first caption content.
Processor 211 is also used to execute following step: receiving server in client and plays according in the first request first Information is also not finished in client after the first caption information determined in a plurality of mark caption information and plays target video In the case of, subsequent time of the client in the display start time of the first caption content carries the second broadcasting to server transmission Second request of information, wherein the duration between the display start time of subsequent time and the first caption content is less than or equal to the The display duration of one caption content;Client receives that the second request of server response is determined from a plurality of mark caption information Two caption informations, wherein broadcast information includes the second broadcast information;Client is after terminating to show the first caption content, root The second caption content in the second caption information is shown according to the second temporal information in the second caption information.
Processor 211 is also used to execute following step: in client according to the first time information in the first caption information Before showing the first caption content in the first caption information, client, which receives, to be used to indicate to the original aobvious of the first caption content The setting instruction that sample formula is configured;Client sets the original display pattern of the first caption content according to setting instruction It sets, obtains updating Show Styles;Client is shown according to the first time information in the first caption information with updating Show Styles The first caption content in first caption information.
Using the embodiment of the present invention, a kind of generation method of video caption is provided.A plurality of subtitle is obtained by server Information;Server is identified a plurality of caption information according to the broadcast information of target video, obtains associated with target video A plurality of mark caption information, wherein broadcast information be information of the target video in playing process;Server is asked according to first The first broadcast information of carrying is asked to determine the first caption information from a plurality of mark caption information, wherein the first request is by client End is sent when playing target video, and broadcast information includes the first broadcast information;Server sends the first subtitle letter to client Breath, wherein client is shown in the first subtitle in the first caption information according to the first time information in the first caption information Hold, achieved the purpose that generate video caption, to realize the technical effect for improving the flexibility that video caption generates, in turn Solves the technical issues of flexibility that video caption generates in the related technology.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment Details are not described herein.
It will appreciated by the skilled person that structure shown in Figure 21 is only to illustrate, terminal can be smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device (Mobile Internet Devices, MID), the terminal devices such as PAD.Figure 21 it does not cause to limit to the structure of above-mentioned electronic device.For example, terminal is also May include than shown in Figure 21 more perhaps less component (such as network interface, display device) or have and Figure 21 institute Show different configurations.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Embodiment 6
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can With the program code of the generation method for executing video caption.
Optionally, in the present embodiment, above-mentioned storage medium can be located at multiple in network shown in above-described embodiment On at least one network equipment in the network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
Server obtains a plurality of caption information;
Server is identified a plurality of caption information according to the broadcast information of target video, obtains related to target video The a plurality of mark caption information of connection, wherein broadcast information is information of the target video in playing process;
Server determines the first subtitle according to the first broadcast information that the first request carries from a plurality of mark caption information Information, wherein the first request is sent by client when playing target video, and broadcast information includes the first broadcast information;
Server to client send the first caption information, wherein client according in the first caption information first when Between information show the first caption content in the first caption information.
Optionally, storage medium is also configured to store the program code for executing following steps: first time information The display duration of display start time and the first caption content including the first caption content sends the to client in server After one caption information, in the case where client is also not finished and plays target video, server is in the aobvious of the first caption content Response second requests the second broadcast information carried to determine the second subtitle from a plurality of mark caption information after showing start time Information, wherein duration at the time of the second request of response between display start time is less than or equal to the aobvious of the first caption content Show that duration, broadcast information include the second broadcast information;Server sends the second caption information to client, wherein client exists First caption content is shown after terminating, and is shown in the second caption information according to the second temporal information in the second caption information Second caption content.
Storage medium is also configured to store the program code for executing following steps: server obtains preset format Original subtitle file;Server parses original subtitle file, obtains a plurality of original caption information, wherein every original Caption information includes original caption content and original time information corresponding with original caption content;Server is original by every The original caption content and original time information of caption information are stored in preset memory locations.
Storage medium is also configured to store the program code for executing following steps: in server by every original word The original caption content and original time information of curtain information are stored in after preset memory locations, and server is obtained to a plurality of original Target caption information in caption information edited after update caption information, wherein update caption information include update Caption content and/or renewal time information;In the case where updating caption information includes updating caption content, server is default Original caption content in target caption information is replaced with update caption content by storage location;It include more updating caption information In the case where new temporal information, server replaces with the original time information in target caption information more in preset memory locations New temporal information.
Storage medium is also configured to store the program code for executing following steps: in server according to target video Broadcast information a plurality of caption information is identified, before obtaining a plurality of mark caption information associated with target video, The original video files of server acquisition target video;Server encodes original video files, obtains target video Encoded video file;Server is identified a plurality of caption information according to the broadcast information of target video, obtains regarding with target Frequently associated a plurality of mark subtitle information includes: server obtains broadcast information from encoded video file;Server according to Broadcast information is identified a plurality of caption information, obtains a plurality of mark caption information associated with target video.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
Client sends the first of the first broadcast information for carrying target video to server when playing target video Request;
Client receives what server was determined from a plurality of mark caption information according to the first broadcast information in the first request First caption information, wherein a plurality of mark caption information is associated with target video, and the broadcasting according to target video by server It puts information a plurality of caption information is identified to obtain, broadcast information is information of the target video in playing process, plays letter Breath includes the first broadcast information;
Client is shown in the first subtitle in the first caption information according to the first time information in the first caption information Hold.
Storage medium is also configured to store the program code for executing following steps: first time information includes first The display duration of the display start time and the first caption content of caption content, when showing for client terminal playing to the first caption content When showing start time, client starts to show the first caption content in default display position;Client judgement the first subtitle of display Whether the time of content reaches the display duration of the first caption content;If the client determine that display the first caption content when Between when reaching the display duration of the first caption content, terminate the first caption content of display;If the client determine that display first When the time of caption content is not up to the display duration of the first caption content, continue to show the first caption content.
Storage medium is also configured to store the program code for executing following steps: receiving server root in client According to first request in the first broadcast information from it is a plurality of mark caption information in determine the first caption information after, client also Be not finished in the case where playing target video, client the display start time of the first caption content subsequent time to service Device sends the second request for carrying the second broadcast information, wherein the display start time of subsequent time and the first caption content Between duration be less than or equal to the first caption content display duration;Client receives the second request of server response from a plurality of mark Know the second caption information determined in caption information, wherein broadcast information includes the second broadcast information;Client is terminating to show After first caption content, the second subtitle in the second caption information is shown according to the second temporal information in the second caption information Content.
Storage medium is also configured to store the program code for executing following steps: in client according to the first subtitle Before first time information in information shows the first caption content in the first caption information, client reception is used to indicate pair The setting instruction that the original display pattern of first caption content is configured;Client is according to setting instruction to the first caption content Original display pattern be configured, obtain update Show Styles;Client is believed according to the first time in the first caption information Breath shows the first caption content in the first caption information to update Show Styles.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment Details are not described herein.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (16)

1. a kind of generation method of video caption characterized by comprising
Server obtains a plurality of caption information, wherein it includes: the server that the server, which obtains a plurality of caption information, Obtain the original subtitle file of preset format;The server parses the original subtitle file, obtains a plurality of original Caption information, wherein every original subtitle information includes original caption content and original corresponding with the original caption content Beginning temporal information;
The server is identified a plurality of caption information according to the broadcast information of target video, obtains and the target The associated a plurality of mark caption information of video, wherein the broadcast information is information of the target video in playing process;
The server determines first according to the first broadcast information that the first request carries from a plurality of mark caption information Caption information, wherein first request is sent by client when playing the target video, and the broadcast information includes institute State the first broadcast information;
The server sends first caption information to the client, wherein the client is according to first word First time information in curtain information shows the first caption content in first caption information.
2. the method according to claim 1, wherein the first time information includes first caption content Display start time and the first caption content display duration, send first word to the client in the server After curtain information, the method also includes:
In the case where the client is also not finished and plays the target video, the server is in first caption content Display start time after to respond the second broadcast information that the second request carries determining from a plurality of mark caption information Second caption information, wherein duration at the time of the described second request of response between the display start time is less than or equal to The display duration of first caption content, the broadcast information include second broadcast information;
The server sends second caption information to the client, wherein the client is in first subtitle Content is shown after terminating, and is shown in second caption information according to the second temporal information in second caption information Second caption content.
3. also being wrapped the method according to claim 1, wherein the server obtains a plurality of caption information It includes:
The server stores the original caption content of described every original caption information and the original time information In preset memory locations.
4. according to the method described in claim 3, it is characterized in that, in the server by described every original caption information The original caption content and the original time information are stored in after the preset memory locations, the method also includes:
The server obtains the update word after editing to the target caption information in a plurality of original caption information Curtain information, wherein the update caption information includes updating caption content and/or renewal time information;
In the case where the update caption information includes the update caption content, the server is in the default storage position It sets and the original caption content in the target caption information is replaced with into the update caption content;
In the case where the update caption information includes the renewal time information, the server is in the default storage position It sets and the original time information in the target caption information is replaced with into the renewal time information.
5. the method according to claim 1, wherein
The a plurality of caption information is identified according to the broadcast information of the target video in the server, is obtained and institute Before stating the associated a plurality of mark caption information of target video, the method also includes: described in the server obtains The original video files of target video;The server encodes the original video files, obtains the target video Encoded video file;
The server is identified a plurality of caption information according to the broadcast information of the target video, obtain with it is described The associated a plurality of mark subtitle information of target video includes: the server obtains institute from the encoded video file State broadcast information;The server is identified a plurality of caption information according to the broadcast information, obtains and the mesh Mark the associated a plurality of mark caption information of video.
6. method as claimed in any of claims 1 to 5, which is characterized in that the broadcast information includes following appoints It anticipates one or more:
Identification information of the target video in playing process;
Play time of the target video in playing process;
Playing duration of the target video in playing process.
7. a kind of generation method of video caption characterized by comprising
Client sends the first of the first broadcast information for carrying the target video to server when playing target video Request;
The client receives the server first broadcast information according to first request from a plurality of mark subtitle The first caption information determined in information, wherein a plurality of mark caption information is associated with the target video, and by institute It states server a plurality of caption information is identified to obtain according to the broadcast information of target video, the broadcast information is target view Information of the frequency in playing process, the broadcast information includes first broadcast information;
The client shows in first caption information according to the first time information in first caption information One caption content;
Wherein, a plurality of caption information is obtained in the following way by the server: the server obtains default The original subtitle file of format;The server parses the original subtitle file, obtains a plurality of original caption information, Wherein, every original subtitle information includes that original caption content and original time corresponding with the original caption content are believed Breath.
8. the method according to the description of claim 7 is characterized in that the first time information includes first caption content Display start time and the first caption content display duration, the client is according to first in first caption information Temporal information shows that first caption content in first caption information includes:
When display start time of the client terminal playing to first caption content, the client is in default display position It sets and starts to show first caption content;
When the client judges to show whether the time of first caption content reaches the display of first caption content It is long;
If the client is judged to show the display that the time of first caption content reaches first caption content When duration, terminate to show first caption content;
If the client is judged to show that the time of first caption content is not up to the aobvious of first caption content When showing duration, continue to show first caption content.
9. according to the method described in claim 8, it is characterized in that, receiving the server according to described the in the client First broadcast information described in one request is after the first caption information determined in a plurality of mark caption information, and the method is also Include:
In the case where the client is also not finished and plays the target video, the client is in first caption content Display start time subsequent time to the server send carry the second broadcast information second request, wherein institute The duration stated between subsequent time and the display start time of first caption content is less than or equal to first caption content Display duration;
The client receives the server and responds second request is determined from a plurality of mark caption information the Two caption informations, wherein the broadcast information includes second broadcast information;
The client is after terminating to show first caption content, according to the second time in second caption information Information shows the second caption content in second caption information.
10. the method according to the description of claim 7 is characterized in that in the client according in first caption information The first time information show first caption content in first caption information before, the method is also wrapped It includes:
The client receives the setting instruction for being used to indicate and being configured to the original display pattern of first caption content;
The client is configured the original display pattern of first caption content according to setting instruction, obtains more New Show Styles;
Wherein, the client shows that first subtitle is believed according to the first time information in first caption information First caption content in breath includes: the client according to the first time information in first caption information First caption content in first caption information is shown with the update Show Styles.
11. a kind of generating means of video caption characterized by comprising
Acquiring unit, for making server obtain a plurality of caption information;
Unit is identified, for marking the server to a plurality of caption information according to the broadcast information of target video Know, obtain a plurality of mark caption information associated with the target video, wherein the broadcast information is that target video is being broadcast Information during putting;
Determination unit, for making the server request the first broadcast information carried from a plurality of mark subtitle according to first The first caption information is determined in information, wherein first request is sent by client when playing the target video, described Broadcast information includes first broadcast information;
First transmission unit, for making the server send first caption information to the client, wherein the visitor Family end shows the first caption content in first caption information according to the first time information in first caption information;
Wherein, the acquiring unit includes: acquisition module, for making the server obtain the original subtitle text of preset format Part;Parsing module obtains a plurality of original caption information for parsing the server to the original subtitle file, Wherein, every original subtitle information includes that original caption content and original time corresponding with the original caption content are believed Breath.
12. device according to claim 11, which is characterized in that the first time information includes in first subtitle The display duration of the display start time and the first caption content of appearance, described device further include:
Response unit is used for after the server sends first caption information to the client, in the client In the case that the broadcasting target video is also not finished in end, make the server when the display of first caption content starts The second broadcast information that the second request of response carries after carving determines the second caption information from a plurality of mark caption information, Wherein, duration at the time of the described second request of response between the display start time is less than or equal in first subtitle The display duration of appearance, the broadcast information include second broadcast information;
Second transmission unit, for making the server send second caption information to the client, wherein the visitor Family end shows institute after first caption content shows and terminates, according to the second temporal information in second caption information State the second caption content in the second caption information.
13. device according to claim 11, which is characterized in that the acquiring unit further include:
Memory module, for making the server by the original caption content and the original of described every original caption information Beginning temporal information is stored in preset memory locations.
14. a kind of generating means of video caption characterized by comprising
First transmission unit carries the target video to server transmission for making client when playing target video The first broadcast information first request;
First receiving unit, for making the client receive the server first broadcasting according to first request The first caption information that information is determined from a plurality of mark caption information, wherein a plurality of mark caption information and the mesh It is associated to mark video, and a plurality of caption information is identified to obtain according to the broadcast information of target video by the server, The broadcast information is information of the target video in playing process, and the broadcast information includes first broadcast information, In, every caption information includes caption content and temporal information corresponding with the caption content;
First display unit, described in showing that the client according to the first time information in first caption information The first caption content in first caption information;
Wherein, a plurality of caption information is obtained in the following way by the server: the server obtains default The original subtitle file of format;The server parses the original subtitle file, obtains a plurality of original caption information, Wherein, every original subtitle information includes that original caption content and original time corresponding with the original caption content are believed Breath.
15. device according to claim 14, which is characterized in that the first time information includes in first subtitle The display duration of the display start time and the first caption content of appearance, first display unit include:
First display module, it is described for when display start time of the client terminal playing to first caption content Client starts to show first caption content in default display position;
Judgment module, for making the client judge to show whether the time of first caption content reaches first word The display duration of curtain content;
Ending module, for judging to show that the time of first caption content reaches first subtitle in the client When the display duration of content, terminate to show first caption content;
Second display module, for judging to show that the time of first caption content is not up to described in the client When the display duration of one caption content, continue to show first caption content.
16. device according to claim 15, which is characterized in that described device further include:
Second transmission unit, for receiving the server first broadcasting according to first request in the client Information is also not finished in the client after the first caption information determined in a plurality of mark caption information and plays the mesh In the case where marking video, make the client the display start time of first caption content subsequent time to the clothes Business device sends the second request for carrying the second broadcast information, wherein the subsequent time is aobvious with first caption content Show that the duration between start time is less than or equal to the display duration of first caption content;
Second receiving unit, for making the client receive the server response second request from a plurality of mark The second caption information determined in caption information, wherein the broadcast information includes second broadcast information;
Second display unit, for making the client after terminating to show first caption content, according to described second The second temporal information in caption information shows the second caption content in second caption information.
CN201611177053.6A 2016-12-19 2016-12-19 The generation method and device of video caption Active CN106791494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611177053.6A CN106791494B (en) 2016-12-19 2016-12-19 The generation method and device of video caption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611177053.6A CN106791494B (en) 2016-12-19 2016-12-19 The generation method and device of video caption

Publications (2)

Publication Number Publication Date
CN106791494A CN106791494A (en) 2017-05-31
CN106791494B true CN106791494B (en) 2019-02-26

Family

ID=58890406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611177053.6A Active CN106791494B (en) 2016-12-19 2016-12-19 The generation method and device of video caption

Country Status (1)

Country Link
CN (1) CN106791494B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112135197B (en) * 2019-06-24 2022-12-09 腾讯科技(深圳)有限公司 Subtitle display method and device, storage medium and electronic equipment
CN111526430A (en) * 2020-03-26 2020-08-11 王东 File matching method and device and electronic equipment
CN111565338A (en) * 2020-05-29 2020-08-21 广州酷狗计算机科技有限公司 Method, device, system, equipment and storage medium for playing video
CN114640874A (en) * 2022-03-09 2022-06-17 湖南国科微电子股份有限公司 Subtitle synchronization method and device, set top box and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517104A (en) * 2012-06-15 2014-01-15 深圳市快播科技有限公司 Set top box and video captions composite method based on network broadcasting
CN105338419A (en) * 2015-10-29 2016-02-17 网易传媒科技(北京)有限公司 Subtitle collection generating method and apparatus
CN105704582A (en) * 2015-05-11 2016-06-22 深圳Tcl数字技术有限公司 Browser-based subtitle displaying method and device
CN105848005A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Video subtitle display method and video subtitle display device
CN105898517A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Caption display control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8707381B2 (en) * 2009-09-22 2014-04-22 Caption Colorado L.L.C. Caption and/or metadata synchronization for replay of previously or simultaneously recorded live programs

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517104A (en) * 2012-06-15 2014-01-15 深圳市快播科技有限公司 Set top box and video captions composite method based on network broadcasting
CN105704582A (en) * 2015-05-11 2016-06-22 深圳Tcl数字技术有限公司 Browser-based subtitle displaying method and device
CN105338419A (en) * 2015-10-29 2016-02-17 网易传媒科技(北京)有限公司 Subtitle collection generating method and apparatus
CN105898517A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Caption display control method and device
CN105848005A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Video subtitle display method and video subtitle display device

Also Published As

Publication number Publication date
CN106791494A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106791494B (en) The generation method and device of video caption
CN107741886B (en) Multi-person interaction method based on augmented reality technology
CN108960889B (en) Method and device for controlling voice speaking room progress in virtual three-dimensional space of house
CN104091287B (en) A kind of task implementation method and device based on data-driven
CN106804007A (en) The method of Auto-matching special efficacy, system and equipment in a kind of network direct broadcasting
CN108319478B (en) Object attribute adjusting method and device, storage medium and electronic device
CN109829977A (en) Method, apparatus, electronic equipment and the medium in room are seen in virtual three-dimensional space
CN109743588A (en) Direct broadcasting room virtual present list generation method, device, server and storage medium
CN105027578A (en) Connected-media end user experience using an overlay network
CN104102495B (en) A kind of window display method and device
CN110166278A (en) Kubernetes cluster building method, apparatus, computer equipment and storage medium
CN110496391B (en) Information synchronization method and device
CN109672918B (en) Animation synchronous playing method and device
CN109286822A (en) Interactive approach, device, equipment and storage medium based on live video identification
CN108776917B (en) Synchronous processing method and device for virtual three-dimensional space
CN105872639A (en) Live broadcast method and live broadcast terminal
CN101827078A (en) Inquiry method, server and communication system for configured data difference
CN110472099A (en) Interdynamic video generation method and device, storage medium
CN103002019A (en) Browser and method for sending webpage game message for browser
CN106302666B (en) Data push method and device
CN106375860A (en) Video playing method and device, and terminal and server
WO2017008404A1 (en) Mobile terminal control method, device and system
CN105903191B (en) The data processing method and system of cross-terminal
CN109078324A (en) A kind of downloading of game data, reconstructing method and device
CN110062163A (en) The processing method and device of multi-medium data

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
GR01 Patent grant
GR01 Patent grant