TWI442769B - Method applied to medium apparatus and associated medium apparatus - Google Patents
Method applied to medium apparatus and associated medium apparatus Download PDFInfo
- Publication number
- TWI442769B TWI442769B TW100120767A TW100120767A TWI442769B TW I442769 B TWI442769 B TW I442769B TW 100120767 A TW100120767 A TW 100120767A TW 100120767 A TW100120767 A TW 100120767A TW I442769 B TWI442769 B TW I442769B
- Authority
- TW
- Taiwan
- Prior art keywords
- frame
- chapter
- file
- byte
- media device
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 44
- 230000011218 segmentation Effects 0.000 claims description 64
- 239000003550 marker Substances 0.000 claims description 44
- 230000008569 process Effects 0.000 description 23
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 4
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Television Signal Processing For Recording (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Description
本發明是有關於一種應用於媒體裝置的方法與相關媒體裝置,且特別是有關於一種能在錄影時即時進行章節分段的方法與相關媒體裝置。The present invention relates to a method and related media device for use in a media device, and more particularly to a method and related media device capable of performing chapter segmentation on the fly while recording.
能將靜態及/或動態影像錄製為多媒體檔案的媒體裝置已在現代資訊社會中被廣為使用;像是光碟、硬碟及/或記憶卡之錄放影機、數位相機、數位攝錄像機(camcorder)、配有影像擷取鏡頭的電腦、平板電腦、筆記型電腦、手機、個人數位助理器(PDA,Personal Digital Assistance)、視訊會議系統與行車記錄器,能將播放內容錄製下來的螢幕、顯示器、電視系統、電視卡、電視盒(桌上機)等媒體裝置均已十分普及,成為資訊生活中重要的一部分。Media devices capable of recording static and/or motion pictures as multimedia files have been widely used in modern information society; such as CD-ROMs, hard disks and/or memory card recorders, digital cameras, digital video cameras (camcorder) ), a computer with a video capture lens, a tablet computer, a notebook computer, a mobile phone, a personal digital assistant (PDA), a video conferencing system and a driving recorder, and a screen or display capable of recording the playback content. Media devices such as TV systems, TV cards, and TV boxes (desktops) have become very popular and become an important part of information life.
在運用多媒體檔案時,若檔案的內容已經被劃分為不同的章節,對多媒體檔案的播放、編輯、運用及/或管理會十分有幫助。多媒體檔案中的章節可讓使用者(觀賞者)迅速地在檔案中的不同片段(不同章節)間跳轉,不必進行耗時的線性搜尋。When using multimedia files, if the content of the files has been divided into different chapters, it will be very helpful to play, edit, use and/or manage the multimedia files. The chapters in the multimedia file allow the user (viewer) to quickly jump between different segments (different chapters) in the file without having to perform a time-consuming linear search.
不過,在現行的習知媒體裝置中,均無法在錄製檔案時進行章節分段。在習知技術中,若要對多媒體檔案進行章節分段,使用者必須在檔案錄製完成後重新播放檔案,以便在播放時設定章節。這類的後製工作十分耗時,對使用者來說並不方便。However, in current conventional media devices, chapter segmentation cannot be performed while recording a file. In the prior art, in order to segment a multimedia file, the user must replay the file after the file is recorded to set the chapter during playback. This kind of post-production work is very time consuming and inconvenient for the user.
事實上,在許多應用中,當在錄製多媒體檔案時,使用者也會同時監看錄製的內容;若能在錄製檔案時即時地進行章節分段,不僅可避免耗時的後製工作,也更符合使用者的直覺,能依據使用者錄製檔案時的當下判斷馬上進行章節分段。本發明即是要提出一種能在錄影時即時進行章節分段的技術。In fact, in many applications, when recording a multimedia file, the user also monitors the recorded content; if the chapter can be segmented immediately while recording the file, not only can time-consuming post-production work be avoided, but also More in line with the user's intuition, the chapter can be segmented immediately according to the current judgment when the user records the file. The present invention is directed to a technique for enabling chapter segmentation in real time while recording.
本發明的目的之一是提供一種應用於一媒體裝置的方法,此媒體裝置可錄製一多媒體的檔案,檔案中包含複數個圖框。而該方法包括:當媒體裝置錄製一檔案時,在接收一章節分段命令後,於該檔案中選擇一標記圖框,並針對此標記圖框記錄一對應的章節資訊;一實施例中,此一標記圖框即為一章節的第一個圖框。One of the objects of the present invention is to provide a method for applying to a media device that can record a multimedia file containing a plurality of frames. The method includes: when the media device records a file, after receiving a chapter segmentation command, selecting a marker frame in the file, and recording a corresponding chapter information for the marker frame; in an embodiment, This marker frame is the first frame of a chapter.
一實施例中,係在章節分段命令後選擇一個時間上最為接近的框內編碼(intra-frame coding)圖框作為標記圖框。另一實施例中,係在接收該章節分段命令後,使媒體裝置於該檔案中錄製一框內編碼的圖框,以此作為該標記圖框。章節分段命令可以是由使用者觸發的。In one embodiment, a temporally closest intra-frame coding frame is selected as the marker frame after the chapter segmentation command. In another embodiment, after receiving the chapter segmentation command, the media device causes the media device to record a frame coded in the frame as the marker frame. The chapter segmentation command can be triggered by the user.
標記圖框的章節資訊用以在檔案中定位出標記圖框,以便在播放多媒體檔案時能跳轉至標記圖框繼續播放。在設定章節資訊時有下列實施例。一實施例中,媒體裝置係由一啟始位元組開始依序以位元組為單位記錄該檔案中的各圖框;依據標記圖框位元組相對於該啟始位元組的次序,便可為各標記圖框提供對應的章節資訊。一實施例中,媒體裝置係在一檔頭(header)後由一第一位元組開始依序以位元組為單位記錄檔案中的各圖框;依據標記圖框位元組相對於第一位元組的次序,便可為標記圖框提供章節資訊。一實施例中,當在錄製該檔案時,若接收一第二章節分段命令,則於該檔案中選擇一第二標記圖框,並且,依據第二標記圖框位元組相對於標記圖框位元組的次序,便可為第二標記圖框提供並記錄一對應的第二章節資訊。一實施例中,可依據標記圖框的時間點提供對應的章節資訊。一實施例中,依據第二標記圖框時間點與標記圖框時間點間的差距而為第二標記圖框提供並記錄一對應的第二章節資訊。The chapter information of the marker frame is used to locate the marker frame in the file, so that when the multimedia file is played, it can jump to the marker frame to continue playing. The following examples are given when setting chapter information. In one embodiment, the media device records each frame in the file in units of bytes in sequence from a starting byte; according to the order of the tag frame bits relative to the starting byte , you can provide corresponding chapter information for each marker frame. In one embodiment, the media device records the frames in the file in units of bytes in a sequence of bits starting from a first byte after a header; according to the tag frame, the byte is relative to the first The order of a tuple provides chapter information for the marker frame. In an embodiment, when the second chapter segmentation command is received when the file is recorded, a second marker frame is selected in the file, and the second marker frame byte is relative to the marker. The order of the frame tuples can provide and record a corresponding second chapter information for the second marker frame. In an embodiment, the corresponding chapter information may be provided according to the time point of the marked frame. In one embodiment, a corresponding second chapter information is provided and recorded for the second marker frame according to the difference between the second marker frame time point and the marker frame time point.
一實施例中,多媒體檔案包含一檔頭;在檔案錄製期間,一旦收到章節分段命令並完成章節資訊的設定,章節資訊就會被記錄於檔頭。一實施例中,章節資訊係記錄(暫存)於一記憶體;當媒體裝置結束錄製該檔案後(例如不再於檔案中增加圖框後),再將章節資訊寫入至檔案中。In one embodiment, the multimedia file includes a header; during the recording of the file, once the chapter segmentation command is received and the chapter information is set, the chapter information is recorded in the header. In one embodiment, the chapter information is recorded (temporarily stored) in a memory; when the media device finishes recording the file (for example, after the frame is no longer added to the file), the chapter information is written into the file.
配合多媒體檔案錄製時所加入的章節,當播放檔案時,可依據各章節資訊分別顯示一章節名稱。以及/或者,可在播放檔案時顯示各章節資訊對應的圖框的縮圖。播放該檔案時,可在接收一跳轉命令後跳轉至各章節資訊對應的圖框繼續播放。In conjunction with the chapters added when recording multimedia files, when playing a file, a chapter name can be displayed according to each chapter information. And/or, a thumbnail of the frame corresponding to each chapter information can be displayed when the file is played. When playing the file, you can jump to the frame corresponding to each chapter information and continue playing after receiving a jump command.
本發明的又一目的是提供一種媒體裝置,包括一錄製模組與一章節設定模組,可實現本發明的方法。錄製模組錄製多媒體的檔案;當錄製模組錄製檔案時,若章節設定模組接收一章節分段命令,便可選擇時間上最接近的框內編碼圖框作為章節資訊的依據。或者,當章節設定模組接收一章節分段命令後,可使錄製模組錄製一框內編碼圖框,並以此框內編碼圖框作為章節資訊的依據。一實施例中,在多媒體檔案錄製期間,每當章節設定模組提供一章節資訊,錄製模組便將該章節資訊記錄至檔案。另一實施例中,在多媒體檔案錄製期間,章節設定模組將章節資訊暫存於記憶體;當錄製模組結束檔案錄製後,會將記憶體中暫存的各章節資訊記錄至檔案中。It is still another object of the present invention to provide a media device comprising a recording module and a chapter setting module for implementing the method of the present invention. The recording module records the multimedia file; when the recording module records the file, if the chapter setting module receives a chapter segmentation command, the frame coding frame closest to the time can be selected as the basis of the chapter information. Alternatively, when the chapter setting module receives a chapter segmentation command, the recording module can record a frame code frame and use the frame code frame as the basis of the chapter information. In one embodiment, during the recording of the multimedia file, each time the chapter setting module provides a chapter information, the recording module records the chapter information to the file. In another embodiment, during the recording of the multimedia file, the chapter setting module temporarily stores the chapter information in the memory; when the recording module ends the file recording, the chapter information temporarily stored in the memory is recorded into the file.
為了對本發明之上述及其他方面有更佳的瞭解,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下:In order to better understand the above and other aspects of the present invention, the preferred embodiments are described below, and in conjunction with the drawings, the detailed description is as follows:
請參考第1圖,其所示意的是依據本發明一實施例的流程100;流程100可應用於具有多媒體檔案錄製功能的媒體裝置,以實現錄影時即時章節分段的功能。流程100的步驟可說明如下。Please refer to FIG. 1 , which illustrates a process 100 according to an embodiment of the present invention; the process 100 can be applied to a media device having a multimedia file recording function to implement the function of instant chapter segmentation during recording. The steps of the process 100 can be explained as follows.
步驟102:開始錄影,媒體裝置開始將圖框錄製於一檔案中。Step 102: Start recording, and the media device starts to record the frame in a file.
步驟104:偵測是否收到結束錄影命令或章節分段命令的其中之一。若收到章節分段命令,繼續進行至步驟106;若收到結束錄影命令,繼續至步驟110。若沒有收到結束錄影命令與章節分段命令,則於步驟104中持續偵測。Step 104: Detect whether one of the end video command or the chapter segmentation command is received. If the chapter segmentation command is received, proceed to step 106; if the end video command is received, proceed to step 110. If the end video command and the chapter segment command are not received, the detection is continued in step 104.
步驟106:若收到章節分段命令,則進行至步驟108。Step 106: If a chapter segmentation command is received, proceed to step 108.
步驟108:在正在錄製的檔案中,選擇一個在時間上與章節分段命令最接近的框內編碼圖框作為一標記圖框,並針對此標記圖框設定一對應的章節資訊,再將此章節資訊一併記錄於檔案中。此標記圖框也就成為一個新章節的第一個圖框;其所對應的章節資訊用以在檔案中定位出此一標記圖框。當要播放此檔案時,便能在接收到跳轉命令後跳轉至此標記圖框繼續進行播放。在一實施例中,當媒體裝置錄製多媒體檔案時,會在檔案開頭建立一檔頭,此檔頭中可以有一目錄區段用來記錄章節資訊。而步驟108就是要在檔案繼續錄製的同時一併將章節資訊寫入至檔頭中的目錄區段。Step 108: In the file being recorded, select an in-frame code frame that is closest in time to the chapter segmentation command as a mark frame, and set a corresponding chapter information for the mark frame, and then The chapter information is recorded in the file. This tag frame also becomes the first frame of a new chapter; its corresponding chapter information is used to locate this tag frame in the file. When you want to play this file, you can jump to this tag frame and continue playing after receiving the jump command. In an embodiment, when the media device records the multimedia file, a file header is created at the beginning of the file, and the file header may have a directory section for recording chapter information. Step 108 is to write the chapter information to the directory section in the file header while the file continues to be recorded.
步驟110:若收到結束錄影命令,進行至步驟112。Step 110: If the end recording command is received, proceed to step 112.
步驟112:結束錄影。結束多媒體檔案的錄製,不再於檔案中繼續記錄圖框。Step 112: End the recording. End the recording of the multimedia file, no longer continue to record the frame in the file.
現代的媒體裝置會在錄製多媒體檔案時對各圖框進行壓縮,例如說是依照MPEG(Moving Picture Expert Group,動畫專家組織)的各種版本規格進行圖框壓縮。有些圖框會以框間編碼(inter-frame coding,或稱預測性編碼)或雙向編碼(bidirectional coding)壓縮;這類的編碼壓縮會參考其他圖框。因此,在播放此類圖框時,也需要參考其他的圖框才能解壓縮。若要以此類圖框當作一章節的第一個圖框,要跳轉至此一章節時會需要一些時間才能依據其他圖框完成此一圖框的解壓縮。Modern media devices compress frames as they are recorded, for example, frame compression in accordance with various version specifications of MPEG (Moving Picture Expert Group). Some frames are compressed by inter-frame coding (predictive coding) or bidirectional coding; such coding compression refers to other frames. Therefore, when playing such a frame, you need to refer to other frames to decompress. To use this type of frame as the first frame of a chapter, it takes some time to jump to this section to complete the decompression of this frame based on the other frames.
為了要使章節的跳轉更為流暢,流程100的步驟108是選擇章節分段命令後在時間上最為接近的框內編碼圖框作為新章節的第一個圖框。因為在壓縮框內編碼圖框時不會參考其他圖框,一旦要在播放時跳轉至某章節,該章節的第一個圖框就能被很快速地解壓縮出來並加以播放。不過,在另一實施例中,本發明仍可選擇非框內編碼的圖框(例如框間編碼的圖框或雙向編碼的圖框)作為章節的第一個圖框。In order to make the jump of the chapter smoother, step 108 of the process 100 is to select the intra-frame coded frame that is closest in time after selecting the chapter segmentation command as the first frame of the new chapter. Because the frame is not referenced when encoding the frame in the compression box, once you jump to a chapter during playback, the first frame of the chapter can be quickly decompressed and played. However, in another embodiment, the present invention may still select a frame that is not in-frame coded (e.g., an inter-frame coded frame or a bi-directionally coded frame) as the first frame of the chapter.
流程100的進行可以用第2圖來舉例說明。第2圖示意的是在錄製一檔案50(例如一多媒體檔案)時流程100進行的一個例子。檔案50有一檔頭52;隨檔案50的持續錄製,檔頭52後依序加入各圖框的資料,例如圖框F(i-1)、F(i)、F(i+1)與F(j)、F(j+1)等等。其中,圖框F(i-1)、F(i)與F(j)這些標有記號「X」的圖框不是框內編碼的圖框,例如說,這些圖框可以是框間編碼的圖框。相對地,圖框F(i+1)與F(j+1)這些標有記號「I」的圖框則是框內編碼圖框。在錄製檔案50時,假設在時間點t1時使用者觸發一章節分段命令cmdC(n);雖然時間點t1後緊接有圖框F(i),但圖框F(i)並非框內編碼圖框。在時間點t1之後,時間上最接近時間點t1的框內編碼圖框為圖框F(i+1)。因此,圖框F(i+1)可被選為新章節的第一個圖框,其相關的章節資訊infoC(n)會被記錄至檔頭52。在時間點t2,再度收到一章節分段命令cmdC(n+1),而時間點t2之後的第一個框內編碼圖框F(j+1)就可作為另一章節的第一個圖框,其對應的章節資訊infoC(n+1)也會被寫入至檔頭52。The execution of the process 100 can be illustrated by the second figure. Figure 2 illustrates an example of a process 100 performed when recording a file 50 (e.g., a multimedia file). The file 50 has a file header 52; with the continuous recording of the file 50, the file header 52 is sequentially added to the data of each frame, such as frames F(i-1), F(i), F(i+1) and F. (j), F(j+1), etc. Among them, the frames labeled with the symbol "X", such as frames F(i-1), F(i), and F(j), are not frame-encoded frames. For example, these frames may be inter-frame encoded. Frame. In contrast, the frames labeled "I", such as frames F(i+1) and F(j+1), are in-frame coded frames. When recording file 50, it is assumed that the user triggers a chapter segmentation command cmdC(n) at time point t1; although time frame t1 is followed by frame F(i), frame F(i) is not in frame Encoding frame. After the time point t1, the in-frame coded picture frame closest to the time point t1 in time is the frame F(i+1). Therefore, the frame F(i+1) can be selected as the first frame of the new chapter, and the related chapter information infoC(n) is recorded to the header 52. At time point t2, a chapter segmentation command cmdC(n+1) is received again, and the first in-frame coding frame F(j+1) after time point t2 can be used as the first chapter of another chapter. For the frame, the corresponding chapter information infoC(n+1) is also written to the header 52.
有些媒體裝置在錄製多媒體檔案時會定期、週期性地在檔案中以框內編碼壓縮、錄製框內編碼圖框;流程100可以應用於此類媒體裝置,因為此類媒體裝置可以定期提供框內編碼圖框以作為新章節的候選圖框。舉例而言,對檔案錄製的影像品質較為重視的媒體裝置便會定時錄製框內編碼圖框。由於檔案中會定時出現框內編碼圖框,不論何時收到章節分段命令,在章節分段命令後很快就會出現一個框內編碼圖框可作為新章節的第一個圖框。Some media devices compress and record in-frame coded frames in the file periodically and periodically during recording of the multimedia file; the process 100 can be applied to such media devices because such media devices can be provided in the frame periodically. Encode the frame as a candidate for the new chapter. For example, a media device that pays more attention to the image quality of the recorded file will periodically record the in-frame coded frame. Since the in-frame coded frame will appear periodically in the file, whenever the chapter segmentation command is received, an in-frame coded frame will appear as the first frame of the new chapter soon after the chapter segmentation command.
一實施例中,各章節的第一個圖框會有一筆對應的章節資訊,每個章節資訊在多媒體檔案中定位出一個對應章節的第一個圖框,以便在播放此檔案時能跳轉至各章節的第一個圖框繼續進行播放。請參考第3圖,其所繪示的是依據本發明一實施例而定位各章節圖框的示意圖。當媒體裝置錄製一數位多媒體的檔案50時,其可以是以位元組(byte)為單位來記錄檔案50。如第3圖所示,檔案50以位元組序列中的位元組B(1)、B(2)至B(Nh)記錄檔頭52,以位元組B(Nh+1)至B(Nh+N(1))記錄第1個圖框F(1),以位元組B(Nh+N(i-1)+1)至B(Nh+N(i))記錄第i個圖框F(i)(其中i大於1),以此類推。而本發明就可依據位元組的次序(或位址)來為各章節的標記圖框(即各章節的第一個圖框)設定章節資訊。In an embodiment, the first frame of each chapter has a corresponding chapter information, and each chapter information locates a first frame of the corresponding chapter in the multimedia file, so that when the file is played, it can jump to The first frame of each chapter continues to play. Please refer to FIG. 3, which is a schematic diagram of positioning each chapter frame according to an embodiment of the present invention. When the media device records a digital multimedia file 50, it can record the file 50 in units of bytes. As shown in FIG. 3, the file 50 records the header 52 in the byte B(1), B(2) to B(Nh) in the byte sequence, with the byte B (Nh+1) to B. (Nh+N(1)) records the first frame F(1), and records the i-th with the byte B (Nh+N(i-1)+1) to B(Nh+N(i)) Frame F(i) (where i is greater than 1), and so on. However, the present invention can set chapter information for the mark frame of each chapter (ie, the first frame of each chapter) according to the order (or address) of the byte.
一實施例中,由於位元組B(1)是整個檔案50的啟始位元組,故可依據各標記圖框位元組相對於位元組B(1)的次序來設定章節資訊。舉例而言,假設第1個章節的第一個圖框為圖框F(i+1),因為其第一個位元組為B(Nh+N(i)+1),故可依據其次序(Nh+N(i)+1)來記錄此章節所對應的章節資訊。同理,若第2個章節的第一個圖框為F(j+1),由於其第一個位元組為B(Nh+N(j)+1),如此便可依據次序(Nh+N(j)+1)來為此第2個章節記錄其章節資訊,以此類推。In one embodiment, since the byte B(1) is the starting byte of the entire file 50, the chapter information can be set according to the order of each tag frame byte relative to the byte B(1). For example, suppose the first frame of the first chapter is frame F(i+1), because its first byte is B(Nh+N(i)+1), so it can be followed. The sequence (Nh+N(i)+1) is used to record the chapter information corresponding to this chapter. Similarly, if the first frame of the second chapter is F(j+1), since its first byte is B(Nh+N(j)+1), it can be ordered according to the order (Nh). +N(j)+1) to record the chapter information for this second chapter, and so on.
另一實施例中,由於檔案50是在檔頭52後由第一位元組B(Nh+1)開始依序以位元組為單位記錄檔案中的各圖框,故可依據各標記圖框位元組相對於第一位元組B(Nh+1)的次序來定位各章節的第一個圖框。對第1個章節的第一個圖框F(i+1),由於其第一個位元組B(Nh+N(i)+1)為檔頭52之後的第(N(i)+1)個位元組,故可依據其次序(N(i)+1)定義章節資訊;對第2個章節的第一個圖框F(j+1),則可依據次序(N(j)+1)設定其章節資訊。In another embodiment, since the file 50 records the frames in the file in units of bytes in sequence from the first byte B (Nh+1) after the file header 52, it can be based on each mark map. The first bit of each chapter is located relative to the order of the first byte B (Nh + 1). For the first frame F(i+1) of the first chapter, since its first byte B (Nh+N(i)+1) is the first (N(i)+ after the head 52 1) a byte, so the chapter information can be defined according to its order (N(i)+1); for the first frame F(j+1) of the second chapter, it can be based on the order (N(j) ) +1) Set its chapter information.
又一實施例中,在為一當前標記圖框提供其對應的章節資訊時,可依據當前標記圖框位元組與先前標記圖框位元組間的相對次序而為當前標記圖框定義章節資訊。舉例而言,針對第1個章節的第一個圖框F(i+1),依據其第一個位元組B(Nh+N(i)+1)的次序(Nh+N(i)+1)定義其章節資訊;針對第2個章節的第一個圖框F(j+1),由於圖框F(j+1)的第一個位元組B(Nh+N(j)+1)是位元組B(Nh+N(i)+1)之後的第(N(j)-N(i))個位元組,故可依據次序(N(j)-N(i))來設定第2個章節的章節資訊。也就是說,假設第k個章節的第一個圖框為圖框F(k1+1)(其第一個位元組為位元組B(Nh+N(k1)+1)),第(k+1)個章節的第一個圖框為圖框F(k2+1)(第一個位元組為位元組B(Nh+N(k2)+1)),則依據位元組B(Nh+N(k1)+1)與位元組B(Nh+N(k2)+1)間的相對次序差距(N(k2)-N(k1))來為第(k+1)個章節設定章節資訊。當在播放檔案50時,若要從第k個章節跳轉至第(k+1)個章節,只要將第k個章節的章節資訊加上第(k+1)個章節的章節資訊,就可定位出第(k+1)個章節的第一個圖框,並由該圖框繼續播放。In still another embodiment, when the corresponding chapter information is provided for a current marker frame, the chapter may be defined for the current marker frame according to the relative order between the current marker frame byte and the previously marked frame byte. News. For example, for the first frame F(i+1) of the first chapter, according to the order of its first byte B (Nh+N(i)+1) (Nh+N(i) +1) define its chapter information; for the first frame F(j+1) of the second chapter, due to the first byte B of the frame F(j+1) (Nh+N(j) +1) is the (N(j)-N(i)) byte after the byte B (Nh+N(i)+1), so it can be ordered according to the order (N(j)-N(i) )) to set the chapter information of the second chapter. That is, suppose the first frame of the kth chapter is the frame F(k1+1) (the first byte of which is the byte B (Nh+N(k1)+1)), The first frame of the (k+1) chapter is the frame F(k2+1) (the first byte is the byte B (Nh+N(k2)+1)), then the bit is based on the bit The relative order difference (N(k2)-N(k1)) between group B(Nh+N(k1)+1) and byte B(Nh+N(k2)+1) is the (k+1) ) Chapters set chapter information. When the file 50 is played, if you want to jump from the kth chapter to the (k+1)th chapter, just add the chapter information of the kth chapter to the chapter information of the (k+1)th chapter. The first frame of the (k+1)th chapter is located and continues to be played by the frame.
另一實施例中,針對第1個章節的第一個圖框F(i+1),依據其第一個位元組在檔頭52後的次序(N(i)+1)定義其章節資訊;針對第2個章節的第一個圖框F(j+1),則依據相對次序(N(j)-N(i))來設定其章節資訊。也就是說,假設第k個章節的標記圖框為圖框F(k1+1)(其第一個位元組為位元組B(Nh+N(k1)+1)),第(k+1)個章節的標記圖框為圖框F(k2+1)(第一個位元組為位元組B(Nh+N(k2)+1)),則依據位元組B(Nh+N(k2)+1)相對於位元組B(Nh+N(k1)+1)的次序(N(k2)-N(k1))來為第(k+1)個章節設定章節資訊。In another embodiment, for the first frame F(i+1) of the first chapter, its chapter is defined according to the order of its first byte after the header 52 (N(i)+1). Information; for the first frame F(j+1) of the second chapter, the chapter information is set according to the relative order (N(j)-N(i)). That is, assume that the marker frame of the kth chapter is the frame F(k1+1) (the first byte of which is the byte B (Nh+N(k1)+1)), the (k The label frame of +1) chapters is frame F(k2+1) (the first byte is byte B (Nh+N(k2)+1)), then according to byte B (Nh) +N(k2)+1) sets the chapter information for the (k+1)th chapter relative to the order of the byte B(Nh+N(k1)+1) (N(k2)-N(k1)) .
在第3圖實施例中,各圖框所佔用的位元組個數可以是不相同的。各圖框的第一個位元組(像是圖框F(i)中的位元組B(Nh+N(i-1)+1))可以是各圖框的圖框檔頭;圖框檔頭的內容可以是一串固定的位元序列。在討論第3圖時,係以位元組為例來說明,但任何可將檔案50作適當分割的單位(如位元或字元組等等)皆可用來定義章節資訊。In the embodiment of FIG. 3, the number of bytes occupied by each frame may be different. The first byte of each frame (such as the byte B (Nh+N(i-1)+1) in frame F(i)) may be the frame header of each frame; The content of the box header can be a fixed sequence of bits. In the discussion of Figure 3, the byte is taken as an example, but any unit that can properly partition the file 50 (such as a bit or a character group, etc.) can be used to define the chapter information.
請參考第4圖,其所繪示的是依據本發明一實施例而定位各章節圖框的示意圖。此實施例中,當媒體裝置在錄製多媒體的檔案50時,係分別在時間點t(1)、t(2)、...、t(i)、t(i+1)、...、t(j)與t(j+1)錄製圖框F(1)、F(2)、...、F(i)、F(i+1)、...F(j)與F(j+1),而本發明可依據各章節第一個圖框的時間點提供對應的章節資訊。舉例而言,針對第1個章節的第一個圖框F(i+1),可依據時間點t(i+1)(例如說是時間點t(i+1)與t(1)間的差距)來設定第1個章節的章節資訊。針對第2個章節的第一個圖框F(j+1),則依據時間點t(j+1)(例如說是時間點t(j+1)與t(1)間的差距)來設定第2個章節的章節資訊,以此類推。Please refer to FIG. 4, which is a schematic diagram of positioning each chapter frame according to an embodiment of the present invention. In this embodiment, when the media device is recording the multimedia file 50, it is at time points t(1), t(2), ..., t(i), t(i+1), ... , t(j) and t(j+1) recording frames F(1), F(2), ..., F(i), F(i+1), ...F(j) and F (j+1), and the present invention can provide corresponding chapter information according to the time point of the first frame of each chapter. For example, for the first frame F(i+1) of the first chapter, it can be based on the time point t(i+1) (for example, between time points t(i+1) and t(1) The gap) to set the chapter information of the first chapter. For the first frame F(j+1) of the second chapter, according to the time point t(j+1) (for example, the difference between the time point t(j+1) and t(1)) Set the chapter information for the second chapter, and so on.
另一實施例中,當要為某一章節設定章節資訊時,可參考該章節標記圖框的時間點與前一章節標記圖框的時間點的差距。例如說,在設定第2個章節的章節資訊時,可依據時間點t(j+1)與時間點t(i+1)間的差距(t(j+1)-t(i+1))來定義第2個章節的章節資訊。也就是說,若第k個章節的標記圖框為圖框F(k1)(對應時間點t(k1)),第(k+1)個章節的標記圖框為圖框F(k2)(對應時間點t(k2)),則依據圖框F(k2)與F(k1)間的時間點差距(t(k2)-t(k1))來為第(k+1)個章節設定章節資訊。In another embodiment, when the chapter information is to be set for a certain chapter, the time difference between the time point of the chapter marking frame and the time point of the previous chapter marking frame may be referred to. For example, when setting the chapter information of the second chapter, the difference between the time point t(j+1) and the time point t(i+1) can be used (t(j+1)-t(i+1) ) to define the chapter information of the second chapter. That is to say, if the mark frame of the kth chapter is the frame F(k1) (corresponding to the time point t(k1)), the mark frame of the (k+1)th chapter is the frame F(k2) ( Corresponding to the time point t(k2)), the chapter is set for the (k+1)th chapter according to the time point difference (t(k2)-t(k1)) between the frame F(k2) and F(k1). News.
一些媒體裝置可以用固定的圖框率(frame rate)記錄圖框,故若某一圖框所對應的時間點已知,就能在多媒體檔案中定位出該圖框。Some media devices can record frames with a fixed frame rate, so if the time point corresponding to a frame is known, the frame can be located in the multimedia file.
請參考第5圖,其所示意的是依據本發明一實施例的媒體裝置60;本發明技術可施行於媒體裝置60,以實現錄影即時章節分段。媒體裝置60中包括有一命令介面64、一章節設定模組66、一訊源介面68與一錄製模組62。訊源介面68耦接於一訊源78與錄製模組62之間,接收訊源78提供的多媒體內容,並傳輸至錄製模組62。命令介面64耦接錄製模組62與章節設定模組66,用以接收命令76;命令76可以是開始錄影命令、結束錄影命令或章節分段命令等等。依據命令76的控制,錄製模組62將訊源78提供的多媒體內容錄製於多媒體的檔案50中。當錄製模組62錄製檔案50時,若章節設定模組66經由命令介面64接收到章節分段命令,便可在檔案50中為一新章節選擇一標記圖框,並針對該標記圖框提供一對應的章節資訊。章節設定模組66可以依照第3圖及/或第4圖實施例提供章節資訊;章節設定模組66可用軟體、韌體及/或硬體實現。Referring to FIG. 5, illustrated is a media device 60 in accordance with an embodiment of the present invention; the techniques of the present invention may be implemented in media device 60 to enable instant chapter segmentation of a video. The media device 60 includes a command interface 64, a chapter setting module 66, a source interface 68 and a recording module 62. The source interface 68 is coupled between a source 78 and the recording module 62, and receives the multimedia content provided by the source 78 and transmits the multimedia content to the recording module 62. The command interface 64 is coupled to the recording module 62 and the chapter setting module 66 for receiving the command 76. The command 76 can be a start recording command, an end recording command, a chapter segmentation command, or the like. According to the control of the command 76, the recording module 62 records the multimedia content provided by the source 78 in the multimedia file 50. When the recording module 62 records the file 50, if the chapter setting module 66 receives the chapter segmentation command via the command interface 64, a marker frame can be selected for the new chapter in the file 50, and the marker frame is provided for the marker frame. A corresponding chapter information. The chapter setting module 66 can provide chapter information according to the embodiment of FIG. 3 and/or FIG. 4; the chapter setting module 66 can be implemented by software, firmware and/or hardware.
一實施例中,媒體裝置60係實現於一附插卡,如一電視卡或一電視棒;此附插卡係經由一連接器而附插於一主機(未繪示),例如說是USB連接器、PCI插槽、PCI-E(PCI-Express)插槽或序列ATA(serial ATA)連接器等等。命令介面64可以經由連接器接收主機發出的命令76;例如說,主機可向使用者展示一人機介面,使用者經由鍵盤、滑鼠、觸控板、觸控螢幕或利用手勢、動作、聲音等與人機介面互動,由主機將使用者的互動解譯為對應的命令,並將命令傳輸至媒體裝置60。一實施例中,主機可為章節分段命令配置一專屬的按鍵(快速鍵)、按鍵組合、專屬的可點擊圖標(icon)按鈕及/或觸控區域,讓使用者能在錄製檔案50時快速地觸發章節分段命令。媒體裝置60錄製的檔案50可傳輸至主機內的儲存裝置(未圖示)儲存。一實施例中,章節分段命令可以是由主機自動觸發的,例如說,主機可週期性地定時地發出章節分段命令;以及/或者,主機對錄製中的圖框進行特徵的辨識與偵測,一旦偵測出特定的特徵(例如說圖框之間的統計差異大於一預設值,以及/或者圖框中出現特定的影像),即自動發出章節分段命令。In an embodiment, the media device 60 is implemented in an add-on card, such as a TV card or a TV stick; the add-in card is attached to a host (not shown) via a connector, for example, a USB connection. , PCI slot, PCI-E (PCI-Express) slot or Serial ATA (serial ATA) connector, etc. The command interface 64 can receive a command 76 issued by the host via the connector; for example, the host can display a human interface to the user via the keyboard, the mouse, the touchpad, the touch screen, or utilize gestures, actions, sounds, etc. Interacting with the human interface, the host interprets the user's interaction as a corresponding command and transmits the command to the media device 60. In one embodiment, the host can configure a dedicated button (fast key), a button combination, a dedicated clickable icon button, and/or a touch area for the chapter segmentation command, so that the user can record the file 50. Quickly trigger the chapter segmentation command. The file 50 recorded by the media device 60 can be transferred to a storage device (not shown) in the host for storage. In an embodiment, the chapter segmentation command may be automatically triggered by the host, for example, the host may periodically issue a chapter segmentation command; and/or, the host may identify and detect features in the recorded frame. In the test, once a specific feature is detected (for example, the statistical difference between the frames is greater than a preset value, and/or a specific image appears in the frame), the chapter segmentation command is automatically issued.
媒體裝置60也可以是消費者電子裝置,例如光碟、硬碟、記憶卡之錄放影機、數位相機、數位攝錄像機、配有影像擷取鏡頭的電腦、平板電腦、筆記型電腦、手機、個人數位助理器、視訊會議系統、保全監視系統及/或行車記錄器等等,以及/或者是能將播放內容錄製下來的螢幕、顯示器、電視系統、電視盒與桌上機等等。The media device 60 can also be a consumer electronic device, such as a CD-ROM, a hard disk, a video card recorder, a digital camera, a digital video camera, a computer with an image capturing lens, a tablet computer, a notebook computer, a mobile phone, and a personal computer. Digital assistants, video conferencing systems, security monitoring systems and/or driving recorders, etc., and/or screens, displays, television systems, television boxes and desktops that can record content.
一實施例中,命令介面64可以包括一遙控發射器與一遙控接收器(未圖示)。遙控發射器上設置鍵盤、滑鼠、觸控板及/或觸控螢幕,以接受使用者操控;遙控接收器則設置於媒體裝置60。使用者於遙控發射器上的操控會被轉譯為對應的命令,以遙控訊號發送至遙控接收器,而遙控接收器便會將命令傳輸至媒體裝置60。一實施例中,遙控發射器上可為章節分段命令配置一專屬按鈕,讓使用者能在錄製檔案50時快速地觸發章節分段命令。In one embodiment, the command interface 64 can include a remote control transmitter and a remote control receiver (not shown). A keyboard, a mouse, a touchpad, and/or a touch screen are disposed on the remote control transmitter to accept user manipulation; and the remote control receiver is disposed in the media device 60. The user's manipulation on the remote transmitter will be translated into a corresponding command, and the remote signal will be sent to the remote receiver, and the remote receiver will transmit the command to the media device 60. In one embodiment, a dedicated button can be configured for the chapter segmentation command on the remote control transmitter to allow the user to quickly trigger the chapter segmentation command while recording the file 50.
一實施例中,命令介面64可包括一顯示面板、投影裝置及/或語音發聲裝置,以影像或聲音向使用者展示/提示一人機介面,並包括鍵盤、滑鼠、觸控板、觸控螢幕、擷取使用者影像的攝影機、感測使用者位置及/或動作的感測器、以及/或者用以監聽使用者語音以實現聲控的麥克風等等,以偵測使用者與人機介面的互動,並解譯為對應的命令。一實施例中,命令介面64可為章節分段命令配置一專屬的按鍵(快速鍵)、按鍵組合、專屬的可點擊圖標按鈕、觸控區域及/或聲控關鍵字,讓使用者能在錄製檔案50時快速地觸發章節分段命令。In one embodiment, the command interface 64 can include a display panel, a projection device, and/or a voice sounding device to display/prompt a human interface to the user by image or sound, and includes a keyboard, a mouse, a touchpad, and a touch. a screen, a camera that captures the user's image, a sensor that senses the user's position and/or motion, and/or a microphone that listens to the user's voice for voice control, etc., to detect the user and the human machine interface. Interact and interpret the corresponding commands. In one embodiment, the command interface 64 can configure a dedicated button (fast key), a button combination, a dedicated clickable icon button, a touch area, and/or a voice keyword for the chapter segmentation command, so that the user can record The file segmentation command is triggered quickly when the file is 50.
一實施例中,訊源介面68可以包括一天線及對應的接收電路,接收無線訊源,像是無線電視台傳輸的數位電視節目。以及/或者,訊源介面68可以包括有線電視的纜線連接器與對應的接收電路,接收有線電視台提供的有線電視節目。以及/或者,訊源介面68可以包括接收視訊訊源的各種視訊介面埠,例如AV端子、S端子、數位視訊介面(DVI,Digital Video Interface)及/或高清多媒體介面(HDMI,High Definition Multimedia Interface)規格的視訊輸入埠等等。In one embodiment, the source interface 68 can include an antenna and a corresponding receiving circuit for receiving a wireless source, such as a digital television program transmitted by the wireless television station. And/or, the source interface 68 can include a cable connector of the cable television and a corresponding receiving circuit to receive the cable television program provided by the cable television station. And/or, the source interface 68 can include various video interfaces for receiving the video source, such as an AV terminal, an S terminal, a DVI (Digital Video Interface), and/or a high definition multimedia interface (HDMI, High Definition Multimedia Interface). ) Specifications of video input 埠 and so on.
媒體裝置60中可以包括有儲存裝置(未繪示),例如硬碟、光碟燒錄器及/或記憶卡,用以儲存檔案50。以及/或者,媒體裝置60可以包括輸出用連接器,將檔案50輸出。以及/或者,媒體裝置60可以包括輸出視訊的各種視訊介面埠,將檔案50輸出至播放裝置,像是音響、電視、顯示器、顯示面板、投影裝置等等。媒體裝置60也可以包括有線及/或網路卡,由網路取得命令76及/或訊源78,並且/或者將檔案50傳輸至網路的遠端。The media device 60 may include a storage device (not shown), such as a hard disk, a CD burner, and/or a memory card for storing the file 50. And/or, the media device 60 can include an output connector to output the file 50. And/or, the media device 60 can include various video interface ports for outputting video, and output the file 50 to a playback device such as an audio, a television, a display, a display panel, a projection device, and the like. Media device 60 may also include a wired and/or network card that retrieves command 76 and/or source 78 from the network and/or transmits file 50 to the remote end of the network.
一實施例中,媒體裝置60是具有時光平移功能的播放裝置(如電視盒或電視),其可將訊源78提供的多媒體內容錄製下來作為時光平移的緩衝,而本發明亦可實施於此種播放裝置。In one embodiment, the media device 60 is a playback device (such as a television box or a television) having a time shifting function, which can record the multimedia content provided by the source 78 as a buffer for time shifting, and the present invention can also be implemented herein. Kind of playback device.
請參考第6圖,其所示意的是依據本發明一實施例的流程200;流程200可應用於具有多媒體檔案錄製功能的媒體裝置(如第5圖媒體裝置60),以實現錄影時即時章節分段的功能。流程200的步驟可說明如下。Please refer to FIG. 6 , which illustrates a process 200 according to an embodiment of the present invention; the process 200 can be applied to a media device having a multimedia file recording function (such as the media device 60 in FIG. 5 ) to implement an instant chapter during recording. Segmentation function. The steps of process 200 can be illustrated as follows.
步驟202:開始錄影,媒體裝置開始將圖框錄製於一檔案中。Step 202: Start recording, and the media device starts to record the frame in a file.
步驟204:偵測是否收到結束錄影命令或章節分段命令的其中之一。若收到章節分段命令,繼續進行至步驟206;若收到結束錄影命令,繼續至步驟210。若沒有收到結束錄影命令與章節分段命令,則於步驟204中持續偵測。Step 204: Detect whether one of the end video command or the chapter segmentation command is received. If the chapter segmentation command is received, proceed to step 206; if the end video command is received, proceed to step 210. If the end video command and the chapter segment command are not received, the detection is continued in step 204.
步驟206:若收到章節分段命令,則進行至步驟207。Step 206: If the chapter segmentation command is received, proceed to step 207.
步驟207:要求媒體裝置將當前正要錄影的圖框錄製為一框內編碼圖框。Step 207: Require the media device to record the frame currently being recorded as an in-frame coded frame.
步驟208:選擇步驟207中產生的框內編碼圖框為一標記圖框,並針對此標記圖框設定一對應的章節資訊,再將此章節資訊一併記錄於檔案中。此標記圖框也就成為一個新章節的第一個圖框。在檔案繼續錄製的同時,一併將章節資訊寫入至檔案的檔頭中。Step 208: Select the in-frame code frame generated in step 207 as a mark frame, and set a corresponding chapter information for the mark frame, and then record the chapter information in the file. This tag frame becomes the first frame of a new chapter. While the file continues to be recorded, the chapter information is written to the file header.
步驟210:若收到結束錄影命令,進行至步驟212。Step 210: If the end recording command is received, proceed to step 212.
步驟212:結束錄影。Step 212: End the recording.
一些媒體裝置比較重視多媒體檔案的檔案大小,會比較常以框間編碼圖框進行錄影。針對此種媒體裝置,可運用流程200來實現本發明的錄影即時章節分段技術。當要在錄影中進行章節分段時,可在接收章節分段命令後使媒體裝置將時間點上最接近的一個待錄製圖框錄製為框內編碼圖框(步驟207),使此框內編碼圖框能作為一章節的第一個圖框。提供章節資訊的各種實施例可參考第3圖與第4圖的討論。Some media devices pay more attention to the file size of multimedia files, and often use the inter-frame code frame for video recording. For such a media device, the process 200 can be utilized to implement the video instant chapter segmentation technique of the present invention. When the chapter segmentation is to be performed in the video, the media device may record the closest frame to be recorded at the time point as an in-frame code frame after receiving the chapter segmentation command (step 207), so that the frame is in the frame. The coded frame can be used as the first frame of a chapter. Various embodiments for providing chapter information can be referred to the discussion of Figures 3 and 4.
請參考第7圖,其所示意的是依據本發明一實施例的流程300;流程300可應用於具有多媒體檔案錄製功能的媒體裝置(如媒體裝置60),以實現錄影時即時章節分段的功能。流程300的步驟可說明如下。Please refer to FIG. 7, which illustrates a process 300 according to an embodiment of the present invention; the process 300 can be applied to a media device (such as the media device 60) having a multimedia file recording function to implement instant chapter segmentation during recording. Features. The steps of the process 300 can be illustrated as follows.
步驟302:開始錄影;媒體裝置開始將圖框錄製於一多媒體檔案中。Step 302: Start recording; the media device begins to record the frame in a multimedia file.
步驟304:偵測是否收到結束錄影命令或章節分段命令的其中之一。若收到章節分段命令,繼續進行至步驟306;若收到結束錄影命令,繼續至步驟310。若沒有收到結束錄影命令與章節分段命令,則於步驟304中持續偵測。Step 304: Detect whether one of the end video command or the chapter segment command is received. If the chapter segmentation command is received, proceed to step 306; if the end video command is received, proceed to step 310. If the end video command and the chapter segment command are not received, the detection is continued in step 304.
步驟306:若收到章節分段命令,則進行至步驟308。Step 306: If the chapter segmentation command is received, proceed to step 308.
步驟308:在正在錄製的多媒體檔案中,選擇一個在時間上與章節分段命令最接近的框內編碼圖框作為一標記圖框,並針對此框內編碼圖框設定一對應的章節資訊。多媒體檔案的錄製持續進行,但此章節資訊暫時不寫入至多媒體檔案中。一實施例中,錄製多媒體檔案的媒體裝置或主機設有一暫存的記憶體(如一揮發性的隨機存取記憶體),章節資訊可先暫存於此記憶體中。Step 308: In the multimedia file being recorded, select an in-frame code frame that is closest in time to the chapter segmentation command as a mark frame, and set a corresponding chapter information for the coded frame in the frame. The recording of the multimedia file continues, but the information in this chapter is not currently written to the multimedia file. In one embodiment, the media device or host that records the multimedia file is provided with a temporary memory (such as a volatile random access memory), and the chapter information can be temporarily stored in the memory.
步驟310:若收到結束錄影命令,進行至步驟312。Step 310: If the end video command is received, proceed to step 312.
步驟312:結束錄影,並繼續至步驟314。Step 312: End the recording and proceed to step 314.
步驟314:將步驟308暫存的各章節資訊儲存至多媒體檔案中。一實施例中,多媒體檔案有一檔頭,此檔頭中可以有一目錄區段用來記錄章節資訊;而步驟314就是要將章節資訊寫入至檔頭中的目錄區段。Step 314: Save the chapter information temporarily stored in step 308 to the multimedia file. In one embodiment, the multimedia file has a header, and the header can have a directory section for recording chapter information; and step 314 is to write chapter information to the directory section in the header.
請參考第8圖,其所示意的是依據本發明一實施例的流程400;其可於一多媒體檔案錄製功能的媒體裝置(如第5圖媒體裝置60)上實現錄影時即時章節分段的功能。流程400的步驟可說明如下。Please refer to FIG. 8 , which illustrates a process 400 according to an embodiment of the present invention; it can realize instant chapter segmentation on a media device (such as the media device 60 in FIG. 5 ) of a multimedia file recording function. Features. The steps of the process 400 can be illustrated as follows.
步驟402:開始錄影,媒體裝置開始將圖框錄製於一多媒體檔案中。Step 402: Start recording, and the media device starts to record the frame in a multimedia file.
步驟404:偵測是否收到結束錄影命令或章節分段命令的其中之一。若收到章節分段命令,繼續進行至步驟406;若收到結束錄影命令,繼續至步驟410。若沒有收到結束錄影命令與章節分段命令,則於步驟404中持續偵測。Step 404: Detect whether one of the end video command or the chapter segmentation command is received. If the chapter segmentation command is received, proceed to step 406; if the end video command is received, proceed to step 410. If the end video command and the chapter segment command are not received, the detection is continued in step 404.
步驟406:若收到章節分段命令,則進行至步驟407。Step 406: If the chapter segmentation command is received, proceed to step 407.
步驟407:要求媒體裝置將當前正要錄影的圖框錄製為一框內編碼圖框。Step 407: Require the media device to record the frame currently being recorded as an in-frame coded frame.
步驟408:選擇步驟407中產生的框內編碼圖框為一標記圖框,並針對此標記圖框設定一對應的章節資訊。在多媒體檔案繼續錄製的同時,章節資訊先暫存至媒體裝置(或主機)的記憶體中,不寫入至多媒體檔案的檔頭中。Step 408: Select the in-frame code frame generated in step 407 as a mark frame, and set a corresponding chapter information for the mark frame. While the multimedia file continues to be recorded, the chapter information is temporarily stored in the memory of the media device (or host) and is not written to the header of the multimedia file.
步驟410:若收到結束錄影命令,進行至步驟412。Step 410: If the end recording command is received, proceed to step 412.
步驟412:結束錄影,並繼續至步驟414。Step 412: End the recording and proceed to step 414.
步驟414:將步驟408暫存的各章節資訊儲存至多媒體檔案中。Step 414: Save the chapter information temporarily stored in step 408 to the multimedia file.
在以裝置60實現流程100、200、300及/或400時,章節資訊由章節設定模組66提供。在進行步驟108或208時,每當章節設定模組66為一新章節提供一章節資訊,章節資訊就由錄製模組62記錄至檔案50中。在進行步驟308或408時,章節設定模組66提供的章節資訊會暫存於記憶體,錄製模組62結束檔案50的錄製後,會統一將暫存的各章節資訊寫入至檔案50。裝置60可內建流程100、200、300與400的其中一種或數種;一實施例中,由使用者選擇要以哪一個流程實現錄影即時章節分段。以及/或者,裝置60(或裝置60附接的主機)可自動依據欲錄製檔案的格式等因素自動決定要使用哪一個流程。When the processes 100, 200, 300, and/or 400 are implemented by the device 60, the chapter information is provided by the chapter setting module 66. When step 108 or 208 is performed, each chapter setting module 66 provides a chapter information for a new chapter, and the chapter information is recorded by the recording module 62 into the file 50. When step 308 or 408 is performed, the chapter information provided by the chapter setting module 66 is temporarily stored in the memory. After the recording module 62 finishes recording the file 50, the temporarily stored chapter information is uniformly written to the file 50. The device 60 can have one or several of the processes 100, 200, 300, and 400 built in; in one embodiment, the user selects which process to use to implement the video instant chapter segmentation. And/or, device 60 (or the host to which device 60 is attached) can automatically determine which process to use based on factors such as the format of the file to be recorded.
請參考第9圖至第11圖,其所示意的是依據本發明不同實施例而將多媒體檔案播放於一播放裝置(未繪示)的螢幕80。在第9圖實施例中,僅於一回播檔案選單中顯出不同多媒體檔案的檔案名稱(第9圖中以檔案A、檔案B、檔案C等代表),使用者選取某一多媒體檔案的檔案名稱後,播放裝置就開始回播該多媒體檔案;在回播期間,若使用者觸發跳轉命令,播放裝置會在接收跳轉命令後依據該多媒體檔案中的章節資訊而跳轉(快轉或倒轉)至各章節(如各章節的第一個圖框)。Referring to FIGS. 9-11, it is illustrated that a multimedia file is played on a screen 80 of a playback device (not shown) in accordance with various embodiments of the present invention. In the embodiment of FIG. 9, the file names of different multimedia files are displayed in only one playback file menu (in the figure 9, file A, file B, file C, etc.), and the user selects a multimedia file. After the file name, the playback device starts to play back the multimedia file; during the playback, if the user triggers the jump command, the playback device will jump (fast forward or reverse) according to the chapter information in the multimedia file after receiving the jump command. To each chapter (such as the first frame of each chapter).
在第10圖實施例中,播放裝置則於螢幕80上的回播檔案選單中顯示檔案名稱與章節名稱,使用者可選取某一檔案或某一檔案的某一章節開始回播。舉例而言,當使用者經由播放裝置選擇某一多媒體檔案的某一章節,播放裝置就接收到一跳轉命令而跳轉至該多媒體檔案的該選定章節。跳轉至選定章節後,使用者也可再度發出後續跳轉命令以依照章節分段而快轉或倒轉至其他章節。一實施例中,可依據章節資訊顯示預設的章節名稱;例如,第一個章節顯示為「第一章」,第二個章節顯示為「第二章」。一實施例中,使用者也可自行編輯各章節的章節名稱。一實施例中,當使用者在錄影期間進行章節分段時,可依據不同的章節分層架構進行章節分段,例如說是使檔案中有複數個章節、每一章節中又分段出複數個段落等等。In the embodiment of FIG. 10, the playback device displays the file name and the chapter name in the playback file menu on the screen 80, and the user can select a certain file or a certain chapter of a certain file to start playback. For example, when the user selects a certain chapter of a certain multimedia file via the playback device, the playback device receives a jump command and jumps to the selected chapter of the multimedia file. After jumping to the selected chapter, the user can also issue a subsequent jump command to quickly forward or reverse to other chapters according to the chapter segmentation. In an embodiment, the preset chapter name may be displayed according to the chapter information; for example, the first chapter is displayed as "Chapter 1" and the second chapter is displayed as "Chapter 2". In one embodiment, the user can also edit the chapter names of the chapters by themselves. In an embodiment, when the user performs chapter segmentation during recording, the chapter segmentation may be performed according to different chapter hierarchical structures, for example, having multiple chapters in the file and segmenting each chapter. Multiple paragraphs and so on.
在第11圖的實施例中,則是於回播檔案選單中顯示各章節的畫面/圖標,例如說各章節標記圖框(即各章節的第一個圖框)的縮圖。使用者可選取畫面/圖標/縮圖而觸發跳轉命令,以回播某一章節,也可依照章節分段而作快轉或倒轉。第9圖至第11圖的螢幕80(與播放裝置)可以是和第5圖媒體裝置60整合於一;或者,第9圖至第11圖所討論的螢幕80與相關播放裝置係獨立於媒體裝置60。In the embodiment of Fig. 11, the picture/icon of each chapter is displayed in the playback file menu, for example, a thumbnail of each chapter mark frame (i.e., the first frame of each chapter). The user can select a screen/icon/thumbnail to trigger a jump command to play back a chapter, or to fast forward or reverse according to the chapter segmentation. The screen 80 (and the playback device) of Figures 9 through 11 may be integrated with the media device 60 of Figure 5; or the screen 80 and associated playback device discussed with respect to Figures 9 through 11 are independent of the media. Device 60.
使用者也可依據章節編輯多媒體檔案。舉例而言,使用者可將某一章節由檔案中刪除。在進行刪除時,將該章節的第一個圖框至該章節的最後一個圖框由檔案中移除,並在檔頭的目錄區段中將該章節對應的章節資訊刪除。同理,也可複製某一章節的所有圖框並插入至同一或另一檔案中,以此類推。Users can also edit multimedia files according to chapters. For example, a user can delete a chapter from the file. When deleting, the first frame of the chapter to the last frame of the chapter is removed from the archive, and the chapter information corresponding to the chapter is deleted in the directory section of the file header. Similarly, you can copy all the frames of a chapter and insert them into the same or another file, and so on.
總結來說,相較於習知技術,本發明可在錄影的同時即時進行章節分段,不需在後製時進行章節分段,故可節省後製的時間與成本,讓檔案的整理、播放與管理更為方便,也符合使用者的操作直覺。In summary, compared with the prior art, the present invention can perform chapter segmentation at the same time of video recording, and does not need to perform chapter segmentation in the post-production process, thereby saving time and cost of post-production, and arranging files, Play and management is more convenient and also meets the user's intuitive operation.
綜上所述,雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明。本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾。因此,本發明之保護範圍當視後附之申請專利範圍所界定者為準。In conclusion, the present invention has been disclosed in the above preferred embodiments, and is not intended to limit the present invention. A person skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.
50...檔案50. . . file
52...檔頭52. . . Head
60...媒體裝置60. . . Media device
62...錄製模組62. . . Recording module
64...命令介面64. . . Command interface
66...章節設定模組66. . . Chapter setting module
68...訊源介面68. . . Source interface
76...命令76. . . command
78...訊源78. . . Source
80‧‧‧螢幕80‧‧‧ screen
100、200、300、400‧‧‧流程100, 200, 300, 400‧‧‧ processes
102-112、202-212、302-314、402-414‧‧‧步驟Steps 102-112, 202-212, 302-314, 402-414‧‧
F(.)‧‧‧圖框F(.)‧‧‧ frame
cmdC(.)‧‧‧章節分段命令cmdC(.)‧‧‧ chapter segmentation order
t1、t2、t(.)‧‧‧時間點T1, t2, t (.) ‧ ‧ time points
B(.)‧‧‧位元組B (.) ‧ ‧ Bytes
第1圖係依據本發明一實施例的流程。Figure 1 is a flow diagram in accordance with an embodiment of the present invention.
第2圖示意第1圖流程的運作。Figure 2 illustrates the operation of the flow of Figure 1.
第3圖與第4圖繪示的是依據本發明不同實施例而於多媒體檔案中定位圖框的示意圖。3 and 4 illustrate schematic diagrams of positioning a frame in a multimedia file in accordance with various embodiments of the present invention.
第5圖示意的是依據本發明一實施例的媒體裝置。Figure 5 illustrates a media device in accordance with an embodiment of the present invention.
第6圖至第8圖係依據本發明不同實施例的流程。Figures 6 through 8 are diagrams of processes in accordance with various embodiments of the present invention.
第9圖至第11圖繪示的是依據本發明不同實施例播放多媒體檔案的示意圖。9 to 11 are schematic views showing the playing of a multimedia file in accordance with various embodiments of the present invention.
100...流程100. . . Process
102-112...步驟102-112. . . step
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100120767A TWI442769B (en) | 2011-06-14 | 2011-06-14 | Method applied to medium apparatus and associated medium apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100120767A TWI442769B (en) | 2011-06-14 | 2011-06-14 | Method applied to medium apparatus and associated medium apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201251450A TW201251450A (en) | 2012-12-16 |
TWI442769B true TWI442769B (en) | 2014-06-21 |
Family
ID=48139471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW100120767A TWI442769B (en) | 2011-06-14 | 2011-06-14 | Method applied to medium apparatus and associated medium apparatus |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI442769B (en) |
-
2011
- 2011-06-14 TW TW100120767A patent/TWI442769B/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
TW201251450A (en) | 2012-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20040008970A1 (en) | Enhanced bookmarks for digital video playback | |
CN111095939B (en) | Identifying previously streamed portions of media items to avoid repeated playback | |
US20100103132A1 (en) | Information processing apparatus, information processing method, and program | |
KR101440168B1 (en) | Method for creating a new summary of an audiovisual document that already includes a summary and reports and a receiver that can implement said method | |
US20080154953A1 (en) | Data display method and reproduction apparatus | |
JP2014030153A (en) | Information processor, information processing method, and computer program | |
JPH11284948A (en) | Thumbnail generating method and thumbnail display method | |
US8572317B2 (en) | Memory device and method to generate resume data for a media file that is interrupted while being reproduced | |
JP2012065087A (en) | Video recording and reproducing apparatus, recording and reproducing method of the same, program of the same, and memory storing program | |
US9538119B2 (en) | Method of capturing moving picture and apparatus for reproducing moving picture | |
TWI442769B (en) | Method applied to medium apparatus and associated medium apparatus | |
KR20060102639A (en) | System and method for playing mutimedia data | |
JP4405860B2 (en) | Control device for controlling image processing apparatus | |
JP2003061013A (en) | Image processor and method, and program | |
JP2001119661A (en) | Dynamic image editing system and recording medium | |
CN112689108A (en) | System and method for recording and playing blackboard writing in sections based on key frames | |
JP3909130B2 (en) | Stream event point detection display method and apparatus | |
JP2009239322A (en) | Video reproducing device, video reproducing method, and video reproducing program | |
JP2006115412A (en) | Data recorder | |
JP2005174390A (en) | Recording device | |
KR100566970B1 (en) | Method for copying video record products and Personal Video Recorder which is embodied in it | |
JP2012156879A (en) | Recording apparatus and reproducing apparatus | |
US20090136198A1 (en) | Video reproducing/recording and playing system and method for setting and playing video section | |
JP2000311469A (en) | Disk controller and disk device using the same | |
JP5060394B2 (en) | Information processing apparatus and information processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |