CN102231847B - Direct and accurate frame positioning method supporting stream media files - Google Patents

Direct and accurate frame positioning method supporting stream media files Download PDF

Info

Publication number
CN102231847B
CN102231847B CN 201110060520 CN201110060520A CN102231847B CN 102231847 B CN102231847 B CN 102231847B CN 201110060520 CN201110060520 CN 201110060520 CN 201110060520 A CN201110060520 A CN 201110060520A CN 102231847 B CN102231847 B CN 102231847B
Authority
CN
China
Prior art keywords
frame
index
data
frame data
stream media
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.)
Expired - Fee Related
Application number
CN 201110060520
Other languages
Chinese (zh)
Other versions
CN102231847A (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.)
Beijing happy Technology Co., Ltd.
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN 201110060520 priority Critical patent/CN102231847B/en
Publication of CN102231847A publication Critical patent/CN102231847A/en
Application granted granted Critical
Publication of CN102231847B publication Critical patent/CN102231847B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a direct and accurate frame positioning method supporting stream media files. The method comprises the following steps of: reading a stream media file packet and recording frame data; judging the recorded frame data and saving the frame data into a corresponding secondary index; when the secondary index reaches a preset full state, saving the frame data into the secondary index in a corresponding primary index; and generating a header file. According to the embodiment of the invention, a received stream media packet is analyzed; data in the packet is divided for extracting effective information, and the extracted effective information is recorded in a companion file, therefore, accurate processing, rapid search and accurate editing of stream media files in nonlinear video processing can be realized, the editing time of a user can be greatly reduced, and the working efficiency can be improved remarkably.

Description

