TWI334308B - Generating method and playing method of multimedia file and recording medium storing multimedia file - Google Patents

Generating method and playing method of multimedia file and recording medium storing multimedia file Download PDF

Info

Publication number
TWI334308B
TWI334308B TW96118196A TW96118196A TWI334308B TW I334308 B TWI334308 B TW I334308B TW 96118196 A TW96118196 A TW 96118196A TW 96118196 A TW96118196 A TW 96118196A TW I334308 B TWI334308 B TW I334308B
Authority
TW
Taiwan
Prior art keywords
multimedia
data
block
video
metadata
Prior art date
Application number
TW96118196A
Other languages
Chinese (zh)
Other versions
TW200847783A (en
Inventor
li ying Chang
Chia Wei Pan
Yu Chih Chen
Original Assignee
Sunplus 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 Sunplus Technology Co Ltd filed Critical Sunplus Technology Co Ltd
Priority to TW96118196A priority Critical patent/TWI334308B/en
Priority to US11/839,322 priority patent/US20080294691A1/en
Publication of TW200847783A publication Critical patent/TW200847783A/en
Application granted granted Critical
Publication of TWI334308B publication Critical patent/TWI334308B/en

Links

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

24091twf.doc/p 九、發明說明: 【發明所屬之技#領域】 « 本發明是有關於-種多媒體槽案的產生及播放方法, 且特別是有關於-種在各個多媒體·塊前置人元資料塊 (metadata chunk)之多媒體檔案的產生及播放方法。 【先前技術】 -般多媒體檔案裡包含了標頭(header)(例如播放 k間)、多媒體資料(例如視訊資料、音訊資料、字幕資 料等),以及各料親資料_相互關係等 ,而對於不 同格式的多媒體檀案來說,上述這些資料的排列順序也有 所差異。圖1所繪示為多媒體槽案中資料排列順序的示意 圖。請先參照圖1(a),其中排序在前的是標頭,其中記錄 了用以描述各筆多媒體資料之特性的資訊,例如多媒體資 料之大小及長度等;排序在中的是多媒體資料區,其用以 存放多媒财身,㈣些彡雜資料可以是視訊資 料、音訊資料或是字幕⑽等;財在後的則是索弓丨表 (mdextable)區,其中記錄上述多媒體資料的排列順序。 音訊視訊交換(Audio Video Interleave,AVI)格式的多 體檔案即是使用此順序記錄資料。 、 請繼續參照圖1(b),其資料記錄的順序為標頭、 表區及多媒體資料區;而參照圖1(e),其資料記錄的 則為多媒體資料區、標頭及索引表區。以上兩種排列 係把多媒體資料區集中放置在多媒體檔案的前面或 面’而記錄這好髓龍錄及排咖序的#訊則並列 1334308 24091twf.doc/p 在一起,有時甚至可將兩者合併。常見使用此順序記錄資 料的f媒體檔案例如是第四代動晝專家群(Internati〇nal24091twf.doc/p IX. Invention Description: [Technology of invention] Field of the Invention The present invention relates to a method for generating and playing a multimedia slot, and particularly relates to a multimedia device in front of each multimedia block. A method of generating and playing a multimedia file of a metadata chunk. [Prior Art] - The general multimedia file contains headers (such as playing k), multimedia materials (such as video data, audio data, subtitle data, etc.), as well as information about each other, such as mutual relations. In the case of multimedia Tan files of different formats, the order of the above materials is also different. FIG. 1 is a schematic diagram showing the order of data arrangement in a multimedia slot. Please refer to FIG. 1(a) first, wherein the first sorting is a header, which records information describing the characteristics of each multimedia material, such as the size and length of the multimedia data, and the multimedia data area. It is used to store multimedia money. (4) Some noisy information can be video data, audio data or subtitles (10), etc.; after the money is a mdextable area, in which the arrangement of the above multimedia materials is recorded. order. Multi-files in the Audio Video Interleave (AVI) format use this sequence to record data. Please continue to refer to Figure 1(b). The order of data records is the header, table area and multimedia data area. Referring to Figure 1(e), the data records are multimedia data area, header and index table area. . The above two arrangements place the multimedia data area in front of or in front of the multimedia file', while the recording of this good marrow record and the order of the coffee is juxtaposed with 1334308 24091twf.doc/p, sometimes even two Merger. The f media files that are commonly used to record data in this order are, for example, the fourth generation of experts (Internati〇nal)

Organization for Standardization Moving Pictures Experts Group4,ISO-]VIP4)格式。 然而,在以上二種資料排列的順序中,多媒體資料區 中的多媒體資料是由不同種類的倾(包括視訊資料、音 訊育料及字幕⑽等)相互交錯儲存而成。圖2所繪示為 排列多媒體資料的例,其中多媒體資料是以—個個資料 ,(chu^ik)的形式相互交錯儲存在多媒體資料區中,而 母_個資料塊巾又包括多個資料樣本()。如圖2 所不’在此範例中’多媒體資料的排列是以視訊資料、音 =貧料、字幕資料’以錢但不—定舰麟的方式來排 料。乂使^媒體播放器可以循序讀取並播放各種多媒體資 骑j而’ _上述多媒體資料的排列方式,在產生多媒 體再產生多個暫存餘或使用暫存記憶 伟,二互交錯儲存之多媒體資料間的相互關 而上述兩種方式均有各自的缺點,兹分述如下: 暫存寫人之儲存媒體的狀況下’可使用多個 媒體;存多媒體相關資訊、多媒體資料,及多 槽案的==互=。_示為習知產生多媒體 關資訊(不包含:筆3 ’此方法係先將多媒體相 幻10)。接荽目丨f 4的相互關係)寫入播案1 (步驟 、彳斷多媒體資料之種類(例如視訊資料、 6 1334308 24091twf.d〇c/r ’而將多媒體資料相互交錯儲存 並在儲存的同時’將這些多媒體 否還有未處理的多媒體資料 體貝料未處理,則返回步驟咖,繼 有《、 寫入俨安:及檔案3依所需的順序(如圖1所示) 寫^檔木4(步驟⑽),並將槽案卜 法雖可解決問題,但會讓產生 案、 驟·父的複雜,也讓所需花費的時間增加。 平7 =方面’使用暫存記憶體的方法則是將記錄資料的 方、去、:=憶=昭Γ所緣示為習知產生多媒體檔案的 去桃私圖、參關4’此方法同樣先將多 資 矾(不包含各資料的相互關係)寫入檔案 驟以: 接著則依照此多媒麻案格式所需儲麵^ ° :體相關資訊的後面,預先留下餘存多媒體 關係的空間(步驟S420 )。然後判斷多媒體資料之麵 如視訊資料二音訊資料及字幕資料等),而將多媒體資 相互交錯儲存至财丨(步驟S43G),並在儲存的同時, ,這些多媒!1練_相互_暫存轉存記赌(步驟 物)’然後制斷是否還有未處_多媒體資料(步驟 S450),若仍有多媒體資料未處理,則返回步驟s,繼 續寫入多媒體資料及其相互關係;待所有的多媒體資料均 7 1334308 24091twf.doc/pOrganization for Standardization Moving Pictures Experts Group 4, ISO-] VIP4) format. However, in the order of the above two types of data arrangement, the multimedia material in the multimedia data area is formed by interleaving storage of different types of video (including video data, audio breeding and subtitles (10), etc.). FIG. 2 is a diagram showing an example of arranging multimedia materials, wherein the multimedia data is stored in a multimedia data area in a form of (chu^ik), and the parent data sheet includes a plurality of materials. sample(). As shown in Figure 2, in this example, the arrangement of multimedia materials is arranged in the form of video data, sounds, poor materials, and subtitle data in the form of money but not for the ship. ^Enable the media player to read and play various multimedia devices in sequence, and _ the above-mentioned arrangement of multimedia materials, generate multiple multimedia temporary storage or use temporary memory, and inter-interlace storage multimedia The above two methods have their own shortcomings, which are described as follows: In the case of temporary storage of the storage media, you can use multiple media; store multimedia related information, multimedia materials, and multi-slot cases. == Mutual =. _ Shows the generation of multimedia information for the knowledge (not including: pen 3 ' This method is the first multimedia illusion 10). The relationship between the target and the f4 is written to the broadcast 1 (steps, cut off the type of multimedia material (for example, video material, 6 1334308 24091twf.d〇c/r ') and the multimedia materials are stored and stored in a staggered manner. At the same time, 'will not process these multimedia and unprocessed multimedia data, then return to the step coffee, followed by ", write to Diane: and file 3 in the required order (as shown in Figure 1) write ^ Shimu 4 (step (10)), and the trough case method can solve the problem, but it will make the case, the step, the father's complexity, and the time required to increase. Ping 7 = aspect 'use temporary memory The method is to record the data side, go, :======================================================================================== The mutual relationship) is written into the file: then, according to the required storage surface of the multimedia format, the space of the remaining multimedia relationship is left in advance (step S420). Then the multimedia data is judged. The face of the video data 2 audio and subtitles Etc.), and the multimedia assets are interleaved and stored to the financial assets (step S43G), and at the same time of storage, these multimedia! 1 practice _ mutual _ temporary storage transfer gambling (steps) 'and then cut whether or not If there is still no multimedia data (step S450), if the multimedia data is still not processed, return to step s to continue writing the multimedia data and their relationship; all the multimedia materials are 7 1334308 24091twf.doc/p

