CN110493655A - 一种在dvb节目中定制字幕的方法 - Google Patents
一种在dvb节目中定制字幕的方法 Download PDFInfo
- Publication number
- CN110493655A CN110493655A CN201910759264.8A CN201910759264A CN110493655A CN 110493655 A CN110493655 A CN 110493655A CN 201910759264 A CN201910759264 A CN 201910759264A CN 110493655 A CN110493655 A CN 110493655A
- Authority
- CN
- China
- Prior art keywords
- subtitle
- dvb
- data
- information
- bit stream
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000006835 compression Effects 0.000 claims abstract description 10
- 238000007906 compression Methods 0.000 claims abstract description 10
- 238000005538 encapsulation Methods 0.000 claims abstract description 4
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 238000005086 pumping Methods 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440236—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4856—End-user interface for client configuration for language selection, e.g. for the menu or subtitles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Circuits (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种在DVB节目中定制字幕的方法该方法包括以下步骤:一、机顶盒接入DVB码流数据;二、传输层获取到DVB码流数据后,依次经过解协议、封装格式数据、解封装得到音频压缩数据和视频压缩数据,然后将音频压缩数据通过音频解码得到音频原始数据,三、使用帧布局作为父布局,底层为SurfaceView来显示视频,将每个用户的定制化信息对应存储在用户定制化信息存储模块中;在播放DVB码流数据时显示定制化信息属性的字幕。本发明一种在DVB节目中定制字幕的方法可以获取DVB码流数据中的语音相关信息,当DVB节目中不含有字幕信息时对应添加字幕,用户还可以自定义字幕的大小、样式、样式等定制化信息,这些定制化信息可以在字幕中对应显示。
Description
技术领域
本发明涉及DVB领域,尤其是一种在DVB节目中定制字幕的方法。
背景技术
DVB(Digital Video Broadcasting,数字视频广播)是由DVB项目维护的一系列国际承认的数字电视公开标准。DVB的宗旨是要设计一个通用的数字电视***,在此***内的各种传输方式之间的转换有最简单的方式,尽可能的增加通用性。DVB标准提供了一套完整的、适用于不同媒介的数字电视***规范。DVB数字广播传输***利用了包括卫星、有线、地面、SMATV、MNDSD在内的所有通用电视广播传输媒体。它们分别对应的DVB标准:DVB-S、DVB-C、DVB-T、DVB-SMATV、DVB-MS和DVB-MC。DVB机顶盒是指用于接收DVB信号并将其解码转换成视频信号(例如AV、S-Video、分量等)的外置设备。机顶盒可以将压缩的数字信号转成电视内容,并在电视机上显示出来。信号可以来自有线电缆、卫星天线、宽带网络以及地面广播。机顶盒接收的内容除了模拟电视可以提供的图像、声音之外,更在于能够接收数字内容,包括电子节目指南、因特网网页、字幕等等。使用户能在现有电视机上观看数字电视节目,并可通过网络进行交互式数字化娱乐、教育和商业化活动。用户在观看DVB节目中会遭遇没有字幕或者字幕语言、字体格式不符合用户的观看习惯的情况。
公告号为CN1642234A的中国专利公开了一种字幕处理装置,但是这个字幕处理装置仅能通过显示器性质来显示不同大小字幕影像,不能显示未录入字幕信息的DVB节目字幕,也不能支持用户定制化的字幕语言、字体格式。另外,各个硬件厂商的语音识别技术针对机顶盒领域相关应用方案几乎为空白状态。为了克服现有技术的缺陷,需要设计一种在DVB节目中定制字幕的方法。
发明内容
为了克服现有技术中的缺陷,提供一种在DVB节目中定制字幕的方法。
本发明通过下述方案实现:
一种在DVB节目中定制字幕的方法该方法包括以下步骤:
一、机顶盒接入DVB码流数据;
二、传输层获取到DVB码流数据后,依次经过解协议、封装格式数据、解封装得到音频压缩数据和视频压缩数据,然后将音频压缩数据通过音频解码得到音频原始数据,将视频压缩数据通过视频解码得到视频原始数据;将视频原始数据的抽帧图片的底部布局和储存在内存中有字幕显示的图片进行比对算法,判断该DVB码流数据是否有字幕显示;
三、使用帧布局作为父布局,底层为SurfaceView来显示视频,在Surfaceview上层加一层布局,所述布局中包含TextView控件,通过TextView控件的android:textSize android:textColor android:textStyle属性显示字幕字体的定制化信息,将每个用户的定制化信息对应存储在用户定制化信息存储模块中;
四、如果有字幕信息则获取用户信息,通过获取用户提前录入在定制化信息存储模块的定制化信息,在播放DVB码流数据时显示定制化信息属性的字幕;
五、如果没有字幕信息,则通过接入语音转换模块将码流数据中的音频转换成文本,然后按照用户定制化信息加载所转换的文本信息,作为播放DVB码流数据的字幕。
所述用户的定制化信息包括大小、样式、样式。
所述语音转换模块包括语音转文本API或者语音转文本SDK。
本发明的有益效果为:
本发明一种在DVB节目中定制字幕的方法可以获取DVB码流数据中的语音相关信息,当DVB节目中不含有字幕信息时对应添加字幕,用户还可以自定义字幕的大小、样式、样式等定制化信息,这些定制化信息可以在字幕中对应显示。
具体实施方式
下面对本发明优选的实施例进一步说明:
一种在DVB节目中定制字幕的方法该方法包括以下步骤:
一、机顶盒接入DVB码流数据;
二、传输层获取到DVB码流数据后,依次经过解协议、封装格式数据、解封装得到音频压缩数据和视频压缩数据,然后将音频压缩数据通过音频解码得到音频原始数据,将视频压缩数据通过视频解码得到视频原始数据;将视频原始数据的抽帧图片的底部布局和储存在内存中有字幕显示的图片进行比对算法,判断该DVB码流数据是否有字幕显示;
三、使用帧布局作为父布局,底层为SurfaceView来显示视频,在Surfaceview上层加一层布局,所述布局中包含TextView控件,通过TextView控件的android:textSize android:textColor android:textStyle属性显示字幕字体的定制化信息,将每个用户的定制化信息对应存储在用户定制化信息存储模块中;
四、如果有字幕信息则获取用户信息,通过获取用户提前录入在定制化信息存储模块的定制化信息,在播放DVB码流数据时显示定制化信息属性的字幕;
五、如果没有字幕信息,则通过接入语音转换模块将码流数据中的音频转换成文本,然后按照用户定制化信息加载所转换的文本信息,作为播放DVB码流数据的字幕。
所述用户的定制化信息包括大小、样式、样式。所述用户的定制化信息还包括语言国家和颜色等配置信息。
所述语音转换模块包括语音转文本API或者语音转文本SDK。本实施中语音转换模块为科大讯飞语音转文本API或者其他厂家语音转文本SDK。
本发明申请的方法可以解决用户在观看DVB节目中没有字幕的痛点问题,而且支持用户按照自己的偏爱来定制化字幕的语言、字体格式等。
尽管已经对本发明的技术方案做了较为详细的阐述和列举,应当理解,对于本领域技术人员来说,对上述实施例做出修改或者采用等同的替代方案,这对本领域的技术人员而言是显而易见,在不偏离本发明精神的基础上所做的这些修改或改进,均属于本发明要求保护的范围。
Claims (3)
1.一种在DVB节目中定制字幕的方法,其特征在于,该方法包括以下步骤:
一、机顶盒接入DVB码流数据;
二、传输层获取到DVB码流数据后,依次经过解协议、封装格式数据、解封装得到音频压缩数据和视频压缩数据,然后将音频压缩数据通过音频解码得到音频原始数据,将视频压缩数据通过视频解码得到视频原始数据;将视频原始数据的抽帧图片的底部布局和储存在内存中有字幕显示的图片进行比对算法,判断该DVB码流数据是否有字幕显示;
三、使用帧布局作为父布局,底层为SurfaceView来显示视频,在Surfaceview上层加一层布局,所述布局中包含TextView控件,通过TextView控件的android:textSize android:textColor android:textStyle属性显示字幕字体的定制化信息,将每个用户的定制化信息对应存储在用户定制化信息存储模块中;
四、如果有字幕信息则获取用户信息,通过获取用户提前录入在定制化信息存储模块的定制化信息,在播放DVB码流数据时显示定制化信息属性的字幕;
五、如果没有字幕信息,则通过接入语音转换模块将码流数据中的音频转换成文本,然后按照用户定制化信息加载所转换的文本信息,作为播放DVB码流数据的字幕。
2.根据权利要求1所述的一种在DVB节目中定制字幕的方法,其特征在于:所述用户的定制化信息包括大小、样式、样式。
3.根据权利要求1所述的一种在DVB节目中定制字幕的方法,其特征在于:所述语音转换模块包括语音转文本API或者语音转文本SDK。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910759264.8A CN110493655A (zh) | 2019-08-16 | 2019-08-16 | 一种在dvb节目中定制字幕的方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910759264.8A CN110493655A (zh) | 2019-08-16 | 2019-08-16 | 一种在dvb节目中定制字幕的方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110493655A true CN110493655A (zh) | 2019-11-22 |
Family
ID=68551464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910759264.8A Pending CN110493655A (zh) | 2019-08-16 | 2019-08-16 | 一种在dvb节目中定制字幕的方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110493655A (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111818280A (zh) * | 2020-07-10 | 2020-10-23 | 珠海迈科智能科技股份有限公司 | 一种dvb字幕定制***和字幕定制方法 |
CN112672099A (zh) * | 2020-12-31 | 2021-04-16 | 深圳市潮流网络技术有限公司 | 字幕数据生成和呈现方法、装置、计算设备、存储介质 |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005050626A2 (en) * | 2003-11-14 | 2005-06-02 | Arnaud Brierre | Personalized subtitle system |
CN203399232U (zh) * | 2013-08-14 | 2014-01-15 | 深圳市纽格力科技有限公司 | 数字终端及*** |
CN104869469A (zh) * | 2015-05-19 | 2015-08-26 | 乐视致新电子科技(天津)有限公司 | 一种节目内容的显示方法和装置 |
CN105139792A (zh) * | 2015-08-18 | 2015-12-09 | 京东方科技集团股份有限公司 | 显示方法和显示装置 |
CN105898517A (zh) * | 2015-12-15 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | 字幕显示控制方法及装置 |
CN107180055A (zh) * | 2016-03-11 | 2017-09-19 | 阿里巴巴集团控股有限公司 | 业务对象的展示方法及装置 |
CN107222792A (zh) * | 2017-07-11 | 2017-09-29 | 成都德芯数字科技股份有限公司 | 一种字幕叠加方法及装置 |
CN108366305A (zh) * | 2018-02-07 | 2018-08-03 | 深圳佳力拓科技有限公司 | 一种不带字幕的码流通过语音识别显示字幕的方法及*** |
CN108924622A (zh) * | 2018-07-24 | 2018-11-30 | 腾讯科技(深圳)有限公司 | 一种视频处理方法及其设备、存储介质、电子设备 |
CN109495792A (zh) * | 2018-11-30 | 2019-03-19 | 北京字节跳动网络技术有限公司 | 一种视频的字幕添加方法、装置、电子设备及可读介质 |
-
2019
- 2019-08-16 CN CN201910759264.8A patent/CN110493655A/zh active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005050626A2 (en) * | 2003-11-14 | 2005-06-02 | Arnaud Brierre | Personalized subtitle system |
CN203399232U (zh) * | 2013-08-14 | 2014-01-15 | 深圳市纽格力科技有限公司 | 数字终端及*** |
CN104869469A (zh) * | 2015-05-19 | 2015-08-26 | 乐视致新电子科技(天津)有限公司 | 一种节目内容的显示方法和装置 |
CN105139792A (zh) * | 2015-08-18 | 2015-12-09 | 京东方科技集团股份有限公司 | 显示方法和显示装置 |
CN105898517A (zh) * | 2015-12-15 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | 字幕显示控制方法及装置 |
CN107180055A (zh) * | 2016-03-11 | 2017-09-19 | 阿里巴巴集团控股有限公司 | 业务对象的展示方法及装置 |
CN107222792A (zh) * | 2017-07-11 | 2017-09-29 | 成都德芯数字科技股份有限公司 | 一种字幕叠加方法及装置 |
CN108366305A (zh) * | 2018-02-07 | 2018-08-03 | 深圳佳力拓科技有限公司 | 一种不带字幕的码流通过语音识别显示字幕的方法及*** |
CN108924622A (zh) * | 2018-07-24 | 2018-11-30 | 腾讯科技(深圳)有限公司 | 一种视频处理方法及其设备、存储介质、电子设备 |
CN109495792A (zh) * | 2018-11-30 | 2019-03-19 | 北京字节跳动网络技术有限公司 | 一种视频的字幕添加方法、装置、电子设备及可读介质 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111818280A (zh) * | 2020-07-10 | 2020-10-23 | 珠海迈科智能科技股份有限公司 | 一种dvb字幕定制***和字幕定制方法 |
CN112672099A (zh) * | 2020-12-31 | 2021-04-16 | 深圳市潮流网络技术有限公司 | 字幕数据生成和呈现方法、装置、计算设备、存储介质 |
CN112672099B (zh) * | 2020-12-31 | 2023-11-17 | 深圳市潮流网络技术有限公司 | 字幕数据生成和呈现方法、装置、计算设备、存储介质 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8893169B2 (en) | Systems and methods for selectively obscuring portions of media content using a widget | |
JP6373179B2 (ja) | デジタル放送受信装置、デジタル放送受信方法、およびプログラム | |
CN106791913A (zh) | 数字电视节目同声翻译输出方法及*** | |
US20140337886A1 (en) | Communicating primary content streams and secondary content streams including targeted advertising to a remote unit | |
CN104618739B (zh) | 一种视频节目信息展现播放方法及*** | |
CN102111660B (zh) | 交互式智能网络电视 | |
CN104219459A (zh) | 视频语言翻译方法、***及智能显示设备 | |
JPH10215420A (ja) | テレビ信号と情報サービス・プロバイダからの情報を統合するための装置および方法 | |
JP2005521346A (ja) | 多言語のクローズドキャプション | |
JPH0937181A (ja) | 電子番組ガイド表示制御装置および方法 | |
CN102088631B (zh) | 数字电视节目直播和点播方法及相关装置和*** | |
CN110493655A (zh) | 一种在dvb节目中定制字幕的方法 | |
JP2020511826A (ja) | 電子装置及びその制御方法 | |
CN106331853A (zh) | 多媒体解封装方法及装置 | |
US20070016923A1 (en) | Apparatus and method for switching channels in a digital broadcasting system | |
CN1953534A (zh) | 机顶盒图片广告设计及更新的实现方法 | |
US20060050183A1 (en) | Signal processing apparatus, signal processing method, signal processing program, program reproducing apparatus, image display apparatus and image display method | |
JP2013046198A (ja) | テレビ視聴装置 | |
CN106027944B (zh) | 超高清数字电视接收机的工作方法 | |
CN100411431C (zh) | 一种视频节目中字幕的显示方法及*** | |
Richer et al. | The ATSC digital television system | |
US20130322855A1 (en) | Playback method and apparatus | |
JP5112576B2 (ja) | 画像を生成し、処理する方法およびosd生成方法および画像生成システムおよびosdメモリ | |
CN202143178U (zh) | 交互式智能网络电视 | |
CN101404551A (zh) | 数据广播接收器及数据广播应用程序的采集方法 |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191122 |