CN104023244A - Method and apparatus for slicing stream media data in CDN system - Google Patents

Method and apparatus for slicing stream media data in CDN system Download PDF

Info

Publication number
CN104023244A
CN104023244A CN201410232845.3A CN201410232845A CN104023244A CN 104023244 A CN104023244 A CN 104023244A CN 201410232845 A CN201410232845 A CN 201410232845A CN 104023244 A CN104023244 A CN 104023244A
Authority
CN
China
Prior art keywords
catalogue
files
stream media
module
section
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
CN201410232845.3A
Other languages
Chinese (zh)
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.)
SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY 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 SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY Co Ltd filed Critical SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY Co Ltd
Priority to CN201410232845.3A priority Critical patent/CN104023244A/en
Publication of CN104023244A publication Critical patent/CN104023244A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for slicing stream media data in a CDN system. In the method, through establishing a corresponding relation between a source video file and a slice file, conventional monitoring of source video data is improved to be monitoring of the slice file. The method specifically comprises: scanning a directory of a source video data, if the source video file is scanned, searching for a corresponding slice file in the a slice storage directory, and if the slice file exists, it being indicated that a corresponding source video file is already sliced; and if the slice file does not exist, it being indicated that the source video file is not sliced, and then slicing the source video file. According to the invention, the generation time of the source video file has not to be considered, the defect is also improved that a part of the source video file cannot be sliced due to restarting of software, and it is ensured that all source video files can be accurately and correctly sliced.

Description

Dicing method and the device of stream medium data in a kind of CDN system
Technical field
The present invention relates to stream media technology field, relate in particular to dicing method and the device of stream medium data in a kind of CDN system.
Background technology
In current CDN system, the standard that the method for packing again of the video data after transcoding is not determined, the section of video data be there is no to the method for clear and definite standard, the most common general method is on Video Data Storage server, video data is monitored in real time, the storage directory at video data place is carried out to continual scanning, find out up-to-date video, then this video file is cut into slices, the method based on thought be: the storage directory at scan source video data place first, can cut into slices to each source video file, and can record a up-to-date data time (being the rise time of video file up-to-date in all these video files), this time value is a weights and measures, for newly-generated thereafter source video file, because the time is more late than this weights and measures, so determine that it is newly-generated file, need it to cut into slices, for source video data more Zao than this time itself, can be judged as the source video file of having cut into slices, without cutting into slices again, each scanning, the up-to-date video data time in the video file storage directory of current source is upgraded in capital again, determine whether the standard of new file as each scanning.
The in the situation that the method not being very large in data volume, well, because data are few, the time that scanning spends is little in meeting performance, once there be new video files to generate, can be checked through immediately.But in the time that data volume is very large, the time that scanning spends increases, may there is more than one new source video data to generate in scan period, so, because the uncertainty of scanning directory order, the very possible video file that first scans up-to-date generation, and the time value as weights and measures now is also updated to the up-to-date video data time, and than this up-to-date source video data source video data a little earlier, will be judged as non-newly-generated source video data, be judged to be it to be cut into slices, but in fact it is not carried out to slicing treatment, thereby miss the problem of section.
Summary of the invention
The object of the embodiment of the present invention is to propose the dicing method of stream medium data in a kind of CDN system, be intended to solve prior art in CDN system, in the time that source the video data volume is larger, can not do accurate processing to source video data, can ignore a part of source video data, the encapsulation process thereby the source video data that can accurately not ignore those is cut into slices, misses the problem of section.
The embodiment of the present invention is achieved in that the dicing method of stream medium data in a kind of CDN system, and described method comprises:
Set up files in stream media and store the section of the first catalogue, its correspondence and store the second catalogue, and set up the index information of the section that files in stream media is corresponding with it;
Storage the first catalogue to files in stream media place travels through;
Judge whether to traverse a files in stream media, if so, return to step " storage the first catalogue to files in stream media place travels through "; If not
Search in the second catalogue whether store the section that described media file is corresponding according to index information, if so, return to step " storage the first catalogue to files in stream media place travels through "; If not
Described files in stream media is cut into slices according to the form of specifying, be stored in the second catalogue, and upgrade index information, then return to step " storage the first catalogue to files in stream media place travels through ".
Another object of the embodiment of the present invention is to propose the slicing device of stream medium data in a kind of CDN system, and described device comprises:
The first catalogue is set up module, for setting up the first catalogue of stored stream media file;
The second catalogue is set up module, second catalogue of cutting into slices for setting up the correspondence of stored stream media file;
Index information is set up module, for setting up the index information of the section that files in stream media is corresponding with it;
Spider module, travels through for storage directory the first catalogue to files in stream media place;
The first judging treatmenting module, for judging whether to traverse a files in stream media, if so, returns to spider module; Enter if not the second judging treatmenting module;
Whether the second judging treatmenting module, store for search the second catalogue according to index information the section that described media file is corresponding, if so, returns to spider module; Enter if not section module;
Section module, for cutting into slices according to the form of specifying to described files in stream media;
Index information update module, for upgrading index information, then enters spider module.
Beneficial effect of the present invention
The inventive method, by setting up the corresponding relation of source video file and section file, by the original monitoring to source video data, is improved to the monitoring to section file.Be specially: video data place, source catalogue is scanned, if scan source video file, just search for the section file of its correspondence at section storage directory, if described section file exists, show that corresponding source video file cuts into slices; If there is no, show that source video file do not cut into slices, then it is cut into slices.The inventive method need not be considered the time that source video file generates, and also improves the defect that causes a part of source video file to be cut into slices because of restarting of software, has guaranteed that all source video files can be cut into slices accurately.
Brief description of the drawings
Fig. 1 is the dicing method flow chart of stream medium data in a kind of CDN system of the preferred embodiment of the present invention;
Fig. 2 is the slicing device structure chart of stream medium data in a kind of CDN system of the preferred embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated, for convenience of explanation, only show the part relevant to the embodiment of the present invention.Should be appreciated that the specific embodiment that this place is described, only for explaining the present invention, not in order to limit the present invention.
Embodiment of the present invention method, by setting up the corresponding relation of source video file and section file, by the original monitoring to source video data, is improved to the monitoring to section file.Be specially: video data place, source catalogue is scanned, if scan source video file, just search for the section file of its correspondence at section storage directory, if described section file exists, show that corresponding source video file cuts into slices; If there is no, show that source video file do not cut into slices, then it is cut into slices.Embodiment of the present invention method need not be considered the time that source video file generates, and also improves the defect that causes a part of source video file to be cut into slices because of restarting of software, has guaranteed that all source video files can be cut into slices accurately.
Embodiment mono-
Fig. 1 is the dicing method flow chart of stream medium data in a kind of CDN system of the preferred embodiment of the present invention; Said method comprising the steps of:
S101, sets up files in stream media and stores the section of the first catalogue, its correspondence and store the second catalogue, and set up the index information of the section that files in stream media is corresponding with it.
Described index information comprises section that files in stream media the is corresponding store path in the second catalogue.
S102, travels through storage first catalogue at files in stream media place;
Whether S103, traverse a files in stream media, if so, returns to step S102; Enter if not step S104;
S104, searches in the second catalogue whether store the section that described media file is corresponding according to index information, if so, returns to step S102; Enter if not step S105;
S105, cuts into slices according to the form of specifying to described files in stream media, is stored in the second catalogue, and upgrades index information, then returns to step S102.
The form of described appointment presets according to user's demand.
For example, suppose that the first catalogue is / home/ftp/mp4/123456@qq.com/md5/, the first catalogue is traveled through, finding a files in stream media is a.mp4, then according to index information in the second catalogue / home/ftp/hls/123456@qq.com/md5/in search whether there is corresponding section file index.m3u8, continue the first catalogue to travel through if exist, if do not exist, according to specific form, files in stream media a.mp4 is cut into slices, section is stored in the second catalogue, upgrade index information, turn back to the first catalogue is traveled through.
Embodiment bis-
Fig. 2 is the slicing device structure chart of stream medium data in a kind of CDN system of the preferred embodiment of the present invention.Described device comprises:
The first catalogue is set up module, for setting up the first catalogue of stored stream media file;
The second catalogue is set up module, second catalogue of cutting into slices for setting up the correspondence of stored stream media file;
Index information is set up module, for setting up the index information of the section that files in stream media is corresponding with it;
Spider module, travels through for storage directory the first catalogue to files in stream media place;
The first judging treatmenting module, for judging whether to traverse a files in stream media, if so, returns to spider module; Enter if not the second judging treatmenting module;
Whether the second judging treatmenting module, store for search the second catalogue according to index information the section that described media file is corresponding, if so, returns to spider module; Enter if not section module;
Section module, for cutting into slices according to the form of specifying to described files in stream media;
Index information update module, for upgrading index information, then enters spider module.
Those having ordinary skill in the art will appreciate that, the all or part of step realizing in above-described embodiment method can complete by program command related hardware, described program can be stored in a computer read/write memory medium, and described storage medium can be ROM, RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (4)

1. a dicing method for stream medium data in CDN system, is characterized in that, described method comprises:
Set up files in stream media and store the section of the first catalogue, its correspondence and store the second catalogue, and set up the index information of the section that files in stream media is corresponding with it;
Storage the first catalogue to files in stream media place travels through;
Judge whether to traverse a files in stream media, if so, return to step " storage the first catalogue to files in stream media place travels through "; If not
Search in the second catalogue whether store the section that described media file is corresponding according to index information, if so, return to step " storage the first catalogue to files in stream media place travels through "; If not
Described files in stream media is cut into slices according to the form of specifying, be stored in the second catalogue, and upgrade index information, then return to step " storage the first catalogue to files in stream media place travels through ".
2. the dicing method of stream medium data in CDN system as claimed in claim 1, is characterized in that,
Described index information comprises section that files in stream media the is corresponding store path in the second catalogue.
3. the dicing method of stream medium data in CDN system as claimed in claim 1, is characterized in that,
The form of described appointment presets according to user's demand.
4. a slicing device for stream medium data in CDN system, is characterized in that, described device comprises:
The first catalogue is set up module, for setting up the first catalogue of stored stream media file;
The second catalogue is set up module, second catalogue of cutting into slices for setting up the correspondence of stored stream media file;
Index information is set up module, for setting up the index information of the section that files in stream media is corresponding with it;
Spider module, travels through for storage directory the first catalogue to files in stream media place;
The first judging treatmenting module, for judging whether to traverse a files in stream media, if so, returns to spider module; Enter if not the second judging treatmenting module;
Whether the second judging treatmenting module, store for search the second catalogue according to index information the section that described media file is corresponding, if so, returns to spider module; Enter if not section module;
Section module, for cutting into slices according to the form of specifying to described files in stream media;
Index information update module, for upgrading index information, then enters spider module.
CN201410232845.3A 2014-05-29 2014-05-29 Method and apparatus for slicing stream media data in CDN system Pending CN104023244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410232845.3A CN104023244A (en) 2014-05-29 2014-05-29 Method and apparatus for slicing stream media data in CDN system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410232845.3A CN104023244A (en) 2014-05-29 2014-05-29 Method and apparatus for slicing stream media data in CDN system

Publications (1)

Publication Number Publication Date
CN104023244A true CN104023244A (en) 2014-09-03

Family

ID=51439782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410232845.3A Pending CN104023244A (en) 2014-05-29 2014-05-29 Method and apparatus for slicing stream media data in CDN system

Country Status (1)

