CN113497952A - Mp4文件实时流化网关控制系统及控制流程 - Google Patents
Mp4文件实时流化网关控制系统及控制流程 Download PDFInfo
- Publication number
- CN113497952A CN113497952A CN202110515028.9A CN202110515028A CN113497952A CN 113497952 A CN113497952 A CN 113497952A CN 202110515028 A CN202110515028 A CN 202110515028A CN 113497952 A CN113497952 A CN 113497952A
- Authority
- CN
- China
- Prior art keywords
- file
- odts
- real
- control system
- header
- 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
- 239000012634 fragment Substances 0.000 claims description 17
- 238000000605 extraction Methods 0.000 claims description 6
- 238000000034 method Methods 0.000 abstract description 6
- 238000006243 chemical reaction Methods 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000006837 decompression Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- AWSBQWZZLBPUQH-UHFFFAOYSA-N mdat Chemical compound C1=C2CC(N)CCC2=CC2=C1OCO2 AWSBQWZZLBPUQH-UHFFFAOYSA-N 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23106—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/233—Processing of audio elementary streams
- H04N21/2335—Processing of audio elementary streams involving reformatting operations of audio signals, e.g. by converting from one coding standard to another
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
- H04N21/23418—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234309—Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
-
- 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/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- 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/439—Processing of audio elementary streams
- H04N21/4398—Processing of audio elementary streams involving reformatting operations of audio signals
-
- 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, rendering scenes according to MPEG-4 scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- 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/472—End-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/47202—End-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 requesting content on demand, e.g. video on demand
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了MP4文件实时流化网关控制系统及控制流程,包括视频文件存储系统、oDTS系统和Redis集群系统,所述视频文件存储系统的输出端与oDTS系统的输入端连接;包括以下步骤:步骤1:oDTS服务从点播服务器接收http;步骤2:所述步骤1中无缓存记录,则oDTS服务从点播服务器请求mp4头;步骤3:所述MP4头文件分析程序将步骤2中分析的信息发送到Redis。本发明中,oDTS通过对于MP4文件的实时流化来提供视的m3u8格式内容的访问,通过保留的MP4文件,实时的完成m3u8的格式转换,解决了多格式、多终端的视频内容的访问,实现用户秒播的体验,无需等待,还大大的降低了客户的存储成本。
Description
技术领域
本发明涉及视频存储处理领域,尤其涉及MP4文件实时流化网关控制系统及控制流程。
背景技术
随着目前互联网业务的蓬勃发展,视频在互联网中的重要性越来越突出,围绕着视频的各种业务形态层出不穷,长视频、短视频、直播、点播、卖货、社交等等方方面面都离不开视频技术的支持;互联网视频技术在这几年也有了长足的发展,各个厂家不断的开发新的产品和技术,不断的提升用户的体验;并且已经实现了电脑、手机、电视等的全终端的覆盖,从前几年的点播业务为主的方式,发展到了以点播和直播为主,并通过AI、AR、VR等技术来进一步丰富使用场景和效果,以增强用户的感受;
视频的品质也从标清化向高清化转变,随着内容的不断高清化,对于内容的传输、存储、转换的成本也在不断的提升;各厂家为了保证不同终端和业务场景的需求,需要对于视频进行多格式的处理。
目前有两个问题点需要解决:
1、存储问题:一个mp4格式的视频文件,如果支持手机使用,就需要转换出一个m3u8的格式内容,系统就需要保存两分不同格式的内容,存储量会增加一倍以上,在进行切片或转码的过程中,需要消耗大量的计算资源,如果通过云存储访问,还需要清耗大量的网络资源;
2、效率问题:对于一个MP4格式的视频文件,在进行切片或转码的过程中,不能够提供访问,用户需要等待处理完成后,才可以进行访问。
发明内容
1.要解决的技术问题
本发明的目的是为了解决现有技术中视频存储和视频转码的问题,而提出的MP4文件实时流化网关控制系统及控制流程。
2.技术方案
为了实现上述目的,本发明采用了如下技术方案:
MP4文件实时流化网关控制系统,包括视频文件存储系统、oDTS系统和Redis集群系统,所述视频文件存储系统的输出端与oDTS系统的输入端连接,所述oDTS系统的输出端与Redis集群系统的输入端连接,所述视频文件存储系统包括云储存、NAS和LocalDisk,所述云储存、NAS和LocalDisk的输出端均与oDTS系统的输入端连接。
优选地,所述oDTS系统包括mp4头文件的分析、m3u8流文件的生成和ts文件片的实时生成。
优选地,所述mp4头文件的分析是指metadata信息的分析,MP4文件中的所有数据都装在box(QuickTime中为atom)中,也就是说MP4文件由若干个box组成,每个box有类型和长度,可以将box理解为一个数据对象块。
优选地,所述m3u8流文件的生成是根据获取的metadata的内容,从stss中提取的关键帧列表为基础生成m3u8列表文件,因为每个切片的第一帧都必须为关键帧,所以要以关键帧进行处理;并根据stts的内容生成每片的播放时长及每帧的PTS和DTS内容。
优选地,所述ts文件片的实时生成是根据m3u8访问的请求过来的TS切片请求,切片中含有帧的起始和终止帧号,服务接收到靖求后,通过分析MP4头文件的结果,得出需要获取的MP4的起始和终止位置,从服务器上下载相应的文件片段,并对于片段进行分解和重新封包处理,并返回TS的文件流。
本发明还提出了MP4文件实时流化网关控制系统的控制流程,包括以下步骤:
步骤1:oDTS服务从点播服务器接收http,并发送到Redis获取缓存记录;
步骤2:所述步骤1中无缓存记录,则oDTS服务从点播服务器请求mp4头,获取mp4头后将数据发送到MP4头文件分析程序;
步骤3:所述MP4头文件分析程序将步骤2中分析的信息发送到Redis,进行分析结果的保存。
优选地,所述步骤2中点播服务器接收请求,然后片段返回。
优选地,所述步骤1中Redis如果有缓存记录,oDTS服务则生成m3u8文件。
优选地,所述MP4头文件分析程序的分析范围包括提取关键帧、提取SPS/PPS和提取tts。
优选地,所述步骤1中Redis如果有缓存记录,同时向点播服务器请求片段下载,获取片段后发送到TS封包程序,TS封包程序提出音视频帧,然后进行TS封包,生成TS。
3.有益效果
相比于现有技术,本发明的优点在于:
(1)本发明中,oDTS通过对于MP4文件的实时流化来提供视的m3u8格式内容的访问,通过保留的MP4文件,实时的完成m3u8的格式转换,解决了多格式、多终端的视频内容的访问,实现用户秒播的体验,无需等待,还大大的降低了客户的存储成本。
(2)本发明中,只需保存一份MP4的原始视频即可,不需要再保存一分m3u8的格式内容,可以节省大量的存储空间;在观看播放时也只是把需要播放的部分下载到本地,与普通的TS内容的传输基本一致,并不会增加网络带宽的使用。
(3)本发明中,用户MP4视频内容上传完成后,即可进行访问,不需要再进行切片和迁移的工作,所以等待时间几乎为零;会极大的提升用户的操作体验。
(4)本发明中,因为现在基于m3u8协议的视频内容越来越普级,几乎已经是全终端的覆盖,而支持MP4格式的视频的播放还没有很普及,所以在互联网中使用最多的还是m3u8格式的内容,而通过该服务即可实现mp4和m3u8的双协议输出,可以方便的把业务扩展到各个终端上。
附图说明
图1为本发明提出的MP4文件实时流化网关控制系统的示意图;
图2为本发明提出的MP4文件实时流化网关控制系统的控制流程示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。
实施例1:
参照图1-2,MP4文件实时流化网关控制系统,包括视频文件存储系统、oDTS系统和Redis集群系统,视频文件存储系统的输出端与oDTS系统的输入端连接,oDTS系统的输出端与Redis集群系统的输入端连接,视频文件存储系统包括云储存、NAS和LocalDisk,云储存、NAS和LocalDisk的输出端均与oDTS系统的输入端连接;
本发明中,oDTS系统包括mp4头文件的分析、m3u8流文件的生成和ts文件片的实时生成,mp4头文件的分析是指metadata信息的分析,MP4文件中的所有数据都装在box(QuickTime中为atom)中,也就是说MP4文件由若干个box组成,每个box有类型和长度,可以将box理解为一个数据对象块;
本发明中,box中可以包含另一个box,这种box称为containerbox。一个MP4文件首先会有且只有一个“ftyp”类型的box,作为MP4格式的标志并包含关于文件的一些信息;之后会有且只有一个“moov”类型的box(Movie Box),它是一种container box,子box包含了媒体的metadata信息;MP4文件的媒体数据包含在“mdat”类型的box(Midia Data Box)中,该类型的box也是container box,可以有多个,也可以没有(当媒体数据全部引用其他文件时),媒体数据的结构由metadata进行描述。
本发明中,提取视音频的内容首先需要从分析MP4文件的moov box入手;moov信息中包含多个container box,Trak Box:其子box包含了该track的媒体数据引用和描述(hint track除外)。一个MP4文件中的媒体可以包含多个track,且至少有一个track,这些track之间彼此独立,有自己的时间和空间信息。“trak”必须包含一个“tkhd”和一个“mdia”,此外还有很多可选的box(略)。其中“tkhd”为track header box,“mdia”为mediabox,该box是一个包含一些track媒体数据信息box的container box。
本发明中,Sample Description Box(stsd):box header和version字段后会有一个entry count字段,根据entry的个数,每个entry会有type信息,如“vide”、“sund”等,根据type不同sample description会提供不同的信息,例如对于video track,会有“VisualSampleEntry”类型信息,对于audio track会有“AudioSampleEntry”类型信息。视频的编码类型、宽高、长度,音频的声道、采样等信息都会出现在这个box中。
本发明中,Time To Sample Box:存储了sample的duration,描述了sample时序的映射方法,我们通过它可以找到任何时间的sample。“stts”可以包含一个压缩的表来映射时间和sample序号,用其他的表来提供每个sample的长度和指针。表中每个条目提供了在同一个时间偏移量里面连续的sample序号,以及samples的偏移量。递增这些偏移量,就可以建立一个完整的time to sample表。
本发明中,Sample Size Box(stsz):定义了每个sample的大小,包含了媒体中全部sample的数目和一张给出每个sample大小的表。这个box相对来说体积是比较大的。
本发明中,Sample To Chunk Box(stsc):用chunk组织sample可以方便优化数据获取,一个thunk包含一个或多个sample。“stsc”中用一个表描述了sample与chunk的映射关系,查看这张表就可以找到包含指定sample的thunk,从而找到这个sample。
本发明中,Sync Sample Box(stss):确定media中的关键帧。对于压缩媒体数据,关键帧是一系列压缩序列的开始帧,其解压缩时不依赖以前的帧,而后续帧的解压缩将依赖于这个关键帧。“stss”可以非常紧凑的标记媒体内的随机存取点,它包含一个sample序号表,表内的每一项严格按照sample的序号排列,说明了媒体中的哪一个sample是关键帧。如果此表不存在,说明每一个sample都是一个关键帧,是一个随机存取点。
本发明中,Chunk Offset Box(stco):定义了每个thunk在媒体流中的位置。位置有两种可能,32位的和64位的,后者对非常大的电影很有用。在一个表中只会有一种可能,这个位置是在整个文件中的,而不是在任何box中的,这样做就可以直接在文件中找到媒体数据,而不用解释box。需要注意的是一旦前面的box有了任何改变,这张表都要重新建立,因为位置信息已经改变了。
本发明中,m3u8流文件的生成是根据获取的metadata的内容,从stss中提取的关键帧列表为基础生成m3u8列表文件,因为每个切片的第一帧都必须为关键帧,所以要以关键帧进行处理;并根据stts的内容生成每片的播放时长及每帧的PTS和DTS内容;
本发明中,ts文件片的实时生成是根据m3u8访问的请求过来的TS切片请求,切片中含有帧的起始和终止帧号,服务接收到靖求后,通过分析MP4头文件的结果,得出需要获取的MP4的起始和终止位置,从服务器上下载相应的文件片段,并对于片段进行分解和重新封包处理,并返回TS的文件流。
本发明中,MP4文件实时流化网关控制系统的控制流程,包括以下步骤:
步骤1:oDTS服务从点播服务器接收http,并发送到Redis获取缓存记录,Redis如果有缓存记录,oDTS服务则生成m3u8文件,Redis如果有缓存记录,同时向点播服务器请求片段下载,获取片段后发送到TS封包程序,TS封包程序提出音视频帧,然后进行TS封包,生成TS;
步骤2:步骤1中无缓存记录,则oDTS服务从点播服务器请求mp4头,获取mp4头后将数据发送到MP4头文件分析程序,MP4头文件分析程序的分析范围包括提取关键帧、提取SPS/PPS和提取tts,点播服务器接收请求,然后片段返回;
步骤3:MP4头文件分析程序将步骤2中分析的信息发送到Redis,进行分析结果的保存。
本发明中,oDTS通过对于MP4文件的实时流化来提供视的m3u8格式内容的访问,通过保留的MP4文件,实时的完成m3u8的格式转换,解决了多格式、多终端的视频内容的访问,实现用户秒播的体验,无需等待,还大大的降低了客户的存储成本。
本发明中,只需保存一份MP4的原始视频即可,不需要再保存一分m3u8的格式内容,可以节省大量的存储空间;在观看播放时也只是把需要播放的部分下载到本地,与普通的TS内容的传输基本一致,并不会增加网络带宽的使用。
本发明中,用户MP4视频内容上传完成后,即可进行访问,不需要再进行切片和迁移的工作,所以等待时间几乎为零;会极大的提升用户的操作体验。
本发明中,因为现在基于m3u8协议的视频内容越来越普级,几乎已经是全终端的覆盖,而支持MP4格式的视频的播放还没有很普及,所以在互联网中使用最多的还是m3u8格式的内容,而通过该服务即可实现mp4和m3u8的双协议输出,可以方便的把业务扩展到各个终端上。
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。
Claims (10)
1.MP4文件实时流化网关控制系统,包括视频文件存储系统、oDTS系统和Redis集群系统,其特征在于,所述视频文件存储系统的输出端与oDTS系统的输入端连接,所述oDTS系统的输出端与Redis集群系统的输入端连接,所述视频文件存储系统包括云储存、NAS和LocalDisk,所述云储存、NAS和LocalDisk的输出端均与oDTS系统的输入端连接。
2.根据权利要求1所述的MP4文件实时流化网关控制系统,其特征在于,所述oDTS系统包括mp4头文件的分析、m3u8流文件的生成和ts文件片的实时生成。
3.根据权利要求2所述的MP4文件实时流化网关控制系统,其特征在于,所述mp4头文件的分析是指metadata信息的分析,MP4文件中的所有数据都装在box(QuickTime中为atom)中,也就是说MP4文件由若干个box组成,每个box有类型和长度,可以将box理解为一个数据对象块。
4.根据权利要求2所述的MP4文件实时流化网关控制系统,其特征在于,所述m3u8流文件的生成是根据获取的metadata的内容,从stss中提取的关键帧列表为基础生成m3u8列表文件,因为每个切片的第一帧都必须为关键帧,所以要以关键帧进行处理;并根据stts的内容生成每片的播放时长及每帧的PTS和DTS内容。
5.根据权利要求2所述的MP4文件实时流化网关控制系统,其特征在于,所述ts文件片的实时生成是根据m3u8访问的请求过来的TS切片请求,切片中含有帧的起始和终止帧号,服务接收到靖求后,通过分析MP4头文件的结果,得出需要获取的MP4的起始和终止位置,从服务器上下载相应的文件片段,并对于片段进行分解和重新封包处理,并返回TS的文件流。
6.MP4文件实时流化网关控制系统的控制流程,其特征在于,包括以下步骤:
步骤1:oDTS服务从点播服务器接收http,并发送到Redis获取缓存记录;
步骤2:所述步骤1中无缓存记录,则oDTS服务从点播服务器请求mp4头,获取mp4头后将数据发送到MP4头文件分析程序;
步骤3:所述MP4头文件分析程序将步骤2中分析的信息发送到Redis,进行分析结果的保存。
7.根据权利要求6所述的MP4文件实时流化网关控制系统的控制流程,其特征在于,所述步骤2中点播服务器接收请求,然后片段返回。
8.根据权利要求6所述的MP4文件实时流化网关控制系统的控制流程,其特征在于,所述步骤1中Redis如果有缓存记录,oDTS服务则生成m3u8文件。
9.根据权利要求6所述的MP4文件实时流化网关控制系统的控制流程,其特征在于,所述MP4头文件分析程序的分析范围包括提取关键帧、提取SPS/PPS和提取tts。
10.根据权利要求6所述的MP4文件实时流化网关控制系统的控制流程,其特征在于,所述步骤1中Redis如果有缓存记录,同时向点播服务器请求片段下载,获取片段后发送到TS封包程序,TS封包程序提出音视频帧,然后进行TS封包,生成TS。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110515028.9A CN113497952A (zh) | 2021-05-12 | 2021-05-12 | Mp4文件实时流化网关控制系统及控制流程 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110515028.9A CN113497952A (zh) | 2021-05-12 | 2021-05-12 | Mp4文件实时流化网关控制系统及控制流程 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113497952A true CN113497952A (zh) | 2021-10-12 |
Family
ID=77997958
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110515028.9A Pending CN113497952A (zh) | 2021-05-12 | 2021-05-12 | Mp4文件实时流化网关控制系统及控制流程 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113497952A (zh) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103957469A (zh) * | 2014-05-21 | 2014-07-30 | 百视通网络电视技术发展有限责任公司 | 基于实时转封装的互联网视频点播方法及系统 |
CN105898530A (zh) * | 2015-12-07 | 2016-08-24 | 乐视云计算有限公司 | 视频文件的缓存方法和系统 |
US20170180825A1 (en) * | 2015-12-21 | 2017-06-22 | Theplatform, Llc | Providing advanced playback and control functionality to video client |
CN107038232A (zh) * | 2017-04-13 | 2017-08-11 | 福建中金在线信息科技有限公司 | 一种多媒体文件的格式转换方法及装置 |
CN108156478A (zh) * | 2016-12-06 | 2018-06-12 | 创盛视联数码科技(北京)有限公司 | mp4格式文件转hls格式的视频点播系统及方法 |
-
2021
- 2021-05-12 CN CN202110515028.9A patent/CN113497952A/zh active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103957469A (zh) * | 2014-05-21 | 2014-07-30 | 百视通网络电视技术发展有限责任公司 | 基于实时转封装的互联网视频点播方法及系统 |
CN105898530A (zh) * | 2015-12-07 | 2016-08-24 | 乐视云计算有限公司 | 视频文件的缓存方法和系统 |
US20170180825A1 (en) * | 2015-12-21 | 2017-06-22 | Theplatform, Llc | Providing advanced playback and control functionality to video client |
CN108156478A (zh) * | 2016-12-06 | 2018-06-12 | 创盛视联数码科技(北京)有限公司 | mp4格式文件转hls格式的视频点播系统及方法 |
CN107038232A (zh) * | 2017-04-13 | 2017-08-11 | 福建中金在线信息科技有限公司 | 一种多媒体文件的格式转换方法及装置 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2689140C1 (ru) | Способ, устройство и компьютерная программа для инкапсуляции сегментированных синхронизированных мультимедийных данных | |
US10560726B2 (en) | System and method for delivery and caching of personalized media streaming content | |
KR101783579B1 (ko) | 파일 포맷 기반의 적응적 스트림 생성, 재생 방법 및 장치와 그 기록 매체 | |
CN103069769B (zh) | 用于经译码视频数据的网络串流传输的特技模式 | |
CN105230024B (zh) | 一种媒体表示自适应方法、装置及计算机存储介质 | |
Sodagar | The mpeg-dash standard for multimedia streaming over the internet | |
EP3603096A1 (en) | Signaling important video information in network video streaming using mime type parameters | |
US20030061369A1 (en) | Processing of multimedia data | |
US10887645B2 (en) | Processing media data using file tracks for web content | |
KR102659380B1 (ko) | 파일 포맷 박스들에 대한 제네릭 디스크립터를 사용한 미디어 데이터의 프로세싱 | |
WO2008061416A1 (fr) | Procédé et système permettant d'accepter des données media de divers formats de codage | |
CN105828096B (zh) | 媒体流文件的处理方法和装置 | |
CN105228001B (zh) | 一种flv格式视频在线播放的方法及系统 | |
US10826956B2 (en) | Apparatus and method for providing content | |
WO2014193996A2 (en) | Network video streaming with trick play based on separate trick play files | |
US11321516B2 (en) | Processing dynamic web content of an ISO BMFF web resource track | |
CN109076264B (zh) | 样本条目和随机存取 | |
US9578397B2 (en) | Media file format, system, and method | |
CN113923502B (zh) | 直播视频播放方法及装置 | |
Van Deursen et al. | On media delivery protocols in the web | |
CN101984619A (zh) | 一种流媒体业务的实现方法及系统 | |
CN110996181A (zh) | 一种多源内容数据统一封装方法 | |
CN113497952A (zh) | Mp4文件实时流化网关控制系统及控制流程 | |
KR102196504B1 (ko) | 콘텐츠 제공 장치 및 방법 | |
WO2022253079A1 (zh) | 基于hls流的字幕显示方法及装置 |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20211012 |
|
WD01 | Invention patent application deemed withdrawn after publication |