The direct frame accurate positioning method of a kind of support files in stream media
Technical field
The present invention relates to the programme production technique field, relate in particular to the direct frame accurate positioning method of a kind of support files in stream media.
Background technology
Along with the more and more faster development of multimedia video business, the storage medium of file has been not limited to cassette tape or CD, and the Streaming Media that is suitable for Internet Transmission has obtained more concern.Yet under the large Policy Background of the country of the at present integration of three networks, to network, TV, the development of telecommunications three macroreticulars has proposed very high request.
Streaming Media is in chronological sequence order transmission and continuant/video data stream of playing on the data network, and it also more and more is widely used in video and television production field as a kind of new media load mode.The stream transmission mode of Streaming Media can be divided into the packet that comprises one by one basic minute block message with multimedia files such as whole A/V and 3D through special partitioned mode, transmitted to subscriber computer is continuous, real-time by video server.Therefore the user needn't wait until as adopting downloading mode that the whole downloads of whole file are complete, play after the multimedia files such as A/V, the 3D decoding of decoding device (hardware or software) to compression and watch but only need can utilize at user's computer through the startups of seconds or tens of seconds time-delay, this moment, the remainder of multimedia file continued to download by the server on backstage simultaneously.
In the prior art, at home in the content platform of each wired company of network, the files in stream media of including, edit, store, broadcasting all is as main, to also have PS (DVD, VCD, VOB etc.) streaming material of part take TS (Mpeg, H.264).In Network TV Station built, again with FLV (H.264), MP4 (H.264) files in stream media was main.And these files in stream media for different fields, have the characteristics of oneself separately, and file itself does not have the Indexing Mechanism of efficient location, in order to realize low code check, high-quality picture requirement, generally all adopt Mpeg2IBP, H.264 the compressed format of long GOP.
The inventor is when realization is of the present invention, find that there are the following problems at least in the prior art: to the industry of video editing making, although the DVD CD on the file of our usefulness and the market or the online online file of playing are identical from the angle of basic data, but we play and look into news efficient to these files is different, traditional media file has the index of being convenient to quick search to preserve in it usually, and the files in stream media of transmission Network Based is only take played in order as purpose, usually lack enough index informations, briefly and be unfavorable for editor, but because nowadays the quarry in video editing making field has been not limited to traditional sucrose, and be more prone to support emerging medium such as network flow-medium, so need to provide an effective scheme to realize this demand.Because each second of the program of TV station even each frame all relate to high cost issues and key, therefore, we need frame accurately to be positioned at sometime, the click time can play at any time, buffering can not be arranged, therefore, use prior art can cause the waste of the program making resource of TV station, how not only fast but also accurately locating frame then becomes particularly crucial.
Summary of the invention
The invention provides the direct frame accurate positioning method of a kind of support files in stream media, i.e. the conversion of files in stream media in the Nonlinear Processing system.Thereby solved in the prior art, owing to use nonlinear technology to process the buffer problem that media file occurs, and then cause the problem of time and the wasting of resources.
For achieving the above object, the present invention proposes the direct frame accurate positioning method of a kind of support files in stream media, comprising:
Reading flow media file bag also records frame data;
Frame data to record are judged, and according to the result of described judgement, frame data are deposited in the corresponding secondary index;
When secondary index reaches completely default, the frame data in the index are deposited in the corresponding one-level index;
Generate header file.
The technical scheme of the embodiment of the invention has the following advantages: the embodiment of the invention receives flow media data packet by analysis; With the bag in Data Division and extract effective information recording/in CompanionFile.Thereby become possibility so that nonlinear video is processed accurate processing, the quick-searching that can make files in stream media and accurately edited, then reduced greatly the time of user's edit operation, improved greatly operating efficiency.
Description of drawings
Fig. 1 is the direct frame accurate positioning method of a kind of support files in stream media flow chart in the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of support files in stream media direct frame accurate positioning method, by the embodiment of the invention, the data transaction in the files in stream media bag is become nonlinear way, and each frame in the file bag is all reached accurate location.Thereby so that in the nonlinear video processing procedure, processing, retrieval and the editor of files in stream media become possibility, then so that when making the program of TV station, shortened the time of waiting for, saved resource.
Present stream media technology is very unfavorable to the editor of TV station's video field.So just need us in the process that file imports, packet to be taken apart, each frame is analyzed out, write as a discernible file.Equal to set up a catalogue, read and write again afterwards.
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail:
As shown in Figure 1, be a kind of unified stunt control method schematic diagram of the embodiment of the invention, comprise:
Step S101, reading flow media file bag.
Receive a plurality of files in stream media bags, and respectively they are carried out frame data and read.
Step S102, the record frame data.Find program stream tabulation PAT data block, the record frame data.Simultaneously, at one-level video GOP index, one-level video Payload index and one-level audio index headspace.
Step S103 judges the frame data of record, and according to the result who judges, frame data is deposited in the corresponding secondary index.
Concrete, the convection current media data block is treated to respectively block of video data, audio data block and other data blocks.Take block of video data as example, order reads frame data, judges whether described frame is I frame key frame, if so, then this frame sequential is deposited in the secondary video GOP index, if B frame or P frame, then order is deposited in the secondary Payload index.When a data block read complete after, operation note is write in the Sequenceheader data.
Step S104 when secondary index reaches completely default, deposits all frame data in the index in the corresponding one-level index in.
Concrete, every one-level index has its capacity limit, when described secondary index reaches capacity limit, all frame data in the secondary index is deposited in its corresponding one-level index.Like this, so that secondary index can receive follow-up data again.
Step S105 generates header file.
Voice data in file bag and the read method of other data and step S103 are identical with method among the S104, when all data of a file bag read complete after, namely generate a header file.
The embodiment of the invention is by so direct frame accurate editing method of a kind of support files in stream media, and the embodiment of the invention receives flow media data packet by analysis; With the bag in Data Division and extract effective information recording/in CompanionFile.Thereby become possibility so that nonlinear video is processed accurate processing, the quick-searching that can make files in stream media and accurately edited, then reduced greatly the time of user's edit operation, improved greatly operating efficiency.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
Above disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (3)

1. support the direct frame accurate positioning method of files in stream media for one kind, it is characterized in that, comprising:
Reading flow media file bag also records frame data;
Frame data to record are judged, and according to the result of described judgement, frame data are deposited in the corresponding secondary index;
When secondary index reaches completely default, the frame data in the index are deposited in the corresponding one-level index;
Generate header file;
Described frame data to record judge, and according to the result of described judgement, frame data are deposited in the corresponding secondary index specifically comprise:
The convection current media data block is treated to respectively block of video data, audio data block and other data blocks and order reads frame data;
Judge whether described frame is I frame key frame, if so, then this frame sequential is deposited in the secondary video GOP index; If B frame or P frame, then order is deposited in the secondary Payload index;
When a data block read complete after, operation note is write in the Sequenceheader data.
2. support as claimed in claim 1 the direct frame accurate positioning method of files in stream media, it is characterized in that, described record frame data are specially:
Find program stream tabulation PAT data block, the record frame data; Simultaneously, at one-level video GOP index, headspace in one-level video Payload index and the one-level audio index.
3. support as claimed in claim 1 the direct frame accurate positioning method of files in stream media, it is characterized in that, described when secondary index reaches completely default, all frame data in the index are deposited in the corresponding one-level index specifically comprise:
When described secondary index reaches capacity limit, all frame data in the described secondary index are deposited in its corresponding one-level index.
CN 201110060520 2011-03-14 2011-03-14 Direct and accurate frame positioning method supporting stream media files Expired - Fee Related CN102231847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110060520 CN102231847B (en) 2011-03-14 2011-03-14 Direct and accurate frame positioning method supporting stream media files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110060520 CN102231847B (en) 2011-03-14 2011-03-14 Direct and accurate frame positioning method supporting stream media files

