TWI796717B - Video editing device and video editing method - Google Patents
Video editing device and video editing method Download PDFInfo
- Publication number
- TWI796717B TWI796717B TW110123643A TW110123643A TWI796717B TW I796717 B TWI796717 B TW I796717B TW 110123643 A TW110123643 A TW 110123643A TW 110123643 A TW110123643 A TW 110123643A TW I796717 B TWI796717 B TW I796717B
- Authority
- TW
- Taiwan
- Prior art keywords
- key
- signal
- segment
- video
- time
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 36
- 238000012545 processing Methods 0.000 claims abstract description 28
- 239000000284 extract Substances 0.000 claims description 7
- 239000012634 fragment Substances 0.000 abstract description 3
- 238000012937 correction Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44016—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4781—Games
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8173—End-user applications, e.g. Web browser, game
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Television Signal Processing For Recording (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
- Image Analysis (AREA)
Abstract
Description
本案是關於一種影片剪輯裝置及影片剪輯方法。This case relates to a video editing device and a video editing method.
當玩家於遊戲主機執行電玩遊戲後,玩家欲分享電玩遊戲最精彩的過程影片,此時玩家需在執行遊戲時手動錄製遊戲過程,以產生遊戲過程之影片,並於遊戲結束後,針對已錄製的遊戲過程影片花費時間去瀏覽,再將欲節錄的遊戲精彩部分擷取下來並串連成一精華影片。After the player executes the video game on the game console, the player wants to share the most exciting process video of the video game. At this time, the player needs to manually record the game process while running the game to generate a video of the game process. After the game is over, for the recorded It takes time to browse the video of the game process, and then extract the highlights of the game to be excerpted and concatenate them into an elite video.
若玩家執行電玩遊戲的時間很長,則錄製遊戲過程之影片總時間長度也會很長。玩家則需花大量時間找尋欲節錄的遊戲精彩部分並擷取下來,由於玩家以人工的方式判斷遊戲精采部分,並以人工操作電腦的方式剪輯影片,玩家將會耗費大量人力成本及時間成本。If the player executes the video game for a long time, the total time length of the video recording the game process will also be very long. Players need to spend a lot of time looking for the highlights of the game to be excerpted and extracting them. Since the players judge the highlights of the game manually and edit the video by manually operating the computer, the player will spend a lot of manpower and time.
在一些實施例中,本揭露提供一種影片剪輯裝置,其連接影片源裝置以及控制裝置,影片剪輯裝置包含按鍵分析單元及影片處理單元。按鍵分析單元自控制裝置接收複數按鍵訊號,並分析按鍵訊號來取得對應於關鍵按鍵資訊的時間戳記 。影片處理單元自按鍵分析單元接收時間戳記,並自影片源裝置接收待剪輯影片。影片處理單元自待剪輯影片中擷取對應時間戳記的至少一剪輯影片片段,並依據至少一剪輯影片片段生成並輸出剪輯後影片。其中,待剪輯影片的總時間長度對應於複數按鍵訊號的總時間長度,剪輯後影片的總時間長度小於待剪輯影片的總時間長度。In some embodiments, the present disclosure provides a video editing device, which is connected to a video source device and a control device, and the video editing device includes a key analysis unit and a video processing unit. The key analysis unit receives multiple key signals from the control device, and analyzes the key signals to obtain time stamps corresponding to key key information. The video processing unit receives the time stamp from the key analysis unit, and receives the video to be edited from the video source device. The video processing unit extracts at least one video clip corresponding to the time stamp from the video to be edited, and generates and outputs an edited video according to the at least one video clip. Wherein, the total time length of the video to be edited corresponds to the total time length of the plurality of key signals, and the total time length of the edited video is less than the total time length of the video to be edited.
在一些實施例中,本揭露提供一種影片剪輯方法,其包含接收複數按鍵訊號;依據複數按鍵訊號取得至少一關鍵按鍵資訊;依據至少一關鍵按鍵資訊取得對應之時間戳記;擷取待剪輯影片中對應時間戳記的至少一剪輯影片片段;及依據至少一剪輯影片片段生成並輸出剪輯後影片。其中,待剪輯影片的總時間長度對應於複數按鍵資訊的總時間長度,剪輯後影片的總時間長度小於待剪輯影片的總時間長度。In some embodiments, the present disclosure provides a video editing method, which includes receiving multiple key signals; obtaining at least one key key information according to the multiple key signals; obtaining corresponding time stamps according to at least one key key information; and capturing the video to be edited at least one video clip segment corresponding to the time stamp; and generating and outputting an edited video according to the at least one video clip segment. Wherein, the total time length of the video to be edited corresponds to the total time length of the plurality of button information, and the total time length of the edited video is less than the total time length of the video to be edited.
綜上所述,在根據任一實施例之影片剪輯裝置或任一實施例之影片剪輯方法的應用下,使用者不須在遊戲時同時人工錄製遊戲畫面,並且不需於結束後才人工剪輯遊戲過程。使用者可透過影片剪輯裝置中之按鍵分析單元分析複數按鍵訊號取得對應關鍵按鍵資訊的時間戳記,並且影片處理單元自待剪輯影片中擷取對應時間戳記的剪輯影片片段,最後生成為精華片段影片之剪輯後影片,可大量節省人力成本及時間成本,替使用者省去後製影片的費工。To sum up, under the application of the video editing device according to any embodiment or the video editing method of any embodiment, the user does not need to manually record the game screen at the same time during the game, and does not need to manually edit it after the game is over. game process. The user can analyze the multiple key signals through the key analysis unit in the video editing device to obtain the time stamp corresponding to the key key information, and the video processing unit extracts the edited video fragments corresponding to the time stamp from the video to be edited, and finally generates a highlight video The edited video can save a lot of labor cost and time cost, and save the user the labor of post-production video.
請參照圖1,本揭露提供一影片剪輯裝置300,其連接影片源裝置100及控制裝置200。其中,影片源裝置100可為遊戲機之主機,控制裝置200可為遊戲機之搖桿或鍵盤。當使用者操控控制裝置200上之按鍵執行影片源裝置100中之電玩遊戲時,影片剪輯裝置300會同步擷取並儲存按鍵訊號S1,同時影片剪輯裝置300自影片源裝置100取得並自動錄製遊戲過程畫面而生成影片(或影片剪輯裝置300自影片源裝置100接收遊戲過程畫面之影片),接著,影片剪輯裝置300根據計算各個按鍵訊號S1的種類、出現數量及出現頻率,即可剪輯出在遊戲過程中之連續精華片段。因此,使用者不須在遊戲時人工錄製遊戲畫面,並且不需於結束後才人工剪輯遊戲過程,透過執行影片剪輯裝置300可大量節省人力成本及時間成本。後續會詳述本揭露的技術內容。Please refer to FIG. 1 , the present disclosure provides a
在一實施例中,本揭露的影片剪輯裝置300包含按鍵分析單元310及影片處理單元320。按鍵分析單元310耦接影片處理單元320與控制裝置200,影片處理單元320耦接影片源裝置100。In one embodiment, the
遊戲過程中,當使用者按下控制裝置200之按鍵時,控制裝置200即產生對應被按下的多個按鍵的複數按鍵訊號S1。此時,按鍵分析單元310可自控制裝置200接收複數按鍵訊號S1(如圖2所示的步驟S100),其中,各按鍵訊號S1包含用以控制遊戲過程畫面中受控目標(如,遊戲腳色等)的執行動作之按鍵資訊。During the game, when the user presses a button of the
請同時參閱圖1及圖2,按鍵分析單元310自複數按鍵訊號S1中取得至少一關鍵按鍵資訊(步驟S200)。具體而言,於取得按鍵訊號S1(步驟S100)後,按鍵分析單元310會將此些按鍵訊號S1的按鍵資訊進行運算以從此些按鍵訊號S1的按鍵資訊中選出一個或多個按鍵資訊,而被挑選出的按鍵資訊即為關鍵按鍵資訊(步驟S200)。其中,各按鍵訊號S1還具有用以表示此按鍵訊號S1的產生時間之時間戳記T1。在任一遊戲過程畫面播放時,使用者可為了操控此遊戲過程畫面中的受控目標而操控控制裝置200以生成按鍵訊號S1。換言之,按鍵訊號S1的生成與此按鍵訊號S1所欲控制的受控目標所在的遊戲過程畫面的播放同步。由於各按鍵訊號S1是為了控制某一遊戲過程畫面上受控目標的執行動作而生成,因此各按鍵訊號S1的時間戳記T1會相同於受控目標所在的遊戲過程畫面的時間戳記(即此遊戲過程畫面的播放時間)。而影片中其時間戳記與關鍵按鍵資訊所屬的按鍵訊號S1的時間戳記T1相同的遊戲過程畫面即為使用者欲剪輯的精華片段畫面。Please refer to FIG. 1 and FIG. 2 at the same time, the
當按鍵分析單元310自複數按鍵訊號S1中取得各關鍵按鍵資訊(步驟S200)時,按鍵分析單元310會依據關鍵按鍵資訊取得對應之時間戳記T1(步驟S300),並發送時間戳記T1至影片處理單元320。換言之,按鍵分析單元310會取得此些關鍵按鍵資訊所屬的按鍵訊號S1的時間戳記T1(步驟S300)並將取得的時間戳記T1發送給影片處理單元320。When the
接著,影片處理單元320自影片源裝置100接收待剪輯影片F1(步驟S400)。於一實施例中,待剪輯影片F1為使用者在執行影片源裝置100之電玩遊戲時,影片源裝置100當下記錄遊戲過程畫面而獲得之影片。於另一實施例中,待剪輯影片F1為影片剪輯裝置300於遊戲過程中即時自影片源裝置100接收並儲存而生成。Next, the
影片處理單元320接收來自按鍵分析單元310之時間戳記T1,並且自待剪輯影片F1中擷取對應時間戳記T1的至少一剪輯影片片段(步驟S500)。也就是說,影片處理單元320將對應於各關鍵按鍵資訊的時間戳記T1對應至待剪輯影片F1中所記錄的影片時間資訊,並且將待剪輯影片F1中對應時間戳記T1的影片片段(即其是由連續時間的一個或多個遊戲過程畫面所構成)擷取下來而作為至少一剪輯影片片段,是以剪輯影片片段中記錄的影片時間資訊對應於時間戳記T1。於此,關鍵按鍵資訊是從按鍵分析單元310接收到的所有按鍵訊號S1的按鍵資訊從挑選出的一部份按鍵資訊,因此影片處理單元320可根據關鍵按鍵資訊所屬的按鍵訊號S1的時間戳記T1從待剪輯影片F1的所有遊戲過程畫面中剪輯出其時間戳記對應於時間戳記T1的一部分的遊戲過程畫面以作為剪輯影片片段。各剪輯影片片段包括時間連續的一個或多個時間戳記T1所對應的遊戲過程畫面。在一些實施例中,構成剪輯影片片段的遊戲過程畫面在待剪輯影片F1中的播放時間相同於所有關鍵按鍵資訊所屬的按鍵訊號S1的生成時間,即剪輯影片片段的遊戲過程畫面在待剪輯影片F1中的時間戳記相同於所有關鍵按鍵資訊所屬的按鍵訊號S1的時間戳記T1。The
然後,影片處理單元320將擷取到的至少一剪輯影片片段整合連接在一起,以生成並輸出剪輯後影片F2(步驟S600)。於一實施例中,影片處理單元320將各剪輯影片片段的啟始端與前一剪輯影片片段之末端連接,以及將各剪輯影片片段末端與後一剪輯影片片段之啟始端連接,以合成生成剪輯後影片F2。其中,由於每一按鍵訊號S1是用以控制待剪輯影片F1中某一遊戲過程畫面中受控目標的執行動作,因此待剪輯影片F1的總時間長度大於或等於按鍵訊號S1的總時間長度。剪輯後影片F2為經過剪輯後之精華片段影片,即其所包含的遊戲過程畫面分別時間上對應於經挑選後的按鍵資訊(即關鍵按鍵資訊),是以剪輯後影片F2的總時間長度小於待剪輯影片F1的總時間長度且小於按鍵分析單元310所接收到的按鍵訊號S1的總時間長度。Then, the
基此,使用者不須在遊戲時同時人工錄製遊戲畫面,並且不需於結束後才人工剪輯遊戲過程。使用者透過按鍵分析單元310分析複數按鍵訊號S1取得對應關鍵按鍵資訊的時間戳記T1,並且影片處理單元320自待剪輯影片F1中擷取對應時間戳記T1的剪輯影片片段,最後生成為精華片段影片之剪輯後影片F2,可大量節省人力成本及時間成本,替使用者省去人工製作影片時的不便與費工。Based on this, the user does not need to manually record the game screen while playing the game, and does not need to manually edit the game process after the game is over. The user analyzes the multiple key signal S1 through the
在一些實施例中,請參閱圖3,各按鍵訊號S10-S19的按鍵資訊對應於操控控制裝置200而產生按鍵訊號S1之按鍵種類。於此,控制裝置200之按鍵種類包含箭頭(包含上下左右四個方向)、三角形、圓形、叉號、正方形或其任意組合等。舉例來說,當使用者按壓控制裝置200中之向上鍵頭按鍵,控制裝置200產生包含向上鍵頭資訊之按鍵訊號S10,即按鍵訊號S10的按鍵資訊為向上鍵頭資訊;當使用者同時按壓控制裝置200中之向上鍵頭按鍵及三角型按鍵,控制裝置200產生包含向上鍵頭按鍵資訊及三角型按鍵資訊之按鍵訊號S11,即按鍵訊號S11的二按鍵資訊分別為向上鍵頭按鍵資訊及三角型按鍵資訊。其餘按鍵種類及其對應的按鍵資訊可依此類推,於此不再贅述。In some embodiments, please refer to FIG. 3 , the key information of each key signal S10 - S19 corresponds to the type of key that is manipulated to generate the key signal S1 by manipulating the
為了使按鍵分析單元310在運作過程中能達到更好的效率,在一些實施例中,按鍵分析單元310可將按鍵訊號S1依據產生之時間順序對應分配,以產生複數訊號時間片段(步驟S210)。其中,按鍵分析單元310所產生的訊號時間片段之數量可為調整的,且每一訊號時間片段所分配之按鍵訊號S1的數量亦為可調整的。In order to enable the
在一些實施例中,按鍵分析單元310是將一段時間內由按鍵產生的多個按鍵訊號S1依產生時間分為複數群,因此,每一按鍵訊號群即為一訊號時間片段。In some embodiments, the
在一些實施例中,在一段時間內由控制裝置200產生的多個按鍵訊號S10-S19其中至少一者重複分配至相鄰的二訊號時間片段中。舉例來說,參照圖3,對於相鄰訊號時間片段,在前的訊號時間片段C1/C2中產生時間最晚的按鍵訊號S13/S16與在後的訊號時間片段C2/C3中產生時間最早的按鍵訊號S13/S16為同一個按鍵訊號S13/S16。本發明並非以此實施例為限制,其視需求所做的調整皆為本案之範疇。In some embodiments, at least one of the plurality of key signals S10 - S19 generated by the
舉例來說,參照圖3,以連續產生的10個按鍵訊號S10-S19為例,按鍵訊號S10-S19是依照產生順序排列,按鍵訊號S10為最先產生,按鍵訊號S19為最後產生。按鍵分析單元310將按鍵訊號S10-S19依據產生之時間順序對應分配而產生3個訊號時間片段C1-C3。其中,依據按鍵訊號S10-S19產生之時間順序,訊號時間片段C1可包含按鍵訊號S10-S13,訊號時間片段C2可包含按鍵訊號S13-S16,並且訊號時間片段C3可包含按鍵訊號S16-S19。換言之,按鍵訊號S13重複分配於訊號時間片段C1、C2,並且在訊號時間片段C1中為最後一個,而在訊號時間片段C2中則為第一個。按鍵訊號S16於訊號時間片段C2中重複分配於最後一個以及訊號時間片段C3重複分配於第一個。於此,雖以10個按鍵訊號S10-S19為例,但按鍵分析單元310進行分析的按鍵訊號S1之數量並不限於此,換言之,按鍵分析單元310進行分析的按鍵訊號S1之數量為可調整的。For example, referring to FIG. 3 , taking 10 key signals S10 - S19 generated continuously as an example, the key signals S10 - S19 are arranged in order of generation, the key signal S10 is generated first, and the key signal S19 is generated last. The
在另一些實施例中,如圖4所示,在一段時間內由控制裝置200之按鍵所產生的多個按鍵訊號S10-S19其中的任一者只分配至一訊號時間片段中。也就是說,按鍵訊號S10-S19不會重複分配到不同的訊號時間片段。In some other embodiments, as shown in FIG. 4 , any one of the plurality of key signals S10 - S19 generated by the keys of the
舉例來說,參照圖4,以連續產生的10個按鍵訊號S10-S19為例,按鍵分析單元310將按鍵訊號S10-S19依據產生之時間順序對應分配而產生3個訊號時間片段C1-C3。依據按鍵訊號S10-S19產生之時間順序,訊號時間片段C1可包含按鍵訊號S10-S13,訊號時間片段C2可包含按鍵訊號S14-S17,並且訊號時間片段C3可包含按鍵訊號S18-S19。For example, referring to FIG. 4 , taking 10 continuously generated key signals S10 - S19 as an example, the
在一些實施例中,請參照圖5及圖6,以7個訊號時間片段C1-C7為例子說明本案如何取得關鍵訊號區段,以進一步能剪輯出精彩遊戲片段。在步驟S200中,按鍵分析單元310在接收到複數按鍵訊號S10~S31後,按鍵分析單元310將複數按鍵訊號S10~S31依據產生的時間戳記T1對應分配以產生複數訊號時間片段C1-C7(步驟S210)。舉例來說,以複數按鍵訊號S1為圖6所示之複數按鍵訊號S10-S31為例,按鍵分析單元310產生包含按鍵訊號S10-S13的訊號時間片段C1、包含按鍵訊號S13-S16的訊號時間片段C2、包含按鍵訊號S16-S19的訊號時間片段C3、包含按鍵訊號S19-S22的訊號時間片段C4、包含按鍵訊號S22-S25的訊號時間片段C5、包含按鍵訊號S25-S28的訊號時間片段C6、以及包含按鍵訊號S28-S31的訊號時間片段C7。In some embodiments, please refer to FIG. 5 and FIG. 6 , taking seven signal time segments C1-C7 as an example to illustrate how to obtain key signal segments in this case, so as to further edit exciting game segments. In step S200, after the
按鍵分析單元310依據複數按鍵訊號S10-S31計算訊號時間片段C1-C7對應的複數按鍵訊號量E1-E7(步驟S220)。接著,按鍵分析單元310比對每一按鍵訊號量E1-E7與一訊息量預設值V1(步驟S230),藉以判斷每一訊號時間片段C1-C7所對應的每一按鍵訊號量E1-E7是否大於訊息量預設值V1(步驟S240)。The
於此,當按鍵訊號量E1-E7中之任一者大於訊息量預設值V1(判斷結果為「是」)時,按鍵分析單元310取得所述按鍵訊號量大於訊息量預設值V1之一個或多個訊號時間片段,並且將取得的訊號時間片段作為第一關鍵訊號區段(步驟S250)。當按鍵訊號量E1-E7中之任一者小於或等於訊息量預設值V1(判斷結果為「否」)時,按鍵分析單元310即放棄(不取得)所述按鍵訊號量小於或等於訊息量預設值V1之訊號時間片段,即不以按鍵訊號量小於或等於訊息量預設值V1之訊號時間片段作為第一關鍵訊號區段。Here, when any one of the key signal amounts E1-E7 is greater than the predetermined value V1 of the message amount (the judgment result is “Yes”), the
在一些實施例中,按鍵分析單元310取得第一關鍵訊號區段中的複數按鍵訊號的按鍵資訊作為前述至少一關鍵按鍵資訊(步驟S270)。換言之,關鍵按鍵資訊為所有訊號時間片段中其按鍵訊號量大於訊息量預設值V1的按鍵資訊。In some embodiments, the
舉例來說,如圖6所示,按鍵分析單元310將複數按鍵訊號S1對應分配以產生複數訊號時間片段C1-C7,按鍵分析單元310根據訊號時間片段C1中之按鍵訊號S10-S13計算而得按鍵訊號量E1,即按鍵分析單元310根據按鍵訊號S10-S13中的按鍵資訊計算而得按鍵訊號量E1。類似地,按鍵分析單元310亦能根據訊號時間片段C2-C7中之按鍵訊號S13-S31計算而得按鍵訊號量E2-E7。按鍵分析單元310比對按鍵訊號量E1、E2與訊息量預設值V1,可得知按鍵訊號量E1、E2小於訊息量預設值V1。按鍵分析單元310比對按鍵訊號量E3與訊息量預設值V1,可得知按鍵訊號量E3大於訊息量預設值V1。按鍵分析單元310依前述類推完成按鍵訊號量E4-E7與訊息量預設值V1之比對。在比對之後,按鍵分析單元310取得按鍵訊號量大於訊息量預設值V1的訊號時間片段C3-C5,並且將訊號時間片段C3-C5作為第一關鍵訊號區段。按鍵分析單元310依據對應第一關鍵訊號區段中的複數按鍵訊號S16-S25的按鍵資訊作為前述的關鍵按鍵資訊。For example, as shown in FIG. 6 , the
在步驟S220的一些實施例中,按鍵分析單元310可依據各種按鍵資訊的權重比例來計算每一訊號時間片段C1-C7的按鍵訊號量E1~E7。在一些實施例中,按鍵分析單元310可利用熵(Entropy)算法來獲得每一訊號時間片段C1-C7的按鍵訊號量E1~E7。按鍵分析單元310分別根據對應待剪輯影片F1的所有按鍵訊號S1的按鍵資訊計算每一種按鍵種類的按鍵資訊之本體資訊(self-information)值,並且利用所有按鍵種類的按鍵資訊之本體資訊值計算出整體熵值。按鍵分析單元310根據各按鍵種類的按鍵資訊之本體資訊值將每一訊號時間片段C1-C7中按鍵訊號S1之本體資訊值取平均,以計算出每一訊號時間片段C1-C7之平均資訊值。最後,按鍵分析單元310將對應每一訊號時間片段C1-C7之平均資訊值除以整體熵值,以取得每一訊號時間片段C1-C7的按鍵訊號量E1-E7。於此,每一訊號時間片段C1-C7的按鍵訊號量E1-E7能表示此訊號時間片段C1-C7中的按鍵訊號S1在整體 (即對應待剪輯影片F1的所有按鍵訊號S1)的佔比。其中,上述熵算法僅是以一個例子說明,本發明不以此為限制;舉例來說,在一些實施例中,前述包含整體熵值、本體資訊值與按鍵訊號量E1~E7亦可以使用其他類似熵算法概念之演算法取得。In some embodiments of step S220, the
在一些實施例中,各按鍵種類的按鍵資訊之本體資訊值可透過將此按鍵種類的按鍵資訊在所有按鍵訊號S1中的出現機率做數學運算(如加減乘除、取對數、開根號等各種數學運算)而得。如此,所得到的按鍵種類的按鍵資訊之本體資訊值相當於此按鍵種類的按鍵資訊於全體中的權重比例。整體熵值則為各按鍵種類之本體資訊值與其出現機率乘積的加總。In some embodiments, the body information value of the key information of each key type can be calculated by performing mathematical operations (such as addition, subtraction, multiplication, division, logarithm, square root, etc.) Mathematical operations) are obtained. In this way, the obtained body information value of the button information of the button type is equivalent to the weight ratio of the button information of this button type in the whole. The overall entropy value is the sum of the product of the ontology information value of each key type and its occurrence probability.
在另一些實施例中,於取得第一關鍵訊號區段後,按鍵分析單元310可根據第一關鍵訊號區段(如C3-C5)以外的剩餘訊號時間片段(如C1、C2、C6、C7)與第一關鍵訊號區段中鄰近剩餘訊號時間片段(如C1、C2、C6、C7)的訊號時間片段(如C3、C5)之間的相似程度(如D1、D2、D6、D7)來篩選剩餘訊號時間片段,以確認其是否為關鍵訊號時間片段,並將篩選出的關鍵訊號時間片段作為第二關鍵訊號區段(步驟S260)。In some other embodiments, after obtaining the first key signal segment, the
然後,按鍵分析單元310取得第一關鍵訊號區段與第二關鍵訊號區段中的複數按鍵訊號的按鍵資訊作為前述至少一關鍵按鍵資訊(步驟S270)。換言之,關鍵按鍵資訊除了包含所有訊號時間片段中其按鍵訊號量大於訊息量預設值V1之至少一訊號時間片段所包含的按鍵訊號的按鍵資訊之外,還包含按鍵訊號量小於訊息量預設值V1的訊號時間片段中與第一關鍵訊號區段相似的至少一訊號時間片段所包含的按鍵訊號的按鍵資訊。Then, the
在一些實施例中,參照圖7,按鍵分析單元310取得第一關鍵訊號區段中位於起始位置的訊號時間片段作為基準片段(步驟S261),以基準片段的前一訊號時間片段作為候補片段(步驟S262),並且計算基準片段與候補片段之間的相關連程度,即基準片段與候補片段的相似程度(步驟S263)。在一些實施例中,按鍵分析單元310可使用動態時間校正(Dynamic Time Warping;DTW)算法計算基準片段與候補片段之間的第一相似程度。於此,基準片段與候補片段的經過DTW算法後得出的分數越小表示基準片段與候補片段之間的相似程度越高。但本發明並非為限制,於一些實施例中,基準片段與候補片段可透過其他演算法來判斷出其相似程度的高低。In some embodiments, referring to FIG. 7 , the
然後,按鍵分析單元310比較相似程度與相似預設值V2(步驟S264),藉以判斷相似程度是否小於相似預設值V2(步驟S265)。Then, the
於此,當相似程度小於相似預設值V2(判斷結果為「是」)時,按鍵分析單元310將候補片段加入合格時間片段(步驟S266),並確認當前的候補片段之前還有沒有訊號時間片段(步驟S267a);若有,則取候補片段之前的訊號時間片段作為新的候補片段(步驟S267b),並返回執行步驟S263以進行此新的候補片段與前述基準片段(即第一關鍵訊號區段中位於起始位置的訊號時間片段)的相似程度判斷;反之,若無,則將累積的合格時間片段作為第二關鍵訊號區段(步驟S269)。當相似程度大於或等於相似預設值V2(判斷結果為「否」)時,按鍵分析單元310即放棄(不取得)當前的候補片段(步驟S268)並將累積的合格時間片段作為第二關鍵訊號區段(步驟S269)。Here, when the similarity degree is less than the similarity preset value V2 (the judgment result is "Yes"), the
在一些實施例中,參照圖8,按鍵分析單元310取得第一關鍵訊號區段中位於最後位置的訊號時間片段作為基準片段(步驟S261’),取得基準片段的下一訊號時間片段作為候補片段(步驟S262’),並且計算基準片段與候補片段之間的相關連程度,即基準片段與候補片段的相似程度(步驟S263’)。然後,按鍵分析單元310比較相似程度與相似預設值V2(步驟S264’),藉以判斷相似程度是否小於相似預設值V2(步驟S265’)。In some embodiments, referring to FIG. 8 , the
於此,當相似程度小於相似預設值V2(判斷結果為「是」)時,按鍵分析單元310將候補片段加入合格時間片段(步驟S266’),並確認當前的候補片段之後還有沒有訊號時間片段(步驟S267a’);若有,則取候補片段之後的訊號時間片段作為新的候補片段(步驟S267b’),並返回執行S263’以進行此新的候補片段與前述基準片段(即第一關鍵訊號區段中位於最後位置的訊號時間片段)的相似程度判斷;反之,若無,則將累積的合格時間片段作為第二關鍵訊號區段(步驟S269’)。當相似程度大於或等於相似預設值V2(判斷結果為「否」)時,按鍵分析單元310即放棄(不取得)當前的候補片段(步驟S268’)並將累積的合格時間片段作為第二關鍵訊號區段(步驟S269’)。Here, when the similarity degree is less than the similarity preset value V2 (the judgment result is "Yes"), the
在一些實施例中,按鍵分析單元310亦可在以第一關鍵訊號區段中位於的起始位置的訊號時間片段篩選完第一關鍵訊號區段之前的訊號時間片段後,接續以第一關鍵訊號區段中位於的最後位置的訊號時間片段篩選第一關鍵訊號區段之後的訊號時間片段,以找出第二關鍵訊號區段,如圖9所示。在另一些實施例中,按鍵分析單元310亦可在以第一關鍵訊號區段中位於的最後位置的訊號時間片段篩選完第一關鍵訊號區段之後的訊號時間片段後,接續以第一關鍵訊號區段中位於的起始位置的訊號時間片段篩選第一關鍵訊號區段之前的訊號時間片段,以找出第二關鍵訊號區段,如圖10所示。In some embodiments, the
舉例來說,假設圖6所示之7個訊號時間片段C1-C7中的第一關鍵訊號區段為訊號時間片段C3-C5。按鍵分析單元310先取得第一關鍵訊號區段中位於起始位置的訊號時間片段C3作為基準片段,並取得訊號時間片段C3的前一訊號時間片段C2作為候補片段。然後,按鍵分析單元310依據訊號時間片段C2(即候補片段)中的複數按鍵訊號S13-S16及訊號時間片段C3(即基準片段)中的按鍵訊號S16-S19,使用動態時間校正算法計算訊號時間片段C2與訊號時間片段C3之間的相似程度D2,並比較相似程度D2與相似預設值V2。For example, suppose the first key signal segment among the seven signal time segments C1-C7 shown in FIG. 6 is the signal time segment C3-C5. The
當相似程度D2小於相似預設值V2時,按鍵分析單元310將當前的候補片段(即訊號時間片段C2)加入合格時間片段,接著再取得候補片段(即訊號時間片段C2)的前一訊號時間片段C1作為新的候補片段。然後,按鍵分析單元310依據訊號時間片段C1(即當前的候補片段)中的複數按鍵訊號S10-S13及訊號時間片段C3(即基準片段)中的按鍵訊號S13-S16,使用動態時間校正算法計算訊號時間片段C1與訊號時間片段C3之間的相似程度D1,並比較相似程度D1與相似預設值V2。於此,當比較結果為訊號時間片段C1與訊號時間片段C3之間的相似程度D1大於或等於相似預設值V2時,按鍵分析單元310捨棄訊號時間片段C1。When the similarity degree D2 is less than the similar preset value V2, the
接著,按鍵分析單元310取得第一關鍵訊號區段中位於最後位置的訊號時間片段C5作為基準片段,並取得訊號時間片段C5(即基準片段)的下一訊號時間片段C6作為候補片段。然後,按鍵分析單元310依據訊號時間片段C6(即候補片段)中的複數按鍵訊號S25-S28及訊號時間片段C5(即基準片段)中的按鍵訊號S22-S25,使用動態時間校正算法計算訊號時間片段C6與訊號時間片段C5之間的相似程度D6,並將計算得的相似程度D6與相似預設值V2比較。並且,當比較結果為訊號時間片段C5與訊號時間片段C6之間的相似程度D6大於或等於相似預設值V2時,按鍵分析單元310則捨棄訊號時間片段C6,並將累積的合格時間片段(即訊號時間片段C2)作為第二關鍵訊號區段。Next, the
在步驟S270的一些實施例中,於取得第一關鍵訊號區段與第二關鍵訊號區段後,按鍵分析單元310取得第一關鍵訊號區段與第二關鍵訊號區段中的複數按鍵訊號的按鍵資訊作為前述至少一關鍵按鍵資訊。In some embodiments of step S270, after obtaining the first key signal segment and the second key signal segment, the
在一些實施例中,訊息量預設值V1及相似預設值V2為可調整的。當訊息量預設值V1越大,按鍵分析單元310在比對按鍵訊號量與訊息量預設值V1時的條件設定較為嚴苛。因此,相對於訊息量預設值V1較小時所取得的訊號時間片段,訊息量預設值V1越大時所取得的訊號時間片段之數量較少,即第一關鍵訊號區段所包含之訊號時間片段較少。在相似預設值V2為固定的條件下,影片處理單元320生成並輸出之剪輯後影片F2的影片總時間長度則相對較短。In some embodiments, the message volume default value V1 and the similar default value V2 are adjustable. When the predetermined value V1 of the message volume is larger, the condition setting of the
反之,當訊息量預設值V1較小時,按鍵分析單元310在比對按鍵訊號量與訊息量預設值V1時的條件設定則較為簡單。並且,在相似預設值V2為固定的條件下,訊息量預設值V1較小,影片處理單元320生成並輸出之剪輯後影片F2的影片總時間長度則相對較長。On the contrary, when the preset message volume value V1 is small, the condition setting of the
而當相似預設值V2越大,按鍵分析單元310在篩選第一關鍵訊號區段之外的剩餘訊號時間片段時,其通過條件設定較為簡單。因此,相對於相似預設值V2較小時的判斷結果,相似預設值V2越大則第二關鍵訊號區段或剩餘訊號時間片段對應的複數按鍵訊號的按鍵資訊越容易成為關鍵按鍵資訊。在訊息量預設值V1為固定的條件下,相似預設值V2較大,影片處理單元320生成並輸出之剪輯後影片F2的影片總時間長度則相對較長。And when the similar preset value V2 is larger, the pass condition setting is simpler when the
反之,相似預設值V2越小,按鍵分析單元310在篩選第一關鍵訊號區段之外的剩餘訊號時間片段時通過條件設定較為嚴苛。並且,在訊息量預設值V1為固定的條件下,相似預設值V2較小,影片處理單元320生成並輸出之剪輯後影片F2的影片總時間長度則相對較短。On the contrary, the smaller the similar preset value V2 is, the stricter the pass condition setting is for the
綜上所述,在根據任一實施例之影片剪輯裝置或任一實施例之影片剪輯方法的應用下,使用者不須在遊戲時同時人工錄製遊戲畫面,並且不需於結束後才人工剪輯遊戲過程。使用者可透過影片剪輯裝置300中之按鍵分析單元310分析複數按鍵訊號S1取得對應關鍵按鍵資訊的時間戳記,並且影片處理單元320自待剪輯影片中擷取對應時間戳記的剪輯影片片段,最後生成為精華片段影片之剪輯後影片,可大量節省人力成本及時間成本,替使用者省去後製影片的費工。另外,在一些實施例中,依據熵算法及動態時間校正算法,影片剪輯裝置300可藉由調整訊息量預設值及相似預設值來決定剪輯後影片的影片總時間長度,使影片剪輯裝置300輸出之剪輯後影片的影片總時間長度能依照使用者彈性地調整。To sum up, under the application of the video editing device according to any embodiment or the video editing method of any embodiment, the user does not need to manually record the game screen at the same time during the game, and does not need to manually edit it after the game is over. game process. The user can analyze the multiple key signal S1 through the
雖然本案已以實施例揭露如上然其並非用以限定本案,任何所屬技術領域中具有通常知識者,在不脫離本案之精神和範圍內,當可作些許之更動與潤飾,故本案之保護範圍當視後附之專利申請範圍所界定者為準。Although this case has disclosed the above with the embodiment, it is not used to limit this case. Anyone with common knowledge in the technical field can make some changes and modifications without departing from the spirit and scope of this case. Therefore, the protection scope of this case What is defined in the scope of the attached patent application shall prevail.
100:影片源裝置 200:控制裝置 300:影片剪輯裝置 310:按鍵分析單元 320:影片處理單元 T1:時間戳記 F1:待剪輯影片 F2:剪輯後影片 S1:按鍵訊號 S10~S31:按鍵訊號 C1~C7:訊號時間片段 E1~E7:按鍵訊號量 D1~D2:相似程度 D6~D7:相似程度 V1:訊息量預設值 V2:相似預設值 S100-S600:步驟 S210-S270:步驟 S261-S269:步驟 S261’-S269’:步驟 100: Video source device 200: Control device 300: Video editing device 310: key analysis unit 320: Video processing unit T1: Timestamp F1: Video to be edited F2: Edited video S1: Key signal S10~S31: Button signal C1~C7: Signal time segment E1~E7: key signal quantity D1~D2: Degree of similarity D6~D7: Degree of similarity V1: default message volume V2: similar default S100-S600: Steps S210-S270: Steps S261-S269: Steps S261'-S269': steps
[圖1]為一實施例之影片剪輯裝置的方塊示意圖。 [圖2]為一實施例之影片剪輯方法之流程圖。 [圖3]為按鍵訊號及訊號時間片段之一實施例的示意圖。 [圖4]為按鍵訊號及訊號時間片段之另一實施例的示意圖。 [圖5]為圖2中步驟S200之一實施例之流程圖。 [圖6]為訊號時間片段及關鍵按鍵資訊之一實施例的示意圖。 [圖7]為圖5中步驟S260之第一實施例之流程圖。 [圖8]為圖5中步驟S260之第二實施例之流程圖。 [圖9]為圖5中步驟S260之第三實施例之流程圖。 [圖10]為圖5中步驟S260之第四實施例之流程圖。 [ FIG. 1 ] is a schematic block diagram of a video editing device of an embodiment. [ FIG. 2 ] is a flow chart of a video editing method of an embodiment. [ FIG. 3 ] is a schematic diagram of an embodiment of a button signal and a signal time segment. [ FIG. 4 ] is a schematic diagram of another embodiment of a button signal and a signal time segment. [ FIG. 5 ] is a flowchart of an embodiment of step S200 in FIG. 2 . [ FIG. 6 ] is a schematic diagram of an embodiment of signal time segments and key key information. [ FIG. 7 ] is a flow chart of the first embodiment of step S260 in FIG. 5 . [ FIG. 8 ] is a flowchart of a second embodiment of step S260 in FIG. 5 . [ FIG. 9 ] is a flowchart of a third embodiment of step S260 in FIG. 5 . [ FIG. 10 ] is a flowchart of a fourth embodiment of step S260 in FIG. 5 .
100:影片源裝置 200:控制裝置 300:影片剪輯裝置 310:按鍵分析單元 320:影片處理單元 S1:按鍵訊號 T1:時間戳記 F1:待剪輯影片 F2:剪輯後影片 100: Video source device 200: Control device 300: Video editing device 310: key analysis unit 320: Video processing unit S1: Key signal T1: Timestamp F1: Video to be edited F2: Edited video
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110123643A TWI796717B (en) | 2021-06-28 | 2021-06-28 | Video editing device and video editing method |
CN202111551109.0A CN115604407A (en) | 2021-06-28 | 2021-12-17 | Film editing device and film editing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110123643A TWI796717B (en) | 2021-06-28 | 2021-06-28 | Video editing device and video editing method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202301859A TW202301859A (en) | 2023-01-01 |
TWI796717B true TWI796717B (en) | 2023-03-21 |
Family
ID=84841975
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW110123643A TWI796717B (en) | 2021-06-28 | 2021-06-28 | Video editing device and video editing method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115604407A (en) |
TW (1) | TWI796717B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111556363A (en) * | 2020-05-21 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Video special effect processing method, device and equipment and computer readable storage medium |
US20200410241A1 (en) * | 2019-06-28 | 2020-12-31 | Nvidia Corporation | Unsupervised classification of gameplay video using machine learning models |
-
2021
- 2021-06-28 TW TW110123643A patent/TWI796717B/en active
- 2021-12-17 CN CN202111551109.0A patent/CN115604407A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200410241A1 (en) * | 2019-06-28 | 2020-12-31 | Nvidia Corporation | Unsupervised classification of gameplay video using machine learning models |
CN111556363A (en) * | 2020-05-21 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Video special effect processing method, device and equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115604407A (en) | 2023-01-13 |
TW202301859A (en) | 2023-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9278288B2 (en) | Automatic generation of a game replay video | |
JP6576557B2 (en) | Song determination method and apparatus, and storage medium | |
CN101303695B (en) | Device for processing a sports video | |
CN109194978A (en) | Live video clipping method, device and electronic equipment | |
Li et al. | A general framework for sports video summarization with its application to soccer | |
TW200536389A (en) | Intelligent key-frame extraction from a video | |
WO2000045604A1 (en) | Signal processing method and video/voice processing device | |
CN103546713B (en) | Moving image editing apparatus and method | |
KR20150082093A (en) | Evaluation program, evaluation method, and evaluation apparatus | |
CA3069853A1 (en) | Identifying previously streamed portions of a media title to avoid repetitive playback | |
CN111494941A (en) | Method and system for generating audiovisual content from video game segments | |
TWI796717B (en) | Video editing device and video editing method | |
WO2023040520A1 (en) | Method and apparatus for performing music matching of video, and computer device and storage medium | |
CN112995746B (en) | Video processing method and device and terminal equipment | |
TWI408950B (en) | Systems, methods and computer readable media having programs for analyzing sports video | |
CN111400542A (en) | Audio fingerprint generation method, device, equipment and storage medium | |
JP2000285242A (en) | Signal processing method and video sound processing device | |
JP6793169B2 (en) | Thumbnail output device, thumbnail output method and thumbnail output program | |
WO2017206450A1 (en) | Sound processing method and device | |
CN113542909A (en) | Video processing method and device, electronic equipment and computer storage medium | |
CN115022663A (en) | Live stream processing method and device, electronic equipment and medium | |
KR101434783B1 (en) | Scene fragment transmitting system, scene fragment trasnmitting method and recording medium | |
JP3931890B2 (en) | Video search method and apparatus | |
CN106028052A (en) | Method and device for continuously transmitting special effects in real-time video | |
JP4270703B2 (en) | Automatic person index generator |