處理完畢時,則依照上述所預留的空間以及多媒體資料間 的相耳關係資料鈞多寡,將多媒體資料間的相互關係資料 寫入預留的空間(步驟S460),並清除記憶體中暫存之多 媒體資料間的相互關係資料(步驟S47〇)。然而,使用暫 存記憶體的方法來代替上述多個暫存檔案雖然可解決步驟 變的複雜的問題’但會增加記憶體的使用需求。此外,上 述相互關係資料的多寡會因多媒體資料的不同而改變,例 如多媒體資料播放的時間長度、多媒體資料壓縮的方法 等。因此,預估所需保留的空間有一定的困難度,也增加 產生多媒體檔案的困難度。 【發明内容】 —有鑑於此,本發明提供—種產生㈣赌案的方法, 稭由在母^㈣媒體資料塊前增加—個資料塊,以記錄各 個夕媒體資料塊巾所儲存之多媒體資料的特性,而簡化產 生多媒體槽案所需的步驟。 本發,提供—鋪放多媒體槽案的方法,直接讀取各 =二媒?資料塊㈣*料塊’以循核跳躍播放多媒體資 ϋ嫉,可減少來回讀取多媒體檔案資訊的次數,而加 快播放多媒體檔案的速度, 明提供—種多媒體播放器可讀取之記錄媒體,用 1 莩體多:多媒體資料塊的多媒體檔案,且在每個多 ,^之則皆插入—個資料塊,以記錄此多媒體資料 方便多媒體播放器讀取及播放。其中此記錄 、胆Π匕S硬碟、軟碟、光碟(例如CD、DVD、CD-ROM、 8 24091twf.doc/p CD^RW、DVD-RW,等)、可攜式硬碟、快閃記憶體等, 而多蟬體播放器可包含電腦、CD播放器、DVD播放器等。 為達上述或其他目的,本發明提出一種產生多媒體檔 案的方法’此方法係先產生欲寫人多媒雜案之多媒體資 料接著產生夕媒體資料塊(media chunk) ’此多媒體資 料塊中儲存多媒體資料’而後分析多媒體資料塊之特性, 以產生元資料塊(metadatachunk),此元資料塊包括可描 述多媒體資料塊與多媒體資料之特性的元資料 (metadata)。然後再將元資料塊與多媒體資料塊寫入多 媒體檔案中,其中元資料塊係置於多媒體資料塊前。最後 則判斷是否有其他多媒體資料塊欲寫入多媒體檔案,若欲 寫入其他多媒體資料塊,則重複上述步驟,在多媒體檔案 中產生其他元資料塊及其他多媒體資料塊。 在本發明之一實施例中’在產生欲寫入多媒體檔案之 多媒體資料之前,更包括開啟並初始化多媒體檔案。其中, 初始化步驟包含產生標頭(header)以及資料軌(data track )’其中資料軌包含元資料軌(metadata track )、音 訊資料軌、視訊資料執以及字幕資料軌。 在本發明之一實施例中’當完成寫入所有多媒體資料 塊時’則掃瞄(scan)多媒體檔案,並讀取元資料塊,以 在多媒體檔案中產生記錄多媒體資料之相互關係的索引表 (index table)。此索引表包括多媒體資料的時間對樣本表 格(time to sample table)、樣本對資料塊表格(samplet= chunk table)、樣本大小表格(sampie size table)、同 + 24091twf.doc/p 取樣表格(sync sample table )及資料塊偏移量表格(chunk offset table )。 在本發明之一實施例中,在每寫入一組元資料塊與多 媒體^'料塊至多媒體槽案中後,即掃猫多媒體檀案’以讀 取元資料塊,並產生記錄多媒體資料之相互關係的索引 表,而當完成寫入所有多媒體資料塊時,則將索引表寫入 多媒體檔案。 在本發明之一實施例中,上述產生多媒體資料的步驟 包含利用編碼、轉碼、重新多工產生(Re-Mux)之其中之 一或其組合。 在本發明之一實施例中,上述之多媒體資料的種類包 括視訊資料、音訊資料及字幕(sub_picture)資料,而這 些視訊資料、該音訊資料及該字幕資料是以相互交錯的方 式儲存在該多媒體檔案中。 在本發明之一實施例中,元資料包括視訊資料的視訊 軌道數(track number )、視訊框(video frame)數目、視 訊框種類、各個視訊框的時間、大小及長度其中之一或其 細·合者;另包括音訊資料的音訊執道數、音訊框數目各個 曰訊框的時間、大小及長度其中之一或其組合者;以及包 括字幕資料的字幕執道數、字幕數目、各個字幕的時間、 大小及長度其中之一或其組合者。 在本發明之一實施例中,上述之多媒體檔案的格式包 括音訊視訊交換(Audio Video Interleave,AVI)格式、第 四代動晝專家群(International 〇rganizati〇n for 1334308 24091twf.doc/pWhen the processing is completed, the mutual relationship data between the multimedia data is written into the reserved space according to the space reserved and the data of the phase relationship between the multimedia data (step S460), and the temporary storage in the memory is cleared. The mutual relationship data between the multimedia materials (step S47〇). However, the use of a method of storing a memory instead of the above-mentioned plurality of temporary files can solve the complicated problem of the step', but increases the use requirement of the memory. In addition, the amount of the above-mentioned mutual information will vary depending on the multimedia material, such as the length of time for multimedia material playback and the method of multimedia data compression. Therefore, it is difficult to estimate the space required to be reserved, and it also increases the difficulty of generating multimedia files. SUMMARY OF THE INVENTION - In view of the above, the present invention provides a method for generating a (four) gambling case, by adding a data block in front of the parent (4) media data block to record the multimedia data stored in each of the media data blocks. The characteristics, while simplifying the steps required to create a multimedia slot. The present invention provides a method for laying a multimedia slot, and directly reads each=two media data block (four)*blocks to play multimedia messages by hopping to reduce the number of times of reading multimedia file information back and forth. Speed up the speed of playing multimedia files, Ming provides a kind of recording media that can be read by multimedia players, and uses 1 multimedia: multimedia files of multimedia data blocks, and each of them is inserted into a data block. To record this multimedia material, it is convenient for the multimedia player to read and play. This record, timid S hard disk, floppy disk, CD (such as CD, DVD, CD-ROM, 8 24091twf.doc/p CD^RW, DVD-RW, etc.), portable hard disk, flash Memory, etc., and multi-body players can include computers, CD players, DVD players, and the like. In order to achieve the above or other purposes, the present invention provides a method for generating a multimedia file. This method first generates multimedia material for writing a multimedia file and then generates a media chunk. The multimedia data is stored in the multimedia data block. The data 'and then analyzes the characteristics of the multimedia data block to generate a metadata chunk, which includes metadata describing the characteristics of the multimedia data block and the multimedia material. Then, the metadata block and the multimedia data block are written into the multimedia file, wherein the metadata block is placed in front of the multimedia data block. Finally, it is judged whether there are other multimedia data blocks to be written into the multimedia file. If other multimedia data blocks are to be written, the above steps are repeated to generate other metadata blocks and other multimedia data blocks in the multimedia file. In an embodiment of the present invention, the multimedia file is opened and initialized before the multimedia material to be written to the multimedia file is generated. The initialization step includes generating a header and a data track, wherein the data track includes a metadata track, an audio data track, a video data file, and a caption data track. In an embodiment of the present invention, 'when writing all multimedia data blocks is completed', then scanning the multimedia file and reading the metadata block to generate an index table for recording the relationship of the multimedia materials in the multimedia file. (index table). This index table includes time to sample table, sample to block table, sample size table, and + 24091 twf.doc/p sample table (sync) Sample table ) and chunk offset table. In an embodiment of the present invention, after each set of the metadata block and the multimedia ^' block to the multimedia slot is written, the cat multimedia box is read to read the metadata block, and the recorded multimedia data is generated. The index table of the relationship, and when all the multimedia data blocks are written, the index table is written to the multimedia file. In an embodiment of the invention, the step of generating multimedia material comprises utilizing one of or a combination of encoding, transcoding, re-multiplexing (Re-Mux). In an embodiment of the present invention, the type of the multimedia material includes video data, audio data, and subtitle data, and the video data, the audio data, and the subtitle data are stored in the interlaced manner in the multimedia. In the file. In an embodiment of the present invention, the metadata includes one of a video track number, a video frame number, a video frame type, and a time, a size, and a length of each video frame. · Combined; the number of audio channels and the number of audio frames, one or a combination of the time, size and length of each frame; and the number of subtitles including subtitles, the number of subtitles, and the subtitles. One of or a combination of time, size and length. In an embodiment of the present invention, the format of the multimedia file includes an Audio Video Interleave (AVI) format and a fourth generation expert group (International 〇rganizati〇n for 1334308 24091twf.doc/p

Standardization Moving Pictures Experts Group 4, ISO-MP4;!格式其中之一。 本發明提出一種播放包含元資料塊之多媒體檔案的方 法,此多媒體檔案包括用以記錄多筆多媒體資料的多個多 媒體資料塊,而在各個多媒體資料塊之前則包括一個元資 料塊,此元資料塊包含用以描述多媒體資料之特性的元資 料,此方法包括下列步驟:首先,開啟並初始化多媒體構 案。接著,剖析(parse)元資料塊以獲得多媒體資料塊的 特性。然後利用剖析元資料塊所獲得之特性,以解多工 (demux)多媒體資料。最後則解碼並播放多媒體資料。 在本發明之一實施例中,更包含剖析多媒體資料構 案’並經過計算以產生一個隨機存取表格,而在產生隨機 存取表格的步驟之後則可根據待播放時間,在隨機存取表 格中搜尋待播放時間在多媒體檔案中的位置,而由此位置 開始解多工多媒體檔案,並解碼及播放對應待播放時間之 多媒體資料。 在本發明之一實施例中,在解碼並播放多媒體資料的 步驟之後更包括判斷是否仍有多媒體資料未解碼,若仍有 夕媒體資料未解碼,則繼續剖析元資料塊以解多工多媒體 檔案,並解碼及播放剩餘之多媒體資料。 .本發明提出一種多媒體播放器可讀取之記錄媒體,其 ^用以儲存—個多舰財,此多媒體職包括標頭及多 媒體貧料11。其中’標頭包含資概(data 之特性 的描述(description )。多媒體資料區則用以儲存資料執之 11 24091twf.doc/p 料塊。多媒 辦純★次』,體抖£中,分別用以儲存一筆多媒 媒體資料塊:前塊體f料區… 體資料之特性的元^贿用 多媒體資料塊與多媒 體資產生多媒體職的過程巾,洲在各個多媒 個—個元資料塊,並在此对料塊中記錄各 :媒體育料塊中儲存之多媒體資料的特性,因此可以簡 =生多媒體_所㈣步驟。而經由此方法產生的多媒 餵槽案也可提供多媒體播放器快賴讀減播放其中儲存 之多媒體資料的内容。 為讓本發明之上述和其他目的、特徵和優點能更明顯Standardization Moving Pictures Experts Group 4, one of the ISO-MP4;! formats. The present invention provides a method for playing a multimedia file containing a metadata block, which includes a plurality of multimedia data blocks for recording a plurality of multimedia materials, and a metadata block including a metadata block before each multimedia data block. The block contains metadata describing the characteristics of the multimedia material. The method includes the following steps: First, the multimedia structure is opened and initialized. Next, the metadata block is parsed to obtain the characteristics of the multimedia data block. Then use the features obtained by parsing the metablock to solve the multiplex (demux) multimedia material. Finally, the multimedia material is decoded and played. In an embodiment of the present invention, the method further comprises parsing the multimedia data structure and calculating to generate a random access table, and after the step of generating the random access table, according to the time to be played, in the random access table Search for the location of the to-be-played time in the multimedia file, and the location starts to solve the multiplexed multimedia file, and decodes and plays the multimedia material corresponding to the time to be played. In an embodiment of the present invention, after the step of decoding and playing the multimedia material, the method further includes: determining whether the multimedia data is still not decoded, and if the media data is still not decoded, continuing to parse the metadata block to solve the multiplexed multimedia file. And decode and play the remaining multimedia material. The present invention proposes a recording medium readable by a multimedia player, which is used for storing a multi-ship, which includes a header and a multimedia poor material 11. The 'header contains the qualifications (description) of the characteristics of the data. The multimedia data area is used to store the data for the 11 24091twf.doc/p block. The multimedia is pure ★ times, the body shakes the £, respectively It is used to store a piece of multimedia media data block: the former block f material area... The characteristics of the body data, the bribe with the multimedia data block and the multimedia resource to generate the multimedia job process towel, the continent in each multimedia - meta data block And in the block, the characteristics of the multimedia materials stored in the media nurturing block are recorded, so that the multimedia can be used as a step (4), and the multimedia feeding solution generated by the method can also provide multimedia playback. The above-mentioned and other objects, features and advantages of the present invention are more apparent in the context of reading and reproducing the contents of the multimedia material stored therein.

It,下文特舉較佳實施例,並配合所附圖式,作詳細說. 明如下。 ° 【實施方式】 分析先前技術所述兩種產生多媒體檔案的方法可發 为匕們都為了解決同一個問題而衍生出複雜的步驟或增 需的記憶體。這個問題在於多媒體資料之間的相互^ =貧料是在將多媒體資料相互交錯儲存時’才能同時計算 松來,而多媒體資料及其相互關係資料又需儲存在同 上衆裡,若能解決這個同時儲存及計算的問題,即可簡化 =蝶體檔案的產生梦驟。本發明即是根據上述概念所發展 來的一套多媒體檔案的產生及播放方法。為了使本發^ 1334308 24091twf.doc/p 之内容更為明瞭,以·下特泉會#1 以實施的範例。.彳牛^例作為本發明確實能夠據 第一實施例 本發明齡铃献在乡賴财巾力认—個 塊,此兀貧料塊是放置在多媒體資料塊(例如視訊資料塊、 音訊資料塊及字幕資瓶等)之前,肋描述、: 料塊中儲存之多媒體資料(例如視訊資料、音訊資料^ 2料等),特性’並可用來幫助建立多媒體槽案所^ 貝料。圖5疋依照本發明第—實施例所,示之多媒體二安 架構的示意圖。請參照圖5,本實施例的多舰構案: 可包含標頭510及多媒體資料區52〇。在一態樣中,、μ夕 媒體槽案格式為AVI時,則此多媒體標案更包含索= 區。其中,標頭510中包含了資料軌之特性的描述,、此: 料執包含視訊資料執(video track)、音訊資料執 track )、字幕資料執(sub_picture tmck )以及元資料執 (metadata track)。—個多媒體檔案通常有一個或多於— 個的資料軌,這些資料執是用來對多媒體資料做分類,' 把資料的存在、種類,以及相關資訊記錄下來。其中,' 訊資料執(通常只有—個)是絲對視訊資料分類;^ 資料軌則是用來對音訊資料分類,不同的音訊資料執^ 表不同的語言;字幕:#懸是躲對字幕簡分類 的字„代表不同的語言的字幕。 不问 -次值付注意的是,本發明還包括在標頭510中增設一個 兀貝料執’此70資料軌是用來減資料從其他的資料分類 13 24091twf.doc/p 出來’元資·中記料資料的格式、種類及相關資訊等。 當播放多媒體檔鱗,會先掃描標頭,並透過不同的資料 軌(音訊、視訊、字幕與it資料轨)得知多媒體中 具有哪些多媒體資料與元資料。 多媒體資料區520則是用以儲存上述資料執之 其中包括多個多媒體資料塊及元資料塊,如圖5所示的離 ,中,多媒體^料塊的排列依序為視崎料塊切、音訊 貧料塊524及字幕貢料塊汹’其中分別儲存了視訊資料、 音訊育料及字幕貧料,在另_態樣中,這 的排列沒有依照〜定_序,可為任何的組合。'而 多媒體資料塊之前,則分別配置了元資料塊52i、 525,其中㈣記錄了用以描述多媒體 料,這些元資料的内容分述如下: 专『的兀貝 對應於視訊資料塊522之元資料塊切中記錄包括例 如視訊資料的視錄道數、視_數目、視贿種類、各 框n大小及長料:轉;賴於音訊資料塊 ===?錄包括例如音訊資料的音訊軌道 數曰訊框數目、各個音訊框的時 此外,對應於字幕資料塊526之 J f長,Ί ’ 括例如字幕:賴的字幕執道數幕數 間、大小及長度等資料。+幕數目、各個字幕的時 上述這些元資料在所有乡媒體 即可被用來提供重新建立多媒=又錯·凡成後 筆多媒體資料_相互_” —所需_訊(例如各 社關係4)。這些元資料塊會永久存 1334308 24091 twf.doc/p .在此多媒體檔案中,但由於其中儲存的元資料僅是用來描 述對4多媒體資料塊的特性,因此所增加的資料量並不會 • 料雜職的大小造成嚴重的影響。賴此新增的元資 料塊不一定與各種多媒體播放器相容,但這些多媒體播放 益只會將這些元資料塊忽略,且仍可利用習知的方式(例 如參‘日、?、索引表)來讀取多媒體資料,而不會影響到多媒體 播放器的正常功能。 第二實施例 鲁 搭配上述多媒體檔案的新架構,本發明提出對應的多 媒體檔案的產生方法。圖6是依照本發明第二實施例所繪 示之多媒體檔案的產生方法流程圖。請參照圖6 ’本實施 例適用的多媒體檔案的格式包括音訊視訊交換(Audi〇 Video Interleave,AVI )格式及第四代動畫專家群 (International Organization for Standardization Moving Pictures Experts Group 4, ISO-MP4)格式等,而不限制其 範圍。 # 在本實施例中,首先開啟並初始化一個多媒體檔案(步 驟S610)。其中’初始化多媒體檔案的步驟包含產生標頭 以及資料轨,而在產生標頭時,除了視訊資料軌、音訊資 料軌、字幕資料執之外,本發明還包括增加一個元資料軌, 以將元資料從其他的資料分類出來。此元資料執中記錄元 資料的格式、種類及相關貢訊等’透過此元資料轨即可得 知多媒體檔案中會具有哪些元資料,而這些元資料的相關 内容已於第一實施例中說明,故在此不再贅述。 15 1334308 24091twf.doc/p 了-步則產生欲寫人㈣體辟之多媒體資 S620).。其中,利用包含編碼、轉碼、重新多工產生^ 法的其中之一或其組合以產生多媒體資料。 ’方 接著,產生多媒體資料塊以儲存此多媒體 S630)。隨後則可藉由分析此多媒體 牲(^驟 分析此多媒體資料快的長度、格式二之:性,例: 料塊(步驟S640) ’此元資料塊中儲存可描述 塊與多媒體資料之特性的元資料。此處的多媒體;= 元貧料塊例如是先在記憶财纽,再寫人多' = 驟S650),而在寫入時,元資料塊係置於多媒體資^ 、值得-提的是,上述多媒體資料的種類包括但不 視訊資料、音訊資料及字幕㈣等資料,㈣應不畔 的多媒體資料,所產生之元資料塊也會記錄不同的多媒= 資料特性。其中,對應於視訊資料的元資料係記錄了例如 視訊資料的視訊執道數、視訊框數目、視訊框種類、各個 視訊框的時間、大小及長度等資料;對應於音訊資料的元 資料§己錄了例如音訊資料的音訊軌道數、音訊框數目各個 音訊框的時間、大小及長度等資料;而對應於字幕資料的 凡資料則記錄了例如字幕資料的字幕軌道數、字幕數目、 各個字幕的時間、大小及長度等資料。 在步驟S650中,每當寫入一組多媒體資料塊及元資 料塊至多媒體檔案中時,即完成一組多媒體資料的記錄。 然而’實際在產生多媒體檔案時,通常會包括記錄多筆多 媒體資料’而這些多媒體資料通常是以視訊資料、該音訊 16 1334308 24091twf.doc/p 資料及該字幕資料相·互交錯的方式儲存在多媒體檔案中。 因此丨在每完成一組多媒體資料塊及元資料塊的記錄之 後,還包括判斷是否有其他多媒體資料塊欲寫入多媒體檔 案(步驟S660),若仍有其他多媒體資料塊欲寫入,則會 返回步驟S620,並重複上述步驟§620〜S650,在多媒體檔 案中產生其他元資料塊及其他多媒體資料塊。 最後當所有多媒體資料塊均寫入多媒體檔案時,本發 明為了讓此多媒體檔案能夠通用於各種多媒體播放器,因 此也包括在多媒體標案中建立記錄這些多媒體資料之相互 關係的資料’而此資料的建立可藉由掃聪多媒體槽案,並 讀取元資料塊,以取得多媒體資料之相互關係資料,而據 以在多媒體樓案中產生έ己錄多媒體資料之相互關係的索引 表(步驟S670)。 在一態樣中,若多媒體檔案例如為ISO-MP4格式時, 則對應於多媒體檔案中的每一筆多媒體資料,均會建立時 間對樣本表格(time to sample table )、樣本對資料塊表格 (sample to chunk table)、樣本大小表格(sampie size table )、同步取樣表格(sync sample table )及資料塊偏移 量表格(chunk offset table) 5個索引表。因此,若多媒體 檔案總共包括η筆(η為正整數)多媒體資料,就會對應 產生5η個索引表,其中這些索引表係位在標頭内。 在另一態樣中,若多媒體檔案例如為AVI格式時,則 僅會建立一個索引表以記錄在多媒體檔案中的多筆多媒體 資料之相互關係,其中此索引表位在多媒體資料區之後。 17 1334308 24091twf.doc/p 值得注意的是,在一實施例中,上述的索弓丨表是在所 有的$媒體資料塊均寫入多媒體檔案之後,才藉由二晦多 媒體檔案中的元資料塊而建立。然而,在另一實施例中了 此索引表亦可在每寫入一組元資料塊與多媒體資料塊至多 媒體檔案時,即藉由掃瞄多媒體檔案的元資料塊,而先^ 生並暫存於記憶體。最後當所有的多媒體資料塊均寫入多 媒體樓案時,才將儲存在記憶體中的索引表更新並^ ^It is to be noted that the preferred embodiments are described below in detail with reference to the accompanying drawings. [Embodiment] The analysis of the two methods for generating multimedia files described in the prior art can result in complicated steps or additional memory for solving the same problem. The problem lies in the fact that the mutual information between the multimedia materials is that when the multimedia materials are interleaved and stored, the data can be calculated at the same time, and the multimedia data and its mutual relationship data need to be stored in the same public. The problem of storage and calculation can simplify the dream of the butterfly file. The present invention is a method for generating and playing a multimedia file developed according to the above concept. In order to make the contents of this issue ^ 1334308 24091twf.doc / p more clear, to the example of the implementation of the next special spring #1. According to the first embodiment, the yak is indeed capable of being placed in a multimedia data block (for example, a video data block, audio data). Before the block and subtitle bottle, etc., the rib description:: The multimedia material stored in the block (such as video data, audio data, etc.), the feature 'can be used to help establish the multimedia slot case. Figure 5 is a schematic illustration of a multimedia binary architecture in accordance with a first embodiment of the present invention. Referring to FIG. 5, the multi-ship configuration of the embodiment may include a header 510 and a multimedia data area 52〇. In one aspect, when the format of the media channel is AVI, the multimedia standard further includes a cable. The header 510 includes a description of the characteristics of the data track, and the following: the data record includes a video track, an audio data track, a sub_picture tmck, and a metadata track. . A multimedia file usually has one or more data tracks, which are used to classify multimedia materials, and record the existence, type, and related information of the data. Among them, 'information data (usually only one) is the classification of video data; ^ data track is used to classify audio data, different audio data to hold different languages; subtitles: #挂是躲字幕The simplified classification of the words „represents subtitles in different languages. Regardless of the value of the sub-values, the present invention also includes the addition of a mussel material in the header 510. This 70 data track is used to reduce data from other Data Classification 13 24091twf.doc/p Come out the format, type and related information of the materials and materials. When playing multimedia files, the headers will be scanned first and through different data tracks (audio, video, subtitles). And the it data track) to know which multimedia data and metadata are in the multimedia. The multimedia data area 520 is used to store the above data, including a plurality of multimedia data blocks and metadata blocks, as shown in FIG. In the middle, the arrangement of the multimedia material blocks is in order to block the video block, the audio poor block 524 and the subtitle block 汹', wherein the video data, the audio feed and the subtitles are stored respectively, in another mode, This The arrangement is not in accordance with the order, and can be any combination. 'Before the multimedia data block, metadata blocks 52i and 525 are respectively configured, wherein (4) records the multimedia material, and the contents of the metadata are as follows: : The special 兀 对应 corresponds to the video data block 522. The data block includes records such as the number of video recording channels, the number of viewings, the type of the bribe, the size of each box, and the long material: the conversion; Block ===? Recording includes, for example, the number of audio tracks of the audio data, the number of frames, and the time of each audio frame. In addition, the J f length corresponding to the subtitle data block 526, such as subtitles: subtitles Data such as number, size and length. + The number of screens and the time of each subtitle. These metadata can be used to provide re-establishment of multimedia in all township media = error, and then the multimedia data _ mutual _" Required _ (for example, each social relationship 4). These metadata blocks will be permanently stored in 1334308 24091 twf.doc/p. In this multimedia file, but because the metadata stored in it is only used to describe the characteristics of the 4 multimedia data blocks, the amount of data added will not be • The size of the miscellaneous job has a serious impact. The newly added metadata blocks are not necessarily compatible with various multimedia players, but these multimedia playback benefits will only ignore these metadata blocks, and can still use the conventional methods (for example, refer to the 'day, ?, index table ) to read multimedia materials without affecting the normal function of the multimedia player. Second Embodiment Lu In combination with the new architecture of the above multimedia file, the present invention proposes a corresponding method for generating a multimedia file. Figure 6 is a flow chart showing a method of generating a multimedia file according to a second embodiment of the present invention. Please refer to FIG. 6 'The format of the multimedia file to be applied in this embodiment includes the Audio Video Interleave (AVI) format and the International Organization for Standardization Moving Pictures Experts Group 4 (ISO-MP4) format. Etc., without limiting its scope. # In this embodiment, a multimedia file is first opened and initialized (step S610). The step of initializing the multimedia file includes generating a header and a data track, and in addition to the video data track, the audio data track, and the subtitle data, the present invention further includes adding a meta data track to convert the element. The data is classified from other sources. The format, type and related information of the metadata recorded in this meta-data can be used to know which metadata is included in the multimedia file through the metadata track, and the relevant content of the metadata is in the first embodiment. Explain, so I won't go into details here. 15 1334308 24091twf.doc/p - Steps to generate the multimedia (S620). Wherein, one of or a combination of encoding, transcoding, and re-multiplexing is used to generate multimedia material. Then, a multimedia data block is generated to store the multimedia S630). Then, by analyzing the multimedia data, the length of the multimedia data is analyzed, and the format is two: sex, for example: a block (step S640). The metadata block stores the characteristics of the block and the multimedia data. Metadata. The multimedia here; = the yuan poor block is, for example, the first memory in the memory, and then write more people's = 'S650), and when writing, the metadata block is placed in the multimedia resource ^, worth - mention The types of multimedia materials mentioned above include but not video, audio and subtitles (4), and (4) multimedia data that should not be recorded. The generated metadata blocks also record different multimedia = data characteristics. The metadata corresponding to the video data records, for example, the number of video channels, the number of video frames, the type of video frame, the time, size and length of each video frame, and the metadata corresponding to the audio data. For example, the number of audio tracks of the audio data, the time, size and length of each audio frame of the audio frame are recorded; and the data corresponding to the subtitle data records the number of subtitle tracks, the number of subtitles, and the subtitles of the subtitle data. Information such as time, size and length. In step S650, each time a set of multimedia data blocks and metadata blocks are written into the multimedia file, a record of a set of multimedia materials is completed. However, 'actually in the production of multimedia files, it usually includes recording multiple multimedia materials' and these multimedia materials are usually stored in video data, the audio 16 1334308 24091twf.doc/p data and the subtitle data are interleaved. In the multimedia file. Therefore, after each record of the multimedia data block and the metadata block is completed, the method further includes determining whether another multimedia data block is to be written into the multimedia file (step S660), and if there are still other multimedia data blocks to be written, Going back to step S620, and repeating steps § 620 to S650 above, other metadata blocks and other multimedia data blocks are generated in the multimedia file. Finally, when all the multimedia data blocks are written into the multimedia file, the present invention also includes the data for recording the mutual relationship of the multimedia materials in the multimedia standard file for the purpose of making the multimedia file common to various multimedia players. The establishment of the Xie Cong multimedia trough case and the reading of the metadata block to obtain the interrelationship data of the multimedia data, and the index table for generating the interrelationship of the recorded multimedia data in the multimedia building case (step S670) ). In one aspect, if the multimedia file is in the ISO-MP4 format, for each multimedia material in the multimedia file, a time to sample table and a sample pair data block table (sample) are created. To chunk table), sample size table (sampie size table), sync sample table (sync sample table) and chunk offset table (funk offset table) 5 index tables. Therefore, if the multimedia file includes a total of n (n is a positive integer) multimedia material, 5n index tables are generated correspondingly, wherein the index tables are in the header. In another aspect, if the multimedia file is, for example, in the AVI format, only an index table is created to record the interrelationship of the plurality of multimedia materials in the multimedia file, wherein the index table is located after the multimedia material area. 17 1334308 24091twf.doc/p It is worth noting that, in an embodiment, the above-mentioned cable is based on the metadata in the multimedia file after all the media data blocks are written into the multimedia file. Block build. However, in another embodiment, the index table may also be used to scan a multimedia data block for each metadata block and multimedia data block to the multimedia file. Stored in memory. Finally, when all the multimedia data blocks are written into the multimedia project, the index table stored in the memory is updated and ^^

媒體檔案。 ’馬夕 在多媒體檔案中加入上述的索引表之後,即完成整個 多媒體檔案的產生程序,此多媒體檔案即可記錄=光$^ 硬碟等多媒體播放器可讀取之記錄媒體中,而用以提供^ 媒體播放器讀取及播放之用。而對應於此種多媒體樓案了 本發明亦提供其播放方法,以使多媒體播玫器能夠^用本 發明在多媒體檔案中新增的元資料塊與元資料,加快開啟 及讀取多媒體檔案的速度。Media file. After Ma Xi added the above index table to the multimedia file, the entire multimedia file generation process is completed, and the multimedia file can be recorded in the recording medium readable by a multimedia player such as a hard disk such as a hard disk. Provide ^ media player to read and play. Corresponding to the multimedia building, the present invention also provides a playing method for enabling the multimedia player to use the metadata blocks and metadata added in the multimedia file of the present invention to speed up the opening and reading of the multimedia file. speed.

在播放多媒體樓案時,通常包括兩種播放方式,一種 是所謂的循序播放,意即從多媒體檔案最前頭開始,逐筆 對多媒體資料進行讀取及播放;而另一種則是跳躍播放, 意即從多媒體檔案中任一區段的多媒體資料開始播放,以 下則各舉一貫施例詳細說明. 差_三實施例 圖7是依照本發明之第三實施例所繪示之循序播放多 媒體檔案的方法流程圖。請參照圖7,本實施例適用於循 序播放如第一實施例所述的多媒體檔案,即此多媒體檔案 18 24091twf.doc/p 包括用以記錄多筆多媒體資料的多個多媒體資料塊,而在 各個多媒體資料塊之前皆包括一個元資料塊,其中該元資 料塊§己錄用以描述多媒體貢料之特性的元資料。 、 首先開啟並初始化此多媒體檔案(步驟S710)。其中, 初始化多媒體檔案的詳細步驟係與前個實施例相同或相 似,故在此不再贅述。 接著則剖析多媒體檔案中的元資料塊,以獲得多媒體 資料塊的特性(步驟S720)。其中,由於各個多媒體資料 塊之如均配置有對應的元資料塊記錄其特性,包括時間、 ^小及長度等。而在多媒體播放器循序播放多媒體槽案 時’也會先讀取到元資料塊,而預先獲得下一個要播玫之 多媒體資料塊的特性。 此時即可直接利用剖析元資料塊所獲得之特性, 工客姑L辦r # 听夕 千、體I料(步驟S730 )’並解碼與播放多媒體資料(步 = s74〇)。值得一提的是,在一態樣中,可在初始化多ς 产檔案的步驟之後,剖析多媒體檔案,並經過計算以產生 取表格。在另—態樣中’ #多媒體槽_存在例如 二匈坪的硬碟時’則因為讀取硬碟的速度夠快且電腦中的 足夠,因此可以省略產生隨機存取表格的步驟,上 駕知技藝者所知的技術,在此不再贅述。 若取,,判斷是否仍有多媒體資料未解碼(步驟S750), ^ Ϊ多媒體資料未解碼,則賴步驟S 7 2 0,繼續剖析元 貝枓塊以解多工多媒體餘,並解碼及播放剩餘之多媒= 1334308 24091 tw£doc/p 則完成多媒體 之多媒體職=在本發明 性’因此多媒體播放器在讀取每一筆多媒的: =:=知接下來要播放之多媒二= 媒體貝枓的所有貧訊,喊由解多卫及解碼When playing a multimedia building, it usually includes two kinds of playback modes. One is the so-called sequential playback, which means that the multimedia data is read and played one by one from the top of the multimedia file; the other is jump play, meaning That is, the multimedia data of any section in the multimedia file is played, and the following is a detailed description of the following examples. Difference_Three Embodiments FIG. 7 is a sequence of playing a multimedia file according to a third embodiment of the present invention. Method flow chart. Referring to FIG. 7, the embodiment is applicable to sequentially playing a multimedia file as described in the first embodiment, that is, the multimedia file 18 24091 twf.doc/p includes a plurality of multimedia data blocks for recording a plurality of multimedia materials, and Each multimedia data block is preceded by a metadata block, wherein the metadata block § has been recorded to describe the metadata of the characteristics of the multimedia tributary. First, the multimedia file is opened and initialized (step S710). The detailed steps of initializing the multimedia file are the same as or similar to those of the previous embodiment, and therefore are not described herein again. Then, the metadata block in the multimedia file is parsed to obtain the characteristics of the multimedia data block (step S720). Wherein, each of the multimedia data blocks is configured with a corresponding metadata block to record its characteristics, including time, ^ small and length. When the multimedia player sequentially plays the multimedia slot, the metadata block is also read first, and the next feature of the multimedia data block to be broadcasted is obtained in advance. At this point, the characteristics obtained by parsing the metablock can be directly utilized, and the worker can perform the multimedia data (step = s74〇). It is worth mentioning that, in one aspect, after the step of initializing the multi-production file, the multimedia file can be parsed and calculated to generate a form. In the other aspect, '# multimedia slot _ exists, for example, the hard disk of the two Hungarian pings', because the speed of reading the hard disk is fast enough and enough in the computer, the step of generating a random access table can be omitted, and the driver can be omitted. The technology known to the skilled artisan will not be described here. If yes, it is judged whether the multimedia data is still not decoded (step S750), ^ Ϊ the multimedia data is not decoded, then step S 7 2 0, continue to parse the meta-before block to solve the multiplex multimedia remainder, and decode and play the remaining Multimedia = 1334308 24091 tw£doc/p Completion of multimedia multimedia jobs = in the present invention 'So the multimedia player is reading each multimedia: =:= know the next media to play 2 = media All the poor news of Bessie, shouting by the solution and decoding

即可連續地播放多媒體檀針的所有多媒體資料,^ 或讀取任何其他表格,而能夠加快讀取多媒;案 第四實施例 圖8是依照本發明第四實施例所繪示之跳躍播放 體樓案的方法纽圖。請參㈣8 ’本實施例翻於躍 播放如第一實施例所述的多媒體檔案,而為了能夠從夕 體檔案中任一區段的多媒體資料開始播放,此時二=二= 道所欲播放之多媒體資料實際在多媒體構案中儲存^的位The multimedia material of the multimedia dandelion needle can be continuously played, ^ or any other table can be read, and the multimedia can be read faster. The fourth embodiment FIG. 8 is a jump play according to the fourth embodiment of the present invention. The method of the body project. Please refer to (4) 8 ' This embodiment flips to play the multimedia file as described in the first embodiment, and in order to start playing from the multimedia material of any section in the library file, at this time, the second = two = desired to play The multimedia material is actually stored in the multimedia structure.

資料,直到所有的多·媒體資料均解碼完畢, 檔案的播放動作(步驟S76〇)。 及長度,才能讓多媒體播放器正確的找尋多媒體^料=始 進行播放。 、汗。 如同前個實施例所述’在使用跳躍播放方式播放多媒 體檔案時’也是先開啟並初始化多媒體檔案(步驟S81^) 接著剖析多媒體檔案’並計算以產生隨機存取表格(步驟 S820) ’此隨機存取表格記錄了各筆多媒體資料的時^及 長度資訊,因此多媒體播放器在進行跳躍播放時,0兩 Ί ,、品參 20 1334308 24091twf.doc/p 考此近機存取表格,就可以 中的傅置,而準確的播放出所需的二:媒嶋 案中的位置(步:二機在多媒體檔 :對之“體‘=二= ,應的位一岐上:= 二實=戶=有,到其他跳躍指令的情況下,則如同第 ^體播放器將繼續剖析元資料塊以解多 夕媒體植案’並解碼及播放剩 sB7〇) 體檔案的播放動作(步驟S880)。 、几、 …躍播放多媒體標案時,藉由預先建立 中=ίΐΐί:所欲存取之多媒體資料在多媒體檔案 置開始解多工、解碼及播放所欲 子取之夕媒體捕。因此,無論使用者 :片—:時:,多媒體播放器均能快心^ 的片段,相當便捷。 21 1334308 24091twf.doc/p 在ISO-MP4之多媒體槽案格式下,本發明在產生多媒 體標案時賴人的元㈣塊可衫雜倾賴認並使 用,因此料省略傳統多媒體播放器需先載人、整理及精 簡多媒體貧料資訊的頻’而減少乡媒體齡播放前所需 的準備時間。 综上所述,本發明之多媒體檔案的產生及播放方法至 少具有下列優點: 1. 卽省產生多媒體槽案過程中所需使用的記憶體。 2. 減少產生多媒體檔案過程中所需建立的檔^數目。 3. 間化產生夕媒體構案的步驟,減少多媒體槽案播放 m所需的準備時間,並減少多媒體檔案播放所需的記憶體。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何熟習此技藝者,在不脫離本發明之精神 和範圍内,當可作些許之更動與潤飾,因此本發明之^護 範圍當視後附之申請專利範圍所界定者為準。 ° 【圖式簡單說明】 圖1所繪示為多媒體檔案中資料排列順序的示意圖。 圖2所纟會示為排列多媒體資料的範例。 ° 圖3所繪示為習知產生多媒體檔案的方法流程圖。 圖4所繪示為習知產生多媒體檔案的方法流程圖。 圖5是依照本發明第一實施例所繪示之多媒體槽安 構的示意圖。 田 圖6是依照本發明第二實施例所繪示之產生多媒體幹 案的方法流程圖。 胃 22 1334308 24091twf.doc/p 圖7是依照本發明第三實施例所繪示之循序播放多媒 體檔案的方法流程圖。 • 圖8是依照本發明第四實施例所繪示之跳躍播放多媒 體樓案的方法流程圖。 • 【主要元件符號說明】 500 :多媒體檔案 510 :標頭 520 :多媒體資料區 • 521 :視訊資料塊 524 :音訊資料塊 526 :字幕資料塊 521、523、525 :元資料塊 S310-S360:習知產生多媒體檔案的方法之各步驟 S410〜S470:習知產生多媒體擋案的方法之各步驟 S610〜S670 :本發明之產生多媒體檔案的方法之各步 驟 • S710〜S760 :本發明之循序播放多媒體檔案的方法之 各步驟 S810〜S870 :本發明之跳躍播放多媒體檔案的方法之 各步驟 23The data is played until all the multi-media data has been decoded, and the file is played (step S76). And the length, in order to allow the multimedia player to correctly find the multimedia material = start playing. ,sweat. As in the previous embodiment, 'when playing the multimedia file using the skip play mode', the multimedia file is also opened and initialized first (step S81^). Then the multimedia file 'is parsed and calculated to generate a random access table (step S820) 'this random The access table records the time and length information of each multimedia material. Therefore, when the multimedia player performs the jump playback, 0 Ί, and the product reference 20 1334308 24091twf.doc/p can be used to access the near-machine access form. In the set, the exact play of the required two: the position in the media case (step: two machines in the multimedia file: on the "body" = two =, the position should be on the top: = two real = Household = Yes, in the case of other jump instructions, the playback action of the volume file will be as if the second player will continue to parse the metadata block to solve the multi-day media planting 'and decode and play the remaining sB7〇 (step S880) , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Regardless of User: Film—: Time: The multimedia player can be a fast and easy segment. 21 1334308 24091twf.doc/p In the ISO-MP4 multimedia slot format, the present invention is based on the production of multimedia standards. The person's yuan (four) block can be used and recognized, so it is expected that the traditional multimedia player needs to first carry people, organize and streamline the frequency of multimedia poor information, and reduce the preparation time required before the media age of the media. As described above, the method for generating and playing a multimedia file of the present invention has at least the following advantages: 1. The memory required for generating a multimedia slot file is saved. 2. The file required to be created during the process of generating a multimedia file is reduced. 3. The step of synchronizing the media composition, reducing the preparation time required for the multimedia slot play m, and reducing the memory required for multimedia file playback. Although the present invention has been disclosed above in the preferred embodiment, It is not intended to limit the invention, and any person skilled in the art can make some modifications and retouchings without departing from the spirit and scope of the invention. The scope of the patent application is subject to change. ° [Simple diagram of the diagram] Figure 1 is a schematic diagram showing the order of data arrangement in a multimedia file. Figure 2 shows an example of arranging multimedia materials. A flow chart of a method for generating a multimedia file is shown in Fig. 4. Fig. 4 is a flow chart showing a method for generating a multimedia file in a conventional manner. Fig. 5 is a schematic diagram showing the construction of a multimedia slot according to a first embodiment of the present invention. FIG. 6 is a flow chart of a method for generating a multimedia dry case according to a second embodiment of the present invention. Stomach 22 1334308 24091twf.doc/p FIG. 7 is a sequential playback of a multimedia file according to a third embodiment of the present invention. Method flow chart. Figure 8 is a flow chart showing a method of jumping to play a multimedia building in accordance with a fourth embodiment of the present invention. • [Main component symbol description] 500: Multimedia file 510: Header 520: Multimedia data area • 521: Video data block 524: Audio data block 526: Subtitle data block 521, 523, 525: Meta data block S310-S360: Steps S410 to S470 of the method for generating a multimedia file: Steps S610 to S670 of the conventional method for generating a multimedia file: Steps of the method for generating a multimedia file according to the present invention • S710 to S760: Sequential playing multimedia of the present invention Steps S810 to S870 of the method for archiving: steps 23 of the method for jumping to play a multimedia file of the present invention

Claims (1)

1334308 24091twf.doc/p 體二V!專!1範圍第3項所述的方法’其中在該多媒 的=些多媒體資料之相互關係的該索引表 料太its各該些多媒1^料的—時間對樣本表格、一 &本對貝瓶表格、—樣本大小表格、 一資料塊偏移量表格。 ^樣表才。及1334308 24091twf.doc/p Body 2 V! Special! 1 The method of claim 3, wherein the index table of the multimedia information of the multimedia material is too current, the time-to-sample table, a & Bayer table, - sample size table, a block offset table. ^ Sample form only. and 5.如申请專利範圍第1項所述的方法,其中在每寫入 :組該元資料塊與該㈣體龍塊至多媒體檔案中後·,即 掃%該夕媒體;^案,以讀取該元資料塊並產生記錄該多 ^體資料之相互關係的一索引表,而當完成寫入所有多媒 體貧料塊時,則將該索引表寫入該多媒體檔案。 6.如申請專利範圍第5項所述的方法,其中產生記錄 該些多媒體資料之相互關係的該索引表的步驟包括: 產生對應各該些多媒體資料的一時間對樣本表格、一 樣本對賀料塊表格、一樣本大小表格、—同步取樣表格及5. The method of claim 1, wherein each of the writing: the metadata block and the (four) body dragon block to the multimedia file, ie, sweeping the eve media; ^ case, to read The metadata block is taken and an index table is generated for recording the relationship of the plurality of pieces of data, and when all the multimedia poor blocks are written, the index table is written to the multimedia file. 6. The method of claim 5, wherein the step of generating the index table for recording the interrelationship of the plurality of multimedia materials comprises: generating a time-to-sample table corresponding to each of the plurality of multimedia materials, and the same Block form, same size table, simultaneous sampling form and —資料塊偏移量表格。 7.如申請專利範圍第1項所述的方法,其中產生該多 媒體資料的步驟包含編瑪、轉碼、重新多工產生的其中之 —或其組合。 8·如申請專利範圍第1項所述的方法,其中該些多媒 體資料的種類包括一視訊資料、一音訊資料及一字幕資料。 9.如申請專利範圍第8項所述的方法,其中該元資料 包括該視訊資料的視訊執道數、視ifl框數目、視訊框種類、 各個視訊框的時間'大小及長度其中之一或其組合者。 25 1334308 24091twf.doc/p 、 20.如申請專利範圍第17項所述的方法,其中該些元 • 資料包括該字幕資料之字幕軌道數、字幕數目Γ各個轉 的時間、大小及長度其_之一或其組合者。 • 21.如申請專纖㈣13項所述的方法,其中該多媒 '的格式包括音訊視訊交換(AVI)格式及第四代動 畫專豕群(ISO-MP4)格式其中之—。 巾枝!多媒體播放Ε可讀取之記錄媒體,該記錄媒體 鲁 中儲存一多媒體擋案,該多媒體檔案包括. 一標頭,包含—資料軌之特性的描述;以及 -多媒體資料區,用以儲存該資料軌之資料,包括: 別用以保ί個ί媒體資料塊’位於該多媒體資料區中,分 別用以儲存一多媒體資料;以及 各該此多資料區令且配置於 料塊與該多媒體資料之;;二描述該多媒體資 _資料22項所述之記錄媒體,其中該 與一元資料執 視訊資料軌、一字幕資料軌 範圍第22項所述之記錄媒體,更包括: 25如己錄該些多媒體資料之一相互關係。 索引表包括對應該些多媒=述=錄媒體,其中該 樣本對資料塊表格、科的-時間對樣本表格'--資料塊絲4表格。’ ’、表n步取樣表格及 28 1334308 24091twf.doc/p 26. 如申請專利範圍第22項所述之記錄媒體,其中該 些多媒體資料的種類包括一視訊資料、一音訊資料及一字 幕資料。 27. 如申請專利範圍第26項所述之記錄媒體,其中該 些元資料包括該視訊資料的視訊軌道數、視訊框數目、視 訊框種類、各個視訊框的時間、大小及長度其中之一或其 組合者。 28. 如申請專利範圍第26項所述之記錄媒體,其中該 些元資料包括該音訊資料的音訊軌道數、音訊框數目各個 音訊框的時間、大小及長度其中之一或其組合者。 29. 如申請專利範圍第26項所述之記錄媒體,其中該 些元資料包括該字幕資料的字幕軌道數、字幕數目、各個 字幕的時間、大小及長度其中之一或其組合者。- Data block offset table. 7. The method of claim 1, wherein the step of generating the multimedia material comprises comma, transcoding, re-multiplexing, or a combination thereof. 8. The method of claim 1, wherein the types of the multimedia material comprise a video material, an audio material, and a subtitle data. 9. The method of claim 8, wherein the metadata includes one of the number of video channels of the video material, the number of ifl frames, the type of video frame, the time 'size and length of each video frame' or Its combination. The method of claim 17, wherein the data includes the number of subtitle tracks of the subtitle data, the number of subtitles, the time, size and length of each turn. One or a combination thereof. • 21. For the method described in the application for fiber (4), the format of the multimedia media includes the Audio Video Exchange (AVI) format and the Fourth Generation Animation Group (ISO-MP4) format. Towels! The multimedia recording device can read the recording medium, and the recording medium stores a multimedia file, the multimedia file includes: a header including a description of characteristics of the data track; and a multimedia data area for storing the data The information of the track, including: the use of the media data block in the multimedia data area for storing a multimedia material; and each of the multiple data area blocks and configured in the block and the multimedia material ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; One of the multimedia materials is related to each other. The index table includes corresponding media = description = recorded media, wherein the sample is for the data block table, the class-time-to-sample table'--the data block wire 4 table. The recording medium as described in claim 22, wherein the types of multimedia materials include a video material, an audio material and a subtitle data. . 27. The recording medium of claim 26, wherein the metadata includes one of a number of video tracks of the video material, a number of video frames, a type of video frame, a time, a size, and a length of each video frame or Its combination. 28. The recording medium of claim 26, wherein the metadata comprises one or a combination of the number of audio tracks of the audio material, the time, size and length of each audio frame of the number of audio frames. 29. The recording medium of claim 26, wherein the meta-data comprises one or a combination of the number of subtitle tracks of the subtitle data, the number of subtitles, the time, size and length of each subtitle. 2929
TW96118196A 2007-05-22 2007-05-22 Generating method and playing method of multimedia file and recording medium storing multimedia file TWI334308B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW96118196A TWI334308B (en) 2007-05-22 2007-05-22 Generating method and playing method of multimedia file and recording medium storing multimedia file
US11/839,322 US20080294691A1 (en) 2007-05-22 2007-08-15 Methods for generating and playing multimedia file and recording medium storing multimedia file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW96118196A TWI334308B (en) 2007-05-22 2007-05-22 Generating method and playing method of multimedia file and recording medium storing multimedia file

Publications (2)

Publication Number Publication Date
TW200847783A TW200847783A (en) 2008-12-01
TWI334308B true TWI334308B (en) 2010-12-01

Family

ID=44211788

Family Applications (1)

Application Number Title Priority Date Filing Date
TW96118196A TWI334308B (en) 2007-05-22 2007-05-22 Generating method and playing method of multimedia file and recording medium storing multimedia file

Country Status (1)

Country Link
TW (1) TWI334308B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI555406B (en) 2014-11-20 2016-10-21 聯詠科技股份有限公司 Storage method and processing device and video recording system thereof

Also Published As

Publication number Publication date
TW200847783A (en) 2008-12-01

Similar Documents

Publication Publication Date Title
CN101369440B (en) Methods for generating and playing multimedia file
KR101115701B1 (en) Method and apparatus for annotating video content with metadata generated using speech recognition technology
CN101800060B (en) Method for reproducing AV data stored in information storage medium
KR101001178B1 (en) Video playback device, apparatus in the same, method for indexing music videos and computer-readable storage medium having stored thereon computer-executable instructions
TWI344300B (en) Computer-readable recording medium and method and apparatus to synchronize av data with text subtitle data
CN106576151B (en) Video processing apparatus and method
TWI260610B (en) Information storage medium having multi-angle data
JP5197702B2 (en) Reproduction method and recording medium for reproducing information storage medium
RU2010132152A (en) RECORDING MEDIA, PLAYBACK DEVICE AND INTEGRAL DIAGRAM
JP2004516752A (en) System and method for accessing multimedia summaries of video programs
WO2006054590A1 (en) Data processing apparatus
TWI309949B (en) Information storage medium including meta data for multi-angle title, and apparatus and method for reproducing the same
CN1764971A (en) Methods and apparatuses for reproducing and recording still picture and audio data and recording medium having data structure for managing reproduction of still picture and audio data
KR100302499B1 (en) Broadcasting program playback management information generation method and playlist automatic generation method and device
TWI334308B (en) Generating method and playing method of multimedia file and recording medium storing multimedia file
CN100492512C (en) Recording apparatus, reproducing apparatus, recording method, reproducing method and recording medium thereof
KR20040107126A (en) apparatus and method for Personal Video Recorder
JP4162459B2 (en) Multimedia information reproducing apparatus, multimedia information reproducing method and program
KR20060117998A (en) Data recording method, data reproduction device, and recording medium
CN112423097B (en) Program recording and playing method for realizing embedded equipment based on PVR protocol
JP2005208875A (en) Metadata distribution method
WO2006030995A1 (en) Index-based authoring and editing system for video contents
JP2006140992A (en) Data processing apparatus
JP2015153441A (en) Information processor, information recording device, information recording medium, information processing method, and program
JP2005109685A (en) Broadcast program storage reproduction system, broadcast program storage reproduction method, and program