TWI404416B - Digital speed conversion method - Google Patents
Digital speed conversion method Download PDFInfo
- Publication number
- TWI404416B TWI404416B TW99117305A TW99117305A TWI404416B TW I404416 B TWI404416 B TW I404416B TW 99117305 A TW99117305 A TW 99117305A TW 99117305 A TW99117305 A TW 99117305A TW I404416 B TWI404416 B TW I404416B
- Authority
- TW
- Taiwan
- Prior art keywords
- frame
- group
- video
- frames
- playback
- Prior art date
Links
Landscapes
- Television Signal Processing For Recording (AREA)
Abstract
Description
本發明係與數位視訊之播放有關,特別係指一種數位視訊之K倍速快轉方法。The invention relates to the playback of digital video, in particular to a K-speed fast forward method for digital video.
隨著網際網路使用越普遍,目前在市場上有一部分網際網路服務公司(Internet Service Provider,ISP)經常會在主從式架構(Client-Server Structure)的網路系統中標榜提供一種互動式的視訊播放系統(Video on Demand),其主要的工作原理乃是利用網路系統中的互動式介面,讓用戶端可以根據存取端(如檔案伺服器)在互動式介面中提供的影片目錄,任意挑選其中一部影片進行播放,而一般言之,互動式視訊播放系統中最常使用的指令就是播放(Play)、停止(Stop)、快轉(Fast Forward)、及反向快轉(Fast Backward),故如何將該等功能加入使用於數位視訊上,已成為各數位視訊業者的一大挑戰。With the increasing popularity of the Internet, some Internet Service Providers (ISPs) are often on the market to offer an interactive version of the Client-Server Structure network system. Video on Demand, the main working principle is to use the interactive interface in the network system, so that the client can provide the video directory in the interactive interface according to the access terminal (such as file server). , arbitrarily select one of the videos to play, and in general, the most commonly used commands in the interactive video playback system are Play, Stop, Fast Forward, and Reverse Fast ( Fast Backward), so how to add these functions to digital video has become a major challenge for digital video operators.
而在目前處理數位視訊快轉之播放技術與方法有以下幾種,假設快轉的倍速為V:At present, there are several playback techniques and methods for processing digital video fast-forward, assuming that the fast-speed multiple is V:
1、每秒播放的訊框數目(fps)增加至V倍1. The number of frames played per second (fps) is increased to V times.
例如:以每秒播放三十張Video Frame來看,快轉倍速為2×時,則每秒播放視訊訊框張數應為六十(30×2)張,其他倍速以此類推。For example, when playing 30 video frames per second, when the fast forward speed is 2×, the number of video frames per second should be sixty (30×2), and the other multiple speeds and so on.
2、利用跳躍播放的方式,拿取部份的訊框回來播放2, using the jump play method, take some of the frame back to play
例如:當快轉的倍速為2×時,則每兩張訊框只需播放第一個訊 框,其餘跳過,其他倍速以此類推。For example, when the double speed of the fast forward is 2×, only the first message is played for every two frames. The box, the rest skip, the other double speed and so on.
而雖上述數位視訊播放方法可達到錄放影機之快轉功能,但第一種方式必須依靠較高階的硬體設備和網路環境來支援,而且人類眼睛能夠接受圖片變化的靈敏度有限。Although the above-mentioned digital video playback method can achieve the fast-forward function of the video recorder, the first method must rely on higher-order hardware devices and the network environment to support, and the sensitivity of the human eye to accept picture changes is limited.
本發明主要目的在提供一種數位視訊之K倍速快轉方法,可提供錄放影機(video cassette recorder,VCR)功能操作,降低錄放影機功能操作後至開始播放之等待時間。The main purpose of the present invention is to provide a K-speed fast-forward method for digital video, which can provide a video cassette recorder (VCR) function operation, and reduce the waiting time from the start of playback of the video recorder function to the start of playback.
本發明之數位視訊之K倍速快轉方法,該方法係提供一視訊影片,而該視訊影片係包含有多數個訊框群組(Group of Pictures,GOP),且每一訊框群組係包含有一完整訊框(I Frame)及多數個前向參考訊框(P Frame),同時,當以一播放倍數進行視訊影片播放時,該視訊影片係界定出多數個訊框循環,且每一訊框循環係包含有至少一訊框群組,而該訊框循環所包含之訊框群組數量係依據至少一分類規則組成之分類規則組來分類界定,並再依據至少一播放規則組成之播放規則組來進行播放。The K-speed fast-speed method for digital video of the present invention provides a video film, and the video film includes a plurality of Group of Pictures (GOP), and each frame group includes There is a complete frame (I Frame) and a plurality of forward frame (P Frame). At the same time, when the video is played in a multiple playing ratio, the video film defines a plurality of frame cycles, and each message The frame loop system includes at least one frame group, and the number of frame groups included in the frame cycle is classified according to a classification rule group composed of at least one classification rule, and then played according to at least one playing rule. The rule group is played.
藉此,降低錄放影機功能操作後所需等待之時間,另,本發明之數位視訊之K倍速快轉方法,更包含向後快轉(Fast forward)和反向快轉(Fast backward)之播放方式。Thereby, the waiting time after the operation of the video recorder function is reduced. In addition, the K-speed fast forward method of the digital video of the present invention further includes the playback of the backward forward and the fast backward (Fast backward). the way.
首先,請先參閱第一及第二圖所示,分別為本發明快轉(Fast forward)之訊框播放示意圖及反向快轉(fast backward)之訊框播放示意圖,本發明方法係可應用在所有可播放數位視訊之裝置或網路環境上,例如視訊隨選、網路串流、數位視訊家電、電腦、手機、監控等裝置與環境。First, please refer to the first and second figures, which are respectively a schematic diagram of the frame playback of the Fast Forward and a frame playback of the fast backward. The method of the present invention is applicable. In all devices or network environments where digital video can be played, such as video on demand, network streaming, digital video appliances, computers, mobile phones, surveillance and other devices and environments.
本發明方法係具有一視訊影片100,而該視訊影片100係包含有多數個訊框群組101(Group of Pictures,GOP),且每一訊框群組101係包含有一完整訊框102(I Frame)及多數個前向參考訊框103(P Frame),同時,當以一播放倍數K進行視訊影片100播放時,該視訊影片100係界定出多數個訊框循環(round)104,且每一訊框循環104係包含有至少一訊框群組101,而該訊框循環104所包含之訊框群組101數量係依據至少一分類規則組成之分類規則組來分類界定,並再依據至少一播放規則組成之播放規則組來進行播放,其中,該分類規則組及該播放規則組之規則係分別包含有:The method of the present invention has a video film 100, and the video film 100 includes a plurality of Group of Pictures (GOP), and each frame group 101 includes a complete frame 102 (I). Frame) and a plurality of forward reference frames 103 (P Frame). Meanwhile, when the video film 100 is played at a playback multiple K, the video film 100 defines a plurality of frame rounds 104, and each The frame cycle 104 includes at least one frame group 101, and the number of the frame groups 101 included in the frame cycle 104 is classified according to a classification rule group composed of at least one classification rule, and is further based on at least A play rule group consisting of a play rule is played, wherein the classification rule group and the rules of the play rule group respectively include:
1、由該分類規則組指示出,當該播放倍數K小於等於單一訊框群組101的訊框總數M,且該訊框群組101的訊框總數M為該播放倍數K之整數倍時,則每一訊框循環104係具有一訊框群組101,且由該播放規則組指示出,每一訊框循環104僅針對前W個訊框進行播放,其中,W=M /K 。1. The classification rule group indicates that when the play multiplier K is less than or equal to the total number M of frames of the single frame group 101, and the total number of frames M of the frame group 101 is an integer multiple of the play multiple K Each frame cycle 104 has a frame group 101, and is indicated by the play rule group, and each frame cycle 104 is played only for the first W frames, where W= M / K .
2、由該分類規則組指示出,當該播放倍數K小於單一訊框群組101的訊框總數M,且該訊框群組101的訊框總數M非為該播放倍數K之整數倍時,則每一訊框循環104係具有N個訊框群組101,又,由該播放規則組指示出,該視訊影片100係必須於該訊框循環104中挑選出W個訊框進行播放,且該訊框循環104係由前N-1個訊框群組101中,挑選前I個訊框進行播放,而第N個訊框群組101則挑選前J個訊框進行播放,其中,N=K /gcd(K,M) ,gcd(K,M)係為K與M的最大公因數,W=M /gcd(K,M) ,I= W /N ,為高斯函數,代表小於等於x之最大整數,J=(W-(N-1)×I),另,當該視訊影片100內所包含之訊框群組101數G非為該訊框循環104內所包含之訊框群組101數N的整數倍 時,該視訊影片100的最後一個訊框循環104會僅具有Q個訊框群組101,且Q<N,因此,需由Q個訊框群組101中挑選出S個訊框進行播放,且係先由前Q-1個訊框群組101內挑選前 S /Q 個訊框進行播放,而第Q個訊框則係挑選前{S- S /Q (Q-1)}個訊框進行播放,其中,S= Q×M /K 。2. The classification rule group indicates that when the play multiplier K is smaller than the total number M of frames of the single frame group 101, and the total number of frames M of the frame group 101 is not an integer multiple of the play multiple K Each frame cycle 104 has N frame groups 101. In addition, as indicated by the play rule group, the video film 100 must select W frames to play in the frame cycle 104. And the frame cycle 104 is selected from the first N-1 frame groups 101, and the first frame is selected for playing, and the Nth frame group 101 selects the first J frames for playing, wherein N= K / gcd(K,M) , gcd(K,M) is the greatest common factor of K and M, W= M / gcd(K,M) , I= W / N , It is a Gaussian function, which represents the largest integer less than or equal to x, J=(W-(N-1)×I). In addition, when the number of frame groups 101 included in the video film 100 is not the frame loop When the number of frame groups 101 included in 104 is an integer multiple of N, the last frame cycle 104 of the video film 100 will only have Q frame groups 101, and Q<N, therefore, Q is required. S frames are selected in the frame group 101 for playing, and are selected first by the first Q-1 frame groups 101. S / Q The frames are played, and the Qth frame is selected before {S- S / Q (Q-1)} frames are played, where S= Q×M / K .
3、由該分類規則組指示出,當該播放倍數K係大於每一訊框群組101的訊框總數M,且該播放倍數K為該訊框群組101的訊框總數M之整數倍時,則該訊框循環104係具有U個訊框群組101,且由該播放規則組指示出,每一訊框循環104僅針對第一個訊框群組101的完整訊框102進行播放,其中,U=K /M 。3. The classification rule group indicates that the playback multiplier K is greater than the total number M of frames of each frame group 101, and the play multiplier K is an integer multiple of the total number of frames M of the frame group 101. The frame cycle 104 has U frame groups 101, and is indicated by the play rule group, and each frame cycle 104 is only played for the complete frame 102 of the first frame group 101. , where U= K / M .
4、由該分類規則組指示出,當該播放倍數K係大於每一訊框群組101的訊框總數M,且該播放倍數K非為該訊框群組101的訊框總數M之整數倍時,則該訊框循環104係具有T個訊框群組101,又,由該播放規則組指示出,該視訊影片100係必須於該訊框循環104中挑選出X個訊框進行播放,且該訊框循環104係僅挑選第K個訊框群組101中的完整訊框102進行播放,其中,T=K /gcd(K,M) ,gcd(K,M)係為K與M的最大公因數,X=M /gcd(K,M) ,V=O×P,P= T /X ,O=1,2.....,X;另,當該視訊影片100內所包含之訊框群組101數G非為該訊框循環104內所包含之訊框群組101數T的整數倍時,該視訊影片100的最後一個訊框循環104會僅具有R個訊框群組101,且R<T,因此,需由R個訊框群組101中挑選出Y個訊框進行播放,且係挑選第L個訊框群組101內的完整訊框102進行播放,其中,Y= R×M /K ,L=A×B,B= R /Y ,A=1,2.....,Y。4. The classification rule group indicates that the playback multiplier K is greater than the total number M of frames of each frame group 101, and the play multiplier K is not an integer of the total number of frames M of the frame group 101. In the case of multiple times, the frame cycle 104 has T frame groups 101. In addition, as indicated by the play rule group, the video film 100 must select X frames to play in the frame cycle 104. And the frame cycle 104 only selects the complete frame 102 in the Kth frame group 101 for playing, wherein T= K / gcd(K,M) , gcd(K,M) is K and The greatest common divisor of M , X = M / gcd(K, M) , V = O × P, P = T / X , O=1, 2....., X; in addition, when the number of frame groups 101 included in the video film 100 is not the number of frame groups 101 included in the frame cycle 104, The integer frame time of the video film 100 will only have R frame groups 101, and R<T, therefore, Y frames need to be selected from R frame groups 101. Playing, and selecting the complete frame 102 in the Lth frame group 101 for playing, wherein Y= R×M / K , L=A×B, B= R / Y , A=1, 2....., Y.
仍請參閱第一圖所示,於操作視訊影片100快轉(Fast forward)時,在該訊框群組101的訊框總數M為8,且以該播放倍數K為2時,則每一訊框循環104係具有一訊框群組101,而每一訊框循環104僅 針對前4個訊框進行播放,亦即該訊框群組101播放係將完整訊框102(I)及前向參考訊框103(P1 、P2 、P3 )播完後,就會跳至下一個訊框循環104進行播放,依此類推;另,當以該播放倍數K為16進行播放時,每一訊框循環104係具有二訊框群組101,且每一訊框循環104僅針對第一訊框群組101的完整訊框102(I)進行播放;而其餘播放規則亦僅須依照前述規定進行播放,故在此不再加以贅述。Still referring to the first figure, when the video video 100 is fast forwarded, the total number M of frames in the frame group 101 is 8, and when the playing multiple K is 2, then each The frame cycle 104 has a frame group 101, and each frame cycle 104 is only played for the first four frames, that is, the frame group 101 plays the complete frame 102(I) and the front. After the broadcast to the reference frame 103 (P 1 , P 2 , P 3 ), it will jump to the next frame cycle 104 for playing, and so on; in addition, when the playback multiple K is 16 for playing, Each frame cycle 104 has a two-frame group 101, and each frame cycle 104 is only played for the complete frame 102(I) of the first frame group 101; and the remaining play rules are only required to be followed. The foregoing provisions are played, so they will not be described here.
仍請參閱第二圖所示,於操作視訊影片100反向快轉(Fast backward)時,由於影像壓縮是以訊框群組101為單位,同一個訊框群組101內訊框的壓縮將與其前面的訊框有關,所以解壓縮時,亦必須依序由該完整訊框102開始解壓縮,而在訊框群組101的訊框總數M為4,且以該播放倍數K為2時,同時,目前播放的訊框係在完整訊框102(I4 )的狀態下,而若於實施本情況時,須依序將完整訊框102(I4、 I3 )、前向參考訊框103()、完整訊框102(I2 )及前向參考訊框103()放入至一接收緩衝空間105(Receive_Buffer)內,並依序將該接收緩衝空間105內之訊框解壓縮,並將解壓縮後的訊框存放於解碼緩衝空間106(Decoded_Buffer)內,緊接著再透過下述演算法(Fast-backward play algorithm)將該解碼緩衝空間106內的訊框依序讀出至播放緩衝空間107(Playback_Buffer)內,以進行播放;而其餘播放規則亦僅須依照前述規定進行播放,故在此不再加以贅述。Still referring to the second figure, when operating the video film 100 in the reverse backwards, since the image compression is based on the frame group 101, the compression of the frame in the same frame group 101 will be It is related to the previous frame. Therefore, when decompressing, the complete frame 102 must be decompressed in order, and the total number of frames M in the frame group 101 is 4, and when the playback multiple K is 2 At the same time, the frame currently being played is in the state of the complete frame 102 (I 4 ), and if the present situation is implemented, the complete frame 102 (I 4 , I 3 ) and the forward reference message must be sequentially followed. Box 103 ( ), complete frame 102 (I 2 ) and forward reference frame 103 ( Put into a receiving buffer space 105 (Receive_Buffer), and sequentially decompress the frame in the receiving buffer space 105, and store the decompressed frame in the decoding buffer space 106 (Decoded_Buffer), Then, the frame in the decoding buffer space 106 is sequentially read into the play buffer space 107 (Playback_Buffer) for playback by the following method (Fast-backward play algorithm); and the remaining play rules are only required to be followed. The foregoing provisions are played, so they will not be described here.
Fast-backward play algorithmFast-backward play algorithm
1:if(Decoded_Buffer non empty)then1:if(Decoded_Buffer non empty)then
2:A=Read(Decoded_Buffer);2: A = Read (Decoded_Buffer);
3:if(A=I Frame)then3: if (A=I Frame) then
5:while(non empty of stack)5:while(non empty of stack)
6:Pop stack to Playback_Buffer;6: Pop stack to Playback_Buffer;
7:Push A to stack;7:Push A to stack;
8:else8:else
9:Push A to stack;9:Push A to stack;
10:else10:else
11:Pop stack to Playback_Buffer;11: Pop stack to Playback_Buffer;
茲,再將本發明之特徵及其可達成之預期功效陳述如下:本發明數位視訊之K倍速快轉方法,係可提供錄放影機(video cassette recorder,VCR)功能操作,且更可降低錄放影機操作後之等待時間。The features of the present invention and the achievable expected effects thereof are as follows: The K-speed fast-forward method of the digital video of the present invention can provide a video cassette recorder (VCR) function operation, and can further reduce the recording and playback. Waiting time after the operation of the camera.
綜上所述,本發明在同類產品中實有其極佳之進步實用性,同時遍查國內外關於此類結構之技術資料,文獻中亦未發現有相同的構造存在在先,是以,本發明實已具備發明專利要件,爰依法提出申請。In summary, the present invention has excellent advancement and practicability in similar products, and at the same time, the technical materials of such structures are frequently investigated at home and abroad, and the same structure is not found in the literature. The invention already has the invention patent requirements, and the application is filed according to law.
惟,以上所述者,僅係本發明之一較佳可行實施例而已,故舉凡應用本發明說明書及申請專利範圍所為之等效結構變化,理應包含在本發明之專利範圍內。However, the above-mentioned ones are merely preferred embodiments of the present invention, and the equivalent structural changes of the present invention and the scope of the claims are intended to be included in the scope of the present invention.
100‧‧‧視訊影片100‧‧‧ video
101‧‧‧訊框群組101‧‧‧ Frame Group
102‧‧‧完整訊框102‧‧‧Full frame
103‧‧‧前向參考訊框103‧‧‧Forward reference frame
104‧‧‧訊框循環104‧‧‧ Frame loop
105‧‧‧接收緩衝空間105‧‧‧ Receiving buffer space
106‧‧‧解碼緩衝空間106‧‧‧Decoding buffer space
107‧‧‧播放緩衝空間107‧‧‧Play buffer space
第一圖係本發明快轉(Fast forward)之訊框播放示意圖。The first figure is a schematic diagram of the frame playback of the Fast Forward of the present invention.
第二圖係本發明反向快轉(fast backward)之訊框播放示意圖。The second figure is a schematic diagram of the frame playback of the fast backward of the present invention.
100‧‧‧視訊影片100‧‧‧ video
101‧‧‧訊框群組101‧‧‧ Frame Group
102‧‧‧完整訊框102‧‧‧Full frame
103‧‧‧前向參考訊框103‧‧‧Forward reference frame
104‧‧‧訊框循環104‧‧‧ Frame loop
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99117305A TWI404416B (en) | 2010-05-28 | 2010-05-28 | Digital speed conversion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW99117305A TWI404416B (en) | 2010-05-28 | 2010-05-28 | Digital speed conversion method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201143428A TW201143428A (en) | 2011-12-01 |
TWI404416B true TWI404416B (en) | 2013-08-01 |
Family
ID=46765325
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW99117305A TWI404416B (en) | 2010-05-28 | 2010-05-28 | Digital speed conversion method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI404416B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6707984B2 (en) * | 2001-10-31 | 2004-03-16 | Thomson Licensing S.A. | Changing a playback speed for video presentation recorded in a modified film format |
TW589898B (en) * | 2001-11-15 | 2004-06-01 | Ind Tech Res Inst | Methods and systems for video streaming with VCR functionality |
TWI227469B (en) * | 2001-06-18 | 2005-02-01 | Thomson Licensing Sa | System and method for changing a playback speed for video presentation recorded in a non-progressive frame structure format |
TW200737965A (en) * | 2006-03-17 | 2007-10-01 | Twinhan Technology Co Ltd | Digital TV time-shift controlling method |
-
2010
- 2010-05-28 TW TW99117305A patent/TWI404416B/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI227469B (en) * | 2001-06-18 | 2005-02-01 | Thomson Licensing Sa | System and method for changing a playback speed for video presentation recorded in a non-progressive frame structure format |
US6707984B2 (en) * | 2001-10-31 | 2004-03-16 | Thomson Licensing S.A. | Changing a playback speed for video presentation recorded in a modified film format |
TW589898B (en) * | 2001-11-15 | 2004-06-01 | Ind Tech Res Inst | Methods and systems for video streaming with VCR functionality |
TW200737965A (en) * | 2006-03-17 | 2007-10-01 | Twinhan Technology Co Ltd | Digital TV time-shift controlling method |
Also Published As
Publication number | Publication date |
---|---|
TW201143428A (en) | 2011-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9253533B1 (en) | Scene identification | |
US8660181B2 (en) | Method of compressing video data and a media player for implementing the method | |
US9077956B1 (en) | Scene identification | |
US20090282444A1 (en) | System and method for managing the presentation of video | |
EP1769318A2 (en) | Client-server architectures and methods for zoomable user interface | |
JP5745063B2 (en) | Semantic-based trick mode playback method in video system | |
CN113302928B (en) | System and method for transmitting multiple video streams | |
US20090055549A1 (en) | Content Reproduction Apparatus, Content Reproduction Method, and Program | |
JP2015173436A (en) | Method and system for playback of motion video | |
JP2006304304A (en) | Method and device for recording digital data | |
US7539393B2 (en) | Method and system for reverse playback of compressed data | |
CN1291598C (en) | Method of video frequency fast in fast out and normal speed restoring based on in frame coding image searching | |
TWI404416B (en) | Digital speed conversion method | |
US20190208271A1 (en) | Performing Trick Plays of Segmented Video Content | |
CN1672409A (en) | Trick play behavior controlled by a user | |
KR20110044723A (en) | Device and method for processing digital contents in digital video receiver | |
WO2007055445A1 (en) | A pre-viewing method of multiple movies or movie-clips in multimedia apparatus | |
Beach | Real world video compression | |
US7620293B2 (en) | Method and apparatus for controlling a bit rate of digital video data | |
CN117579843B (en) | Video coding processing method and electronic equipment | |
US20120057854A1 (en) | K rate fast-forwarding and backwarding mechanism for digital videos | |
GB2576798A (en) | Video stream batching | |
TW200537368A (en) | Transformation method and system of computer system for transforming a series of video signals | |
US9047914B1 (en) | Content navigation | |
TWI533704B (en) | Staggered video frame storage mechanism of point - to - point video on - demand streaming system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |