CN105025386A - Subtitle processing method and device - Google Patents

Subtitle processing method and device Download PDF

Info

Publication number
CN105025386A
CN105025386A CN201510439267.5A CN201510439267A CN105025386A CN 105025386 A CN105025386 A CN 105025386A CN 201510439267 A CN201510439267 A CN 201510439267A CN 105025386 A CN105025386 A CN 105025386A
Authority
CN
China
Prior art keywords
gesture
gesture instruction
size
caption
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510439267.5A
Other languages
Chinese (zh)
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.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media Technology 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 Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201510439267.5A priority Critical patent/CN105025386A/en
Publication of CN105025386A publication Critical patent/CN105025386A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • 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/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

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

Abstract

The invention discloses a subtitle processing method and device. The method includes receiving a gesture instruction aiming at a subtitle zone in a video play interface; adjusting the size of the subtitle zone according to the gesture instruction; and adjusting the font size of subtitles adaptively according to the size of the adjusted subtitle zone. According to the invention, the gesture instruction aiming at the subtitle zone in the video play interface is received, the size of the subtitle zone is adjusted according to the gesture instruction, and the size of subtitles according to the font size of the adjusted subtitle zone is adjusted adaptively. Since the font size of the subtitles is adjusted through adjusting the size of the subtitle zone, the font size of the subtitles can be adjusted conveniently and quickly.

Description

A kind of method for processing caption and device
Technical field
The present invention relates to Internet technical field, particularly a kind of method for processing caption and device.
Background technology
Along with the development of Internet technology, video has become people's work, study, the social and irreplaceable important way of amusement and recreation, and people can watch the video frequency programs such as live on line, film, TV play, variety by network.User, usually can the corresponding captions of corresponding display while displaying video when watching various video.
But the size of captions is often more fixing, cannot change, such as, user is away from screen sometimes, can not see captions, have impact on Consumer's Experience.
Summary of the invention
In view of the above problems, propose the present invention to provide a kind of overcoming the problems referred to above or a kind of method for processing caption solved the problem at least in part and device, in order to adjust the captions in video simply, efficiently.
The invention provides a kind of method for processing caption, comprising:
Receive the gesture instruction for caption area in video playback interface;
According to the canvas size of described gesture instruction adjustment caption area;
According to the size of the canvas size accommodation caption data after adjustment.
In one embodiment, described gesture instruction can comprise: amplifying gesture instruction or reduce gesture instruction.
In one embodiment, described amplifying gesture instruction be single double-click gesture, described in reduce gesture instruction be even double-click gesture; Or
Described amplifying gesture instruction be two fingers from mobile gesture, described in reduce gesture instruction be that two fingers move gesture in opposite directions.
In one embodiment, described caption data can comprise: icon and word.
In one embodiment, the caption data of described video and video data belong to different layer respectively.
In one embodiment, the length of described painting canvas is greater than or equal to the length of described caption data, and the height of described painting canvas is greater than or equal to the height of described caption data.
The invention provides a kind of captions process device, comprising:
Receiver module, for receiving the gesture instruction for caption area in video playback interface;
First adjusting module, for the canvas size according to described gesture instruction adjustment caption area;
Second adjusting module, for the size according to the canvas size accommodation caption data after adjustment.
In one embodiment, described gesture instruction can comprise: amplifying gesture instruction or reduce gesture instruction.
In one embodiment, described amplifying gesture instruction be single double-click gesture, described in reduce gesture instruction be even double-click gesture; Or
Described amplifying gesture instruction be two fingers from mobile gesture, described in reduce gesture instruction be that two fingers move gesture in opposite directions.
In one embodiment, the length of described painting canvas is greater than or equal to the length of described caption data, and the height of described painting canvas is greater than or equal to the height of described caption data.
Some beneficial effects of the embodiment of the present invention can comprise: by receiving the gesture instruction for caption area in video playback interface, according to the canvas size of gesture instruction adjustment caption area, according to the size of the canvas size accommodation caption data after adjustment, owing to being adjusted the size of caption data by adjustment painting canvas, thus the size of caption data can be adjusted easily and efficiently.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of a kind of method for processing caption in the embodiment of the present invention;
Fig. 2 is the terminal interface schematic diagram of the embodiment of the present invention;
Fig. 3 is another terminal interface schematic diagram of the embodiment of the present invention;
Fig. 4 is the flow chart of a kind of method for processing caption in the embodiment of the present invention one;
Fig. 5 is the block diagram of a kind of captions process device in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Figure 1 shows that the flow chart of a kind of method for processing caption in the embodiment of the present invention, in order to adjust the captions in video simply, efficiently.Said method is used in terminal, and terminal can be computer, panel computer, mobile phone, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, arbitrary equipment with image identification function such as personal digital assistant.Terminal can be fixed terminal, and can be also mobile terminal, the embodiment of the present invention limit.As shown in Figure 1, S11-S13 is comprised the following steps:
Step S11, receives the gesture instruction for caption area in video playback interface.
In one embodiment, caption area can in the below at video playback interface, also can be video playback interface side, above or one jiao, caption area can in the optional position at video playback interface, disclosure embodiment does not limit, as shown in Figure 2, caption area 22 is positioned at the below of panel computer 21.Panel computer 21, just at displaying video, shows the captions corresponding with the video play at caption area 22.
In one embodiment, gesture instruction can comprise: amplifying gesture instruction or reduce gesture instruction.
In one embodiment, amplifying gesture instruction is that single double-clicks gesture, and reducing gesture instruction is that even double-clicks gesture; Or amplifying gesture instruction be two fingers from mobile gesture, reducing gesture instruction is that two fingers move gesture in opposite directions.
Step S12, according to the canvas size of gesture instruction adjustment caption area.
In one embodiment, the size of caption area can need sets itself according to data-stream video file, and the length of painting canvas is greater than or equal to the length of caption area data, and the height of painting canvas is greater than or equal to the height of caption data.
Illustrate, as shown in Figure 3, panel computer 21 is just at displaying video, caption area is positioned at the below at video playback interface, in the layer at caption data place, painting canvas 31 is set, according to gesture instruction adjustment painting canvas 31 size, be two gestures referring to mediate shown in figure, painting canvas 31 along with two spans from close and diminish gradually.
Step S13, according to the size of the canvas size accommodation caption data after adjustment.
In video file, video data and caption data are two independently rails, and the displaying of captions and video playback are placed in two layer, after being combined by caption data, generate the data-stream video file comprising caption data with video file.In the present embodiment, in the layer at caption data place, arrange painting canvas, the size of painting canvas decides the size of caption data.
Illustrate, after in the layer at caption data place, painting canvas is set, when user watches video, the font in captions is wished to zoom in or out, at this moment, user can to zoom in or out operation, according to the operation of user with painting canvas in finger point, painting canvas can zoom in or out, and then the font size of the captions that zoom in or out.
In one embodiment, caption data can comprise: icon and word.
In addition, caption data can also be the programm name, program description etc. that are arranged on side, video playback interface, and the data such as station symbol, TV guide.Text subtile in caption data is that text subtile is corresponding with the voice in program, therefore can by generating in advance after speech recognition for the play content display in each program.
In one embodiment, the caption data of video and video data belong to different layer respectively.
The said method of the embodiment of the present invention, by receiving the gesture instruction for caption area in video playback interface, according to the canvas size of gesture instruction adjustment caption area, according to the size of the canvas size accommodation caption data after adjustment, owing to being adjusted the size of caption data by adjustment painting canvas, thus the size of caption data can be adjusted easily and efficiently.
With specific embodiment, the technique scheme that disclosure embodiment provides is described below.
Embodiment one
The method of the captions process that embodiment one utilizes disclosure embodiment to provide.For in terminal, the application background of the present embodiment is: video can show captions when playing simultaneously, the distance of user distance screen is different, also different to the size requirement of captions, when user distance screen is far away, for ease of seeing clearly, captions can be wished to tune up, when user distance screen is nearer, watch video to not affect user, user can wish to be turned down by captions, based on this, the present embodiment is provided with painting canvas in the layer at captions place, is adjusted the size of font in captions by adjustment painting canvas.As shown in Figure 4, following steps S41-S43 is adopted:
Step S41, terminal receives the gesture instruction for painting canvas in video playback interface.
Step S42, when terminal receives the single double-click gesture for painting canvas, tunes up painting canvas; When receiving even and double-clicking gesture, painting canvas is turned down.
Step S43, according to the size of font in the canvas size accommodation captions after adjustment.
In the present embodiment, adjusted the size of font in captions by the size adjusting painting canvas, when being amplified by painting canvas, the font in captions is also amplified thereupon, and when being reduced by painting canvas, the font in captions also reduces thereupon.Therefore, the present embodiment can adjust the size of font in captions simply, efficiently.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of captions process device, the principle of dealing with problems due to this device is similar to aforementioned method for processing caption, and therefore the enforcement of this device see the enforcement of preceding method, can repeat part and repeat no more.
Figure 5 shows that the block diagram of a kind of captions process device in the embodiment of the present invention, as shown in Figure 2, this device comprises:
Receiver module 51, for receiving the gesture instruction for caption area in video playback interface;
First adjusting module 52, for the canvas size according to gesture instruction adjustment caption area;
Second adjusting module 53, for the size according to the canvas size accommodation caption data after adjustment.
In one embodiment, gesture instruction can comprise: amplifying gesture instruction or reduce gesture instruction.
In one embodiment, amplifying gesture instruction is that single double-clicks gesture, and reducing gesture instruction is that even double-clicks gesture; Or
Amplifying gesture instruction be two fingers from mobile gesture, reducing gesture instruction is that two fingers move gesture in opposite directions.
In one embodiment, the length of painting canvas is greater than or equal to the length of caption data, and the height of painting canvas is greater than or equal to the height of caption data.
The said apparatus of the embodiment of the present invention, by receiving the gesture instruction for caption area in video playback interface, according to the canvas size of gesture instruction adjustment caption area, according to the size of the canvas size accommodation caption data after adjustment, owing to being adjusted the size of caption data by adjustment painting canvas, thus the size of caption data can be adjusted easily and efficiently.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a method for processing caption, is characterized in that, comprising:
Receive the gesture instruction for caption area in video playback interface;
According to the canvas size of described gesture instruction adjustment caption area;
According to the size of the canvas size accommodation caption data after adjustment.
2. the method for claim 1, is characterized in that, described gesture instruction comprises: amplifying gesture instruction or reduce gesture instruction.
3. method as claimed in claim 2, is characterized in that, described amplifying gesture instruction is that single double-clicks gesture, described in reduce gesture instruction be that even double-clicks gesture; Or
Described amplifying gesture instruction be two fingers from mobile gesture, described in reduce gesture instruction be that two fingers move gesture in opposite directions.
4. the method for claim 1, is characterized in that, described caption data comprises: icon and word.
5. the method for claim 1, is characterized in that,
The caption data of described video and video data belong to different layer respectively.
6. the method according to any one of claim 1-5, is characterized in that,
The length of described painting canvas is greater than or equal to the length of described caption data, and the height of described painting canvas is greater than or equal to the height of described caption data.
7. a captions process device, is characterized in that, comprising:
Receiver module, for receiving the gesture instruction for caption area in video playback interface;
First adjusting module, for the canvas size according to described gesture instruction adjustment caption area;
Second adjusting module, for the size according to the canvas size accommodation caption data after adjustment.
8. device as claimed in claim 7, it is characterized in that, described gesture instruction comprises: amplifying gesture instruction or reduce gesture instruction.
9. device as claimed in claim 8, is characterized in that, described amplifying gesture instruction is that single double-clicks gesture, described in reduce gesture instruction be that even double-clicks gesture; Or
Described amplifying gesture instruction be two fingers from mobile gesture, described in reduce gesture instruction be that two fingers move gesture in opposite directions.
10. device as claimed in any one of claims 7-9, is characterized in that,
The length of described painting canvas is greater than or equal to the length of described caption data, and the height of described painting canvas is greater than or equal to the height of described caption data.
CN201510439267.5A 2015-07-23 2015-07-23 Subtitle processing method and device Pending CN105025386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510439267.5A CN105025386A (en) 2015-07-23 2015-07-23 Subtitle processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510439267.5A CN105025386A (en) 2015-07-23 2015-07-23 Subtitle processing method and device

Publications (1)

Publication Number Publication Date
CN105025386A true CN105025386A (en) 2015-11-04

Family

ID=54415028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510439267.5A Pending CN105025386A (en) 2015-07-23 2015-07-23 Subtitle processing method and device

Country Status (1)

Country Link
CN (1) CN105025386A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331828A (en) * 2016-08-19 2017-01-11 暴风集团股份有限公司 Method and system for adjusting subtitle according to picture
CN111669664A (en) * 2020-06-17 2020-09-15 Oppo广东移动通信有限公司 Video playing method, video playing device, electronic equipment and storage medium
CN112507161A (en) * 2020-12-14 2021-03-16 华为技术有限公司 Music playing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012212254A (en) * 2011-03-30 2012-11-01 Nec Casio Mobile Communications Ltd Information processing device and method
CN103257821A (en) * 2012-02-15 2013-08-21 三星电子株式会社 Apparatus and method for changing attribute of subtitle in image display device
CN104063161A (en) * 2013-03-19 2014-09-24 腾讯科技(深圳)有限公司 Page scaling method and device
CN104363505A (en) * 2014-11-17 2015-02-18 天脉聚源(北京)传媒科技有限公司 Method and device for displaying playing interface
CN104461363A (en) * 2014-12-10 2015-03-25 九玉(北京)科技有限公司 Method and device for adjusting character size on touch screen device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012212254A (en) * 2011-03-30 2012-11-01 Nec Casio Mobile Communications Ltd Information processing device and method
CN103257821A (en) * 2012-02-15 2013-08-21 三星电子株式会社 Apparatus and method for changing attribute of subtitle in image display device
CN104063161A (en) * 2013-03-19 2014-09-24 腾讯科技(深圳)有限公司 Page scaling method and device
CN104363505A (en) * 2014-11-17 2015-02-18 天脉聚源(北京)传媒科技有限公司 Method and device for displaying playing interface
CN104461363A (en) * 2014-12-10 2015-03-25 九玉(北京)科技有限公司 Method and device for adjusting character size on touch screen device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331828A (en) * 2016-08-19 2017-01-11 暴风集团股份有限公司 Method and system for adjusting subtitle according to picture
CN106331828B (en) * 2016-08-19 2019-02-05 暴风集团股份有限公司 The method and system of subtitle are adjusted according to picture
CN111669664A (en) * 2020-06-17 2020-09-15 Oppo广东移动通信有限公司 Video playing method, video playing device, electronic equipment and storage medium
CN112507161A (en) * 2020-12-14 2021-03-16 华为技术有限公司 Music playing method and device

