CN105657521A - 一种频道数据存储方法和装置 - Google Patents

一种频道数据存储方法和装置 Download PDF

Info

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
Application number
CN201510734185.3A
Other languages
English (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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201510734185.3A priority Critical patent/CN105657521A/zh
Publication of CN105657521A publication Critical patent/CN105657521A/zh
Priority to PCT/CN2016/086612 priority patent/WO2017076007A1/zh
Priority to RU2016138185A priority patent/RU2016138185A/ru
Priority to US15/239,420 priority patent/US20170124189A1/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/45Management 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/458Scheduling 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
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4332Content 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • H04N21/4355Processing 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
    • 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/45Management 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/458Scheduling 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/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally

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编程语言所提供的序列化机制将所述频道列表数据序列化为所述字节流。
CN201510734185.3A 2015-11-02 2015-11-02 一种频道数据存储方法和装置 Pending CN105657521A (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490724A (zh) * 2019-07-03 2019-11-22 平安证券股份有限公司 账户数据的存储方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 乐视致新电子科技(天津)有限公司 一种频道数据存储方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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
RU2016138185A (ru) 2019-12-05
WO2017076007A1 (zh) 2017-05-11

Similar Documents

Publication Publication Date Title
CN106570018B (zh) 序列化与反序列化的方法、装置、系统以及电子设备
US10120795B2 (en) Wear-leveling nandflash memory reading/writing method
US20170109042A1 (en) Data storage device and data maintenance method thereof
WO2003058496A3 (en) Accessing a remotely-stored data set and associating notes with that data set
CN105468300B (zh) Ip硬盘的管理方法和装置
CN105138340A (zh) 一种Native与Web页面的交互方法和系统
CN103389992A (zh) 一种结构化数据存储方法及装置
TW200725298A (en) System and method for storage management
CN105657521A (zh) 一种频道数据存储方法和装置
CN103365786A (zh) 数据存储方法、装置和系统
CN106503069A (zh) 文件共享方法及装置
CN102467375A (zh) 一种生成客户端界面的方法及装置
CN108664577B (zh) 一种基于flash空闲区的文件管理方法及系统
CN103902562A (zh) 一种终端数据库升级方法及相关装置
CN105260139B (zh) 一种磁盘管理方法以及系统
CN106155580B (zh) 一种基于嵌入式多媒体卡eMMC的存储方法及系统
CN102541969A (zh) 基于fat文件系统的文件保护方法、系统及存储器
US9652416B2 (en) Storage device for performing in-storage computing operations, method of operation the same, and system including the same
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
CN110288340B (zh) 一种基于Java智能合约的数据集合存储方法
US10725877B2 (en) System, method and computer program product for performing a data protection operation
US10445416B2 (en) Digital note manipulation
CN107665243B (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