WO2017096800A1 - 一种视频字幕的调节方法及装置 - Google Patents

一种视频字幕的调节方法及装置 Download PDF

Info

Publication number
WO2017096800A1
WO2017096800A1 PCT/CN2016/088471 CN2016088471W WO2017096800A1 WO 2017096800 A1 WO2017096800 A1 WO 2017096800A1 CN 2016088471 W CN2016088471 W CN 2016088471W WO 2017096800 A1 WO2017096800 A1 WO 2017096800A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
subtitle
subtitles
terminal device
adjusted
Prior art date
Application number
PCT/CN2016/088471
Other languages
English (en)
French (fr)
Inventor
车延通
Original Assignee
乐视控股(北京)有限公司
乐视网信息技术(北京)股份有限公司
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 乐视控股(北京)有限公司, 乐视网信息技术(北京)股份有限公司 filed Critical 乐视控股(北京)有限公司
Priority to US15/241,335 priority Critical patent/US20170171491A1/en
Publication of WO2017096800A1 publication Critical patent/WO2017096800A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/445Receiver circuitry for the reception of television signals according to analogue transmission standards for displaying additional information
    • H04N5/44504Circuit details of the additional information generator, e.g. details of the character or graphics signal generator, overlay mixing circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • G11B27/036Insert-editing
    • 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
    • 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/47205End-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 manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
    • 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
    • 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
    • H04N7/00Television systems
    • H04N7/08Systems for the simultaneous or sequential transmission of more than one television signal, e.g. additional information signals, the signals occupying wholly or partially the same frequency band, e.g. by time division
    • H04N7/087Systems for the simultaneous or sequential transmission of more than one television signal, e.g. additional information signals, the signals occupying wholly or partially the same frequency band, e.g. by time division with signal insertion during the vertical blanking interval only
    • H04N7/088Systems for the simultaneous or sequential transmission of more than one television signal, e.g. additional information signals, the signals occupying wholly or partially the same frequency band, e.g. by time division with signal insertion during the vertical blanking interval only the inserted signal being digital
    • H04N7/0882Systems for the simultaneous or sequential transmission of more than one television signal, e.g. additional information signals, the signals occupying wholly or partially the same frequency band, e.g. by time division with signal insertion during the vertical blanking interval only the inserted signal being digital for the transmission of character code signals, e.g. for teletext

Definitions

  • the present invention relates to the field of terminal equipment technologies, and in particular, to a method and an apparatus for adjusting video subtitles.
  • the display screen can be combined with a treadmill, so that the user can watch the video while using the treadmill, or A display is placed on the panel of the refrigerator to allow the user to view the video through the display during cooking.
  • the invention provides a method and a device for adjusting a video subtitle, which solves the problem that the size of the subtitle is fixed when the video is played, which is inconvenient for the user to view.
  • a method for adjusting a video subtitle includes:
  • the subtitle adjustment parameter is obtained
  • an apparatus for adjusting video subtitles includes:
  • An acquiring module configured to acquire a video to be played, and obtain a subtitle corresponding to the video
  • An adjustment module configured to: if the video needs to be played, obtain a subtitle adjustment parameter, and adjust a size of the subtitle corresponding to the video according to the subtitle adjustment parameter, and obtain a subtitle corresponding to the subtitle adjustment parameter;
  • a packaging module configured to package the adjusted subtitles to the video, and play a video encapsulating the subtitles.
  • a terminal device comprising the video caption adjusting device according to any of the preceding embodiments.
  • the terminal device when playing a video, the terminal device can adjust the size of the subtitle according to the subtitle adjustment parameter, thereby facilitating the user to watch.
  • FIG. 1 is a schematic diagram of a working flow of a method for adjusting a video subtitle according to the present disclosure
  • FIG. 2(a) is a schematic diagram of a display screen for displaying a video before packaging in a method for adjusting a video subtitle according to the present disclosure
  • 2(b) is a schematic diagram of a display screen for displaying a packaged video in a method for adjusting a video subtitle according to the present disclosure
  • FIG. 3 is a schematic structural diagram of a video subtitle adjusting apparatus according to the present disclosure.
  • the embodiment of the invention provides a method and a device for adjusting video subtitles, which are solved to some extent.
  • the size of the subtitle is fixed, which is not convenient for the user to watch.
  • a method of adjusting video subtitles is disclosed.
  • the method for adjusting video subtitles includes the following steps:
  • Step S11 Acquire a video to be played, and obtain a subtitle corresponding to the video.
  • the external subtitle of the video is obtained by accessing the server, and is used as the subtitle corresponding to the video.
  • the embedded subtitle of the video may be obtained as the subtitle corresponding to the video.
  • the embedded subtitle of the video may be obtained by using a clipping method.
  • the embedded subtitles in the video are usually set at the edge of the video, and are rarely located in the center of the video. Therefore, the subtitles located at the edge of the video can be cropped without affecting the viewing quality of the video, thereby obtaining the embedded video.
  • subtitle may be decomposed to obtain each frame image corresponding to the video, and then the subtitles included in each frame image are extracted by image processing technology, thereby acquiring the embedded subtitles of the video.
  • Step S12 If the video is to be played, the subtitle adjustment parameter is obtained, and according to the subtitle adjustment parameter, the size of the subtitle corresponding to the video is adjusted, and the subtitle corresponding to the subtitle adjustment parameter is obtained.
  • the subtitle adjustment parameter generally includes: an operating state of the terminal device, and/or a distance between the display screen of the terminal device and the user.
  • subtitle adjustment parameters may also be used, which are not limited by the present invention.
  • the terminal device to which the adjustment method of the video subtitle disclosed in the present invention is applied includes various types, and therefore, the subtitle adjustment parameters employed are different.
  • the subtitle adjustment parameter is generally the operating state of the terminal device and the distance between the display screen of the terminal device and the user.
  • the running state of the terminal device is usually a plurality of running states such as still, walking and running.
  • the size of the subtitle required by the user is often larger than the size of the subtitle displayed in the walking state, and the faster the running speed is often The larger the subtitle size required by the user, and the farther the distance between the display screen and the user on the terminal device is, the larger the size of the subtitle is adjusted, so that the user can see the subtitle during the exercise.
  • the subtitle adjustment parameter Usually the distance between the display of the terminal device and the user. The greater the distance between the display and the user, the larger the size of the adjusted subtitles, so that the user can see the subtitles.
  • Step S13 Encapsulating the adjusted subtitles into the video, and playing a video encapsulating the subtitles.
  • a first embodiment of the present invention discloses a method of adjusting video subtitles.
  • the video to be played and the subtitle corresponding to the video are obtained, and when the video needs to be played, the subtitle adjustment parameter is obtained, and according to the subtitle adjustment parameter, the size of the subtitle corresponding to the video is adjusted, and the subtitle is obtained.
  • the subtitle corresponding to the parameter is adjusted, and then the adjusted subtitle is encapsulated into the video, and the video encapsulating the subtitle is played.
  • the terminal device when playing a video, the terminal device can adjust the size of the subtitle according to the subtitle adjustment parameter, thereby facilitating the user to watch.
  • the method for adjusting video subtitles disclosed by the present invention further includes:
  • the correspondence between various subtitle adjustment parameters and the subtitle size is stored in advance.
  • the required subtitle size can be determined according to the corresponding relationship, and then Need to adjust the size of the subtitles.
  • the method for adjusting the video caption disclosed in the present invention acquires the display of the terminal device by using a distance sensor disposed in advance in the terminal device. The distance between the screen and the user.
  • the distance sensor that is preset in the terminal device may be in various forms, such as an infrared ranging sensor, etc., which is not limited by the present invention.
  • step S13 of the present invention a technical feature of encapsulating the adjusted subtitles into a video is disclosed. If the embedded video is not included in the video before the encapsulation, the encapsulating the adjusted subtitle into the video includes:
  • the video is decomposed to obtain each frame image forming the video; and then the adjusted subtitle is loaded at a preset position on each frame image.
  • the adjusted subtitles are packaged to The video includes:
  • the video is decomposed to obtain each frame image forming the video; then, a shadow background is loaded at a position where the embedded subtitle is located to block the embedded subtitle through the obscured background; finally, in the The adjusted subtitle is loaded at the location where the background is shaded.
  • the video displayed on the display screen of the figure is a video before the package, and the embedded subtitle is disposed under the video.
  • the display screen is completed.
  • the video displayed above is as shown in FIG. 2(b). Since the embedded subtitle of the video is obscured by the obscured background, interference with the adjusted subtitle is avoided.
  • a second embodiment of the present invention discloses an apparatus for adjusting video subtitles.
  • the acquisition module 100, the adjustment module 200, and the encapsulation module 300 are included.
  • the acquiring module 100 is configured to acquire a video to be played, and acquire a subtitle corresponding to the video.
  • the adjustment module 200 is configured to: if the video needs to be played, acquire a subtitle adjustment parameter, and adjust a size of the subtitle corresponding to the video according to the subtitle adjustment parameter, and obtain a subtitle corresponding to the subtitle adjustment parameter;
  • the encapsulating module 300 is configured to package the adjusted subtitles to the video, and play a video encapsulating the subtitles.
  • a second embodiment of the present invention discloses an apparatus for adjusting video subtitles.
  • the video to be played and the subtitle corresponding to the video are obtained by the acquiring module, and when the video needs to be played, the subtitle adjustment parameter is obtained by the adjustment module, and the subtitle corresponding to the video is adjusted according to the subtitle adjustment parameter.
  • the size is obtained, the subtitle corresponding to the subtitle adjustment parameter is obtained, and then the adjusted subtitle is encapsulated into the video by the encapsulation module, and the video encapsulating the subtitle is played.
  • the terminal device can adjust the size of the subtitle when playing the video, thereby facilitating the user to watch.
  • the adjusting device for the video subtitle disclosed by the present invention further includes:
  • a pre-stored module configured to pre-set a correspondence between various subtitle adjustment parameters and a subtitle size, and store the correspondence relationship, so as to adjust the corresponding relationship according to the correspondence relationship after acquiring the subtitle adjustment parameter The size of the subtitles.
  • the correspondence between the various subtitle adjustment parameters and the subtitle size is pre-stored by the pre-stored module.
  • the adjustment module can determine the location according to the corresponding relationship. The required subtitle size, then adjust the size of the subtitle according to your needs.
  • the subtitle adjustment parameter includes: an operating state of the terminal device, and/or a distance between the display screen of the terminal device and the user.
  • the subtitle adjustment parameter may also be in other forms, which is not limited by the present invention.
  • the acquiring module acquires the display screen of the terminal device and the user by using a distance sensor preset in the terminal device. The distance between them.
  • the distance sensor that is preset in the terminal device may be in various forms, such as an infrared ranging sensor, etc., which is not limited by the present invention.
  • the encapsulation module includes:
  • a first decomposing unit configured to decompose the video, and acquire an image of each frame forming the video
  • a first loading unit configured to load the adjusted subtitles at a preset position on each frame image.
  • the encapsulation module includes:
  • a second decomposition unit configured to decompose the video, and acquire each frame image forming the video
  • a background setting unit configured to load a shadow background at a position where the embedded caption is located, so as to block the embedded caption by the shadow background;
  • a second loading unit configured to load the adjusted subtitle at a location where the shadow background is located.
  • the background setting unit loads the obscured background to block the embedded subtitles, and The adjusted subtitle is loaded at the location where the background is shaded.
  • the embodiment of the invention further provides a terminal device, which comprises the video subtitle adjusting device according to any of the preceding embodiments.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, each of the methods for adjusting the video subtitle provided by the embodiment shown in FIG. 1 to FIG. 2(b) can be implemented. Some or all of the steps in the implementation.
  • the techniques in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform.
  • the technical solution in the embodiment of the present invention may be embodied in the form of a software product, and the computer software product may be stored in a storage medium, such as a read-only memory (English: read-only memory, abbreviation: ROM).
  • ROM read-only memory
  • a random access memory (English: random access memory, RAM), a magnetic disk, an optical disk, etc., includes a number of instructions for causing a processor to perform the methods described in certain embodiments of the present invention or embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Databases & Information Systems (AREA)
  • Studio Circuits (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

一种视频字幕的调节方法和装置。该方案中,首先获取待播放的视频,并获取所述视频对应的字幕,若需要播放所述视频,获取字幕调节参数,并根据所述字幕调节参数,调节所述视频对应的字幕的尺寸,获取与所述字幕调节参数相对应的字幕,然后将调节后的字幕封装至所述视频,并播放封装有字幕的视频。通过本方案,终端设备在播放视频时,能够根据字幕调节参数调整字幕的尺寸,从而便于用户观看。

Description

一种视频字幕的调节方法及装置
本申请要求于2015年12月11日提交中国专利局、申请号为201510920471.9、发明名称为“一种视频字幕的调节方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及终端设备技术领域,尤其涉及一种视频字幕的调节方法及装置。
背景技术
随着科技水平的进步,多种类型的终端设备出现在人们的工作和日常生活中,例如,可将显示屏与跑步机相结合,从而使用户能够在使用跑步机的同时观看视频,或者,在冰箱的面板上设置显示屏,从而使用户能够在烹饪过程中,通过显示屏观看视频。
但是,发明人在本发明的研究过程中发现,现有各种类型的终端设备在播放视频时,显示屏上显示的字幕尺寸是固定的,不便于用户观看。
发明内容
本发明提供了一种视频字幕的调节方法及装置,以一定程度上解决传统技术中,播放视频时字幕尺寸固定,不便于用户观看的问题。
为了解决上述技术问题,本发明实施例公开了如下技术方案:
根据本发明实施例的第一方面,提供一种视频字幕的调节方法,包括:
获取待播放的视频,并获取所述视频对应的字幕;
若需要播放所述视频,获取字幕调节参数;
根据所述字幕调节参数,调节所述视频对应的字幕的尺寸,获取与所述字幕调节参数相对应的字幕;
将调节后的字幕封装至所述视频,并播放封装有字幕的视频。
根据本发明实施例的第二方面,提供一种视频字幕的调节装置,包括:
获取模块,用于获取待播放的视频,并获取所述视频对应的字幕;
调节模块,用于若需要播放所述视频,获取字幕调节参数,并根据所述字幕调节参数,调节所述视频对应的字幕的尺寸,获取与所述字幕调节参数相对应的字幕;
封装模块,用于将调节后的字幕封装至所述视频,并播放封装有字幕的视频。
根据本发明实施例的第三方面,提供一种终端设备,包括前述任一实施例所述的视频字幕的调节装置。
本发明具有如下有益效果:
通过本发明公开的方案,终端设备在播放视频时,能够根据字幕调节参数,调整字幕的尺寸,从而便于用户观看。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。
图1为本发明公开的一种视频字幕的调节方法的工作流程示意图;
图2(a)为本发明公开的一种视频字幕的调节方法中,显示封装前的视频的显示屏示意图;
图2(b)为本发明公开的一种视频字幕的调节方法中,显示封装后的视频的显示屏示意图;
图3为本发明公开的一种视频字幕的调节装置的结构示意图。
具体实施方式
本发明实施例提供了一种视频字幕的调节方法及装置,以一定程度上解决传 统技术中,播放视频时字幕尺寸固定,不便于用户观看的问题。
为了使本领域的技术人员更好地理解本发明实施例中的技术方案,并使本发明实施例的上述目的、特征和优点能够更加明显易懂,下面结合附图对本发明实施例中技术方案作进一步详细的说明。
本发明第一示例性实施例中,公开一种视频字幕的调节方法。参见图1所示的工作流程示意图,所述视频字幕的调节方法包括以下步骤:
步骤S11、获取待播放的视频,并获取所述视频对应的字幕。
其中,获取视频对应的字幕时,可采用多种方法。其中一种方法中,可通过访问服务器,获取该视频的外挂字幕,将其作为所述视频对应的字幕。另外,若所述待播放的视频包含有内嵌字幕,可获取该视频的内嵌字幕,将其作为所述视频对应的字幕。
若所述待播放视频包含内嵌字幕,可采用裁剪方式获取该视频的内嵌字幕。视频中的内嵌字幕通常设置在视频比较靠边的位置,而很少位于视频中央,因此,在不影响画面观赏性的情况下,可以裁剪位于视频靠边位置的字幕,从而获取该视频的内嵌字幕。另外,还可对视频进行分解,获取该视频对应的各帧图像,然后通过图像处理技术,提取各帧图像中包含的字幕,从而获取该视频的内嵌字幕。
步骤S12、若要播放所述视频,获取字幕调节参数,并根据所述字幕调节参数,调节所述视频对应的字幕的尺寸,获取与所述字幕调节参数相对应的字幕。
在本发明中,字幕调节参数通常包括:终端设备的运行状态,和/或,终端设备的显示屏与用户之间的距离。当然,也可以采用其他形式的字幕调节参数,本发明对此不做限定。
适用本发明公开的视频字幕的调节方法的终端设备包含多种类型,因此,所采用的字幕调节参数不同。例如,若终端设备为设置有显示屏的跑步机,则所述字幕调节参数通常为终端设备的运行状态和终端设备的显示屏与用户之间的距离。其中,终端设备的运行状态通常为静止、走路和跑步等多种运行状态,在跑步的情况下,用户所需的字幕尺寸往往大于走路状态下显示的字幕尺寸,并且,往往跑步的速度越快,用户所需字幕尺寸越大,并且,终端设备上的显示屏与用户之间的距离越远,调节后字幕的尺寸越大,以便用户在运动过程中能看清字幕。
另外,若终端设备为设置有显示屏的冰箱,这种情况下,所述字幕调节参数 通常为终端设备的显示屏与用户之间的距离。显示屏与用户之间的距离越大,调节后的字幕的尺寸越大,从而使用户能看清字幕。
步骤S13、将调节后的字幕封装至所述视频,并播放封装有字幕的视频。
本发明的第一实施例公开一种视频字幕的调节方法。该方法中,获取待播放的视频和该视频对应的字幕,并在需要播放视频时,获取字幕调节参数,根据所述字幕调节参数,调节所述视频对应的字幕的尺寸,获取与所述字幕调节参数相对应的字幕,然后将调节后的字幕封装至所述视频,播放封装有字幕的视频。
通过本发明公开的方法,终端设备在播放视频时,能够根据字幕调节参数,调整字幕的尺寸,从而便于用户观看。
进一步的,本发明公开的视频字幕的调节方法还包括:
预先设置各种字幕调节参数与字幕尺寸之间的对应关系,并存储所述对应关系,以便在获取所述字幕调节参数后,根据所述对应关系调节所述字幕的尺寸。
本发明中,预先存储各种字幕调节参数与字幕尺寸之间的对应关系,这种情况下,获取到所述字幕调节参数后,根据所述对应关系即可确定所需的字幕尺寸,然后根据需求对字幕的尺寸进行调节即可。
若所述字幕调节参数包括终端设备的显示屏与用户之间的距离,本发明公开的视频字幕的调节方法中,则通过预先设置在所述终端设备的距离传感器,获取所述终端设备的显示屏与用户之间的距离。
其中,预先设置在终端设备的距离传感器可为多种形式,如红外测距传感器等,本发明对此不作限定。
另外,本发明的步骤S13中,公开了将调节后的字幕封装至视频的技术特征。若在封装前,所述视频中不包含内嵌内幕,所述将调节后的字幕封装至所述视频包括:
首先,分解所述视频,获取形成所述视频的各帧图像;然后,在所述各帧图像上的预设位置加载所述调节后的字幕。
其中,在所述各帧图像的预设位置加载所述调节后的字幕时,通常采用字幕压片技术。
另外,若在封装前,所述视频中包含内嵌字幕,所述将调节后的字幕封装至 所述视频包括:
首先,分解所述视频,获取形成所述视频的各帧图像;然后,在所述内嵌字幕所在的位置加载遮蔽背景,以便通过所述遮蔽背景遮挡所述内嵌字幕;最后,在所述遮蔽背景所在的位置加载所述调节后的字幕。
参见图2(a)所示的显示屏的示意图,该图的显示屏上显示的视频为封装前的视频,该视频的下方设置有内嵌字幕;本发明的方案中,为了避免封装调节后的字幕时,与该内嵌字幕产生干扰,因此设置遮蔽背景,以便遮挡所述内嵌字幕,并在所述遮蔽背景所在的位置加载所述调节后的字幕,其中,完成加载后,显示屏上显示的视频如图2(b)所示,由于该视频的内嵌字幕被遮蔽背景所遮挡,因此避免了对所述调节后的字幕的干扰。
相应的,本发明的第二实施例公开一种视频字幕的调节装置。参见图3所示的结构示意图,包括:获取模块100、调节模块200和封装模块300。
其中,所述获取模块100,用于获取待播放的视频,并获取所述视频对应的字幕;
所述调节模块200,用于若需要播放所述视频,获取字幕调节参数,并根据所述字幕调节参数,调节所述视频对应的字幕的尺寸,获取与所述字幕调节参数相对应的字幕;
所述封装模块300,用于将调节后的字幕封装至所述视频,并播放封装有字幕的视频。
本发明的第二实施例公开一种视频字幕的调节装置。该装置中,通过获取模块获取待播放的视频和该视频对应的字幕,并在需要播放视频时,通过调节模块获取字幕调节参数,并根据所述字幕调节参数,调节所述视频对应的字幕的尺寸,获取与所述字幕调节参数相对应的字幕,然后通过封装模块将调节后的字幕封装至所述视频,播放封装有字幕的视频。
通过本发明公开的装置,终端设备在播放视频时,能够调整字幕的尺寸,从而便于用户观看。
进一步的,本发明公开的所述视频字幕的调节装置还包括:
预存模块,用于预先设置各种字幕调节参数与字幕尺寸之间的对应关系,并存储所述对应关系,以便在获取所述字幕调节参数后,根据所述对应关系调节所 述字幕的尺寸。
本发明中,通过预存模块预先存储各种字幕调节参数与字幕尺寸之间的对应关系,这种情况下,获取到所述字幕调节参数后,所述调节模块根据所述对应关系即可确定所需的字幕尺寸,然后根据需求对字幕的尺寸进行调节即可。
在本发明中,所述字幕调节参数包括:终端设备的运行状态,和/或,终端设备的显示屏与用户之间的距离。当然,所述字幕调节参数还可以为其他形式,本发明对此不作限定。
进一步的,若所述字幕调节参数包括终端设备的显示屏与用户之间的距离,所述获取模块则通过预先设置在所述终端设备的距离传感器,获取所述终端设备的显示屏与用户之间的距离。
其中,预先设置在终端设备的距离传感器可为多种形式,如红外测距传感器等,本发明对此不作限定。
进一步的,若在封装前,所述视频中不包含内嵌字幕,所述封装模块包括:
第一分解单元,用于分解所述视频,获取形成所述视频的各帧图像;
第一加载单元,用于在所述各帧图像上的预设位置加载所述调节后的字幕。
进一步的,若在封装前,所述视频中包含内嵌字幕,所述封装模块包括:
第二分解单元,用于分解所述视频,获取形成所述视频的各帧图像;
背景设置单元,用于在所述内嵌字幕所在的位置加载遮蔽背景,以便通过所述遮蔽背景遮挡所述内嵌字幕;
第二加载单元,用于在所述遮蔽背景所在的位置加载所述调节后的字幕。
若在封装前,视频中包含内嵌字幕,为了避免封装调节后的字幕时,与内嵌字幕产生干扰,因此,通过背景设置单元加载遮蔽背景,以便遮挡所述内嵌字幕,并在所述遮蔽背景所在的位置加载所述调节后的字幕。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
本发明实施例还提供一种终端设备,包括前述任一实施例所述的视频字幕的调节装置。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可实现图1-图2(b)所示实施例提供的视频字幕的调节方法的各实现方式中的部分或全部步骤。
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,缩写:RAM)、磁碟、光盘等,包括若干指令用以使得处理器执行本发明实施例或者实施例的某些部分所述的方法。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其它实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。

Claims (13)

  1. 一种视频字幕的调节方法,其特征在于,包括:
    获取待播放的视频,并获取所述视频对应的字幕;
    若需要播放所述视频,获取字幕调节参数;
    根据所述字幕调节参数,调节所述视频对应的字幕的尺寸,获取与所述字幕调节参数相对应的字幕;
    将调节后的字幕封装至所述视频,并播放封装有字幕的视频。
  2. 根据权利要求1所述的方法,其特征在于,所述视频字幕的调节方法还包括:
    预先设置各种字幕调节参数与字幕尺寸之间的对应关系,并存储所述对应关系,以便在获取所述字幕调节参数后,根据所述对应关系调节所述字幕的尺寸。
  3. 根据权利要求1所述的方法,其特征在于,
    所述字幕调节参数包括:终端设备的运行状态,和/或终端设备的显示屏与用户之间的距离。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,
    若所述字幕调节参数包括终端设备的显示屏与用户之间的距离,则通过预先设置在所述终端设备的距离传感器,获取所述终端设备的显示屏与用户之间的距离。
  5. 根据权利要求1所述的方法,其特征在于,若在封装前,所述视频中不包含内嵌字幕,所述将调节后的字幕封装至所述视频包括:
    分解所述视频,获取形成所述视频的各帧图像;
    在所述各帧图像上的预设位置加载所述调节后的字幕。
  6. 根据权利要求1所述的方法,其特征在于,若在封装前,所述视频中包含内嵌字幕,所述将调节后的字幕封装至所述视频包括:
    分解所述视频,获取形成所述视频的各帧图像;
    在所述内嵌字幕所在的位置加载遮蔽背景,以便通过所述遮蔽背景遮挡 所述内嵌字幕;
    在所述遮蔽背景所在的位置加载所述调节后的字幕。
  7. 一种视频字幕的调节装置,其特征在于,包括:
    获取模块,用于获取待播放的视频,并获取所述视频对应的字幕;
    调节模块,用于若需要播放所述视频,获取字幕调节参数,并根据所述字幕调节参数,调节所述视频对应的字幕的尺寸,获取与所述字幕调节参数相对应的字幕;
    封装模块,用于将调节后的字幕封装至所述视频,并播放封装有字幕的视频。
  8. 根据权利要求7所述的装置,其特征在于,所述视频字幕的调节装置还包括:
    预存模块,用于预先设置各种字幕调节参数与字幕尺寸之间的对应关系,并存储所述对应关系,以便在获取所述字幕调节参数后,根据所述对应关系调节所述字幕的尺寸。
  9. 根据权利要求7所述的装置,其特征在于,
    所述字幕调节参数包括:终端设备的运行状态,和/或终端设备的显示屏与用户之间的距离。
  10. 根据权利要求7至9任一项所述的装置,其特征在于,
    若所述字幕调节参数包括终端设备的显示屏与用户之间的距离,所述获取模块则通过预先设置在所述终端设备的距离传感器,获取所述终端设备的显示屏与用户之间的距离。
  11. 根据权利要求7所述的装置,其特征在于,若在封装前,所述视频中不包含内嵌字幕,所述封装模块包括:
    第一分解单元,用于分解所述视频,获取形成所述视频的各帧图像;
    第一加载单元,用于在所述各帧图像上的预设位置加载所述调节后的字幕。
  12. 根据权利要求7所述的装置,其特征在于,若在封装前,所述视频中包含内嵌字幕,所述封装模块包括:
    第二分解单元,用于分解所述视频,获取形成所述视频的各帧图像;
    背景设置单元,用于在所述内嵌字幕所在的位置加载遮蔽背景,以便通过所述遮蔽背景遮挡所述内嵌字幕;
    第二加载单元,用于在所述遮蔽背景所在的位置加载所述调节后的字幕。
  13. 一种终端设备,其特征在于,包括:如权利要求7-12任一项所述的视频字幕的调节装置。
PCT/CN2016/088471 2015-12-11 2016-07-04 一种视频字幕的调节方法及装置 WO2017096800A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/241,335 US20170171491A1 (en) 2015-12-11 2016-08-19 Method and Electronic Device for Adjusting Video Subtitles

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510920471.9A CN105872703A (zh) 2015-12-11 2015-12-11 一种视频字幕的调节方法及装置
CN201510920471.9 2015-12-11

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/241,335 Continuation US20170171491A1 (en) 2015-12-11 2016-08-19 Method and Electronic Device for Adjusting Video Subtitles

Publications (1)

Publication Number Publication Date
WO2017096800A1 true WO2017096800A1 (zh) 2017-06-15

Family

ID=56624448

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088471 WO2017096800A1 (zh) 2015-12-11 2016-07-04 一种视频字幕的调节方法及装置

Country Status (3)

Country Link
US (1) US20170171491A1 (zh)
CN (1) CN105872703A (zh)
WO (1) WO2017096800A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792088B (zh) * 2016-12-15 2020-06-30 北京奇艺世纪科技有限公司 一种外挂字幕的加密、解密方法及系统、外挂字幕系统
CN106792097A (zh) * 2016-12-27 2017-05-31 深圳Tcl数字技术有限公司 音频信号字幕匹配方法及装置
US10165334B2 (en) * 2017-02-10 2018-12-25 Rovi Guides, Inc. Systems and methods for adjusting subtitles size on a first device and causing simultaneous display of the subtitles on a second device
CN113891121A (zh) * 2021-09-29 2022-01-04 北京百度网讯科技有限公司 视频字幕处理方法、视频字幕展示方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630525A (zh) * 2009-07-07 2010-01-20 广州番禺巨大汽车音响设备有限公司 一种可动态调整字幕大小的便携式dvd系统及方法
US20120120268A1 (en) * 2010-11-17 2012-05-17 International Business Machines Corporation Content parameter control for available memory
CN103312863A (zh) * 2012-03-08 2013-09-18 中兴通讯股份有限公司 移动终端视频的呈现方法及装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071562A (zh) * 2006-05-12 2007-11-14 上海乐金广电电子有限公司 卡拉ok音频设备的字幕大小调节方法
CN101742129A (zh) * 2008-11-18 2010-06-16 中兴通讯股份有限公司 一种字幕处理方法
CN102014258B (zh) * 2009-09-07 2013-01-16 艾比尔国际多媒体有限公司 多媒体字幕显示系统与方法
KR20130094044A (ko) * 2012-02-15 2013-08-23 삼성전자주식회사 영상 표시 장치에서 자막 속성을 변경하기 위한 장치 및 방법
US8659703B1 (en) * 2012-10-23 2014-02-25 Sony Corporation Adapting layout and text font size for viewer distance from TV
US9883231B2 (en) * 2013-09-03 2018-01-30 Samsung Electronics Co., Ltd. Content control using an auxiliary device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630525A (zh) * 2009-07-07 2010-01-20 广州番禺巨大汽车音响设备有限公司 一种可动态调整字幕大小的便携式dvd系统及方法
US20120120268A1 (en) * 2010-11-17 2012-05-17 International Business Machines Corporation Content parameter control for available memory
CN103312863A (zh) * 2012-03-08 2013-09-18 中兴通讯股份有限公司 移动终端视频的呈现方法及装置

Also Published As

Publication number Publication date
CN105872703A (zh) 2016-08-17
US20170171491A1 (en) 2017-06-15

Similar Documents

Publication Publication Date Title
WO2017096800A1 (zh) 一种视频字幕的调节方法及装置
US9858648B2 (en) Method and device for controlling screen rotation
US10395436B1 (en) Systems and methods for virtual application of makeup effects with adjustable orientation view
WO2017211250A1 (zh) 图像的叠加显示方法和系统
US20170127011A1 (en) Semiconductor integrated circuit, display device provided with same, and control method
JP2013528010A5 (zh)
CN106817596B (zh) 作用于媒体采集装置的特效处理方法及装置
US9756282B2 (en) Method and apparatus for processing a video signal for display
WO2015021939A1 (zh) 一种用于截图的方法、机顶盒及电视设备
US9319468B2 (en) Information processing apparatus and information processing method
US20180102082A1 (en) Apparatus, system, and method for video creation, transmission and display to reduce latency and enhance video quality
US20150097976A1 (en) Image processing device and image processing method
WO2014030405A1 (ja) 表示装置、表示方法、テレビジョン受信機及び表示制御装置
CN102542300B (zh) 体感游戏中人体位置自动识别的方法及显示终端
CN105915793A (zh) 一种智能手表的拍照处理方法和装置
US20190053607A1 (en) Electronic apparatus and method for providing makeup trial information thereof
US9875521B2 (en) Image output apparatus, image output method, and program
WO2021169583A1 (zh) 虚拟现实显示设备及其控制方法
US10205940B1 (en) Determining calibration settings for displaying content on a monitor
WO2017113593A1 (zh) 基于智能电视的动画菜单的处理方法及装置
US20230412891A1 (en) Video processing method, electronic device and medium
CN104244065B (zh) 一种字幕处理的方法及装置
WO2023142370A1 (zh) 投屏显示方法、装置、电子设备及可读存储介质
WO2018184408A1 (zh) 视频拍摄方法及装置
CN107291468A (zh) 播放开/关机动画的方法、终端及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16872004

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16872004

Country of ref document: EP

Kind code of ref document: A1