1278836 九、發明說明: “ 【發明所屬之技術領域】 本發明係有關於一種數位影像媒體資料儲存暨再生 (storing and reproducing digital image medium data)方法,係 應用於一媒體資料再生系統之中,可同時再生影像與聲音。 【先前技術】 影像是溝通的媒介,這種媒介正不斷在人性化,傳統 影像的發展可以從一百五十年前針孔式相機的發明開始談 起’發展到近幾年的傻瓜相機,可以說到了一個臨界點, 取而代之的就是目前最流行的數位相機,雖然數位影像目 前仍存在著不少技術問題待解決,但是有了數位影像後, 使得溝通媒介更人性化。 隨著數位相機的大量普及,讓大眾得以享受數位影像 帶來的便利,不過目前數位相片的發展還是存在某些缺 陷’那就是只有靜態的影像而沒有聲音,無法藉由音樂將 當時相片中的情境與心境表現出來,如果能夠在再生影像 光碟中的相片的同時,加入音樂元素,將會持續使數位相 片更融入生活面,使得人們更能享受記錄生活的樂趣。 【發明内容】 本發明為實現一種達成同時再生數位相片與音樂的 方去。其主要目的乃&供一種記錄媒體及其數位影像媒體 資料儲存暨再生方法。 此數位影像媒體資料儲存暨再生方法,係應用於一媒 體資料再生系統(medium information reproducing system), 此系統傷有一記憶體單元(memory unit)、一視訊編碼/解碼 器(video codec)與一音訊編碼/解碼器(audi〇 c〇dec),此方法 包含以下四個步驟:(1)分割暨儲存資料於一記錄媒體 (record medium),使其至少包含一檔案系統(file system)區 與一媒體資料結構槽案區,檔案系統區内儲存檔案配置資 訊(configuration data),媒體資料結構檔案區至少包含一記 錄媒體標頭(header)區與多組媒體資料區,記錄媒體標頭區 内儲存記錄媒體管理資訊,每一組媒體資料區至少包含一 媒體資料標頭區、一媒體視訊資料區與一媒體音訊資料 區,媒體資料標頭區内儲存媒體資料管理資訊。(2)載入 檔案配置資訊至記憶體單元,並根據其中之媒體資料結構 檔案區的起始位址(start address),讀取記錄媒體管理資 訊’以識別此記錄媒體是否符合—預定的媒體資料結構格 式(datastructurefonnat),若否,則處理下一記錄媒體並 ° 料區的組號N,讀取 此第n組舰倾獅时_體雜管理資訊。(4)設定 視訊編碼/解碼器與音訊編碼/解碼器,並再生此組媒體視 訊資料與音訊資料。 根據本_,轉(取包含町三個子辣:(2a)載 1278836 入檔案配置資訊至記憶體單元,並讀取媒體資料結構檔案 區的起始位址。(2b)從媒體資料結構檔案區的起始位址讀 取§己錄媒體管理資訊至記憶體單元,其中記錄媒體管理資 訊至少包含一記錄媒體識別碼(identifier)、媒體資料區的總 組數與各組媒體資料區的起始位址。(2c)檢查此記錄媒體 識別碼是否為一預定的媒體資料結構格式,若否,則處理 下一記錄媒體,並回到步驟(1),若是,則跳至步驟(3)。 根據本發明,步驟(4)中的設定動作又包含以下兩個 子步驟·(4a)檢查標頭起始碼是否正確,若否,則處理下 一組媒體資料,跳至步驟(3)。(4b)傳送視訊檔袼式、視訊 晝面解析度(resolution)至視訊編碼/解碼器,並傳送音訊檔 格式與音訊檔位元率(bitrate)至音訊編碼/解碼器,再進行步 驟(4)中的再生動作。 根據本發明,步驟(4)中的再生動作又包含以下四個子 步驟·(4a)根據媒體^料視訊區的起始位址、媒體資料視 訊區的總長度(length)、媒體資料音訊區的起始位址與媒體 資料音訊區的總長度,將視訊資料與音訊資料分別載入至 記憶體單元,再分別傳送至視訊編碼/解碼器與音訊編碼/ 解碼器。(4b)開始再生至再生時間完畢。(4c)檢查重複再 生模式(repeat mode)是否啟動,若是則重返步驟(处)。(4匈 決定是否繼續再生,若是則處理下一組媒體資料,跳至步 驟(3),否則結束再生。 8 1278836 本發明另一個目的乃提供一種記錄媒體,係藉由一媒 體資料再生緖將此記錄舰巾的雜再生出來,此記錄 媒體包含-檑㈣統包(paek)以及_賴:諸結構樓案 包。檔案系統包由難配置資訊所組成,舰資料結構稽 案包則由一記錄媒體標頭與多數組媒體資料所組成。其中 記錄媒體標頭至少包含-記錄_識別碼、舰資料區總 組數與各組媒體資料的起始位址。 此外,每一組媒體資料包含一媒體資料標頭、媒體視 訊資料以及舰音訊資料。雜資料觸又至少包含視訊 檔管理資訊、音訊檔管理資訊與再生管理資訊。視訊檔管 理資訊至少包含-標觀始碼一視輯格式、—視訊晝 面解析度、媒體視訊資料的總長度以及媒體視訊資料的起 始位址,音訊檔管理資訊至少包含一音訊檔格式、媒體音 訊^料的總長度、媒體音訊資料的起始位址以及一音訊檔 位70率,再生管理資訊至少包含一重複再生模式與一再生 時間。 其中’媒體資料再生系統為個人電腦或數位影音再生 機,而記錄媒體為一光碟片、一記憶卡或一微型硬碟。視 Λ檔格式為靜態圖像袼式標準檔⑽nt photographic experts gr〇UP,JPG)、標臧影像格式檀(吨 image fiie format, TIFF)、圖形父換袼式檔(graphics interchange format, GIF)、可攜式網路圖形檔加他此graphics, 9 1278836 PNG)、位圖檔(bitmap, BMP)、小晝家檔(PCX)與原始檔 (RAW)等。 至於音訊檔格式包含有由國際標準化組織ISO制定 的動悲影像格式標準(moving picture experts group,MPEG> 的第二層音頻檔(layer-2, MP2)、第三層音頻檔(layer-3, MP3)、波形檔(WAVE)與視窗媒體音訊檔(wind〇ws media audio,WMA)等。 本發明數位影像媒體資料儲存暨再生方法,讓使用者 使用此媒體資料儲存架構來編輯和儲存數位影像媒體資 料,使其在觀看數位相片時同時享有音校的情趣,讓播放 時更為生動活潑。另外,此媒體資料儲存架構支援多種視 訊與音訊格式,讓此記錄媒體所能涵蓋的格式更為廣泛。 茲配合下列圖示、實施例之詳細說明及申請專利範 圍,將上述及本發明之其他目的與優點詳述於後。 【實施方式】 第一圖係本發明之數位影像記錄媒體的資料儲存結 構圖。一記錄媒體100至少包含兩個區域,一檔案系統區 101與一媒體資料結構檔案區103。檔案系統區101儲存通 用磁碟格式(universal disk format,UDF)/ISO9660 的檔案系 統,UDF用於數位視訊光碟(digitalvide〇disk,DVD)片, 10 1278836 IS0966G用於-般的光碟片,二者都是唯讀檔案系統。 刪_是專門設計用來製作不受作㈣統影響的檔案 系統’並藉此提高光碟片相容性的一種檔案系、统的規格。 使用ISO%60作為檔案系統的光碟片,可以使用於在所 有的作業系統上。DVD袼式影片以動態影像格式標準 (moving picture experts group,MPEG 2)壓縮儲存於普通光 碟上就稱為UDF,是一種工業標準檔案格式。 媒體資料結構檔案區103由一個記錄媒體標頭區 1030與多組媒體資料區⑼31〜1〇3N)所組成。記錄媒體標 頭區1030主要記錄整個記錄媒體的管理資訊(於第二圖中 再詳細說明),每一組媒體資料區(1031〜103N)再細分為三 部分,一媒體資料標頭區103a、一媒體視訊資料區1〇3b 與一媒體音訊資料區l〇3c。媒體資料標頭區1〇3a儲存媒 體資料管理資訊,舰視婦籠廳與雜音訊資料區 1〇3c則分別存放視訊資料與音訊資料。 第二圖係顯示記錄媒體標頭區1030的資料儲存袼 二。> 考第二圖,欄位201内儲存記錄媒體識別碼,欄位 202内儲存記錄媒體標頭區的總長度,欄位2〇3為一保留 搁位’棚位204内儲存媒體資料結構檔案區的總長度,攔 位205内館存媒體資料區的總組數,以及攔位211〜21Ν内 刀別儲存從第一組媒體資料區至第Ν組媒體資料區的起始 位址。 11 i278S36 第二圖為媒體資料結構檔案區103的資料結構圖,圖 中的楳號係依據第二圖中各攔位的定義。 第四圖係顯示媒體資料標頭區1〇3a的資料儲存格 式。參考第四圖,攔位4〇1内儲存標頭起始碼,攔位4〇2 内儲存媒體資料區的總長度,攔位4〇3内儲存媒體視訊資 料區103b的起始位址,齡4〇4内儲存媒體視訊資料區 l〇3b的總長度,攔位4〇5内儲存視訊檔格式,攔位4〇6内 儲存視訊晝面的解析度,攔位407與攔位412為保留欄位, 搁位408内館存媒體音訊資料區膽的起始位址,攔位 409内儲存媒體音訊資料區膽的總長度,攔位彻内儲 存音訊槽袼式,欄位411内儲存音訊檔位元率,攔位413 内错存重複再生模式與欄位414内错存再生時間。 其中,攔位405内所儲存的視訊檔格式包含有靜態圖 像袼式標顿、標籤影像袼·、®形交祕式檀、可攜 式網路圖形槽、位圖檔、小晝家檔與原始檔等視訊格式。 而棚位41G内所儲存的音訊檔格式包含有由國際標準化組 織ISO制疋的動態影像袼式標準的第二層音頻槽、第三層 音頻檔、:^彡触視窗舰音訊鮮音訊格式。 第五圖為媒體資料區1〇3N的資料結構圖,圖中的標 5 虎係依據第四圖巾各攔位的定義。 12 12788361278836 IX. Description of the invention: "Technical field of invention" The present invention relates to a method for storing and reproducing digital image medium data, which is applied to a media data reproduction system. At the same time, the image and sound are reproduced. [Prior Art] Image is the medium of communication. This kind of medium is constantly being humanized. The development of traditional image can be started from the invention of pinhole camera 150 years ago. A few years of point-and-shoot cameras can be said to be a critical point. Instead, the most popular digital cameras are currently available. Although there are still many technical problems to be solved in digital images, digital media has made the communication medium more user-friendly. With the popularity of digital cameras, the public has been able to enjoy the convenience of digital images. However, there are still some shortcomings in the development of digital photos. That is, there are only static images and no sound, and it is impossible to use music to make photos in the photos. The situation and mood are expressed, if it can be reproduced in the image At the same time as the photos in the disc, adding music elements will continue to make the digital photos more into the living surface, so that people can enjoy the pleasure of recording life. [Invention] The present invention realizes a method for achieving simultaneous reproduction of digital photos and music. The main purpose is to provide a recording medium and a digital image media data storage and regeneration method thereof. The digital image media data storage and regeneration method is applied to a medium information reproducing system. There is a memory unit, a video codec and an audio encoder/decoder (audi〇c〇dec). The method includes the following four steps: (1) segmentation and storage of data The recording medium includes at least a file system area and a media data structure slot area, and the file system area stores configuration information, and the media data structure file area includes at least a recording media header area and a plurality of sets of media data areas, recording media header area storage records Media management information, each group of media data area includes at least one media data header area, one media video data area and one media audio data area, and the media data management information is stored in the media data header area. (2) Loading file configuration Information to the memory unit, and according to the start address of the media data structure file area, read the recording medium management information 'to identify whether the recording medium meets - the predetermined media data structure format (datastructurefonnat), If not, the next recording medium is processed and the group number N of the material area is read, and the information of the nth group of lions is read. (4) Set the video codec/decoder and audio codec/decoder and reproduce the set of media video data and audio data. According to this _, turn (take the three sons of the town: (2a) contains 1278836 into the file configuration information to the memory unit, and read the starting address of the media data structure file area. (2b) from the media data structure file area The starting address reads § the recorded media management information to the memory unit, wherein the recording media management information includes at least one recording medium identifier (identity), the total number of groups of the media data area, and the start of each group of media data areas. (2c) Checking whether the recording medium identification code is a predetermined media data structure format. If not, processing the next recording medium, and returning to step (1), and if yes, skipping to step (3). According to the invention, the setting action in step (4) further comprises the following two sub-steps: (4a) checking whether the header start code is correct, and if not, processing the next set of media data, and skipping to step (3). (4b) transmitting the video file format, the video resolution to the video encoding/decoder, and transmitting the audio file format and the audio bit rate to the audio encoder/decoder, and then performing the step (4) Regeneration action in .) according to this Therefore, the regenerating action in step (4) further includes the following four sub-steps: (4a) according to the starting address of the media video area, the total length of the media data video area, and the beginning of the media data area The total length of the address and media data area is loaded into the memory unit and then transmitted to the video encoder/decoder and audio codec/decoder respectively. (4b) Start reproduction until the reproduction time is completed. (4c) Check if the repeat mode is activated, and if so, return to the step (where) (4 Hungary decides whether to continue regeneration, if it is, then process the next set of media data, skip to step (3), otherwise end 8 1278836 Another object of the present invention is to provide a recording medium which reproduces the miscellaneous waste of the record by a media data reproduction, the recording medium comprising - (four) package (paek) and _ Lai: The structural system package consists of a difficult configuration information, and the ship data structure audit package consists of a recording media header and a multi-array media material. The recording media header contains at least - Record _ identification code, the total number of ship data area and the starting address of each group of media data. In addition, each group of media data contains a media data header, media video data and ship audio data. Video file management information, audio file management information and reproduction management information. The video file management information includes at least - the target code - video format, the video resolution, the total length of the media video data, and the start of the media video data. The address, the audio file management information includes at least an audio file format, a total length of the media audio material, a starting address of the media audio data, and an audio gear 70 rate, and the regeneration management information includes at least one repetitive regeneration mode and one regeneration time. The media data reproduction system is a personal computer or a digital audio and video reproduction machine, and the recording medium is a CD, a memory card or a mini hard disk. The video file format is static image standard file (10) nt photographic experts gr〇UP, JPG), standard image format sandal (t image fiie format, TIFF), graphics interchange format (GIF), Portable network graphics files plus his graphics, 9 1278836 PNG), bitmap files (bitmap, BMP), small files (PCX) and original files (RAW). As for the audio file format, there are moving picture experts group (moving picture experts group, MPEG> second layer audio file (layer-2, MP2), third layer audio file (layer-3,). MP3), waveform file (WAVE) and window media audio file (window ws media audio, WMA), etc. The digital image media data storage and reproduction method of the present invention allows the user to use the media data storage architecture to edit and store digital images. The media data allows it to enjoy the sound school's fun while watching digital photos, making it more lively. In addition, this media data storage architecture supports multiple video and audio formats, allowing the recording media to cover more formats. The above and other objects and advantages of the present invention will be described in detail below with reference to the following drawings, the detailed description of the embodiments and the scope of the claims. The first figure is the data of the digital image recording medium of the present invention. The storage structure 100. A recording medium 100 includes at least two areas, a file system area 101 and a media data structure file area 103. The file system 101 stores the file system of universal disk format (UDF)/ISO9660, UDF is used for digital video disk (DVD), 10 1278836 IS0966G is used for general CD, both are only Read the file system. Delete _ is a file system and system specification specially designed to make the file system not affected by (4) and improve the compatibility of the CD. Using ISO%60 as the file system CD It can be used on all operating systems. DVD-style movies are stored in normal optical discs under the dynamic picture format standard (MPEG 2) and are called UDFs. They are an industry standard file format. The file area 103 is composed of a recording medium header area 1030 and a plurality of sets of media data areas (9) 31 to 1 〇 3N). The recording media header area 1030 mainly records the management information of the entire recording medium (described in detail in the second figure), and each set of media data areas (1031 to 103N) is further subdivided into three parts, a media data header area 103a, A media video data area 1〇3b and a media audio data area l〇3c. The media data header area 1〇3a stores media data management information, and the ship's women's cage room and noise information area 1〇3c stores video data and audio data respectively. The second figure shows the data storage of the recording medium header area 1030. > In the second diagram, the recording medium identification code is stored in the field 201, the total length of the recording medium header area is stored in the field 202, and the field 2〇3 is a reserved shelf 'the storage media data structure in the booth 204 The total length of the file area, the total number of groups in the media data area of the store 205, and the block 211~21 储存 store the start address from the first group of media data areas to the media area of the third group. 11 i278S36 The second picture shows the data structure of the media data structure file area 103. The apostrophes in the figure are based on the definition of each block in the second figure. The fourth figure shows the data storage format of the media data header area 1〇3a. Referring to the fourth figure, the header start code is stored in the block 4〇1, the total length of the media data area stored in the block 4〇2 is stored, and the start address of the media video data area 103b is stored in the block 4〇3. The total length of the storage media data area l〇3b in the age of 4〇4, the video file format stored in the block 4〇5, the resolution of the video file stored in the block 4〇6, the block 407 and the block 412 are The reserved field, the starting address of the media audio data area in the shelf 408, the total length of the media audio data area in the block 409, the audio channel in the block, and the storage in the field 411 The audio gear bit rate, the repeated reproduction mode in the block 413 and the lost reproduction time in the field 414. The video file format stored in the block 405 includes a static image, a label image, a label image, a ® type, a secret type, a portable network graphics slot, a bitmap file, and a small file. Video format such as the original file. The audio file format stored in the 41G of the booth includes a second layer audio slot, a third layer audio file, and a channel audio format of the dynamic image format standard manufactured by the International Organization for Standardization (ISO) ISO. The fifth picture shows the data structure of the media data area 1〇3N. The standard 5 in the figure is based on the definition of each block of the fourth towel. 12 1278836
第六圖說明本發明與媒體資料再生系統之關係示意 圖。媒體資料再生系統600備有一記憶體單元6〇1、一視 訊編碼/解碼器603與一音訊編碼/解碼器605,媒體資料再 生系統600讀取一記錄媒體100,解碼之後,再經由一顯 示裝置620與一音訊輸出裝置622分別將影像與音樂輸 出。媒體資料再生系統600可以是一個人電腦或一數位影 音再生機等等,而記錄媒體1〇〇可以是一光碟片、一記憶 卡或一微型硬碟等等。記憶卡則包括精緻快閃記憶卡 (Compact Hash card,CF 卡)、安全數位記憶卡(secure Digital card,SD 卡)、XD·照片記憶卡(XD-picture,XD 卡)、敏銳記憶卡(Smart Media card,SM卡)與多媒體記憶 卡(Multi Media card,MMC 卡)等等。 第七圖係本發明數位影像媒體資料儲存暨再生方法 的流程圖。 广 以下請同時參考第一至第七圖,本發明數位影像媒體 資料儲存暨再生方法係應用於一媒體資料再生系統6〇〇, 此系統備有一記憶體單元601、一視訊編碼/解碼器6〇3與 一音訊編碼/解碼器605,此方法包含以下步驟:在步驟7〇1 中,分割暨儲存資料於一記錄媒體100,使其至少包含— 檔案系統區101與一媒體資料結構檔案區103,檔案系統 區101内儲存檔案配置資訊,媒體資料結構檔案區1〇3至 少包含一記錄媒體標頭區1030與多組媒體資料區 13 1278836 1031〜1_’記錄聰標腦内齡記轉體管理資 訊’每-組媒體資料區至少包含—媒體麟標頭區廳、 i體視訊資料區103b與一媒體音婦料區職,媒體 貧料標頭1 lG3a⑽存媒财料理資訊。 -人在步驟703中,載入槽案配置資訊至記憶體單 元601,並根據其中之媒體資料結構播案區⑽的起始位 錄媒體管理資訊’以識別此記錄媒體是否符合 一預定的媒體資料結構格式,若心則處理下—記錄媒體, 並回到步驟701。若記錄媒體的識別碼2()1為一預定的媒 體資料結構格式,在步驟705中,根據一輸入的媒體資料 區的組號N ’棘轉N組舰資料標縣巾的媒體資料 f理資訊。最後,在步驟709中,設定視訊編碼/解碼器6〇3 與音訊編碼/解顯605,並再“ N _舰蹄料難 與音訊資料103c。 其中,第N組媒體資料管理資訊包含視訊檔管理資 訊、音訊檔管理資訊與再生管理資訊。視訊檔管理資訊包 含一標頭起始碼401、一視訊檔格式4〇5、一視訊畫面解析 度406、一媒體資料視訊區的總長度404與一媒體資料視 訊區的起始位址403。音訊檔管理資訊則包含一音訊檔格 式410、一媒體資料音訊區的總長度4〇9、一媒體資料音訊 £的起始位址408與"^訊槽位元率411。再生管理資訊 包含一重複再生模式413與一再生時間414。 1278836 第八圖係麵記錄媒體方法的流程圖。首先,在步驟 8〇1中,載入播案配置資訊至記憶體單元6〇1,並讀取媒體 資料結構播案區103的起始位址。其次,在步驟8〇3中, 鄉體資料結構播案區1()3的起始位址讀取記錄媒體管理 貧訊至記憶體單元6(H,其中記錄媒體管理資訊至少包含 記錄媒體識別碼2G1、媒體資料區的總組數2〇5與各媒體 資料區的起始位址211〜21N。μ,在步驟8〇5中,檢查 此記錄媒體識別碼201是否為一預定的媒體資料結構格 式’若否,則處理下一記錄媒體,並回到步驟7〇卜若是, 則跳至步驟705。 第九Α圖係設定視訊編碼/解碼器與音訊編碼/解碼器 =法的流程圖。首先,在步驟中,檢查標頭起始碼· 疋否正確,若$,則處理下一組媒體資料,跳至步驟。 若標頭起始碼401正確,在步驟9〇3中,即傳送視訊檔格 式405、視訊畫面解析度4〇6至視訊編碼/解碼器6的,並 傳送音訊檔格式410與音訊檔位元率411至音訊編碼/解碼 器605,再跳至步驟9〇5。 第九B圖係再生媒體視訊資料與音訊資料方法的流 程圖。首先,在步驟905中,根據媒體資料視訊區的起始 位址403、媒體資料視訊區的總長度4〇4、媒體資料音訊區 的起始位址408與媒體資料音訊區的總長度409,將視訊 實料與音訊資料分別載入至記憶體單元6(U,再分別傳送 15 1278836 至視訊編碼/解碼器603與音訊編碼/解碼器605。其次,在 步驟907中,開始再生至再生時間414完畢。接著,在步 驟909中,檢查重複再生模式413是否啟動,若是則重返 步驟907。反之,若重複再生模式413沒有啟動,在步驟 911中,決定是否繼續再生,若是則處理下一組媒體資料, 跳至步驟705,若否則結束再生。 本發明之數位影像媒體資料儲存暨再生方法,讓使用 者使用此媒體資料儲存架構編輯儲存數位影像媒體,不同 的相片同時藉由再生不同的音樂,將相片中當時情境與編 輯時的回憶呈現出來,使用者還能設定每張照片與其相對 應的音樂的再生時間,也能設定重複再生模式,使人們更 能隨心所欲地享受記錄生活的樂趣。 惟’以上所述者,僅為本發明之較佳實施例而已,當 不能以此限定本發明實施之範圍。即大凡依本發明申請專 利範圍所作之均等變化與修飾,皆應仍屬本發明專利涵蓋 之範圍内。 16 1278836 【圖式簡單說明】 第一圖係本發明之數轉像記錄媒_資_存結構圖。 第二圖係顯示記錄舰標醒的資料儲存格式。 第三圖為·資料結構檔案區哺料結構圖。 第四圖係顯示媒體資料標麵的雜館存格式。 第五圖為媒體資料區的資料結構圖。 第六圖說明本發明與媒贿料再生祕之_示意圖。 第七圖係本發魏位影像料鱗暨再生方法的流程圖。 第八圖係識別記錄媒體方法的流程圖。 第九A關蚊視訊編碼/解懸料訊編碼/解懸方_流程圖。 第九B _再生舰視訊歸與音靖料方法的綠i 【主要元件符號說明】 1〇1檔案系統區 1030記錄媒體標頭區 l〇3a媒體資料標頭區 l〇3c媒體音訊資料區 202記錄媒體標頭區的總長度 204媒體資料結構檔案區的總長度 211〜21N媒體資料區的起始位址 100記錄媒體 103媒體資料結構檔案區 1031〜103N媒體資料區 l〇3b媒體視訊資料區 201記錄媒體識別碼 203保留攔位 205媒體資料區的總組數 401標頭起始碼 403媒體視訊資料區的起始位址 405視訊檔格式 407,412保留攔位 402媒體資料區的總長度 404媒體視訊資料區的總長度 406視訊畫面解析度 408媒體音訊資料區的起始位址 17 1278836 41〇音訊檔格式 413重複再生模式 409媒體音訊資料區的總長度 411音訊檔位元率 414再生時間 600媒體資料再生系統 603視訊編碼/解碼器 620顯示裝置 6〇1記憶體單元 605音訊編碼/解碼器 622音訊輸出裝置 701分割暨儲存資料於一記錄媒體 703 案配置資訊至記憶體單元,並根據其中之媒體資料結狀 以識別此記錄媒體是 案區的起始位址,讀取記錄媒體管理資訊, 田 f符合一預定的媒體資料結構袼式 709 705明取第N組舰資料標觀巾的媒體資料管理資訊 ™訊編碼/解與音訊編碼/解碼器,並再生此 資料與音訊資料 卡體視訊 並讀取媒體資料結構檔案區的 801載入檔案配置資訊至記憶體單元 起始位址 8〇3 料結構槽案區的起始位址讀取記錄媒體管理資訊至記 805檢查記錄媒體的識別碼是否為一預定的媒體資料結構格式 901檢查標頭起始碼是否正確 903 式、視訊晝面解析度至視訊編碼/解碼器,並傳送音 訊檔格式與音訊檔位元率至音訊編碼/解碼器 9〇5 訊資料與音訊資料分別載入至記憶體單元,再分別傳送 訊編碼/解碼器與音訊編碼/解碼器 907開始再生至再生時間完畢 911決定是否繼續再生 909檢查重複再生模式是否啟動Figure 6 is a diagram showing the relationship between the present invention and the media material reproducing system. The media data reproducing system 600 has a memory unit 〇1, a video encoding/decoder 603 and an audio encoding/decoder 605. The media data reproducing system 600 reads a recording medium 100, and after decoding, passes through a display device. The 620 and an audio output device 622 respectively output images and music. The media material reproducing system 600 may be a personal computer or a digital video reproducing machine or the like, and the recording medium 1 may be a compact disc, a memory card or a mini hard disc or the like. The memory card includes a compact flash card (CF card), a secure digital card (SD card), an XD photo memory card (XD-picture, XD card), and a keen memory card (Smart). Media card, SM card) and multimedia memory card (Multi Media card, MMC card) and so on. The seventh figure is a flow chart of the method for storing and reproducing digital image media data of the present invention. Please refer to the first to seventh figures at the same time. The digital image media data storage and regeneration method of the present invention is applied to a media data reproduction system 6 〇〇, the system is provided with a memory unit 601 and a video encoder/decoder 6 〇3 and an audio codec/decoder 605, the method comprising the steps of: dividing and storing data in a recording medium 100 to include at least a file system area 101 and a media data structure file area in step 7.1 103. The file system area 101 stores file configuration information, and the media data structure file area 1〇3 includes at least one recording medium header area 1030 and a plurality of sets of media data areas 13 1278836 1031~1_'recording Congbiao brain age record turn Management Information 'Each-group media data area at least contains - Media Lin Headquarters District Office, i body video data area 103b and a media tone material area, media poor material header 1 lG3a (10) store media information. - In step 703, the person loads the slot configuration information into the memory unit 601, and according to the media data structure of the media material structure (10), the media management information is used to identify whether the recording medium conforms to a predetermined medium. The data structure format, if it is processed, the recording medium, and returns to step 701. If the identification code 2() 1 of the recording medium is a predetermined media data structure format, in step 705, according to the group number N of an input media data area, the media data of the N group ship data standard county towel is reversed. News. Finally, in step 709, the video encoding/decoder 6〇3 and the audio encoding/de-amplification 605 are set, and then “N _ ship material difficult and audio data 103c. The Nth group media data management information includes the video file. Management information, audio file management information and regeneration management information. The video file management information includes a header start code 401, a video file format 4〇5, a video screen resolution 406, a total length of a media data video zone 404 and The start address 403 of the media data video zone. The audio file management information includes an audio file format 410, a total length of a media data audio zone 4〇9, a media data audio start address 408 and " The slot bit rate 411. The regeneration management information includes a repeating regeneration mode 413 and a regeneration time 414. 1278836 The eighth diagram is a flow chart of the method of recording the media. First, in step 8〇1, the broadcast configuration is loaded. The information is to the memory unit 6〇1, and the start address of the media material structure broadcast area 103 is read. Secondly, in step 8〇3, the start address of the hometown data structure broadcast area 1()3 Read the recording media management poor news to The memory unit 6 (H), wherein the recording medium management information includes at least the recording medium identification code 2G1, the total number of groups of the media data area 2〇5, and the starting addresses of the respective media data areas 211~21N. μ, in step 8〇 5, it is checked whether the recording medium identification code 201 is a predetermined media data structure format. If no, the next recording medium is processed, and the process returns to step 7 and if yes, the process goes to step 705. Set the flow chart of the video codec/decoder and audio codec/decoder= method. First, in the step, check if the header start code is correct. If $, process the next set of media data and skip to the step. If the header start code 401 is correct, in step 9〇3, the video file format 405, the video picture resolution 4〇6 is transmitted to the video encoder/decoder 6, and the audio file format 410 and the audio file bit are transmitted. Rate 411 to the audio codec/decoder 605, and then jump to step 9〇5. Figure IX is a flow chart of the method for reproducing the video data and audio data of the media. First, in step 905, according to the start of the video data area of the media data. Address 403, media data video zone The length 4〇4, the starting address 408 of the media data audio zone and the total length 409 of the media data audio zone, respectively load the video material and the audio data into the memory unit 6 (U, and then transmit 15 1278836 to the video respectively) The encoder/decoder 603 and the audio encoder/decoder 605. Next, in step 907, the reproduction is started until the reproduction time 414 is completed. Next, in step 909, it is checked whether the repeated reproduction mode 413 is activated, and if so, the process returns to step 907. On the other hand, if the repeated reproduction mode 413 is not activated, in step 911, it is determined whether to continue the reproduction, and if so, the next set of media data is processed, and the process proceeds to step 705, if otherwise, the reproduction is ended. The digital image media data storage and reproduction method of the invention allows the user to edit and store the digital image media by using the media data storage structure, and the different photos simultaneously display the memories in the photo and the editing time by reproducing different music. The user can also set the reproduction time of each photo and the corresponding music, and can also set the repeating regeneration mode, so that people can enjoy the pleasure of recording life as much as they like. However, the above description is only a preferred embodiment of the present invention, and the scope of the present invention is not limited thereto. That is, the equivalent changes and modifications made by the patent application scope of the present invention should still be within the scope of the present invention. 16 1278836 [Simple description of the drawings] The first figure is a digital transfer image recording medium of the present invention. The second figure shows the data storage format for recording the ship's wake-up. The third picture shows the feeding structure of the data structure file area. The fourth picture shows the format of the miscellaneous library of the media data. The fifth picture shows the data structure of the media data area. The sixth figure illustrates the schematic diagram of the invention and the secret of the bribe recycling. The seventh picture is a flow chart of the method of the Wei Wei image scale and regeneration method. The eighth figure is a flow chart for identifying a method of recording media. The ninth A Guan mosquito video coding / unsuspended material coding / unsuspended party _ flow chart. The ninth B _ regenerative ship video is returned to the sound of the method of green i [main component symbol description] 1 〇 1 file system area 1030 recording media header area l 〇 3a media data header area l 〇 3c media audio data area 202 Recording the total length of the media header area 204 The total length of the media data structure file area 211~21N The starting address of the media data area 100 Recording media 103 Media data structure File area 1031~103N Media data area l〇3b Media video data area 201 Recording Media Identification Code 203 Retaining Block 205 The total number of groups of media data areas 401 Header Start Code 403 The starting address of the Media Video Data Area 405 Video file format 407, 412 retains the total length of the media area of the Block 402 media 404 media The total length of the video data area 406 video screen resolution 408 the starting address of the media audio data area 17 1278836 41 〇 audio file format 413 repeated reproduction mode 409 the total length of the media audio data area 411 audio file bit rate 414 regeneration time 600 Media data reproduction system 603 video encoder/decoder 620 display device 〇1 memory unit 605 audio code/decoder 622 audio output device 701 segmentation and storage It is expected that a recording medium 703 configures information to the memory unit, and according to the media data in the shape, the recording medium is identified as the starting address of the case, and the recording medium management information is read, and the field f conforms to a predetermined medium. The data structure type 709 705 identifies the media data management information TM encoding/decoding and audio encoding/decoder of the Nth group of the data subject towel, and reproduces the data and the audio data card body video and reads the media data structure file. The area 801 loads the file configuration information to the memory unit start address 8〇3. The start address of the material structure slot area reads the recording medium management information to record 805 to check whether the identification code of the recording medium is a predetermined medium. The data structure format 901 checks whether the header start code is correct 903, the video resolution to the video code/decoder, and transmits the audio file format and the audio bit rate to the audio code/decoder 9〇5 data and The audio data is respectively loaded into the memory unit, and then the transmission code/decoder and the audio code/decoder 907 are respectively started to regenerate until the regeneration time is completed. 911 decides whether to continue. 909 Check repeated reproduction mode is started