Country Link
CN (1) CN104023244A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268288A (en) * 2014-10-21 2015-01-07 福州瑞芯微电子有限公司 Media library scanning method and device based on NTFS
CN105045866A (en) * 2015-07-14 2015-11-11 深圳市云宙多媒体技术有限公司 Short-URL query-based CDN node hopping method and system
CN105163204A (en) * 2015-08-28 2015-12-16 山东泰信电子股份有限公司 Real-time streaming media file slicing system and method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220575A1 (en) * 2006-03-03 2007-09-20 Verimatrix, Inc. Movie studio-based network distribution system and method
CN101145933A (en) * 2007-10-26 2008-03-19 北大方正集团有限公司 Transmission method, receiving method and corresponding device for distribution system and media data
CN101193273A (en) * 2006-11-20 2008-06-04 中兴通讯股份有限公司 A storage and playing method for real time multimedia image information
CN101917388A (en) * 2009-12-17 2010-12-15 新奥特(北京)视频技术有限公司 Streaming media data storage method and device
CN102123303A (en) * 2011-03-25 2011-07-13 天脉聚源(北京)传媒科技有限公司 Audio/video file playing method and system as well as transmission control device
CN102474504A (en) * 2009-10-08 2012-05-23 华为技术有限公司 System and method to support different ingest and delivery schemes for a content delivery network
CN102932670A (en) * 2012-11-29 2013-02-13 百视通网络电视技术发展有限责任公司 Method and system for segmenting streaming media
CN103686455A (en) * 2013-11-22 2014-03-26 乐视致新电子科技(天津)有限公司 Video playing method and device based on HLS protocol

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220575A1 (en) * 2006-03-03 2007-09-20 Verimatrix, Inc. Movie studio-based network distribution system and method
CN101193273A (en) * 2006-11-20 2008-06-04 中兴通讯股份有限公司 A storage and playing method for real time multimedia image information
CN101145933A (en) * 2007-10-26 2008-03-19 北大方正集团有限公司 Transmission method, receiving method and corresponding device for distribution system and media data
CN102474504A (en) * 2009-10-08 2012-05-23 华为技术有限公司 System and method to support different ingest and delivery schemes for a content delivery network
CN101917388A (en) * 2009-12-17 2010-12-15 新奥特(北京)视频技术有限公司 Streaming media data storage method and device
CN102123303A (en) * 2011-03-25 2011-07-13 天脉聚源(北京)传媒科技有限公司 Audio/video file playing method and system as well as transmission control device
CN102932670A (en) * 2012-11-29 2013-02-13 百视通网络电视技术发展有限责任公司 Method and system for segmenting streaming media
CN103686455A (en) * 2013-11-22 2014-03-26 乐视致新电子科技(天津)有限公司 Video playing method and device based on HLS protocol

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268288A (en) * 2014-10-21 2015-01-07 福州瑞芯微电子有限公司 Media library scanning method and device based on NTFS
CN105045866A (en) * 2015-07-14 2015-11-11 深圳市云宙多媒体技术有限公司 Short-URL query-based CDN node hopping method and system
CN105163204A (en) * 2015-08-28 2015-12-16 山东泰信电子股份有限公司 Real-time streaming media file slicing system and method
CN105163204B (en) * 2015-08-28 2018-03-23 山东泰信电子股份有限公司 A kind of real-time slice systems of files in stream media and method

Similar Documents

Publication Publication Date Title
EP3217301B1 (en) Propagation of data changes in a distributed system
US10264314B2 (en) Multimedia content management system
US8874700B2 (en) Optimizing storage of data files
US9479519B1 (en) Web content fingerprint analysis to detect web page issues
KR101941129B1 (en) Automated archiving of user generated media files
AU2013210018B2 (en) Location independent files
CN102857578B (en) A kind of file uploading method of network hard disc, system and net dish client
US20170031948A1 (en) File synchronization method, server, and terminal
WO2012115593A1 (en) Apparatus, system, and method for annotation of media files with sensor data
CN104869439A (en) Video push method and device
SG177249A1 (en) Method, system and device for uploading and downloading a caption file
CN103841464A (en) Video information pushing method and device
CN103945259A (en) Online video playing method and device
CN103634647A (en) Method and device for synchronizing playing records of mobile terminal and smart television
CN105824827A (en) File path storage and local file visiting method and apparatus
CN104023244A (en) Method and apparatus for slicing stream media data in CDN system
CN105338564A (en) Client adaption method, server and system, and client
CN103220587A (en) Method and device for obtaining time shifting contents
CN107302444B (en) Enterprise-level search application server cluster automatic capacity expansion method and device
CN107665224B (en) Method, system and device for scanning HDFS cold data
US9870385B2 (en) Computer system, data management method, and computer
CN106919574B (en) Method for processing remote synchronous file in real time
CN113542422B (en) Data storage method and device, storage medium and electronic device
CN106998436B (en) Video backup method and device
TW202011231A (en) Data analysis method and data analysis system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: The central Shenzhen city of Guangdong Province, 518057 Keyuan Road, Nanshan District science and Technology Park No. 15 Science Park Sinovac A Building 1 unit 403, No. 405 unit

Applicant after: Shenzhen Yunzhou Multimedia Technology Co., Ltd.

Address before: Unit B4 9 building 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Applicant before: Shenzhen Yunzhou Multimedia Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140903