Publications (2)

Publication Number Publication Date
CN102231847A CN102231847A (en) 2011-11-02
CN102231847B true CN102231847B (en) 2013-03-06

Family

ID=44844372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110060520 Expired - Fee Related CN102231847B (en) 2011-03-14 2011-03-14 Direct and accurate frame positioning method supporting stream media files

Country Status (1)

Country Link
CN (1) CN102231847B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752633B (en) * 2011-12-29 2017-12-29 新奥特(北京)视频技术有限公司 A kind of method of video and audio file synthesis
CN104135628B (en) * 2013-05-03 2018-01-30 安凯(广州)微电子技术有限公司 A kind of video editing method and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100544439C (en) * 2006-11-21 2009-09-23 华为技术有限公司 A kind of method and system of supporting the media data of multiple coded format
CN101127898A (en) * 2007-09-20 2008-02-20 Ut斯达康通讯有限公司 Slice storage and streaming service method for stream media system and multimedia files
US8909806B2 (en) * 2009-03-16 2014-12-09 Microsoft Corporation Delivering cacheable streaming media presentations
CN101917388A (en) * 2009-12-17 2010-12-15 新奥特(北京)视频技术有限公司 Streaming media data storage method and device

Also Published As

Publication number Publication date
CN102231847A (en) 2011-11-02

Similar Documents

Publication Publication Date Title
CN103414949B (en) A kind of multimedia edit system based on intelligent television and method
JP4481889B2 (en) Data recording apparatus and method, program, and recording medium
US8886896B2 (en) Storage format for media streams
JP4598627B2 (en) Content editing apparatus and playback apparatus thereof
US9578333B2 (en) Method for decreasing the bit rate needed to transmit videos over a network by dropping video frames
CN102231827B (en) Indexing method capable of supporting direct and accurate positioning of frame of program stream (PS) media file
CN103491430A (en) Streaming media data processing method and electronic device
JP2001223978A (en) Data decoding and recording device
CN101802803B (en) Method and apparatus for generating and reproducing media object-based metadata
TWI260001B (en) Method of reproducing content information for an interactive optical disc apparatus
CN102231847B (en) Direct and accurate frame positioning method supporting stream media files
JP6269734B2 (en) Movie data editing device, movie data editing method, playback device, and program
CN102682016A (en) Indexing system and method supporting MOV (Movie Digital Video Technology)/3GP (3G Player)/MP4 (Mobile Pentium 4) files
CN101803378B (en) Method and apparatus for generating and accessing metadata in media file format
CN100592414C (en) Method and apparatus for managing information for editing recorded data
JP7070886B2 (en) Information storage device
US8200717B2 (en) Revision of multimedia content
CN1894746B (en) Data processing device and data processing method
CN102231804B (en) Fault tolerance method supporting PS streaming media file
JP2009060353A (en) Content distribution apparatus, mobile terminal device, content distribution system, content distribution method, content receiving method, and content distribution program
WO2009022793A1 (en) Method and apparatus for managing media file
JP2004179913A (en) System and method for reading in av data from av server
JP5263308B2 (en) Recording / reproducing apparatus and recording medium
CN113038244A (en) Video data recording method and device
Edge Stream and File Formats–Where are We Now?

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIJING YUEYING TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: XIN'AOTE(BEIJING) VIDEO TECHNOLOGY CO., LTD.

Effective date: 20150730

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150730

Address after: 100195, Beijing, Haidian District on the road No. 7, room 513, room 5

Patentee after: Beijing happy Technology Co., Ltd.

Address before: Newauto Technology Building No. 49 Beijing 100195 Haidian District Wukesong Road

Patentee before: China Digital Video (Beijing) Limited

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130306

Termination date: 20180314

CF01 Termination of patent right due to non-payment of annual fee