Similar Documents

Publication Publication Date Title
US9448686B2 (en) Mobile terminal and method for controlling chat content based on different touch actions for a specific key
US9639147B2 (en) Heads-up-display for use in a media manipulation operation
US20170018289A1 (en) Emoji as facetracking video masks
US20220148622A1 (en) Processing method, electronic device, and non-transitory computer-readable storage medium
US20170302990A1 (en) Method, terminal, and system for processing data of video stream
US20150121225A1 (en) Method and System for Navigating Video to an Instant Time
US20130346865A1 (en) Dynamic wallpaper of mobile systems
CN103226961B (en) A kind of playing method and device
KR20130038076A (en) Mobile terminal and out-focusing image generating method thereof
EP2947891A1 (en) Method for providing episode selection of video and apparatus thereof
US9990693B2 (en) Method and device for rendering multimedia content
US20140344751A1 (en) Image Processing Method and Terminal Device
CN102106145A (en) Apparatus and method for displaying an enlarged target region of a reproduced image
CN111246301B (en) Video playing method and device, electronic equipment and computer readable storage medium
CN110958481A (en) Video page display method and device, electronic equipment and computer readable medium
CN113727170A (en) Video interaction method, device, equipment and medium
CN105025344A (en) Inter-cut method and device
US20240187726A1 (en) Video Recording Method, Electronic Device, and Medium
CN105025386A (en) Subtitle processing method and device
CN104219578A (en) Video processing method and video processing device
CN105007517A (en) Method and device for generating interactive information of interactive television system
US20140173647A1 (en) System and method for generating a second screen experience using video subtitle data
CN106454480A (en) Video playing control method and apparatus
CN115269920A (en) Interaction method, interaction device, electronic equipment and storage medium
JP6917149B2 (en) A computer program stored in a storage medium to execute a content providing method, the method, and a device thereof.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151104

RJ01 Rejection of invention patent application after publication