CN105657521A - 一种频道数据存储方法和装置 - Google Patents
一种频道数据存储方法和装置 Download PDFInfo
- Publication number
- CN105657521A CN105657521A CN201510734185.3A CN201510734185A CN105657521A CN 105657521 A CN105657521 A CN 105657521A CN 201510734185 A CN201510734185 A CN 201510734185A CN 105657521 A CN105657521 A CN 105657521A
- Authority
- CN
- China
- Prior art keywords
- channel
- data
- list data
- byte stream
- channel list
- 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
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/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
-
- 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4332—Content storage operation, e.g. storage operation in response to a pause request, caching operations by placing content in organized collections, e.g. local EPG data repository
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
-
- 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4335—Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
-
- 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/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
-
- 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/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
- H04N21/4355—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reformatting operations of additional data, e.g. HTML pages on a television screen
-
- 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/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/458—Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
- H04N21/4586—Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明提出一种频道数据存储方法和装置,方法包括:步骤S001,读取频道列表数据;步骤S002,将所述频道列表数据序列化为字节流;步骤S003,将所述字节流写入到频道数据文件。装置包括:读取频道列表数据模块,用于读取频道列表数据;序列化模块,用于将所述频道列表数据序列化为字节流;写入文件模块,用于将所述字节流写入到频道数据文件。本发明通过将频道列表数据序列化为字节流保存到频道数据文件的方式,使针对频道数据的存储变得更加方便,同时节省了内存和存储时间。
Description
技术领域
本发明涉及数据存储领域,尤其涉及一种频道数据存储方法和装置。
背景技术
因为基于互联网内容的直播应用软件越来越多,智能机顶盒提供的频道数量也越来越多,有的甚至可以提供500多个频道,所以频道数据的存储就非常重要。
现有技术中,频道数据的存储方式为:1)从频道服务器获取到频道列表数据;2)将频道列表数据以数据库的方式存储在本地,通过数据库的方式需要将频道列表数据中每个频道的基本信息数据存储在基本信息表,视频流数据存储在视频流表。当服务器频道列表数据发生变化时,需要分别更新基本信息表和视频流表。当想从基本信息表和视频流表中读取数据时,需要为每一个频道都单独构建一个对象用于保存每个频道对应的基本信息数据和视频流数据。采用数据库的方式存储频道数据使频道的存储和读取都非常的繁琐,占用内存且耗时,而且每一个频道都单独构建一个对象的方式会导致内存中有很多小对象,造成内存碎片化。
因此,有必要改进上面提到的缺陷。
发明内容
基于以上问题,本发明提出一种频道数据存储方法和装置,通过将频道列表数据序列化为字节流保存到频道数据文件的方式,使针对频道数据的存储变得更加方便,同时节省了内存和存储时间。
一方面,本发明提出一种频道数据存储方法,包括:
步骤S001,读取频道列表数据;
步骤S002,将所述频道列表数据序列化为字节流;
步骤S003,将所述字节流写入到频道数据文件。
优选地,所述频道列表数据包括频道基本信息和频道视频流,所述频道基本信息包括频道编号和频道名称。
优选地,从保存所述频道列表数据的服务器读取所述频道列表数据或从本地读取所述频道列表数据。
优选地,响应于频道数据文件读取指令,读取所述频道数据文件的所述字节流,将所述字节流反序列化得到所述频道列表数据。
优选地,采用JAVA编程语言所提供的序列化机制将所述频道列表数据序列化为所述字节流。
另一方面,本发明提供一种频道数据存储装置,包括:
读取频道列表数据模块,用于读取频道列表数据;
序列化模块,用于将所述频道列表数据序列化为字节流;
写入文件模块,用于将所述字节流写入到频道数据文件。
优选地,所述频道列表数据包括频道基本信息和频道视频流,所述频道基本信息包括频道编号和频道名称。
优选地,从保存所述频道列表数据的服务器读取所述频道列表数据或从本地读取所述频道列表数据。
优选地,响应于频道数据文件读取指令,读取所述频道数据文件的所述字节流,将所述字节流反序列化得到所述频道列表数据。
优选地,采用JAVA编程语言所提供的序列化机制将所述频道列表数据序列化为所述字节流。
采用上述技术方案,具有以下有益效果:
通过将频道列表数据序列化为字节流保存到频道数据文件的方式,使针对频道数据的存储变得更加方便,同时节省了内存和存储时间。
附图说明
图1是根据本发明一个实施例的频道数据存储方法的流程图;
图2是根据本发明另一个实施例的频道数据存储方法的流程图;
图3是根据本发明另一个实施例的频道数据存储装置的框图。
具体实施方式
以下结合具体实施方案和附图对本发明进行进一步的详细描述。其只意在详细阐述本发明的具体实施方案,并不对本发明产生任何限制,本发明的保护范围以权利要求书为准。
参照图1,本发明提出一种频道数据存储方法,包括:步骤S001,读取频道列表数据;步骤S002,将频道列表数据序列化为字节流;步骤S003,将字节流写入到频道数据文件。步骤S001中,频道列表数据会保存在频道列表服务器中或者保存在本地。步骤S002中,将频道列表数据序列化为字节流中的序列化是一种将对象的状态信息转换为可以存储或传输的形式的过程。在序列化期间,对象将其当前状态写入到临时或持久性存储区。以后,可以通过从存储区中读取或反序列化对象的状态,重新创建该对象。通常,对象实例的所有字段都会被序列化,这意味着数据会被表示为实例的序列化数据。这样,能够解释该格式的代码有可能能够确定这些数据的值,而不依赖于该成员的可访问性。类似地,反序列化从序列化的表示形式中提取数据,并直接设置对象状态。最后在步骤S003中,将序列化后的字节流写入到频道数据文件,以备反序列化使用。
通过将频道列表数据序列化为字节流保存到频道数据文件的方式,使针对频道数据的存储变得更加方便,同时节省了内存和存储时间。
在其中的一个实施例中,频道列表数据包括频道基本信息和频道视频流,频道基本信息包括频道编号和频道名称。频道编号和频道名称例如:1教育专区,1代表频道编号,教育专区代表频道名称。频道视频流是频道要播放的视频如编号为1的教育专区对应的视频流为教育类的动画片视频。
在其中的一个实施例中,从保存频道列表数据的服务器读取频道列表数据或从本地读取频道列表数据。一般情况,频道列表数据保存在频道服务器,通过去频道服务器读取频道列表数据。
在其中的一个实施例中,响应于频道数据文件读取指令,读取频道数据文件的字节流,将字节流反序列化得到频道列表数据。当要使用频道列表数据时,如此时用户需要知道频道编号为1的频道的节目单,需要先从频道列表文件中读取字节流,将字节流进行反序列化,将以字节流存储的频道列表数据恢复为频道对象的方式,根据频道编号将频道名称和频道视频流信息显示给用户。
在其中的一个实施例中,采用JAVA编程语言所提供的序列化机制将频道列表数据序列化为字节流。采用JAVA程序提供的序列化机制去实现频道数据的序列化和反序列化,使程序编写更加方便,频道数据存储和读取不会出现错误。
参照图2,作为本发明的最佳实施例,通过将频道列表数据序列化为字节流存储到频道数据文件,当读取频道数据文件,反序列化字节流为频道列表数据的方式实现对频道列表数据的存储。步骤S201,从频道服务器读取频道列表数据;步骤S202,采用JAVA的序列化机制将频道列表数据序列化为字节流;步骤S203,将字节流写入到频道数据文件;步骤S204,当需要使用频道列表数据时,去读取频道数据文件;步骤S205,将频道数据文件的字节流反序列化为频道列表数据。
参照图3,本发明还提供一种频道数据存储装置,包括:读取频道列表数据模块301,用于读取频道列表数据;序列化模块302,用于将频道列表数据序列化为字节流;写入文件模块303,用于将字节流写入到频道数据文件。
在其中的一个实施例中,频道列表数据包括频道基本信息和频道视频流,频道基本信息包括频道编号和频道名称。
在其中的一个实施例中,从保存频道列表数据的服务器读取频道列表数据或从本地读取频道列表数据。
在其中的一个实施例中,响应于频道数据文件读取指令,读取频道数据文件的字节流,将字节流反序列化得到频道列表数据。
在其中的一个实施例中,采用JAVA编程语言所提供的序列化机制将频道列表数据序列化为字节流。
以上所述的仅是本发明的原理和较佳的实施例。应当指出,对于本领域的普通技术人员来说,在本发明原理的基础上,还可以做出若干其它变型,也应视为本发明的保护范围。
Claims (10)
1.一种频道数据存储方法,其特征在于,包括:
步骤S001,读取频道列表数据;
步骤S002,将所述频道列表数据序列化为字节流;
步骤S003,将所述字节流写入到频道数据文件。
2.根据权利要求1所述的频道数据存储方法,其特征在于,所述频道列表数据包括频道基本信息和频道视频流,所述频道基本信息包括频道编号和频道名称。
3.根据权利要求1所述的频道数据存储方法,其特征在于,从保存所述频道列表数据的服务器读取所述频道列表数据或从本地读取所述频道列表数据。
4.根据权利要求1所述的频道数据存储方法,其特征在于,响应于频道数据文件读取指令,读取所述频道数据文件的所述字节流,将所述字节流反序列化得到所述频道列表数据。
5.根据权利要求1所述的频道数据存储方法,其特征在于,采用JAVA编程语言所提供的序列化机制将所述频道列表数据序列化为所述字节流。
6.一种频道数据存储装置,其特征在于,包括:
读取频道列表数据模块,用于读取频道列表数据;
序列化模块,用于将所述频道列表数据序列化为字节流;
写入文件模块,用于将所述字节流写入到频道数据文件。
7.根据权利要求6所述的频道数据存储装置,其特征在于,所述频道列表数据包括频道基本信息和频道视频流,所述频道基本信息包括频道编号和频道名称。
8.根据权利要求6所述的频道数据存储装置,其特征在于,从保存所述频道列表数据的服务器读取所述频道列表数据或从本地读取所述频道列表数据。
9.根据权利要求6所述的频道数据存储装置,其特征在于,响应于频道数据文件读取指令,读取所述频道数据文件的所述字节流,将所述字节流反序列化得到所述频道列表数据。
10.根据权利要求1所述的频道数据存储装置,其特征在于,采用JAVA编程语言所提供的序列化机制将所述频道列表数据序列化为所述字节流。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510734185.3A CN105657521A (zh) | 2015-11-02 | 2015-11-02 | 一种频道数据存储方法和装置 |
PCT/CN2016/086612 WO2017076007A1 (zh) | 2015-11-02 | 2016-06-21 | 一种频道数据存储方法和装置 |
RU2016138185A RU2016138185A (ru) | 2015-11-02 | 2016-06-21 | Устройство и способ хранения канальных данных |
US15/239,420 US20170124189A1 (en) | 2015-11-02 | 2016-08-17 | Device and method for storing channel data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510734185.3A CN105657521A (zh) | 2015-11-02 | 2015-11-02 | 一种频道数据存储方法和装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105657521A true CN105657521A (zh) | 2016-06-08 |
Family
ID=56482178
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510734185.3A Pending CN105657521A (zh) | 2015-11-02 | 2015-11-02 | 一种频道数据存储方法和装置 |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN105657521A (zh) |
RU (1) | RU2016138185A (zh) |
WO (1) | WO2017076007A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017076007A1 (zh) * | 2015-11-02 | 2017-05-11 | 乐视控股(北京)有限公司 | 一种频道数据存储方法和装置 |
WO2019028580A1 (zh) * | 2017-08-07 | 2019-02-14 | 深圳市智晟达科技有限公司 | 一种数字电视搜台方法及系统 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110490724A (zh) * | 2019-07-03 | 2019-11-22 | 平安证券股份有限公司 | 账户数据的存储方法和装置 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020149697A1 (en) * | 2001-04-13 | 2002-10-17 | Yang Ivan Wong Yin | Method and apparatus for updating a computer system clock from a real time television signal |
CN1439224A (zh) * | 2000-06-26 | 2003-08-27 | 松下电器产业株式会社 | 接收存储装置、发送装置、广播系统、接收存储方法、发送方法、广播方法、程序以及媒体 |
CN102428465A (zh) * | 2009-05-19 | 2012-04-25 | 微软公司 | 媒体内容检索系统和个人虚拟频道 |
CN104199927A (zh) * | 2014-09-03 | 2014-12-10 | 腾讯科技(深圳)有限公司 | 数据处理方法及数据处理装置 |
CN104918117A (zh) * | 2015-03-24 | 2015-09-16 | 四川长虹电器股份有限公司 | 一种智能电视广告及用户标签推荐方法 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9454588B2 (en) * | 2012-08-14 | 2016-09-27 | International Business Machines Corporation | Custom object-in-memory format in data grid network appliance |
CN105657521A (zh) * | 2015-11-02 | 2016-06-08 | 乐视致新电子科技(天津)有限公司 | 一种频道数据存储方法和装置 |
-
2015
- 2015-11-02 CN CN201510734185.3A patent/CN105657521A/zh active Pending
-
2016
- 2016-06-21 RU RU2016138185A patent/RU2016138185A/ru unknown
- 2016-06-21 WO PCT/CN2016/086612 patent/WO2017076007A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1439224A (zh) * | 2000-06-26 | 2003-08-27 | 松下电器产业株式会社 | 接收存储装置、发送装置、广播系统、接收存储方法、发送方法、广播方法、程序以及媒体 |
US20020149697A1 (en) * | 2001-04-13 | 2002-10-17 | Yang Ivan Wong Yin | Method and apparatus for updating a computer system clock from a real time television signal |
CN102428465A (zh) * | 2009-05-19 | 2012-04-25 | 微软公司 | 媒体内容检索系统和个人虚拟频道 |
CN104199927A (zh) * | 2014-09-03 | 2014-12-10 | 腾讯科技(深圳)有限公司 | 数据处理方法及数据处理装置 |
CN104918117A (zh) * | 2015-03-24 | 2015-09-16 | 四川长虹电器股份有限公司 | 一种智能电视广告及用户标签推荐方法 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017076007A1 (zh) * | 2015-11-02 | 2017-05-11 | 乐视控股(北京)有限公司 | 一种频道数据存储方法和装置 |
WO2019028580A1 (zh) * | 2017-08-07 | 2019-02-14 | 深圳市智晟达科技有限公司 | 一种数字电视搜台方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
WO2017076007A1 (zh) | 2017-05-11 |
RU2016138185A (ru) | 2019-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE112015003397B4 (de) | Vorrichtung, System und Verfahren zur Bestimmung von Vergleichsinformationen basierend auf Speicherdaten | |
US10140026B2 (en) | Data storage device and data maintenance method thereof | |
CN106570018B (zh) | 序列化与反序列化的方法、装置、系统以及电子设备 | |
US10275187B2 (en) | Memory device and data read method thereof | |
WO2003058496A3 (en) | Accessing a remotely-stored data set and associating notes with that data set | |
CN105556516A (zh) | 个性化的内容加标签 | |
CN103389992A (zh) | 一种结构化数据存储方法及装置 | |
US9465538B2 (en) | Flash memory control chip and data storage device and flash memory control method | |
CN103646063A (zh) | 一种星载高速文件管理系统 | |
CN106503069A (zh) | 文件共享方法及装置 | |
US8634243B2 (en) | Data writing method and data storage device | |
CN105657521A (zh) | 一种频道数据存储方法和装置 | |
CN105027067A (zh) | 用于存储系统中的基于对象的事务的方法和系统 | |
CN108664577B (zh) | 一种基于flash空闲区的文件管理方法及系统 | |
CN105677579B (zh) | 缓存系统中的数据访问方法和系统 | |
US9396769B1 (en) | Memory device and operating method of same | |
US10067715B2 (en) | Buffer-based update of state data | |
US8176231B2 (en) | Methods for handling data updating of flash memory and related memory cards | |
US10445416B2 (en) | Digital note manipulation | |
CN114036171B (zh) | 应用数据管理方法、装置、计算机设备和存储介质 | |
CN107665243B (zh) | 一种基于数据库访问的跨语言环境数据交互方法 | |
US10073769B2 (en) | Data storage device and data maintenance method thereof | |
CN103279573A (zh) | 一种数据搜索的方法和系统 | |
US20170147256A1 (en) | Memory storage recycling | |
CN103136293B (zh) | 图片资源包的格式设计和读取方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160608 |
|
WD01 | Invention patent application deemed withdrawn after publication |