CN101448094B - Method for rapidly importing media material - Google Patents

Method for rapidly importing media material Download PDF

Info

Publication number
CN101448094B
CN101448094B CN2007101782010A CN200710178201A CN101448094B CN 101448094 B CN101448094 B CN 101448094B CN 2007101782010 A CN2007101782010 A CN 2007101782010A CN 200710178201 A CN200710178201 A CN 200710178201A CN 101448094 B CN101448094 B CN 101448094B
Authority
CN
China
Prior art keywords
thread
data
video
frame
store 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.)
Expired - Fee Related
Application number
CN2007101782010A
Other languages
Chinese (zh)
Other versions
CN101448094A (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 CN2007101782010A priority Critical patent/CN101448094B/en
Publication of CN101448094A publication Critical patent/CN101448094A/en
Application granted granted Critical
Publication of CN101448094B publication Critical patent/CN101448094B/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 belongs to the technical field of television program designing and in particular relates to a method for rapidly importing a media material during television program designing. According to the method, by analyzing characteristics of a media document, information is separated from the media document and then packaged again into an AVI or WAV document which can be used by a non-editing system, and no transcoding needs to be carried out on a video. The invention realizes the optimization of the material import speed and provides a guaranty for high-efficient editing of various media documents.

Description

A kind of method that is used for rapidly importing media material
Technical field
The invention belongs to the video program production field, be specifically related to a kind of method that is used for the rapidly importing media material of television program designing.
Background technology
Various non-volume users need use the material in various sources when editing program, for satisfying user's this demand, need import nonlinear editing system to them and edit.Because the restriction of these media materials self characters, and be not suitable for directly they being carried out accurate, the high efficiency editor of frame.Along with the raising of current computer performance, the particularly raising of the lifting of many CPU handling property and disk read-write ability realizes that the high speed importing of material has become possibility.
The method of existing importing media material is in the nonlinear editing system: one independently thread from hard disk, CD-ROM drive, read in the internal memory looking the audio material data, split (Splitter) to video data and voice data respectively then and come out.This thread is decoded, is changed voice data, is written to then in the audio file; Simultaneously video data is resolved (Parser), write video file at other thread then.The boot speed of existing introduction method is slower, mainly contains the reason of following several respects: the first, one thread in the reading and writing file (read-write of computer take be the Computer I bandwidth), and the resource of CPU has been caused the waste of resource by idle; The second, one thread carries out operations such as Splitter, Parser, decoding and written document successively to data, and this has just increased the weight of the workload of this thread, and other thread leaves unused at this moment, has also caused the waste of many cpu resources.The waste of resource certainly will cause the reduction of boot speed, also can't reach the purpose of the advanced feature that makes full use of active computer.
Summary of the invention
The objective of the invention is to demand, a kind of method of ability rapidly importing media material is provided, thereby saves the importing time, improve the editorial efficiency of material to present television program designing.
Technical scheme of the present invention is following: a kind of method that is used for rapidly importing media material comprises the steps:
1) utilize an independent thread--thread 1, be responsible for from disk, reading the data of source media file, and among this deposit data to one store list List1;
2) utilize independently thread of another one--thread 2, media file among the store list List1 is split, and deposit the audio result of looking that splits respectively among two store list List2 and the List3;
3) utilize independently thread of another one--thread 3, the video data among the store list List2 is resolved, simultaneously the voice data among the store list List3 is carried out decoding, conversion and the written document of audio frequency;
4) utilize other thread to be packaged into new file, and write disk resolving, analyze good video data.
The aforesaid method that is used for rapidly importing media material; Wherein, when in the step (3) video data among the store list List2 being resolved, at first analyze the video heads information in the ES flow data; Form the video data of single frames; And draw the type (type comprises I, B or P frame) of each frame data, and be beginning with the current I frame, form independently image sequence GOP to the frame of video between the next I frame; Analyzing decoding order and the broadcast order of these frame of video in this GOP, is that unit sends other thread to and writes video file then with GOP.
The aforesaid method that is used for rapidly importing media material; Wherein, In the step (3) voice data among the store list List3 carried out decoding, when conversion of audio frequency; From the voice data of List3, extract earlier their compressed format and the relevant information of sample rate, the mode that decision is decoded, changed according to relevant information then.
The aforesaid method that is used for rapidly importing media material, wherein, the new file that is packaged in the step (4) is an avi file.
Method provided by the present invention has made full use of the advantage of disk read-write speed and many cpu performances.Because what the read-write of computer took is the IO bandwidth of computer; And other fractionation, parsing, audio decoder and sample rate conversion take is computer CPU resource; Handle them with thread independently respectively; Can make the read-write disk like this and do other asynchronous execution of dealing with the work, save the time with CPU.This method is supported the importing of the media file of various frame per second, various video resolution, various audio sample rate and multiple standard.
Description of drawings
Fig. 1 is a method flow diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is carried out detailed description.
A kind of method that is used for rapidly importing media material comprises the steps:
1) utilize an independent thread--thread 1, be responsible for from disk, reading the data of source media file, and among this deposit data to one store list List1.
2) utilize independently thread of another one--thread 2, media file among the store list List1 is split, and deposit the audio result of looking that splits respectively among two store list List2 and the List3.
Each media file all has the encapsulation reference format of its respective specific, and their video/audio is kept in the data file according to these standards with some other information.Through analyzing its form, from source file, split these video/audios to come out.
3) utilize independently thread of another one--thread 3, the video data among the store list List2 is resolved, simultaneously the voice data among the store list List3 is carried out decoding, conversion and the written document of audio frequency.
What preserve among the List2 is the video mpeg-ES flow data after Spitter comes out.At first need analyze the video heads information in the ES flow data, form the video data of a frame frame, and draw the type (type comprises I, B or P frame) of each frame data.With the current I frame is beginning, forms independently image sequence GOP (Group Of Picture) to the frame of video between the next I frame, and analyzes decoding order and the broadcast order of these frame of video in this GOP, be convenient to frame accurately, efficiently editor.Be that unit sends other thread to and writes video file then with GOP.
What preserve among the List3 is the voice data after Spitter comes out.The various situation of the compressed format of these voice datas are all possible, such as Mpeg-Lay1, mpeg-lay2, mpeg-lay3 and AC3 etc.Sample rate also possibly be 24KHz, 48KHz etc.Extract earlier their relevant informations such as compressed format and sample rate in the voice data from List3; Which type of mode of decision sampling is decoded then; Whether need carry out the conversion of sample rate, whether need carry out monophony and stereo between conversion or the like.
4) utilize other thread to be packaged into new avi file, and write disk resolving, analyze good video data.
In the method; What List1 kept is the source of media data; After in the List1 media data being arranged, have one independently thread begin media data is split (Splitter), video after the fractionation and voice data deposit in respectively two the tabulation (List2; List3) in, the data in these two tabulations by another one independently thread carry out Parser and Decode, write audio file.Find through calculating this three times that process consumed, the Splitter Parser of being substantially equal to consuming time and Decode, write these two process sums of audio file, and workload that ought two threads is when just the cpu resource utilance is the highest roughly suitable the time.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other execution mode, belongs to technological innovation scope of the present invention equally.

Claims (5)

1. a method that is used for rapidly importing media material comprises the steps:
1) utilize an independent thread--thread 1, be responsible for from disk, reading the data of source media file, and among this deposit data to one store list List1;
2) utilize independently thread of another one--thread 2, media file among the store list List1 is split, and deposit the audio result of looking that splits respectively among two store list List2 and the List3;
3) utilize independently thread of another one--thread 3, the video data among the store list List2 is resolved, simultaneously the voice data among the store list List3 is carried out decoding, conversion and the written document of audio frequency;
4) utilize other thread to be packaged into new file, and write disk resolving, analyze good video data.
2. the method that is used for rapidly importing media material as claimed in claim 1; It is characterized in that: when in the step (3) video data among the store list List2 being resolved; At first analyze the video heads information in the ES flow data, form the video data of single frames, and draw the type of each frame data; With the current I frame is beginning; Frame of video between the next I frame forms independently image sequence GOP, analyzes decoding order and the broadcast order of these frame of video in this GOP, is that unit sends other thread to and writes video file then with GOP.
3. the method that is used for rapidly importing media material as claimed in claim 2 is characterized in that: the type of described each frame data comprises I, B or P frame.
4. the method that is used for rapidly importing media material as claimed in claim 1; It is characterized in that: decoding, when conversion of in the step (3) voice data among the store list List3 being carried out audio frequency; From the voice data of List3, extract earlier their compressed format and the relevant information of sample rate, the mode that decision is decoded, changed according to relevant information then.
5. like claim 1 or 2 or the 3 or 4 described methods that are used for rapidly importing media material, it is characterized in that: the new file that is packaged in the step (4) is an avi file.
CN2007101782010A 2007-11-28 2007-11-28 Method for rapidly importing media material Expired - Fee Related CN101448094B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101782010A CN101448094B (en) 2007-11-28 2007-11-28 Method for rapidly importing media material

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101782010A CN101448094B (en) 2007-11-28 2007-11-28 Method for rapidly importing media material

