TWI672946B - Method and device for playing video - Google Patents
Method and device for playing video Download PDFInfo
- Publication number
- TWI672946B TWI672946B TW107134799A TW107134799A TWI672946B TW I672946 B TWI672946 B TW I672946B TW 107134799 A TW107134799 A TW 107134799A TW 107134799 A TW107134799 A TW 107134799A TW I672946 B TWI672946 B TW I672946B
- Authority
- TW
- Taiwan
- Prior art keywords
- frame
- video
- difference
- value
- threshold
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 230000011218 segmentation Effects 0.000 claims abstract description 13
- 230000008859 change Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012913 prioritisation Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000003628 erosive effect Effects 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
本揭露提出一種播放視頻的方法,包括:接收一視頻,其中上述視頻係由複數幀所組成;判斷每一幀是否為一變動幀;根據上述判斷結果將上述視頻分為複數變動區段及複數無變動區段;對每一無變動區段中的一第一幀建立一分段旗標;以及根據上述分段旗標跳過上述無變動區段,以實現播放上述視頻中的上述變動區段。 The present disclosure provides a method for playing a video, comprising: receiving a video, wherein the video is composed of a plurality of frames; determining whether each frame is a variable frame; and dividing the video into a complex variable segment and a plurality according to the determination result. a non-changing section; establishing a segmentation flag for a first frame in each of the unchanging sections; and skipping the non-changing section according to the segmentation flag to play the above-mentioned changed area in the video segment.
Description
本揭露一般涉及多媒體資訊處理技術領域,且更加具體地說係有關於一種播放視頻的方法及裝置。 The disclosure generally relates to the field of multimedia information processing technologies, and more particularly to a method and apparatus for playing video.
在現有電腦的多媒體播放介面中,大多僅提供以下的播放功能:播放完整多媒體、手動輸入開始與結束時間,以播放一特定多媒體區段。 In the multimedia playing interface of the existing computer, most of the following playback functions are provided: playing full multimedia, manually inputting start and end times, to play a specific multimedia section.
然而,當使用者在觀看多媒體視頻時,並無法知道多媒體視頻是否存在許多無變動區段。因此,有必要提供一種讓使用者方便操作的播放視頻的方法以及裝置,以對視頻分為變動區段及無變動區段,供使用者進行視頻跳躍播放及定位視頻,提升播放的效率。 However, when the user is watching the multimedia video, it is impossible to know whether the multimedia video has many unchanged sections. Therefore, it is necessary to provide a method and a device for playing a video that is convenient for a user to operate, and divide the video into a variable segment and a non-variable segment for the user to perform video skip playback and locate the video to improve the playback efficiency.
以下揭露的內容僅為示例性的,且不意指以任何方式加以限制。除所述說明方面、實施方式和特徵之外,透過參照附圖和下述具體實施方式,其他方面、實施方式和特徵也將顯而易見。即,以下揭露的內容被提供以介紹概念、重點、益處及本文所描述新穎且非顯而易見的技術優勢。所選擇,非所有的,實施例將進一步詳細描述如下。因此,以下揭露的內 容並不意旨在所要求保護主題的必要特徵,也不意旨在決定所要求保護主題的範圍中使用。 The disclosures below are merely exemplary and are not meant to be limiting in any way. Other aspects, embodiments, and features will be apparent from the description and drawings. That is, the following disclosure is provided to introduce concepts, advantages, benefits, and novel and non-obvious technical advantages described herein. Selected, not all, embodiments will be described in further detail below. Therefore, the following disclosure It is not intended to be essential to the claimed subject matter, and is not intended to be used in the scope of the claimed subject matter.
本揭露提供一種播放視頻的方法及裝置。 The disclosure provides a method and apparatus for playing a video.
本揭露提出一種播放視頻的方法,包括:接收一視頻,其中上述視頻係由複數幀所組成;判斷每一幀是否為一變動幀;根據上述判斷結果將上述視頻分為複數變動區段及複數無變動區段;對每一無變動區段中的一第一幀建立一分段旗標;以及根據上述分段旗標跳過上述無變動區段,以實現播放上述視頻中的上述變動區段。 The present disclosure provides a method for playing a video, comprising: receiving a video, wherein the video is composed of a plurality of frames; determining whether each frame is a variable frame; and dividing the video into a complex variable segment and a plurality according to the determination result. a non-changing section; establishing a segmentation flag for a first frame in each of the unchanging sections; and skipping the non-changing section according to the segmentation flag to play the above-mentioned changed area in the video segment.
在一些實施例中,判斷每一幀是否為一變動幀之步驟更包括:將上述每一幀轉換為一灰階幀;判斷上述灰階幀的像素值與灰階值0之間的一第一差值或與灰階值255之間的一第二差值是否小於等於一第一閾值;以及當上述第一差值或上述第二差值大於上述第一閾值時,判定上述幀為上述變動幀。 In some embodiments, the step of determining whether each frame is a variable frame further comprises: converting each of the above frames into a grayscale frame; determining a first between a pixel value of the grayscale frame and a grayscale value of 0 Whether a difference between a difference or a grayscale value 255 is less than or equal to a first threshold; and when the first difference or the second difference is greater than the first threshold, determining that the frame is the above Change frame.
在一些實施例中,判斷每一幀是否為一變動幀之步驟更包括:當上述第一差值或上述第二差值小於等於上述第一閾值時,判斷上述每一幀中的一像素最大值與一像素最小值之間的一第三差值是否大於一第二閾值;當上述第三差值大於上述第二閾值時,取得上述灰階幀中的上述像素值與前一灰階幀的像素值的差值絕對值;對上述差值絕對值進行一二值化操作,以產生一二值化幀,並判斷上述二值化幀中像素值之一最大值是否大於0;以及當上述最大值大於0時,判定上述幀為上述變動幀。 In some embodiments, the step of determining whether each frame is a variable frame further comprises: determining that a pixel in each frame is the largest when the first difference or the second difference is less than or equal to the first threshold Whether a third difference between the value and the minimum value of a pixel is greater than a second threshold; and when the third difference is greater than the second threshold, obtaining the pixel value and the previous gray level frame in the grayscale frame An absolute value of the difference of the pixel values; performing a binarization operation on the absolute value of the difference to generate a binarized frame, and determining whether a maximum value of one of the pixel values in the binarized frame is greater than 0; When the maximum value is greater than 0, it is determined that the frame is the fluctuation frame.
在一些實施例中,上述第二閾值係小於上述第一閾值。 In some embodiments, the second threshold is less than the first threshold.
在一些實施例中,上述方法更包括:提供一操作介面,以播放上述視頻;其中上述操作介面具有一第一進度條及一第二進度條,上述第一進度條係用以顯示上述視頻的一第一播放進度,上述第二進度條係用以顯示上述視頻播放到上述變動區段的一第二播放進度。 In some embodiments, the method further includes: providing an operation interface to play the video; wherein the operation mask has a first progress bar and a second progress bar, wherein the first progress bar is used to display the video. a first playback progress, the second progress bar is configured to display a second playback progress of the video playback to the changed segment.
本揭露提出一種播放視頻的裝置,包括:一或多個處理器;以及一或多個電腦儲存媒體,儲存電腦可讀取指令,其中上述處理器使用上述電腦儲存媒體以執行:接收一視頻,其中上述視頻係由複數幀所組成;判斷每一幀是否為一變動幀;根據上述判斷結果將上述視頻分為複數變動區段及複數無變動區段;對每一無變動區段中的一第一幀建立一分段旗標;以及根據上述分段旗標跳過上述無變動區段,以實現播放上述視頻中的上述變動區段。 The present disclosure provides an apparatus for playing video, including: one or more processors; and one or more computer storage media storing computer readable instructions, wherein the processor uses the computer storage medium to perform: receiving a video, The video is composed of a plurality of frames; determining whether each frame is a variable frame; and dividing the video into a complex variable segment and a complex unchanging segment according to the foregoing determination result; The first frame establishes a segmentation flag; and skipping the non-changing segment according to the segmentation flag to implement playing the changed segment in the video.
100‧‧‧方法 100‧‧‧ method
S105、S110、S115、S120 S105, S110, S115, S120
200‧‧‧方法 200‧‧‧ method
S205、S210、S215、S220、S225、S230、S235、S240‧‧‧步驟 Steps S205, S210, S215, S220, S225, S230, S235, S240‧‧
400‧‧‧操作介面 400‧‧‧Operator interface
410‧‧‧第一進度條 410‧‧‧First progress bar
420‧‧‧第二進度條 420‧‧‧Second progress bar
411、413、415‧‧‧變動區段 411, 413, 415‧‧ ‧ change section
412、414‧‧‧無變動區段 412, 414‧‧‧No change section
412a、414a‧‧‧分段旗標 412a, 414a‧‧‧ segment flag
430‧‧‧播放進度 430‧‧‧Play progress
500‧‧‧計算裝置 500‧‧‧ computing device
510‧‧‧匯流排 510‧‧ ‧ busbar
512‧‧‧記憶體 512‧‧‧ memory
514‧‧‧處理器 514‧‧‧ processor
516‧‧‧顯示元件 516‧‧‧Display components
518‧‧‧I/O埠口 518‧‧‧I/O mouth
520‧‧‧I/O元件 520‧‧‧I/O components
522‧‧‧電源供應器 522‧‧‧Power supply
附圖被包括以提供本揭露進一步理解且被合併並組成本揭露的一部分。附圖係說明本揭露的實施例且連同描述一起用以解釋本揭露的原理。其可理解附圖不一定按比例描繪,一些元件可以超過在實際實施方式的大小來顯示,以清楚地說明本揭露的概念。 The figures are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of the disclosure. The drawings illustrate the embodiments of the disclosure and, together with the description, illustrate the principles of the disclosure. It is understood that the drawings are not necessarily to scale,
第1圖係顯示根據本揭露一實施例所述之播放視頻的方法之流程圖。 FIG. 1 is a flow chart showing a method for playing a video according to an embodiment of the present disclosure.
第2圖係顯示根據本揭露一實施例所述之判斷每一幀是否為一變動幀之方法的流程圖。 2 is a flow chart showing a method of determining whether each frame is a variation frame according to an embodiment of the present disclosure.
第3A圖顯示根據本揭露一實施例所述之視頻中之一幀的示意圖。 FIG. 3A is a schematic diagram showing a frame in a video according to an embodiment of the present disclosure.
第3B圖顯示根據本揭露一實施例所述之將上述幀轉換為一灰階幀之示意圖。 FIG. 3B is a schematic diagram showing the conversion of the above frame into a grayscale frame according to an embodiment of the disclosure.
第3C圖顯示根據本揭露一實施例所述之上述灰階幀中的上述像素值與前一灰階幀的像素值的差值絕對值之示意圖。 FIG. 3C is a schematic diagram showing the absolute value of the difference between the pixel value in the gray scale frame and the pixel value of the previous gray scale frame according to an embodiment of the disclosure.
第3D圖顯示根據本揭露一實施例所述之二值化幀之示意圖。 FIG. 3D is a schematic diagram showing a binarized frame according to an embodiment of the present disclosure.
第3E圖顯示根據本揭露一實施例所述之對二值化幀進行侵蝕之示意圖。 FIG. 3E is a schematic diagram showing erosion of a binarized frame according to an embodiment of the present disclosure.
第4圖係為根據本揭露一實施例所述之電子裝置一操作介面播放一視頻的示意圖。 FIG. 4 is a schematic diagram of playing a video according to an operation interface of an electronic device according to an embodiment of the disclosure.
第5圖係顯示用以實現本揭露實施例的示例性操作環境。 FIG. 5 shows an exemplary operating environment for implementing embodiments of the present disclosure.
在下文中將參考附圖對本揭露的各方面進行更充分的描述。然而,本揭露可以具體化成許多不同形式且不應解釋為侷限於貫穿本揭露所呈現的任何特定結構或功能。相反地,提供這些方面將使得本揭露周全且完整,並且本揭露將給本領域技術人員充分地傳達本揭露的範圍。基於本文所教導的內容,本領域的技術人員應意識到,無論是單獨還是結合本揭露的任何其它方面實現本文所揭露的任何方面,本揭露的範圍 旨在涵蓋本文中所揭露的任何方面。例如,可以使用本文所提出任意數量的裝置或者執行方法來實現。另外,除了本文所提出本揭露的多個方面之外,本揭露的範圍更旨在涵蓋使用其它結構、功能或結構和功能來實現的裝置或方法。應可理解,其可透過申請專利範圍的一或多個元件具體化本文所揭露的任何方面。 Various aspects of the disclosure will be more fully described below with reference to the drawings. However, the disclosure may be embodied in many different forms and should not be construed as being limited to any particular structure or function presented. Rather, these aspects are provided so that this disclosure will be thorough and complete, and the disclosure will fully convey the scope of the disclosure. Based on the teachings herein, those skilled in the art will appreciate that any aspect disclosed herein, alone or in combination with any other aspect of the present disclosure, is within the scope of the disclosure. It is intended to cover any aspect disclosed herein. For example, any number of devices or methods of implementation presented herein can be used. In addition, the scope of the present disclosure is intended to cover an apparatus or method that is implemented using other structures, functions, or structures and functions, in addition to the various aspects disclosed herein. It should be understood that any aspect disclosed herein may be embodied by one or more elements of the patent application.
詞語「示例性」在本文中用於表示「用作示例、實例或說明」。本揭露的任何方面或本文描述為「示例性」的設計不一定被解釋為優選於或優於本揭露或設計的其他方面。此外,相同的數字在所有若干圖示中指示相同的元件,且除非在描述中另有指定,冠詞「一」和「上述」包含複數的參考。 The word "exemplary" is used herein to mean "serving as an example, instance or description." Any aspect of the disclosure or a design described herein as "exemplary" is not necessarily to be construed as preferred or preferred. In addition, the same numerals indicate the same elements in all the figures, and the articles "a" and "an"
可以理解,當元件被稱為被「連接」或「耦接」至另一元件時,該元件可被直接地連接到或耦接至另一元件或者可存在中間元件。相反地,當該元件被稱為被「直接連接」或「直接耦接」至到另一元件時,則不存在中間元件。用於描述元件之間的關係的其他詞語應以類似方式被解釋(例如,「在…之間」與「直接在…之間」、「相鄰」與「直接相鄰」等方式)。 It can be understood that when an element is referred to as being "connected" or "coupled" to another element, the element can be directly connected or coupled to the other element or the intermediate element can be present. Conversely, when the element is referred to as being "directly connected" or "directly coupled" to another element, the element is not present. Other words used to describe the relationship between the elements should be interpreted in a similar manner (for example, "between" and "directly between", "adjacent" and "directly adjacent".
本揭露的播放視頻的方法適用於電子裝置內,且此電子裝置可以是個人數位助理(Personal Digital Assistant,PDA)、小型觸控式電腦、筆記型電腦、桌上型電腦等等或類似者。以下關於播放視頻的方法請先參考第1圖。 The method for playing a video disclosed in the present disclosure is applicable to an electronic device, and the electronic device may be a Personal Digital Assistant (PDA), a small touch computer, a notebook computer, a desktop computer, or the like. Please refer to Figure 1 below for the method of playing video.
此外,如本領域普通技術人員所可瞭解者,「多媒 體視頻」可包括具有圖像及聲音(音樂)的視頻等,以下僅就「視頻」為例作說明,以避免冗長的贅述。 In addition, as will be understood by those of ordinary skill in the art, "multimedia "Body video" may include video with images and sounds (music), etc., and only "video" is exemplified below to avoid lengthy descriptions.
第1圖係顯示根據本揭露一實施例所述之播放視頻的方法100之流程圖。此方法可執行於前述電子裝置的處理器中。 1 is a flow chart showing a method 100 of playing a video according to an embodiment of the present disclosure. This method can be implemented in a processor of the aforementioned electronic device.
在步驟S105中,電子裝置可透過網路由雲端或其他裝置接收一視頻,其中上述視頻係由複數幀所組成。網路可提供有線和/或無線網路。網路也可包括區域網路(Local Area Network,LAN)(例如,內聯網)、無線區域網路(Wireless Local Area Network,WLAN)或Wi-Fi網路、第三代(3G)或第四代(4G)移動電信網路、廣域網路(Wide Area Network,WAN)、網際網路(Internet)、藍牙或其任何適當的組合。 In step S105, the electronic device can receive a video through the network routing cloud or other device, wherein the video is composed of a plurality of frames. The network provides wired and/or wireless internet. The network may also include a local area network (LAN) (eg, an intranet), a wireless local area network (WLAN) or a Wi-Fi network, a third generation (3G), or a fourth Generation (4G) mobile telecommunications network, Wide Area Network (WAN), Internet, Bluetooth, or any suitable combination thereof.
接著,在步驟S110中,電子裝置判斷每一幀是否為一變動幀。在步驟S115中,電子裝置根據上述判斷結果將上述視頻分為複數變動區段及複數無變動區段。再來,電子裝置對每一無變動區段中的一第一幀建立一分段旗標。在S120中,電子裝置根據上述分段旗標跳過上述無變動區段,以實現播放上述視頻中的上述變動區段。 Next, in step S110, the electronic device determines whether each frame is a variation frame. In step S115, the electronic device divides the video into a complex variable segment and a complex non-variable segment according to the determination result. Then, the electronic device establishes a segmentation flag for a first frame in each of the non-variable segments. In S120, the electronic device skips the non-changing segment according to the segmentation flag to play the changed segment in the video.
在一實施例中,電子裝置會記錄分段旗標的時間點以及無變動區段結束的時間點至電子裝置的記憶體中。 In an embodiment, the electronic device records the time point of the segmentation flag and the time point at which the non-variable segment ends to the memory of the electronic device.
此外,應可理解,執行第1圖所示方法的電子裝置可經由任何類型的計算裝置來實現,像是參考第5圖描述的計算裝置500,如第5圖所示。 Moreover, it should be understood that the electronic device performing the method of FIG. 1 can be implemented via any type of computing device, such as computing device 500 described with reference to FIG. 5, as shown in FIG.
第2圖更詳細地說明在第1圖步驟S110中的電子裝 置如何判斷每一幀是否為一變動幀。第2圖係顯示根據本揭露一實施例所述之判斷每一幀是否為一變動幀之方法200的流程圖。此方法可執行於前述電子裝置的處理器中。須注意的是,雖然在此實施例中係以如第3A圖所示之一幀作為說明,但本領域之技術人士可推得其餘幀亦可根據此方法過程推得是否為變動幀。 Figure 2 illustrates the electronic package in step S110 of Figure 1 in more detail. How to determine whether each frame is a variable frame. 2 is a flow chart showing a method 200 of determining whether each frame is a variation frame according to an embodiment of the present disclosure. This method can be implemented in a processor of the aforementioned electronic device. It should be noted that although in this embodiment, a frame as shown in FIG. 3A is used as an illustration, those skilled in the art may infer that the remaining frames may also be derived from the variation process according to the method.
在步驟S205中,電子裝置將每一幀轉換為一灰階幀。如第3B圖所示,第3B圖係為將第3A圖的幀轉換為一灰階幀。在步驟S210中,電子裝置判斷灰階幀的像素值與灰階值0之間的一第一差值或與灰階值255之間的一第二差值是否小於等於一第一閾值(threshold)。在一實施例中,上述第一閾值係為30。當上述第一差值或上述第二差值大於上述第一閾值時(步驟S210中的「否」),在步驟S235中,電子裝置判定上述幀為變動幀。換言之,當由一幀所轉換的一灰階幀並非接近全黑或是全白時,電子裝置則判定此幀係為變動幀。而由連續複數變動幀所組成之視頻區段即為變動區段。 In step S205, the electronic device converts each frame into a grayscale frame. As shown in FIG. 3B, FIG. 3B is a diagram for converting the frame of FIG. 3A into a gray-scale frame. In step S210, the electronic device determines whether a first difference between the pixel value of the grayscale frame and the grayscale value 0 or a second difference between the grayscale value 255 is less than or equal to a first threshold (threshold ). In an embodiment, the first threshold is 30. When the first difference or the second difference is greater than the first threshold (NO in step S210), in step S235, the electronic device determines that the frame is a frame of variation. In other words, when a grayscale frame converted by one frame is not near full black or all white, the electronic device determines that the frame is a variable frame. The video segment composed of consecutive complex variation frames is a variable segment.
當上述第一差值或上述第二差值小於等於上述第一閾值時(步驟S210中的「是」),在步驟S215中,電子裝置判斷上述每一幀中的一像素最大值與一像素最小值之間的一第三差值是否大於一第二閾值。在一實施例中,上述第二閾值係小於上述第一閾值。當上述第三差值大於上述第二閾值時(步驟S215中的「是」),在步驟S220中,電子裝置取得上述灰階幀中的上述像素值與前一灰階幀的像素值的差值絕對值,如第3C圖所示。在步驟S225中,電子裝置對上述差值絕對值進行一二 值化操作(binary-conversion),以產生一二值化幀(binary frame),如第3D圖所示。更具體地說,電子裝置可將灰階幀與前一灰階幀像素值的每一差值絕對值分別與一第三閾值進行比較,來產生二值化幀,其中該第三閾值可採用一預設值來設定。 When the first difference or the second difference is less than or equal to the first threshold (YES in step S210), in step S215, the electronic device determines a maximum value of one pixel and one pixel in each frame. Whether a third difference between the minimum values is greater than a second threshold. In an embodiment, the second threshold is less than the first threshold. When the third difference is greater than the second threshold (YES in step S215), in step S220, the electronic device obtains a difference between the pixel value in the grayscale frame and the pixel value of the previous grayscale frame. The absolute value of the value, as shown in Figure 3C. In step S225, the electronic device performs one or two absolute values of the difference values. Binary-conversion (binary-conversion) to produce a binary frame, as shown in Figure 3D. More specifically, the electronic device may compare the absolute value of each difference between the grayscale frame and the previous grayscale frame pixel value with a third threshold to generate a binarized frame, wherein the third threshold may be used. A preset value is set.
在步驟S230中,電子裝置判斷上述二值化幀中像素值之一最大值是否大於0。當上述二值化幀中像素值之最大值大於0時(步驟S230中的「是」),在步驟S235中,電子裝置判定上述幀為變動幀。否則(步驟S230中的「否」),在步驟S240中,電子裝置判定上述幀為無變動幀。 In step S230, the electronic device determines whether the maximum value of one of the pixel values in the binarized frame is greater than zero. When the maximum value of the pixel values in the binarized frame is greater than 0 (YES in step S230), in step S235, the electronic device determines that the frame is a changed frame. Otherwise (NO in step S230), in step S240, the electronic device determines that the frame is a non-variable frame.
回到步驟S215,當上述第三差值不大於上述第二閾值時(步驟S215中的「否」),在步驟S240中,電子裝置判定上述幀為無變動幀。而由連續複數無變動幀所組成之視頻區段即為無變動區段。 Returning to step S215, when the third difference is not greater than the second threshold (NO in step S215), in step S240, the electronic device determines that the frame is a non-variable frame. The video segment consisting of consecutive complex unchanging frames is a non-changing segment.
此外,在一實施例中,在步驟S225之後,電子裝置更可對上述二值化幀進行侵蝕,以去除上述二值化幀所摻雜雜訊的問題,如第3E圖所示。 In addition, in an embodiment, after step S225, the electronic device may further erode the binarized frame to remove the problem of the noise doped by the binarized frame, as shown in FIG. 3E.
第4圖係為根據本揭露一實施例所述之電子裝置一操作介面400播放一視頻的示意圖。如第4圖所示,操作介面400具有一第一進度條410及一第二進度條420,其中第一進度條410用以可顯示整體視頻的一第一播放進度或控制播放進度,第二進度條420係用以顯示目前視頻所播放到變動區段的一第二播放進度。 FIG. 4 is a schematic diagram of playing a video by an operation interface 400 of an electronic device according to an embodiment of the disclosure. As shown in FIG. 4, the operation interface 400 has a first progress bar 410 and a second progress bar 420, wherein the first progress bar 410 is configured to display a first playback progress of the overall video or control the playback progress, and second The progress bar 420 is used to display a second playback progress of the current video played to the changed segment.
在此實施例中,此視頻被分為在第一進度條410中 被分為變動區段411、無變動區段412、變動區段413、無變動區段414、變動區段415,其中在無變動區段412及無變動區段414的第一幀已建立了分段旗標412a及414a。此視頻總長為30.093秒,而視頻的播放進度430正播放到時間為23.191秒處。在第二進度條420係顯示視頻於變動區段413的播放進度,其中變動區段413的總長為16.615秒,而視頻的播放進度430在變動區段413中正播放到時間為15.251秒處。 In this embodiment, this video is divided into a first progress bar 410. It is divided into a variable section 411, a non-changing section 412, a variable section 413, an unchanged section 414, and a variable section 415, wherein the first frame in the unchanged section 412 and the unchanged section 414 has been established. Segment flags 412a and 414a. The total length of this video is 30.093 seconds, while the video playback progress 430 is playing until the time is 23.191 seconds. In the second progress bar 420, the progress of the video in the changing section 413 is displayed, wherein the total length of the changing section 413 is 16.615 seconds, and the playback progress 430 of the video is playing in the changing section 413 until the time is 15.251 seconds.
當一使用者欲跳過無變動區段時,使用者可輸入一訊號指示電子裝置執行跳躍播放視頻。舉例來說,當電子裝置播放到分段旗標412a的時間點時(例如變動區段411結束的時間點),就會跳到要無變動區段412結束的時間點(例如變動區段413開始的時間點),即可實現變動區段間的跳躍撥放。 When a user wants to skip the no-change section, the user can input a signal to instruct the electronic device to perform a jump play video. For example, when the electronic device plays the time point to the segment flag 412a (for example, the time point at which the change segment 411 ends), it jumps to the time point at which the non-variable segment 412 ends (for example, the change segment 413). At the beginning of the time point, the jump between the changed segments can be realized.
在一實施例中,此視頻畫面的寬度為整體視頻(即,第一進度條410)的播放長度。同樣地,此視頻畫面的寬度也為此變動區段(即,第二進度條420)的播放長度。此外,在電子裝置執行跳躍播放的操作時,若使用者欲針對目前播放的變動區段進行控制,使用者可利用電腦滑鼠的「右鍵」點擊視頻畫面上的任何位置,以定位到此位置相對此變動區段播放長度百分比的視頻畫面。而若使用者欲針對整個視頻檔案進行控制,使用者可利用電腦滑鼠的「左鍵」點擊畫面上的任何位置,以定位此位置相對於此視頻播放長度百分比的畫面。 In an embodiment, the width of the video frame is the playback length of the overall video (ie, the first progress bar 410). Similarly, the width of this video frame is also the playback length of the segment (i.e., the second progress bar 420) for this purpose. In addition, when the electronic device performs the jump play operation, if the user wants to control the currently playing change section, the user can use the "right click" of the computer mouse to click any position on the video screen to locate the position. A video frame with a percentage of length played relative to this changed segment. If the user wants to control the entire video file, the user can use the "left button" of the computer mouse to click anywhere on the screen to locate the position of the video relative to the length of the video.
如上所述,本揭露之播放視頻的方法及裝置可針對視頻檔案本身自動切割為變動區段及無變動區段,並可在多個區段中重複或跳躍播放,且提供使用者能在任何區段中藉由 一進度條的快速定位。 As described above, the method and apparatus for playing a video of the present disclosure can automatically cut into a variable section and a non-changing section for the video file itself, and can repeat or skip playback in multiple sections, and provide the user with any In the segment A quick positioning of a progress bar.
對於本揭露已描述的實施例,下文描述了可以實現本揭露實施例的示例性操作環境。具體參考第5圖,第5圖係顯示用以實現本揭露實施例的示例性操作環境,一般可被視為計算裝置500。計算裝置500僅為一合適計算環境的一個示例,並不意圖暗示對本揭露使用或功能範圍的任何限制。計算裝置500也不應被解釋為具有與所示元件任一或組合相關任何的依賴性或要求。 For the embodiments that have been described in this disclosure, the following describes an exemplary operating environment in which embodiments of the present disclosure may be implemented. With specific reference to FIG. 5, FIG. 5 shows an exemplary operating environment for implementing embodiments of the present disclosure, generally considered as computing device 500. The computing device 500 is only one example of a suitable computing environment and is not intended to suggest any limitation as to the scope of use or functionality of the disclosure. Nor should computing device 500 be interpreted as having any dependency or requirement relating to any or combination of the elements shown.
本揭露可在電腦程式碼或機器可使用指令來執行本揭露,指令可為程式模組的電腦可執行指令,其程式模組由電腦或其它機器,例如個人數位助理或其它可攜式裝置執行。一般而言,程式模組包括例程、程式、物件、元件、數據結構等,程式模組指的是執行特定任務或實現特定抽象數據類型的程式碼。本揭露可在各種系統組態中實現,包括可攜式裝置、消費者電子產品、通用電腦、更專業的計算裝置等。本揭露還可以在分散式運算環境中實現,處理由通訊網路所連結的裝置。 The disclosure may be embodied in a computer code or machine usable instructions, which may be computer executable instructions of a program module, the program modules being executed by a computer or other device, such as a personal digital assistant or other portable device. . Generally, a program module includes routines, programs, objects, components, data structures, etc., and a program module refers to a code that performs a specific task or implements a specific abstract data type. The disclosure can be implemented in a variety of system configurations, including portable devices, consumer electronics, general purpose computers, more specialized computing devices, and the like. The disclosure can also be implemented in a distributed computing environment to process devices connected by a communication network.
參考第5圖。計算裝置500包括直接或間接耦接以下裝置的匯流排510、記憶體512、一或多個處理器514、一或多個顯示元件516、輸入/輸出(I/O)埠口518、輸入/輸出(I/O)元件520以及說明性電源供應器522。匯流排510表示可為一或多個匯流排之元件(例如,位址匯流排、數據匯流排或其組合)。雖然第5圖的各個方塊為簡要起見以線示出,實際上,各個元件的分界並不是具體的,例如,可將顯示裝置的呈現元件視為 I/O元件;處理器可具有記憶體。 Refer to Figure 5. The computing device 500 includes a bus 510, memory 512, one or more processors 514, one or more display elements 516, input/output (I/O) ports 518, inputs/directly/directly coupled to the following devices. An output (I/O) component 520 and an illustrative power supply 522. Bus 510 represents an element (eg, an address bus, a data bus, or a combination thereof) that can be one or more bus bars. Although the respective blocks of FIG. 5 are shown by lines for the sake of brevity, in practice, the boundaries of the respective elements are not specific, for example, the presentation elements of the display device can be regarded as I/O component; the processor can have a memory.
計算裝置500一般包括各種電腦可讀取媒體。電腦可讀取媒體可以是可被計算裝置500存取的任何可用媒體,該媒體同時包括易揮發性和非易揮發性媒體、可移動和不可移動媒體。舉例但不侷限於,電腦可讀取媒體可包括電腦儲存媒體和通訊媒體。電腦可讀取媒體同時包括在用於儲存像是電腦可讀取指令、資料結構、程式模組或其它數據之類資訊的任何方法或技術中實現的易揮發性性和非易揮發性媒體、可移動和不可移動媒體。電腦儲存媒體包括但不侷限於RAM、ROM、EEPROM、快閃記憶體或其它記憶體技術、CD-ROM、數位多功能光碟(DVD)或其它光碟儲存裝置、磁片、磁碟、磁片儲存裝置或其它磁儲存裝置,或可用於儲存所需的資訊並且可被計算裝置500存取的其它任何媒體。電腦儲存媒體本身不包括信號。 Computing device 500 generally includes a variety of computer readable media. The computer readable medium can be any available media that can be accessed by computing device 500, including both volatile and non-volatile media, removable and non-removable media. By way of example and not limitation, computer readable media may include computer storage media and communication media. Computer readable media also includes volatile and non-volatile media implemented in any method or technique for storing information such as computer readable instructions, data structures, programming modules or other data. Removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage device, magnetic disk, disk, disk storage A device or other magnetic storage device, or any other medium that can be used to store the required information and that can be accessed by computing device 500. The computer storage media itself does not include signals.
通訊媒體一般包含電腦可讀取指令、資料結構、程式模組或其它採用諸如載波或其他傳輸機制之類的模組化數據訊號形式的數據,並包括任何資訊傳遞媒體。術語「模組化數據訊號」係指具有一或多個特徵集合或以在訊號中編碼資訊之一方式更改的訊號。舉例但不侷限於,通訊媒體包括像是有線網路或直接有線連接的有線媒體及無線媒體,像是聲頻、射頻、紅外線以及其它無線媒體。上述媒體的組合包括在電腦可讀取媒體的範圍內。 Communication media typically includes computer readable instructions, data structures, program modules or other data in the form of modular data signals such as carrier waves or other transmission mechanisms, and includes any information delivery media. The term "modular data signal" refers to a signal that has one or more feature sets or is modified in such a way as to encode information in the signal. By way of example and not limitation, communication media includes both wired and direct-wired wired and wireless media, such as audio, radio, infrared, and other wireless media. The combination of the above media is included in the scope of computer readable media.
記憶體512包括以易揮發性和非易揮發性記憶體形式的電腦儲存媒體。記憶體可為可移動、不移動或可以為這 兩種的組合。示例性硬體裝置包括固態記憶體、硬碟驅動器、光碟驅動器等。計算裝置500包括一或多個處理器,其讀取來自像是記憶體512或I/O元件520各實體的數據。顯示元件516向使用者或其它裝置顯示數據指示。示例性顯示元件包括顯示裝置、揚聲器、列印元件、振動元件等。 Memory 512 includes computer storage media in the form of volatile and non-volatile memory. Memory can be removable, not moving or can be used for this A combination of the two. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. Computing device 500 includes one or more processors that read data from entities such as memory 512 or I/O component 520. Display element 516 displays a data indication to a user or other device. Exemplary display elements include display devices, speakers, printing elements, vibrating elements, and the like.
I/O埠口518允許計算裝置500邏輯連接到包括I/O元件520的其它裝置,一些此種裝置為內建裝置。示例性元件包括麥克風、搖桿、遊戲台、碟形衛星訊號接收器、掃描器、印表機、無線裝置等。I/O元件520可提供一自然使用者介面,用於處理使用者生成的姿勢、聲音或其它生理輸入。在一些例子中,這些輸入可被傳送到一合適的網路元件以便進一步處理。NUI可實現語言識別、觸摸與手寫筆辨識、面部識別、生物識別、在螢幕上以及鄰近螢幕的姿勢識別、空中手勢、頭部及眼部追蹤以及與計算裝置500所顯示相關聯的觸摸識別的任意組合。計算裝置500可裝備有深度照相機,像是立體照相機系統、紅外線照相機系統、RGB照相機系統和這些系統的組合,以偵測與識別姿勢。另外,計算裝置500可以裝備有偵測運動的加速度計或陀螺儀。加速度計或陀螺儀的輸出可被提供給計算裝置500顯示以呈現沉浸式增強現實或虛擬實境。 I/O port 518 allows computing device 500 to be logically coupled to other devices including I/O component 520, some of which are built-in devices. Exemplary components include microphones, joysticks, gaming stations, satellite signal receivers, scanners, printers, wireless devices, and the like. I/O component 520 can provide a natural user interface for handling gestures, sounds, or other physiological inputs generated by the user. In some examples, these inputs can be passed to a suitable network element for further processing. The NUI can implement speech recognition, touch and stylus recognition, facial recognition, biometric recognition, gesture recognition on the screen and adjacent screens, aerial gestures, head and eye tracking, and touch recognition associated with display by computing device 500. random combination. Computing device 500 can be equipped with a depth camera such as a stereo camera system, an infrared camera system, an RGB camera system, and combinations of these systems to detect and recognize gestures. Additionally, computing device 500 can be equipped with an accelerometer or gyroscope that detects motion. The output of the accelerometer or gyroscope can be provided to the computing device 500 for display to present an immersive augmented reality or virtual reality.
此外,計算裝置500中之處理器514也可執行記憶體512中之程式及指令以呈現上述實施例所述之動作和步驟,或其它在說明書中內容之描述。 In addition, the processor 514 in the computing device 500 can also execute the programs and instructions in the memory 512 to present the actions and steps described in the above embodiments, or other descriptions in the description.
在此所揭露程序之任何具體順序或分層之步驟純為一舉例之方式。基於設計上之偏好,必須了解到程序上之任 何具體順序或分層之步驟可在此文件所揭露的範圍內被重新安排。伴隨之方法權利要求以一示例順序呈現出各種步驟之元件,也因此不應被此所展示之特定順序或階層所限制。 Any specific sequence or layering of the procedures disclosed herein is by way of example only. Based on design preferences, you must understand the procedural The specific sequence or layering steps can be rearranged within the scope of this document. The accompanying claims are intended to be illustrative of a
申請專利範圍中用以修飾元件之「第一」、「第二」、「第三」等序數詞之使用本身未暗示任何優先權、優先次序、各元件之間之先後次序、或方法所執行之步驟之次序,而僅用作標識來區分具有相同名稱(具有不同序數詞)之不同元件。 The use of ordinal numbers such as "first", "second", "third", etc., used to modify elements in the scope of the patent application does not imply any priority, prioritization, prioritization between elements, or method. The order of the steps, and only used as an identifier to distinguish different elements having the same name (with different ordinal numbers).
雖然本揭露已以實施範例揭露如上,然其並非用以限定本案,任何熟悉此項技藝者,在不脫離本揭露之精神和範圍內,當可做些許更動與潤飾,因此本案之保護範圍當視後附之申請專利範圍所界定者為準。 Although the disclosure has been described above by way of example, it is not intended to limit the scope of the present invention, and the scope of protection of the present invention can be made without departing from the spirit and scope of the disclosure. This is subject to the definition of the scope of the patent application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW107134799A TWI672946B (en) | 2018-10-02 | 2018-10-02 | Method and device for playing video |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW107134799A TWI672946B (en) | 2018-10-02 | 2018-10-02 | Method and device for playing video |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI672946B true TWI672946B (en) | 2019-09-21 |
| TW202015429A TW202015429A (en) | 2020-04-16 |
Family
ID=68618767
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW107134799A TWI672946B (en) | 2018-10-02 | 2018-10-02 | Method and device for playing video |
Country Status (1)
| Country | Link |
|---|---|
| TW (1) | TWI672946B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001075798A2 (en) * | 2000-04-04 | 2001-10-11 | Smith & Nephew, Inc. | Method and system for automatic correction of motion artifacts |
| US20150221069A1 (en) * | 2014-02-05 | 2015-08-06 | Elena Shaburova | Method for real time video processing involving changing a color of an object on a human face in a video |
| CN104899557A (en) * | 2015-05-25 | 2015-09-09 | 浙江工业大学 | Intersection background image extraction method based on video |
| US9471844B2 (en) * | 2014-10-29 | 2016-10-18 | Behavioral Recognition Systems, Inc. | Dynamic absorption window for foreground background detector |
-
2018
- 2018-10-02 TW TW107134799A patent/TWI672946B/en active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001075798A2 (en) * | 2000-04-04 | 2001-10-11 | Smith & Nephew, Inc. | Method and system for automatic correction of motion artifacts |
| US20150221069A1 (en) * | 2014-02-05 | 2015-08-06 | Elena Shaburova | Method for real time video processing involving changing a color of an object on a human face in a video |
| US9471844B2 (en) * | 2014-10-29 | 2016-10-18 | Behavioral Recognition Systems, Inc. | Dynamic absorption window for foreground background detector |
| CN104899557A (en) * | 2015-05-25 | 2015-09-09 | 浙江工业大学 | Intersection background image extraction method based on video |
Also Published As
| Publication number | Publication date |
|---|---|
| TW202015429A (en) | 2020-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109640188B (en) | Video preview method and device, electronic equipment and computer readable storage medium | |
| US8957915B1 (en) | Method, apparatus and system for dynamic images | |
| US20220086508A1 (en) | Live video broadcast method, live broadcast device and storage medium | |
| US10452713B2 (en) | Video analysis techniques for improved editing, navigation, and summarization | |
| US9704066B2 (en) | Multi-stage image classification | |
| CN108024079B (en) | Screen recording method, device, terminal and storage medium | |
| CN111970571B (en) | Video production method, device, equipment and storage medium | |
| CN110070496B (en) | Method and device for generating image special effect and hardware device | |
| CN105005429B (en) | A kind of method and terminal of terminal display picture | |
| CN112561839B (en) | Video clipping method and device, storage medium and electronic equipment | |
| CN113055730B (en) | Video generation method, device, electronic device and storage medium | |
| CN115209215B (en) | Video processing method, device and equipment | |
| CN114422698B (en) | Video generation method, device, equipment and storage medium | |
| JP2015523018A (en) | Enhancing captured data | |
| US12231815B2 (en) | Parameters for overlay handling for immersive teleconferencing and telepresence for remote terminals | |
| CN108140401A (en) | access video clips | |
| CN106470353B (en) | A kind of multimedia data processing method and its device, electronic equipment | |
| US9779093B2 (en) | Spatial seeking in media files | |
| CN104978124A (en) | Picture display method for terminal and terminal | |
| US20140229823A1 (en) | Display apparatus and control method thereof | |
| CN110415318B (en) | Image processing method and device | |
| TWI672946B (en) | Method and device for playing video | |
| EP3048524B1 (en) | Document display support device, terminal, document display method, and computer-readable storage medium for computer program | |
| JP2023539273A (en) | Methods, devices, electronic devices and media for determining target addition methods | |
| CN111095922B (en) | Electronic device and method of operation |