Publications (2)

Publication Number Publication Date
CN101448094A CN101448094A (en) 2009-06-03
CN101448094B true CN101448094B (en) 2012-06-06

Family

ID=40743462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101782010A Expired - Fee Related CN101448094B (en) 2007-11-28 2007-11-28 Method for rapidly importing media material

Country Status (1)

Country Link
CN (1) CN101448094B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152607A (en) * 2013-01-10 2013-06-12 上海思华科技股份有限公司 Video superfast rough editing method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702172A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Method and system for carrying out dolby transcoding on AV (Audio/Video)
CN104168509B (en) * 2014-08-14 2017-05-17 成都索贝数码科技股份有限公司 Program editing method applicable to environment with various material sources
CN106658153B (en) * 2015-11-02 2019-09-20 腾讯科技(北京)有限公司 A kind of data processing method and equipment
CN115577684B (en) * 2022-12-07 2023-03-31 成都华栖云科技有限公司 Method, system and storage medium for connecting nonlinear editing system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471021A (en) * 2002-06-24 2004-01-28 Media path protection method, system and architecture system
CN1578417A (en) * 2003-07-28 2005-02-09 索尼株式会社 Editing system and control method thereof
CN1871850A (en) * 2003-08-22 2006-11-29 索尼株式会社 Reproducing apparatus, method and program
EP1101356B1 (en) * 1998-07-30 2007-04-18 Tivo, Inc. Multimedia time warping system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1101356B1 (en) * 1998-07-30 2007-04-18 Tivo, Inc. Multimedia time warping system
CN1471021A (en) * 2002-06-24 2004-01-28 Media path protection method, system and architecture system
CN1578417A (en) * 2003-07-28 2005-02-09 索尼株式会社 Editing system and control method thereof
CN1871850A (en) * 2003-08-22 2006-11-29 索尼株式会社 Reproducing apparatus, method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152607A (en) * 2013-01-10 2013-06-12 上海思华科技股份有限公司 Video superfast rough editing method

Also Published As

Publication number Publication date
CN101448094A (en) 2009-06-03

Similar Documents

Publication Publication Date Title
CN101448094B (en) Method for rapidly importing media material
WO2017092340A1 (en) Method and device for compressing and playing video
BRPI0415045A (en) Information storage media for multimedia data storage, information storage media, text subtitle processing apparatus, text subtitle processing method, and computer readable recording media
US6977877B2 (en) Compressed audio data reproduction apparatus and compressed audio data reproducing method
CN107370726B (en) Virtual slicing method and system for distributed media file transcoding system
JP2004248279A5 (en)
CN1292144A (en) Signal processing on information files so as to obtain characteristic point information sequences
CN1984328A (en) Method for controlling an operating frequency of a processor during playback of a recorded video
US7774375B2 (en) Media foundation topology
CN106790558B (en) Film multi-version integration storage and extraction system
CN109511008B (en) Method for supporting video and audio file content addition based on object storage
US20040148454A1 (en) Information processing apparatus and method
CN102682016B (en) A kind of directory system and method for supporting MOV/3GP/MP4 files
US8185815B1 (en) Live preview
CN101409098B (en) Method for implementing real time CD-RW of digital HD video recorder
KR20050085530A (en) Recording and reproducing system, recording apparatus, reproducing apparatus, record medium, recording and reproducing method, recording method, reproducing method, program and record medium
CN113507625B (en) Self-adaptive video restoration method
US20060253857A1 (en) Method for processing a data stream by utilizing multi-processor
TW200735058A (en) Method of multimedia source playback for optical storage medium
JP5368550B2 (en) Recording / reproducing method and recording / reproducing apparatus
CN102157175B (en) Digital dumping method of audio/video data and system thereof
CN2768109Y (en) Portable learning machine
CN118331939B (en) Damaged M4A file repairing method, device, equipment and storage medium
RU2005122461A (en) FONT LIBRARY FOR INTERACTIVE TELEVISION RECORDING AND PLAYBACK ON THE MEDIA
JP4124204B2 (en) Content playback device

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: 20150717

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

Effective date of registration: 20150717

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

Patentee after: Beijing happy Technology Co., Ltd.

Address before: 100080 Beijing city Haidian District xicaochang No. 1 Beijing Silicon Valley computer city 15 1501-1506 room

Patentee before: China Digital Video (Beijing) Limited

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

Granted publication date: 20120606

Termination date: 20161128

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