TWI602432B - Video streaming system - Google Patents

Video streaming system Download PDF

Info

Publication number
TWI602432B
TWI602432B TW105119137A TW105119137A TWI602432B TW I602432 B TWI602432 B TW I602432B TW 105119137 A TW105119137 A TW 105119137A TW 105119137 A TW105119137 A TW 105119137A TW I602432 B TWI602432 B TW I602432B
Authority
TW
Taiwan
Prior art keywords
video
connection
server
streaming
capture device
Prior art date
Application number
TW105119137A
Other languages
Chinese (zh)
Other versions
TW201811063A (en
Inventor
蕭松峯
Original Assignee
日碩有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 日碩有限公司 filed Critical 日碩有限公司
Priority to TW105119137A priority Critical patent/TWI602432B/en
Application granted granted Critical
Publication of TWI602432B publication Critical patent/TWI602432B/en
Publication of TW201811063A publication Critical patent/TW201811063A/en

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Description

視頻推流系統 Video push system

本發明係有關於一種視頻推流系統,尤其是指一種視頻擷取裝置主動將所擷取到之視頻主動傳送至串流伺服器之視頻推流系統。 The present invention relates to a video streaming system, and more particularly to a video streaming system in which a video capturing device actively transmits the captured video to a streaming server.

隨著科技的發展,現有技術中已發展出許多可以透過網路觀看視頻之通信裝置,如手機、平板電腦、個人數位助理(Personal Digital Assistant;PDA)、筆記型電腦等,上述的通信裝置可以觀看由伺服器所轉傳出來的視頻檔案。 With the development of technology, many communication devices that can watch video through the network, such as mobile phones, tablet computers, personal digital assistants (PDAs), notebook computers, etc., have been developed in the prior art. Watch the video files transferred from the server.

其中,近年來隨著直播的興起,許多人們喜歡收看直播之視頻檔案,請參閱第一圖,第一圖係顯示先前技術之視頻傳輸系統之方塊示意圖,現有技術中,視頻傳輸系統PA1包含一直播源PA11、一伺服器PA12以及一通信裝置PA13,直播源PA11通信連接於伺服器PA12,伺服器PA12通信連接於通信裝置PA13,直播源PA11例如為監視器,通信裝置PA13例如為手機。 Among them, in recent years, with the rise of live broadcast, many people like to watch live video files. Please refer to the first figure. The first figure shows a block diagram of a prior art video transmission system. In the prior art, the video transmission system PA1 includes a The live broadcast source PA11, a server PA12, and a communication device PA13, the live broadcast source PA11 is communicably connected to the server PA12, the server PA12 is communicably connected to the communication device PA13, the live broadcast source PA11 is, for example, a monitor, and the communication device PA13 is, for example, a mobile phone.

現有技術中,使用者欲透過通信裝置PA13觀看直播源PA11所擷取的視頻時,係觸發通信裝置PA13 將一直播要求PAS1發送至伺服器PA12,使得伺服器PA12得知使用者的需求後,再將一直播請求PAS2傳送至直播源PA11,使得直播源PA11在接收到後,以一直播拉流信號PAS3將其所擷取到的視頻傳送至伺服器PA12,使得伺服器PA12再將視頻轉傳至通信裝置PA13,使得使用者可以觀看由直播源PA11所擷取的視頻。 In the prior art, when the user wants to watch the video captured by the live broadcast source PA11 through the communication device PA13, the communication device PA13 is triggered. A live broadcast request PAS1 is sent to the server PA12, so that the server PA12 knows the user's demand, and then transmits a live broadcast request PAS2 to the live broadcast source PA11, so that the live broadcast source PA11 receives the live broadcast pull signal after receiving it. The PAS3 transmits the captured video to the server PA12, so that the server PA12 transfers the video to the communication device PA13 so that the user can view the video captured by the live broadcast source PA11.

其中,由於現有技術是由伺服器PA12發送直播請求PAS2至直播源PA11來建立直播,而上述方式係為拉流,而採用拉流的方式中,受限於一般伺服器PA12的設定,易有常斷線之問題發生,此外,由於一般直播源PA11是在住家,因此一般會經過網路位址轉換器(Network Address Translation;NAT)連接至網際網路,因此有時候會有無法拉流(伺服器PA12無法連接至直播源PA11)而造成無法成功建立直播之情況。 In the prior art, the server PA12 sends the live broadcast request PAS2 to the live broadcast source PA11 to establish a live broadcast, and the above method is a pull flow, and the pull flow is limited by the setting of the general server PA12. The problem of frequent disconnection occurs. In addition, since the general live broadcast source PA11 is at home, it is usually connected to the Internet through a Network Address Translation (NAT), so sometimes it is impossible to pull the stream (servo The device PA12 cannot be connected to the live broadcast source PA11) and the live broadcast cannot be successfully established.

此外,現有技術一般在直播源PA11與伺服器PA12之間斷線時,伺服器PA12即無法取得並儲存斷線過程中的影像,致使通信裝置PA13無法獲取上述斷線過程中的影像,因而現有技術仍具備改善之空間。 In addition, in the prior art, when the live broadcast source PA11 and the server PA12 are disconnected, the server PA12 cannot obtain and store the image during the disconnection process, so that the communication device PA13 cannot obtain the image during the disconnection process, and thus the existing Technology still has room for improvement.

有鑒於現有之視頻傳輸系統都採用拉流的方式建立直播,因而普遍具有易斷線、不易建立直播以及斷線後無法取得斷線過程中的影像之問題。緣此,本發明主要係提供一種視頻推流系統,其主要係透過推流的方式 建立視頻傳輸,並儲存連線中斷之過程之影像,以在連線重建時回補連線中斷之過程之影像,以解決現有技術之問題。 In view of the fact that the existing video transmission systems use the streaming method to establish a live broadcast, it is generally problematic that it is easy to disconnect, is difficult to establish a live broadcast, and cannot obtain images during the disconnection process after the disconnection. Therefore, the present invention mainly provides a video streaming system, which mainly uses a push flow method. The video transmission is established, and the image of the process of the connection interruption is stored to recover the image of the process of the connection interruption during the connection reconstruction to solve the problem of the prior art.

基於上述目的,本發明所採用之主要技術手段係提供一種視頻推流系統,包含一視頻擷取裝置、一串流伺服器、一儲存裝置以及一通信裝置。視頻擷取裝置係包含一儲存單元,用以於一正常連線狀態擷取一正常連線視頻,並透過一第一資料通訊協議主動將該正常連線視頻以一第一推流信號傳送出。串流伺服器係通信連接於視頻擷取裝置,用以接收第一推流信號而暫存正常連線視頻,並用以透過一第二資料通訊協議與一第三資料通訊協議分別傳送出正常連線視頻。儲存裝置係通信連接於串流伺服器,用以接收串流伺服器以第二資料通訊協議所傳送出之正常連線視頻,藉以將正常連線視頻儲存為一群集視頻檔,且群集視頻檔係由複數個依照一影像擷取時序排列之串流格式視頻檔所組成。通信裝置係通信連接於串流伺服器,用以將一播放請求傳送至串流伺服器,藉以接收串流伺服器透過第三資料通訊協議而以一拉流信號所傳送之正常連線視頻,據以播放正常連線視頻。 Based on the above objective, the main technical means adopted by the present invention provides a video streaming system, including a video capturing device, a streaming server, a storage device, and a communication device. The video capture device includes a storage unit for capturing a normal connection video in a normal connection state, and actively transmitting the normal connection video as a first push signal through a first data communication protocol. . The serial server is connected to the video capture device for receiving the first push signal and temporarily storing the normal connection video, and transmitting the normal connection through a second data communication protocol and a third data communication protocol respectively. Line video. The storage device is communicatively coupled to the streaming server for receiving the normal connection video transmitted by the serial server by the second data communication protocol, thereby storing the normal connection video as a cluster video file and the cluster video file It is composed of a plurality of streaming video files arranged according to an image capturing timing. The communication device is communicatively coupled to the streaming server for transmitting a play request to the streaming server, so as to receive the normal connected video transmitted by the streaming server through a third data communication protocol by using a pull stream signal. According to the play of normal connection video.

在視頻擷取裝置與串流伺服器之間彼此中斷連線而使視頻擷取裝置處於一連線中斷狀態時,視頻擷取裝置係於連線中斷狀態擷取一中斷連線視頻,並將中斷連線視頻儲存於儲存單元,藉以在視頻擷取裝置自連線中斷狀態轉換至一後續正常連線狀態時,以一第二推流信號 將中斷連線視頻傳送至串流伺服器,使串流伺服器透過第二資料通訊協議將中斷連線視頻傳送至儲存裝置而供儲存裝置儲存。 When the video capture device and the streaming server are disconnected from each other and the video capture device is in a disconnected state, the video capture device captures an interrupted connection video in the connection interruption state, and The interrupted connection video is stored in the storage unit, so that when the video capture device is switched from the disconnection state to a subsequent normal connection state, a second push signal is used. The interrupted connection video is transmitted to the streaming server, so that the streaming server transmits the interrupted connection video to the storage device for storage by the second data communication protocol.

在上述必要技術手段的基礎下,上述視頻推流系統還包含以下所述的較佳附屬技術手段。儲存單元為一記憶卡,儲存裝置為一硬碟與一儲存伺服器中之一者,視頻擷取裝置為一網路攝影機(Internet Protocol Camera;IP CAM)、一數位錄影機(Digital Video Recorder;DVR)、一數位視頻伺服器(Digital Video Server;DVS)中之一者,通信裝置為一手機、一平板電腦、一桌上型電腦與一筆記型電腦中之一者。此外,第一資料通訊協議與第三資料通訊協議為一即時消息傳輸協議(Real Time Messaging Protocol;RTMP),第二資料通訊協議為一超文件即時串流協議(HTTP Live Streaming;HLS),串流格式視頻檔為一傳輸串流(Transport Stream;ts)檔案。 Based on the above-mentioned necessary technical means, the above video streaming system further includes the following preferred technical means. The storage unit is a memory card, and the storage device is one of a hard disk and a storage server. The video capture device is an Internet Protocol Camera (IP CAM) and a digital video recorder (Digital Video Recorder; DVR), one of a digital video server (DVS), the communication device is one of a mobile phone, a tablet computer, a desktop computer and a notebook computer. In addition, the first data communication protocol and the third data communication protocol are an Real Time Messaging Protocol (RTMP), and the second data communication protocol is a super fast file streaming protocol (HLS). The stream format video file is a transport stream (Transport Stream; ts) file.

在上述必要技術手段的基礎下,上述視頻推流系統還包含以下所述的較佳附屬技術手段。視頻擷取裝置具有一識別碼,視頻推流系統更包含一認證伺服器,認證伺服器係通信連接於視頻擷取裝置以及串流伺服器,並儲存有複數個授權碼、複數個比對碼與串流伺服器之一位址資訊,認證伺服器用以在接收到視頻擷取裝置所傳送之識別碼,並比對出識別碼符合該些比對碼中之一者時,將一包含有該些授權碼中之一推流授權碼與位址資訊之推流連線資訊傳送至視頻擷取裝置,藉以使視頻擷取裝置將 推流連線資訊與正常連線視頻傳送至串流伺服器,且在串流伺服器接收到推流連線資訊後,係解析出推流連線資訊所包含之推流授權碼,並在與認證伺服器確認出推流授權碼為正確時,接收視頻擷取裝置所傳送之正常連線視頻。 Based on the above-mentioned necessary technical means, the above video streaming system further includes the following preferred technical means. The video capture device has an identification code, and the video streaming system further includes an authentication server. The authentication server is communicatively coupled to the video capture device and the streaming server, and stores a plurality of authorization codes and a plurality of comparison codes. And one of the address information of the serial server, the authentication server is configured to receive the identification code transmitted by the video capture device, and compare the identification code to one of the comparison codes, and include The push connection information of one of the authorization codes and the address information is transmitted to the video capture device, so that the video capture device will The push connection information and the normal connection video are transmitted to the streaming server, and after the streaming server receives the push connection information, the push flow authorization code included in the push connection information is parsed, and When the authentication server confirms that the push authorization code is correct, it receives the normal connection video transmitted by the video capture device.

在上述必要技術手段的基礎下,上述視頻推流系統還包含以下所述的較佳附屬技術手段。認證伺服器係更通信連接於通信裝置,認證伺服器更用以在接收到通信裝置所傳送出之一包含有識別碼之請求資訊,並比對出識別碼符合該些比對碼中之一者時,將一包含有該些授權碼中之一拉流授權碼與位址資訊之拉流連線資訊傳送至通信裝置,藉以使通信裝置將拉流連線資訊與播放請求傳送至串流伺服器,且在串流伺服器接收到拉流連線資訊後,係解析出拉流連線資訊所包含之拉流授權碼,並在與認證伺服器確認出拉流授權碼為正確時,接收播放請求並將正常連線視頻透過第三資料通訊協議而以拉流信號傳送至通信裝置。 Based on the above-mentioned necessary technical means, the above video streaming system further includes the following preferred technical means. The authentication server is further connected to the communication device, and the authentication server is further configured to receive, by the communication device, one of the request information including the identification code, and compare the identification code with one of the comparison codes. Transmitting a pull connection information including one of the authorization codes and the address information to the communication device, so that the communication device transmits the pull connection information and the play request to the stream The server, after the streaming server receives the pull connection information, parses the pull authorization code included in the pull connection information, and confirms that the pull authorization code is correct when the authentication server confirms that the pull authorization code is correct. Receiving a play request and transmitting the normal connection video to the communication device by a pull stream signal through the third data communication protocol.

在上述必要技術手段的基礎下,上述視頻推流系統還包含以下所述的較佳附屬技術手段。在視頻擷取裝置自連線中斷狀態轉換至後續正常連線狀態,且認證伺服器在接收到視頻擷取裝置所傳送之識別碼,並比對出識別碼符合該些比對碼中之一者時,認證伺服器將一包含有該些授權碼中之一回補授權碼與位址資訊之回補連線資訊傳送至視頻擷取裝置,藉以使視頻擷取裝置將回補連線資訊與中斷連線視頻傳送至串流伺服器,且在串流伺服器 接收到回補連線資訊後,係解析出回補連線資訊所包含之回補授權碼,並在與認證伺服器確認出回補授權碼為正確時,接收視頻擷取裝置所傳送之中斷連線視頻。 Based on the above-mentioned necessary technical means, the above video streaming system further includes the following preferred technical means. The video capture device transitions from the disconnected state to the subsequent normal connection state, and the authentication server receives the identification code transmitted by the video capture device, and compares the identification code with one of the comparison codes. The authentication server transmits a replenishment connection information including one of the authorization codes and the address information to the video capture device, so that the video capture device will replenish the connection information. Connected to the streaming server with the interrupted connection, and the streaming server After receiving the replenishment connection information, the system resolves the replenishment authorization code included in the replenishment connection information, and receives the interruption transmitted by the video capture device when it is confirmed that the replenishment authorization code is correct with the authentication server. Connect the video.

在上述必要技術手段的基礎下,上述視頻推流系統還包含以下所述的較佳附屬技術手段。識別碼為一媒體存取控制位址(Media Access Control Address;MAC address),認證伺服器為一認證授權及計費(Authentication Authorization Accounting;AAA)伺服器,推流連線資訊、拉流連線資訊與回補連線資訊為一統一資源定位符(Uniform Resource Locator;URL)。 Based on the above-mentioned necessary technical means, the above video streaming system further includes the following preferred technical means. The identification code is a Media Access Control Address (MAC address), and the authentication server is an Authentication Authorization Accounting (AAA) server, which pushes the connection information and pulls the connection. The information and replenishment connection information is a Uniform Resource Locator (URL).

在上述必要技術手段的基礎下,上述視頻推流系統還包含以下所述的較佳附屬技術手段。視頻擷取裝置更用以於後續正常連線狀態擷取一後續正常連線視頻,並透過第二資料通訊協議與第一資料通訊協議主動將中斷連線視頻與後續正常連線視頻分別以第二推流信號與一第三推流信號傳送至串流伺服器。 Based on the above-mentioned necessary technical means, the above video streaming system further includes the following preferred technical means. The video capture device is further configured to capture a subsequent normal connection video in the subsequent normal connection state, and actively disconnect the disconnected connection video and the subsequent normal connection video through the second data communication protocol and the first data communication protocol respectively. The second push stream signal and a third push stream signal are transmitted to the streaming server.

在採用本發明所提供之視頻推流系統之主要技術手段後,由於採用推流的方式來傳送視頻可有效降低斷線的狀況,因此可大幅提升實用性,且即使斷線,視頻擷取裝置仍可儲存斷線時之視頻,並在重新建立連線時將此斷線時之視頻傳送至串流伺服器以供儲存至儲存裝置,因此使用者可觀看斷線時之視頻而提升便利性。 After adopting the main technical means of the video streaming system provided by the present invention, the transmission of the video by using the push stream can effectively reduce the condition of the disconnection, thereby greatly improving the practicability, and even if the line is broken, the video capturing device The video at the time of disconnection can still be stored, and the video at the time of disconnection is transmitted to the streaming server for storage to the storage device when the connection is re-established, so that the user can watch the video at the time of disconnection and improve the convenience. .

另外,也由於是採用推流的方式傳送視頻,因此視頻擷取裝置即使是透過網路位址轉換器連接至 網際網路,仍可有效地連接至串流伺服器而可輕易地建立連線而傳送視頻,因而可增加實務上使用的方便性。 In addition, since the video is transmitted by the push stream, the video capture device is connected to the network address converter. The Internet can still be effectively connected to a streaming server and can easily establish a connection to transmit video, thereby increasing the convenience of practical use.

本發明所採用的具體實施例,將藉由以下之實施例及圖式作進一步之說明。 The specific embodiments of the present invention will be further described by the following examples and drawings.

PA1‧‧‧視頻傳輸系統 PA1‧‧‧Video Transmission System

PA11‧‧‧直播源 PA11‧‧‧ Live source

PA12‧‧‧伺服器 PA12‧‧‧ server

PA13‧‧‧通信裝置 PA13‧‧‧ communication device

PAS1‧‧‧直播要求 PAS1‧‧‧ Live broadcast request

PAS2‧‧‧直播請求 PAS2‧‧‧ Live Request

PAS3‧‧‧直播拉流信號 PAS3‧‧‧ live streaming signal

1‧‧‧視頻推流系統 1‧‧‧Video Pushing System

11‧‧‧視頻擷取裝置 11‧‧‧Video capture device

111‧‧‧儲存單元 111‧‧‧ storage unit

12‧‧‧串流伺服器 12‧‧‧Streaming server

13‧‧‧儲存裝置 13‧‧‧Storage device

14‧‧‧通信裝置 14‧‧‧Communication device

15‧‧‧認證伺服器 15‧‧‧Authentication server

S1‧‧‧第一推流信號 S1‧‧‧first push signal

S2‧‧‧串流儲存信號 S2‧‧‧ Streaming storage signal

S3‧‧‧播放請求 S3‧‧‧Play request

S4‧‧‧拉流信號 S4‧‧‧ pull signal

S5‧‧‧第二推流信號 S5‧‧‧second push signal

S6‧‧‧串流儲存信號 S6‧‧‧ Streaming storage signal

S7‧‧‧第三推流信號 S7‧‧‧ third push signal

S8‧‧‧第一識別碼信號 S8‧‧‧First identification code signal

S9‧‧‧第一資訊信號 S9‧‧‧ first information signal

S10‧‧‧請求信號 S10‧‧‧ request signal

S11‧‧‧第二資訊信號 S11‧‧‧Second information signal

S12‧‧‧第二識別碼信號 S12‧‧‧Second identification code signal

S13‧‧‧第三資訊信號 S13‧‧‧ third information signal

第一圖係顯示先前技術之視頻傳輸系統之方塊示意圖。 The first figure shows a block diagram of a prior art video transmission system.

第二圖係顯示本發明第一較佳實施例之視頻推流系統之方塊示意圖。 The second figure shows a block diagram of a video streaming system according to a first preferred embodiment of the present invention.

第三圖係顯示本發明第二較佳實施例之視頻推流系統之方塊示意圖。 The third figure shows a block diagram of a video streaming system according to a second preferred embodiment of the present invention.

第四圖係顯示本發明第二較佳實施例之認證伺服器認證視頻擷取裝置傳送正常連線視頻之流程示意圖。 The fourth figure shows a flow chart of the authentication server authentication video capturing device transmitting the normal connection video according to the second preferred embodiment of the present invention.

第五圖係顯示本發明第二較佳實施例之認證伺服器認證通信裝置之流程示意圖。 Figure 5 is a flow chart showing the authentication server authentication communication device of the second preferred embodiment of the present invention.

第六圖係顯示本發明第二較佳實施例之認證伺服器認證視頻擷取裝置傳送中斷連線視頻之流程示意圖。 FIG. 6 is a flow chart showing the process of transmitting an interrupted connection video by the authentication server authentication video capturing device according to the second preferred embodiment of the present invention.

由於本發明所提供之視頻推流系統中,其組合實施方式不勝枚舉,故在此不再一一贅述,僅列舉二個較佳實施例加以具體說明。 Since the combined implementation of the video streaming system provided by the present invention is numerous, it will not be repeated here, and only two preferred embodiments are specifically described.

請參閱第二圖,第二圖係顯示本發明第一 較佳實施例之視頻推流系統之方塊示意圖。如圖所示,本發明較佳實施例所提供之視頻推流系統1包含一視頻擷取裝置11、一串流伺服器12、一儲存裝置13以及一通信裝置14。 Please refer to the second figure, which shows the first aspect of the present invention. A block diagram of a video streaming system of the preferred embodiment. As shown in the figure, the video streaming system 1 provided by the preferred embodiment of the present invention comprises a video capturing device 11, a streaming server 12, a storage device 13, and a communication device 14.

視頻擷取裝置11為一內嵌式(embedded)設備,例如為一網路攝影機(Internet Protocol Camera;IP CAM)、一數位錄影機(Digital Video Recorder;DVR)、一數位視頻伺服器(Digital Video Server;DVS)中之一者,但其他實施例中不限於此,且視頻擷取裝置11包含一儲存單元111,而儲存單元111為一記憶卡,但其他實施例中可為硬碟或是其他具有儲存能力之裝置,因此並不限於此。 The video capture device 11 is an embedded device, such as an Internet Protocol Camera (IP CAM), a Digital Video Recorder (DVR), and a digital video server (Digital Video). One of the servers; DVS), but the other embodiments are not limited thereto, and the video capture device 11 includes a storage unit 111, and the storage unit 111 is a memory card, but in other embodiments, it may be a hard disk or Other devices having storage capabilities are therefore not limited thereto.

串流伺服器12係通信連接於視頻擷取裝置11,較佳者,串流伺服器12係以無線通信連接的方式通信連接於視頻擷取裝置11,但其他實施例中可為有線通信連接,此外,串流伺服器12可為現有之可提供串流服務(Live Streaming Service;LSS;或稱Flash Media Streaming;FMS)之伺服器。 The streaming server 12 is communicatively coupled to the video capture device 11. Preferably, the streaming server 12 is communicatively coupled to the video capture device 11 by way of a wireless communication connection, but in other embodiments it may be a wired communication connection. In addition, the streaming server 12 can be an existing server that can provide a streaming service (LSS; or Flash Media Streaming; FMS).

儲存裝置13係通信連接於串流伺服器12,並為一硬碟與一儲存伺服器中之一者,但其他實施例中不限於此,任何可提供儲存服務(Simple Storage Service;S3;或稱Object Storage Service;OSS;或稱Bucket Storage Service;BSS)之儲存器皆不脫離本發明之範疇。其中,若儲存裝置13為硬碟,則儲存裝置13是可內建於串流伺服器12而以有線通信連接的方式通信連接於串流伺服器12;若 儲存裝置13為儲存伺服器,則儲存裝置13可以無線通信連接的方式通信連接於串流伺服器12,但其他實施例中不限於此。 The storage device 13 is communicatively coupled to the streaming server 12 and is one of a hard disk and a storage server. However, other embodiments are not limited thereto, and any storage service may be provided (Simple Storage Service; S3; or The storage of the Object Storage Service; OSS; or Bucket Storage Service (BSS) is not deviated from the scope of the present invention. If the storage device 13 is a hard disk, the storage device 13 can be built into the streaming server 12 and connected to the streaming server 12 by way of a wired communication connection; The storage device 13 is a storage server, and the storage device 13 can be communicably connected to the streaming server 12 in a wireless communication connection, but the other embodiments are not limited thereto.

通信裝置14係通信連接於串流伺服器12,並為一手機、一平板電腦、一桌上型電腦與一筆記型電腦中之一者,但其他實施例中不限於此,任何可供連線至網際網路並通信連接於串流伺服器12之裝置皆不脫離本發明之範疇,此外,較佳者,通信裝置14係以無線通信連接的方式通信連接於串流伺服器12。 The communication device 14 is communicatively coupled to the streaming server 12 and is one of a mobile phone, a tablet computer, a desktop computer, and a notebook computer. However, other embodiments are not limited thereto, and any one is connectable. The device that is wired to the Internet and communicatively coupled to the streaming server 12 does not depart from the scope of the present invention. Further, preferably, the communication device 14 is communicatively coupled to the streaming server 12 in a wireless communication connection.

視頻擷取裝置11係用以於一正常連線狀態擷取一正常連線視頻,並透過一第一資料通訊協議主動將正常連線視頻以一第一推流信號S1傳送出,其中,第一資料通訊協議為一即時消息傳輸協議(Real Time Messaging Protocol;RTMP),本發明較佳實施例所定義之視頻是指影像或是影像與聲音之結合,且正常連線狀態是指視頻擷取裝置11與串流伺服器12間有正常的連線狀態。此外,視頻擷取裝置11擷取正常連線視頻時,是即時的主動以推流的方式將正常連線視頻以第一推流信號S1傳送出。 The video capture device 11 is configured to capture a normal connection video in a normal connection state, and actively transmit the normal connection video as a first push flow signal S1 through a first data communication protocol, wherein A data communication protocol is a Real Time Messaging Protocol (RTMP). The video defined in the preferred embodiment of the present invention refers to an image or a combination of video and sound, and the normal connection state refers to video capture. There is a normal connection state between the device 11 and the streaming server 12. In addition, when the video capture device 11 captures the normal connection video, the video capture device 11 actively transmits the normal connection video as the first push flow signal S1 in a push-flow manner.

串流伺服器12係用以接收第一推流信號S1而暫存正常連線視頻,並用以透過一第二資料通訊協議與一第三資料通訊協議分別傳送出正常連線視頻,其中,第二資料通訊協議為一超文件即時串流協議(HTTP Live Streaming;HLS),第三資料通訊協議為一即時消息傳輸協議。具體來說,串流伺服器12會一直接收視頻擷取裝置11 所傳送的正常連線視頻,並會暫存以後再以第二資料通訊協議與第三資料通訊協議傳送出。 The serial server 12 is configured to receive the first push signal S1 and temporarily store the normal connection video, and transmit the normal connection video through a second data communication protocol and a third data communication protocol respectively, wherein The second data communication protocol is a super file instant stream protocol (HLS), and the third data communication protocol is an instant message transmission protocol. Specifically, the streaming server 12 will always receive the video capture device 11 The normal connection video transmitted will be temporarily stored and then transmitted by the second data communication protocol and the third data communication protocol.

儲存裝置13係用以接收串流伺服器12透過第二資料通訊協議以串流儲存信號S2所傳送出之正常連線視頻,藉以將正常連線視頻儲存為一群集視頻檔,且群集視頻檔係由複數個依照一影像擷取時序排列之串流格式視頻檔所組成,而串流格式視頻檔為一傳輸串流(Transport Stream;ts)檔案。具體來說,儲存裝置13會即時的接收並儲存串流伺服器12以第二資料通訊協議所傳送出之正常連線視頻,而上述影像擷取時序例如為10-60秒,也就是說,群集視頻檔會分割為以10-60秒之複數個串流格式視頻檔來儲存,但其他實施例中不限於此。 The storage device 13 is configured to receive the normal connection video transmitted by the streaming server 12 through the second data communication protocol to stream the storage signal S2, thereby storing the normal connection video as a cluster video file, and the cluster video file The video file is composed of a plurality of streaming video files arranged according to an image capturing time sequence, and the streaming video file is a transport stream (tsport) file. Specifically, the storage device 13 immediately receives and stores the normal connection video transmitted by the streaming server 12 by using the second data communication protocol, and the image capturing timing is, for example, 10-60 seconds, that is, The cluster video file is divided into a plurality of stream format video files of 10-60 seconds for storage, but other embodiments are not limited thereto.

通信裝置14係用以將一播放請求S3傳送至串流伺服器12,以使串流伺服器12透過第三資料通訊協議而以一拉流信號S4傳送出正常連線視頻,通信裝置14則在串流伺服器12透過第三資料通訊協議而以拉流信號S4傳送出正常連線視頻後,接收拉流信號S4而據以播放正常連線視頻。 The communication device 14 is configured to transmit a play request S3 to the streaming server 12, so that the streaming server 12 transmits the normal connected video through a pull stream signal S4 through the third data communication protocol, and the communication device 14 After the streaming server 12 transmits the normal connection video through the pull data signal S4 through the third data communication protocol, the pull stream signal S4 is received to play the normal connection video.

也就是說,在視頻擷取裝置11為正常連線狀態時,會即時主動將所擷取到的正常連線視頻傳送至串流伺服器12,且在通信裝置14將播放請求S3傳送至串流伺服器12時,串流伺服器12會將正常連線視頻傳送至通信裝置14,進而建立直播(或即時串流)的服務。 That is to say, when the video capture device 11 is in the normal connection state, the captured normal connection video will be actively transmitted to the streaming server 12, and the communication device 14 transmits the playback request S3 to the string. When the server 12 is streamed, the streaming server 12 will transmit the normal connection video to the communication device 14, thereby establishing a live (or instant streaming) service.

其中,在視頻擷取裝置11與串流伺服器12 之間彼此中斷連線而使視頻擷取裝置11處於一連線中斷狀態時,視頻擷取裝置11係於連線中斷狀態擷取一中斷連線視頻,並將中斷連線視頻儲存於儲存單元111,藉以在視頻擷取裝置11自連線中斷狀態轉換至一後續正常連線狀態時,透過第二資料通訊協議以一第二推流信號S5將中斷連線視頻傳送至串流伺服器12,使串流伺服器12透過第二資料通訊協議將中斷連線視頻以串流儲存信號S6傳送至儲存裝置13而供儲存裝置13儲存。 Wherein, the video capture device 11 and the streaming server 12 When the video capture device 11 is in a disconnected state, the video capture device 11 captures an interrupted connection video and stores the interrupted connection video in the storage unit. 111, wherein when the video capture device 11 transitions from the connection interruption state to a subsequent normal connection state, the interrupted connection video is transmitted to the streaming server 12 by a second push flow signal S5 through the second data communication protocol. The streaming server 12 transmits the interrupted connection video to the storage device 13 for storage by the storage device 13 via the second data communication protocol.

也就是說,本發明第一較佳實施例中,即使視頻擷取裝置11處於連線中斷狀態,其仍會擷取出中斷連線視頻並儲存於儲存單元111中,以在重新建立連線時,將中斷連線視頻重新傳送回串流伺服器12以使串流伺服器12將中斷連線視頻再傳送至儲存裝置13來儲存。在此需要一提的是,儲存裝置13儲存中斷連線視頻時,同樣是儲存為串流格式視頻檔,即每個串流格式視頻檔都為10-60秒之傳輸串流檔案。 That is, in the first preferred embodiment of the present invention, even if the video capture device 11 is in the disconnection state, it will retrieve the interrupted connection video and store it in the storage unit 111 to re-establish the connection. The interrupted connection video is retransmitted back to the streaming server 12 to cause the streaming server 12 to retransmit the disconnected video to the storage device 13 for storage. It should be noted that when the storage device 13 stores the disconnected video, it is also stored as a streaming video file, that is, each streaming video file is a 10-60 second transmission stream file.

此外,視頻擷取裝置11更用以於後續正常連線狀態擷取一後續正常連線視頻,並透過第二資料通訊協議與第一資料通訊協議主動將中斷連線視頻與後續正常連線視頻分別以第二推流信號S5與一第三推流信號S7傳送至串流伺服器12,也就是說,本發明第一較佳實施例中,在視頻擷取裝置11自連線中斷狀態轉換至後續正常連線狀態時,除了主動傳送後續正常連線視頻(與正常連線視頻相同)外,還會一併主動傳送中斷連線視頻。 In addition, the video capture device 11 is further configured to capture a subsequent normal connection video in a subsequent normal connection state, and actively disconnect the disconnected video and subsequent normal connection video through the second data communication protocol and the first data communication protocol. The second push stream signal S5 and the third push stream signal S7 are respectively transmitted to the stream server 12, that is, in the first preferred embodiment of the present invention, the video capture device 11 is disconnected from the connection state. In the subsequent normal connection state, in addition to actively transmitting subsequent normal connection video (same as the normal connection video), the interrupted connection video is also actively transmitted.

其中,實務上一般會以傳送後續正常連線視頻為主,傳送中斷連線視頻為輔,也就是說,實務上視頻擷取裝置11可設有一頻寬偵測單元,若在視頻擷取裝置11傳送後續正常連線視頻的過程中偵測出可用頻寬(bandwidth)高於頻寬偵測單元所設有之一預設值(單位例如是Kb、Mb、Gb,視實務上之視頻大小而定)時,會觸發視頻擷取裝置11除了傳送後續正常連線視頻外(透過第一資料通訊協議傳送),一併傳送中斷連線視頻(透過第二資料通訊協議傳送,其他實施例中可透過第一資料通訊協議傳送),換句話說,中斷連線視頻不會一次直接傳送至串流伺服器12,而是在頻寬夠用時才會傳送至串流伺服器12。 In practice, the normal connection video is generally transmitted, and the transmission interruption video is supplemented, that is, the video capture device 11 can be provided with a bandwidth detection unit, if the video capture device is in the video capture device. 11 The process of transmitting the subsequent normal connection video detects that the available bandwidth is higher than one of the preset values of the bandwidth detection unit (the unit is, for example, Kb, Mb, Gb, depending on the video size in practice) In addition, the video capture device 11 is triggered to transmit the interrupted connection video (transmitted through the second data communication protocol) in addition to transmitting the subsequent normal connection video (transmitted through the second data communication protocol, in other embodiments) It can be transmitted through the first data communication protocol. In other words, the disconnected video will not be directly transmitted to the streaming server 12 at one time, but will be transmitted to the streaming server 12 when the bandwidth is sufficient.

請參閱第三圖,第三圖係顯示本發明第二較佳實施例之視頻推流系統之方塊示意圖,如圖所示,與第一較佳實施例不同的地方在於視頻推流系統1更進一步包含一認證伺服器15,認證伺服器15係通信連接於視頻擷取裝置11、串流伺服器12以及通信裝置14,認證伺服器15為一認證授權及計費(Authentication Authorization Accounting;AAA)伺服器,且較佳者,認證伺服器15係以無線通信連接的方式通信連接於視頻擷取裝置11、串流伺服器12以及通信裝置14,並儲存有複數個授權碼、複數個比對碼與串流伺服器11之一位址資訊(即IP位址)。 Please refer to the third figure, which is a block diagram showing a video streaming system according to a second preferred embodiment of the present invention. As shown in the figure, the difference from the first preferred embodiment is that the video streaming system 1 is further The authentication server 15 is further connected to the video capture device 11, the streaming server 12, and the communication device 14. The authentication server 15 is an Authentication Authorization Accounting (AAA). The server, and preferably, the authentication server 15 is communicably connected to the video capturing device 11, the streaming server 12, and the communication device 14 in a wireless communication connection, and stores a plurality of authorization codes and a plurality of comparisons. The code and one of the address information of the serial server 11 (ie, the IP address).

另外,一般來說,視頻擷取裝置11具有一識別碼,而此識別碼為一媒體存取控制位址(Media Access Control Address;MAC address),但其他實施例中不限於此,實務上可透過此識別碼建立認證機制。此外,上述的比對碼的格式與識別碼相同,亦即認證伺服器15預先儲存有多個比對碼以認證視頻擷取裝置11,通常視頻擷取裝置11的使用者有付費並註冊,則認證伺服器15會將視頻擷取裝置11的識別碼預存為比對碼。 In addition, in general, the video capture device 11 has an identification code, and the identification code is a media access control address (Media Access). Control address; MAC address), but other embodiments are not limited thereto, and an authentication mechanism can be established through the identification code in practice. In addition, the format of the comparison code is the same as the identification code, that is, the authentication server 15 stores a plurality of comparison codes in advance to authenticate the video capture device 11, and the user of the video capture device 11 usually pays and registers. Then, the authentication server 15 prestores the identification code of the video capturing device 11 as a comparison code.

請一併參閱第三圖以及第四圖,第四圖係顯示本發明第二較佳實施例之認證伺服器認證視頻擷取裝置傳送正常連線視頻之流程示意圖。如圖所示,認證伺服器15認證視頻擷取裝置11之方法如以下步驟: Please refer to FIG. 3 and FIG. 4 together. FIG. 4 is a flow chart showing the process of transmitting a normal connection video by the authentication server authentication video capturing device according to the second preferred embodiment of the present invention. As shown in the figure, the authentication server 15 authenticates the video capture device 11 as follows:

步驟S101:接收視頻擷取裝置11所傳送之識別碼。 Step S101: Receive the identification code transmitted by the video capture device 11.

步驟S102:比對識別碼是否符合複數個比對碼中之一者。 Step S102: Align whether the identification code meets one of the plurality of comparison codes.

步驟S103:將一包含有該些授權碼中之一推流授權碼與位址資訊之推流連線資訊傳送至視頻擷取裝置11。 Step S103: transmitting push-pull connection information including one of the authorization codes and the address information to the video capture device 11.

步驟S104:視頻擷取裝置11將推流連線資訊與正常連線視頻傳送至串流伺服器12。 Step S104: The video capture device 11 transmits the push-wire connection information and the normal connection video to the streaming server 12.

步驟S105:串流伺服器12解析出推流連線資訊所包含之推流授權碼,並向認證伺服器15確認推流授權碼是否正確。 Step S105: The streaming server 12 parses out the push flow authorization code included in the push flow connection information, and confirms to the authentication server 15 whether the push flow authorization code is correct.

步驟S106:接收視頻擷取裝置11所傳送之正常連線視頻。 Step S106: Receive the normal connection video transmitted by the video capture device 11.

具體來說,認證伺服器15在接收到視頻擷取裝置11以一第一識別碼信號S8所傳送之識別碼(步驟S101),並比對出識別碼符合該些比對碼中之一者時(步驟S102),將一包含有該些授權碼中之一推流授權碼與位址資訊之推流連線資訊,以第一資訊信號S9傳送至視頻擷取裝置11(步驟S103),藉以使視頻擷取裝置11將推流連線資訊與正常連線視頻傳送至串流伺服器12(步驟S104),且在串流伺服器12接收到推流連線資訊後,係解析出推流連線資訊所包含之推流授權碼(步驟S105),並在與認證伺服器15確認出推流授權碼為正確時,接收視頻擷取裝置11所傳送之正常連線視頻(步驟S106)。 Specifically, the authentication server 15 receives the identification code transmitted by the video capture device 11 with a first identification code signal S8 (step S101), and compares the identification code with one of the comparison codes. At the time of step (step S102), the push-wire connection information including the one of the authorization codes and the address information is transmitted to the video capture device 11 by the first information signal S9 (step S103). Therefore, the video capture device 11 transmits the push connection information and the normal connection video to the streaming server 12 (step S104), and after the streaming server 12 receives the push connection information, the system analyzes the push. The push stream authorization code included in the streamline information (step S105), and when it is confirmed with the authentication server 15 that the push stream authorization code is correct, the normal connection video transmitted by the video capture device 11 is received (step S106). .

也就是說,在實務上只有通過認證的視頻擷取裝置11才可以主動將正常連線視頻傳送至串流伺服器12(推流之運作方式與第一較佳實施例相同,不再贅述)。另外,上述步驟S102與步驟S105之確認結果都為否時,係直接執行步驟結束,其他實施例中可將相關訊息發送給視頻擷取裝置11的使用者。其中,推流連線資訊為一統一資源定位符(Uniform Resource Locator;URL),其格式例如為「rtmp://ip位址/識別碼?s=拉流授權碼」,但不限於此。 That is to say, in practice, only the authenticated video capture device 11 can actively transmit the normal connection video to the streaming server 12 (the operation mode of the push flow is the same as that of the first preferred embodiment, and will not be described again) . In addition, when the confirmation result of step S102 and step S105 is negative, the step is directly executed. In other embodiments, the related message can be sent to the user of the video capturing device 11. The push connection information is a Uniform Resource Locator (URL), and the format is, for example, "rtmp://ip address/identification code?s=pull flow authorization code", but is not limited thereto.

請一併參閱第三圖以及第五圖,第五圖係顯示本發明第二較佳實施例之認證伺服器認證通信裝置之流程示意圖。如圖所示,認證伺服器15認證通信裝置14之方法如以下步驟: Please refer to FIG. 3 and FIG. 5 together. FIG. 5 is a flow chart showing the authentication server authentication communication device according to the second preferred embodiment of the present invention. As shown, the authentication server 15 authenticates the communication device 14 as follows:

步驟S201:接收通信裝置14所傳送出之一 包含有識別碼之請求資訊。 Step S201: receiving one of the communication devices 14 Contains request information for the identification code.

步驟S202:比對識別碼是否符合複數個比對碼中之一者。 Step S202: Align whether the identification code meets one of the plurality of comparison codes.

步驟S203:將一包含有該些授權碼中之一拉流授權碼與位址資訊之拉流連線資訊傳送至通信裝置14。 Step S203: Send a pull connection information including one of the authorization codes and the address information to the communication device 14.

步驟S204:通信裝置14將拉流連線資訊與播放請求S3(標示於第二圖)傳送至串流伺服器12。 Step S204: The communication device 14 transmits the pull connection information and the play request S3 (indicated in the second figure) to the streaming server 12.

步驟S205:串流伺服器12解析出拉流連線資訊所包含之拉流授權碼,並向認證伺服器15確認拉流授權碼是否正確。 Step S205: The streaming server 12 parses out the pull authorization code included in the pull connection information, and confirms to the authentication server 15 whether the pull authorization code is correct.

步驟S206:接收播放請求S3(標示於第二圖)並將正常連線視頻透過第三資料通訊協議而以拉流信號S4(標示於第二圖)傳送至通信裝置14。 Step S206: Receive the play request S3 (labeled in the second figure) and transmit the normal connection video to the communication device 14 through the third data communication protocol and the pull stream signal S4 (indicated in the second figure).

具體來說,認證伺服器15在接收到通信裝置14以一請求信號S10所傳送出之一包含有識別碼之請求資訊(步驟S201),並比對出識別碼符合該些比對碼中之一者時(步驟S202),將一包含有該些授權碼中之一拉流授權碼與位址資訊之拉流連線資訊以一第二資訊信號S11傳送至通信裝置14(步驟S203),藉以使通信裝置14將拉流連線資訊與播放請求S3傳送至串流伺服器12(步驟S204),且在串流伺服器12接收到拉流連線資訊後,係解析出拉流連線資訊所包含之拉流授權碼,並在與認證伺服器15確認出拉流授權碼為正確時(步驟S205),接收播放 請求S3並將正常連線視頻透過第三資料通訊協議而以拉流信號S4傳送至通信裝置14(步驟S206)。 Specifically, the authentication server 15 receives the request information including the identification code transmitted by the communication device 14 by using a request signal S10 (step S201), and compares the identification code with the matching code. In one step (step S202), a pull connection information including one of the authorization codes and the address information is transmitted to the communication device 14 by a second information signal S11 (step S203). Therefore, the communication device 14 transmits the pull connection information and the play request S3 to the streaming server 12 (step S204), and after the streaming server 12 receives the pull connection information, the pull connection is analyzed. The pull stream authorization code included in the information, and when it is confirmed with the authentication server 15 that the pull stream authorization code is correct (step S205), receiving and playing S3 is requested and the normal connection video is transmitted to the communication device 14 by the pull stream signal S4 through the third data communication protocol (step S206).

也就是說,在實務上只有通過認證的通信裝置14才可以觀看正常連線視頻(拉流之運作方式與第一較佳實施例相同,不再贅述)。另外,上述步驟S202與步驟S205之確認結果都為否時,係直接執行步驟結束,其他實施例中可將相關訊息發送給通信裝置14的使用者。 That is to say, in practice, only the authenticated communication device 14 can view the normal connection video (the operation mode of the pull stream is the same as that of the first preferred embodiment, and will not be described again). In addition, when the confirmation result of step S202 and step S205 is no, the step is directly executed. In other embodiments, the related message can be sent to the user of the communication device 14.

另外,在此需要一提的是,一般來說,步驟S201中,通信裝置14是將所欲觀看的視頻擷取裝置11的識別碼傳送至認證伺服器15,而在步驟S203中,會依據通信裝置14於認證伺服器15所註冊的租約或資費方案將步驟S201中之視頻擷取裝置11的位址資訊與拉流授權碼所組成的拉流連線資訊一併傳送至通信裝置14。其中,拉流連線資訊為統一資源定位符,其格式例如為「http://ip位址/識別碼?s=拉流授權碼」,但不限於此。 In addition, in this case, in general, in step S201, the communication device 14 transmits the identification code of the video capturing device 11 to be viewed to the authentication server 15, and in step S203, The communication device 14 transmits the address information of the video capture device 11 in step S201 and the pull connection information composed of the pull authorization code to the communication device 14 together with the lease or tariff plan registered by the authentication server 15. The pull connection information is a uniform resource locator, and the format is, for example, "http://ip address/identification code?s=pull flow authorization code", but is not limited thereto.

請一併參閱第三圖以及第六圖,第六圖係顯示本發明第二較佳實施例之認證伺服器認證視頻擷取裝置傳送中斷連線視頻之流程示意圖。如圖所示,認證伺服器15認證視頻擷取裝置11之方法如以下步驟: Please refer to FIG. 3 and FIG. 6 together. FIG. 6 is a flow chart showing the process of transmitting an interrupted connection video by the authentication server authentication video capturing device according to the second preferred embodiment of the present invention. As shown in the figure, the authentication server 15 authenticates the video capture device 11 as follows:

步驟S301:接收視頻擷取裝置11所傳送之識別碼。 Step S301: Receive the identification code transmitted by the video capture device 11.

步驟S302:比對識別碼是否符合複數個比對碼中之一者。 Step S302: Align whether the identification code meets one of the plurality of comparison codes.

步驟S303:將一包含有該些授權碼中之一 回補授權碼與位址資訊之回補連線資訊傳送至視頻擷取裝置11。 Step S303: Include one of the authorization codes The callback connection information of the callback authorization code and the address information is transmitted to the video capture device 11.

步驟S304:視頻擷取裝置11將回補連線資訊與中斷連線視頻傳送至串流伺服器12。 Step S304: The video capturing device 11 transmits the replenishment connection information and the disconnected connection video to the streaming server 12.

步驟S305:串流伺服器12解析出回補連線資訊所包含之回補授權碼,並向認證伺服器15確認回補授權碼是否正確。 Step S305: The streaming server 12 parses out the replenishment authorization code included in the replenishment connection information, and confirms to the authentication server 15 whether the replenishment authorization code is correct.

步驟S306:接收視頻擷取裝置11所傳送之中斷連線視頻。 Step S306: Receive the interrupted connection video transmitted by the video capture device 11.

具體來說,在視頻擷取裝置11自連線中斷狀態轉換至後續正常連線狀態,仍需進行認證才可傳送中斷連線視頻,進一步來說,認證伺服器15在接收到視頻擷取裝置11以第二識別碼信號S12所傳送之識別碼(步驟S301),並比對出識別碼符合該些比對碼中之一者時(步驟S302),認證伺服器15將一包含有該些授權碼中之回補授權碼與位址資訊之回補連線資訊以第三資訊信號S13傳送至視頻擷取裝置11(步驟S303),藉以使視頻擷取裝置11將回補連線資訊與中斷連線視頻傳送至串流伺服器12(步驟S304),且在串流伺服器12接收到回補連線資訊後,係解析出回補連線資訊所包含之回補授權碼,並在與認證伺服器15確認出回補授權碼為正確時(步驟S305),接收視頻擷取裝置11所傳送之中斷連線視頻(步驟S306)。 Specifically, after the video capture device 11 transitions from the connection interruption state to the subsequent normal connection state, authentication is still required to transmit the disconnected connection video. Further, the authentication server 15 receives the video capture device. 11 when the identification code transmitted by the second identification code signal S12 (step S301), and comparing the identification code to one of the comparison codes (step S302), the authentication server 15 will include the The replenishment authorization code in the authorization code and the replenishment connection information of the address information are transmitted to the video capture device 11 in the third information signal S13 (step S303), so that the video capture device 11 will replenish the connection information and The interrupted connection video is transmitted to the streaming server 12 (step S304), and after the streaming server 12 receives the replenishment connection information, the replenishment authorization code included in the replenishment connection information is parsed and When the authentication server 15 confirms that the replenishment authorization code is correct (step S305), the interrupted connection video transmitted by the video capture device 11 is received (step S306).

也就是說,在實務上只有通過認證的視頻擷取裝置11才可進一步推流中斷連線視頻(推流之運作方 式與第一較佳實施例相同,不再贅述),此外,實務上也必需要在認證後才可進一步推流後續正常連線視頻,即需認證後才可推流後續正常連線視頻與中斷連線視頻。另外,上述步驟S302與步驟S305之確認結果都為否時,係直接執行步驟結束,其他實施例中可將相關訊息發送給視頻擷取裝置11的使用者。另外,回補連線資訊為統一資源定位符,其格式例如為「http://ip位址/識別碼?s=回補授權碼」,但不限於此。 That is to say, in practice, only the authenticated video capture device 11 can further push the interrupted connection video (the operation of the push stream) The method is the same as that of the first preferred embodiment, and will not be described again. In addition, in practice, it is necessary to further push the subsequent normal connection video after the authentication, that is, after the authentication is required, the subsequent normal connection video can be pushed and Disconnect the video. In addition, when the confirmation result of step S302 and step S305 is no, the step is directly executed. In other embodiments, the related message can be sent to the user of the video capturing device 11. In addition, the replenishment connection information is a uniform resource locator, and its format is, for example, "http://ip address/identification code?s=recruitment authorization code", but is not limited thereto.

綜合以上所述,在採用了本發明較佳實施例所提供之視頻推流系統後,由於採用推流的方式來傳送視頻可有效降低斷線的狀況,因此可大幅提升實用性,且即使斷線,視頻擷取裝置仍可儲存斷線時之視頻,並在重新建立連線時將此斷線時之視頻傳送至串流伺服器以供儲存至儲存裝置,因此使用者可觀看斷線時之視頻而提升便利性。 In summary, after the video streaming system provided by the preferred embodiment of the present invention is adopted, the video is transmitted by the push stream to effectively reduce the disconnection condition, thereby greatly improving the usability and even if The video capture device can still store the video when the line is disconnected, and when the connection is re-established, the video of the disconnection is transmitted to the streaming server for storage to the storage device, so that the user can watch the disconnection The video enhances convenience.

另外,也由於是採用推流的方式傳送視頻,因此視頻擷取裝置即使是透過網路位址轉換器連接至網際網路,仍可有效地連接至串流伺服器而可輕易地建立連線而傳送視頻,因而可增加實務上使用的方便性。 In addition, since the video is transmitted by means of push streaming, the video capture device can be easily connected to the streaming server and can be easily connected even if it is connected to the Internet through a network address converter. The video is transmitted, which increases the convenience of practical use.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。 The features and spirit of the present invention will be more apparent from the detailed description of the preferred embodiments. On the contrary, the intention is to cover various modifications and equivalents within the scope of the invention as claimed.

1‧‧‧視頻推流系統 1‧‧‧Video Pushing System

11‧‧‧視頻擷取裝置 11‧‧‧Video capture device

111‧‧‧儲存單元 111‧‧‧ storage unit

12‧‧‧串流伺服器 12‧‧‧Streaming server

13‧‧‧儲存裝置 13‧‧‧Storage device

14‧‧‧通信裝置 14‧‧‧Communication device

S1‧‧‧第一推流信號 S1‧‧‧first push signal

S2‧‧‧串流儲存信號 S2‧‧‧ Streaming storage signal

S3‧‧‧播放請求 S3‧‧‧Play request

S4‧‧‧拉流信號 S4‧‧‧ pull signal

S5‧‧‧第二推流信號 S5‧‧‧second push signal

S6‧‧‧串流儲存信號 S6‧‧‧ Streaming storage signal

S7‧‧‧第三推流信號 S7‧‧‧ third push signal

Claims (9)

一種視頻推流系統,係包含:一視頻擷取裝置,係包含一儲存單元,用以於一正常連線狀態擷取一正常連線視頻,並透過一第一資料通訊協議主動將該正常連線視頻以一第一推流信號傳送出;一串流伺服器,係通信連接於該視頻擷取裝置,用以接收該第一推流信號而暫存該正常連線視頻,並用以透過一第二資料通訊協議與一第三資料通訊協議分別傳送出該正常連線視頻;一儲存裝置,係通信連接於該串流伺服器,用以接收該串流伺服器以該第二資料通訊協議所傳送出之該正常連線視頻,藉以將該正常連線視頻儲存為一群集視頻檔,且該群集視頻檔係由複數個依照一影像擷取時序排列之串流格式視頻檔所組成;以及一通信裝置,係通信連接於該串流伺服器,用以將一播放請求傳送至該串流伺服器,藉以接收該串流伺服器透過該第三資料通訊協議而以一拉流信號所傳送之該正常連線視頻,據以播放該正常連線視頻;其中,在該視頻擷取裝置與該串流伺服器之間彼此中斷連線而使該視頻擷取裝置處於一連線中斷狀態時,該視頻擷取裝置係於該連線中斷狀態擷取一中斷連線視頻,並將該中斷連線視頻儲存於該儲存單元,藉以在該視頻擷取裝置自該連線中斷狀態轉換至一後續正常連線狀態時,以一第二推流信號將該中斷連線視頻傳 送至該串流伺服器,使該串流伺服器透過該第二資料通訊協議將該中斷連線視頻傳送至該儲存裝置而供該儲存裝置儲存;該視頻擷取裝置更用以於該後續正常連線狀態擷取一後續正常連線視頻,並透過該第二資料通訊協議與該第一資料通訊協議主動將該中斷連線視頻與該後續正常連線視頻分別以該第二推流信號與一第三推流信號傳送至該串流伺服器。 A video streaming system includes: a video capture device, comprising a storage unit for capturing a normal connection video in a normal connection state, and actively using the first data communication protocol to connect the normal connection The line video is transmitted by a first push signal; a stream server is communicatively coupled to the video capture device for receiving the first push signal and temporarily storing the normal connection video for transmitting The second data communication protocol and the third data communication protocol respectively transmit the normal connection video; a storage device is communicatively coupled to the streaming server for receiving the streaming server to the second data communication protocol Transmitting the normal connection video, thereby storing the normal connection video as a cluster video file, and the cluster video file is composed of a plurality of streaming video files arranged according to an image capture timing; a communication device connected to the streaming server for transmitting a play request to the streaming server, so as to receive the streaming server through the third data communication protocol The normal connection video transmitted by the pull stream signal, according to which the normal connection video is played; wherein the video capture device and the streaming server are disconnected from each other to cause the video capture device to be in a When the connection is interrupted, the video capture device captures an interrupted connection video in the connection interruption state, and stores the interrupted connection video in the storage unit, so that the video capture device is connected to the video When the interrupt state is switched to a subsequent normal connection state, the interrupted connection video is transmitted by a second push stream signal. Sending to the streaming server, the streaming server transmits the interrupted connection video to the storage device for storage by the storage device through the second data communication protocol; the video capture device is further used for the subsequent The normal connection state captures a subsequent normal connection video, and actively transmits the interrupt connection video and the subsequent normal connection video to the second push flow signal through the second data communication protocol and the first data communication protocol. And a third push stream signal is transmitted to the stream server. 如申請專利範圍第1項所述之視頻推流系統,其中,該儲存單元為一記憶卡。 The video streaming system of claim 1, wherein the storage unit is a memory card. 如申請專利範圍第1項所述之視頻推流系統,其中,該儲存裝置為一硬碟與一儲存伺服器中之一者,該視頻擷取裝置為一網路攝影機(Internet Protocol Camera;IP CAM)、一數位錄影機(Digital Video Recorder;DVR)、一數位視頻伺服器(Digital Video Server;DVS)中之一者,該通信裝置為一手機、一平板電腦、一桌上型電腦與一筆記型電腦中之一者。 The video streaming system of claim 1, wherein the storage device is one of a hard disk and a storage server, and the video capturing device is a network camera (Internet Protocol Camera; IP). CAM), one of a Digital Video Recorder (DVR) and a Digital Video Server (DVS), the communication device is a mobile phone, a tablet computer, a desktop computer and a One of the notebook computers. 如申請專利範圍第1項所述之視頻推流系統,其中,該第一資料通訊協議與該第三資料通訊協議為一即時消息傳輸協議(Real Time Messaging Protocol;RTMP),該第二資料通訊協議為一超文件即時串流協議(HTTP Live Streaming;HLS)。 The video streaming system of claim 1, wherein the first data communication protocol and the third data communication protocol are an Real Time Messaging Protocol (RTMP), and the second data communication The protocol is a super fast file streaming protocol (HTTP Live Streaming; HLS). 如申請專利範圍第1項所述之視頻推流系統,其中,該串流格式視頻檔為一傳輸串流(Transport Stream;ts)檔案。 The video streaming system of claim 1, wherein the streaming video file is a Transport Stream (ts) file. 如申請專利範圍第1項所述之視頻推流系統,其中,該視頻擷取裝置具有一識別碼,該視頻推流系統更包含一認證伺服器,該認證伺服器係通信連接於該視頻擷取裝置以及該串流伺服器,並儲存有複數個授權碼、複數個比對碼與該串流伺服器之一位址資訊,該認證伺服器用以在接收到該視頻擷取裝置所傳送之該識別碼,並比對出該識別碼符合該些比對碼中之一者時,將一包含有該些授權碼中之一推流授權碼與該位址資訊之推流連線資訊傳送至該視頻擷取裝置,藉以使該視頻擷取裝置將該推流連線資訊與該正常連線視頻傳送至該串流伺服器,且在該串流伺服器接收到該推流連線資訊後,係解析出該推流連線資訊所包含之該推流授權碼,並在與該認證伺服器確認出該推流授權碼為正確時,接收該視頻擷取裝置所傳送之該正常連線視頻。 The video streaming system of claim 1, wherein the video capturing device has an identification code, and the video streaming system further comprises an authentication server, wherein the authentication server is communicatively coupled to the video. And the device and the serial server, and storing a plurality of authorization codes, a plurality of comparison codes, and address information of the stream server, wherein the authentication server is configured to receive the video capture device And the matching code, and comparing the identification code to one of the comparison codes, a push-stream connection information including one of the authorization codes and the address information Transmitting to the video capture device, so that the video capture device transmits the push connection information and the normal connection video to the streaming server, and the push flow connection is received by the streaming server After the information, the push flow authorization code included in the push flow connection information is parsed, and when the authentication server confirms that the push flow authorization code is correct, receiving the normal transmission by the video capture device Connect the video. 如申請專利範圍第6項所述之視頻推流系統,其中,該認證伺服器係更通信連接於該通信裝置,該認證伺服器更用以在接收到該通信裝置所傳送出之一包含有該識別碼之請求資訊,並比對出該識別碼符合該些比 對碼中之一者時,將一包含有該些授權碼中之一拉流授權碼與該位址資訊之拉流連線資訊傳送至該通信裝置,藉以使該通信裝置將該拉流連線資訊與該播放請求傳送至該串流伺服器,且在該串流伺服器接收到該拉流連線資訊後,係解析出該拉流連線資訊所包含之該拉流授權碼,並在與該認證伺服器確認出該拉流授權碼為正確時,接收該播放請求並將該正常連線視頻透過該第三資料通訊協議而以該拉流信號傳送至該通信裝置。 The video streaming system of claim 6, wherein the authentication server is further communicatively coupled to the communication device, and the authentication server is further configured to receive one of the transmitted devices The identification code of the identification code, and compares the identification code with the ratio And when one of the codes is used, a pull connection information including one of the authorization codes and the address information is transmitted to the communication device, so that the communication device connects the communication device The line information and the play request are transmitted to the streaming server, and after the streaming server receives the pull connection information, the pull stream authorization code included in the pull connection information is parsed, and When it is confirmed with the authentication server that the pull stream authorization code is correct, the play request is received and the normal connection video is transmitted to the communication device by the pull stream signal through the third data communication protocol. 如申請專利範圍第6項所述之視頻推流系統,其中,在該視頻擷取裝置自該連線中斷狀態轉換至該後續正常連線狀態,且該認證伺服器在接收到該視頻擷取裝置所傳送之該識別碼,並比對出該識別碼符合該些比對碼中之一者時,該認證伺服器將一包含有該些授權碼中之一回補授權碼與該位址資訊之回補連線資訊傳送至該視頻擷取裝置,藉以使該視頻擷取裝置將該回補連線資訊與該中斷連線視頻傳送至該串流伺服器,且在該串流伺服器接收到該回補連線資訊後,係解析出該回補連線資訊所包含之該回補授權碼,並在與該認證伺服器確認出該回補授權碼為正確時,接收該視頻擷取裝置所傳送之該中斷連線視頻。 The video streaming system of claim 6, wherein the video capturing device transitions from the connection interruption state to the subsequent normal connection state, and the authentication server receives the video capture And the authentication server will include one of the authorization codes and the address when the identification code transmitted by the device matches one of the comparison codes. The information back-up connection information is transmitted to the video capture device, so that the video capture device transmits the backup connection information and the disconnected connection video to the streaming server, and the streaming server is in the streaming server After receiving the replenishment connection information, the replenishment authorization code included in the replenishment connection information is parsed, and the video is received when the authentication server confirms that the replenishment authorization code is correct. Take the interrupted connection video transmitted by the device. 如申請專利範圍第8項所述之視頻推流系統,其中,該識別碼為一媒體存取控制位址(Media Access Control Address;MAC address),該認證伺服器為一認證授權及計費(Authentication Authorization Accounting;AAA)伺服器,該推流連線資訊、該拉流連線資訊與該回補連線資訊為一統一資源定位符(Uniform Resource Locator;URL)。 The video streaming system of claim 8, wherein the identification code is a media access control address (Media Access) Control address; MAC address), the authentication server is an Authentication Authorization Accounting (AAA) server, and the push connection information, the pull connection information, and the backup connection information are one Uniform Resource Locator (URL).
TW105119137A 2016-06-17 2016-06-17 Video streaming system TWI602432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105119137A TWI602432B (en) 2016-06-17 2016-06-17 Video streaming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105119137A TWI602432B (en) 2016-06-17 2016-06-17 Video streaming system

Publications (2)

Publication Number Publication Date
TWI602432B true TWI602432B (en) 2017-10-11
TW201811063A TW201811063A (en) 2018-03-16

Family

ID=61010989

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105119137A TWI602432B (en) 2016-06-17 2016-06-17 Video streaming system

Country Status (1)

Country Link
TW (1) TWI602432B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11368649B2 (en) 2020-02-24 2022-06-21 Axis Ab Streaming of a live video stream

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Kevin J. Ma等,Mobile Video Delivery with HTTP,IEEE Communications Magazine,April 2011,頁166 - 175 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11368649B2 (en) 2020-02-24 2022-06-21 Axis Ab Streaming of a live video stream

Also Published As

Publication number Publication date
TW201811063A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
US8659638B2 (en) Method applied to endpoint of video conference system and associated endpoint
US9024999B2 (en) Information processing apparatus, conference system, and storage medium
JP5675811B2 (en) Remote data backup method and remote data backup system using the same
EP2001198B1 (en) File protocol for transaction based communication
WO2016049987A1 (en) Data processing method and apparatus, and related servers
US20090070884A1 (en) Method, system and device for secured access to protected digital material
US10681314B2 (en) Moving image splitting device and monitoring method
US20080189587A1 (en) Video transmitting apparatus, video receiving apparatus, and video transmission system
CN106713127B (en) Method and device for acquiring and processing instant chat records
EP3367691B1 (en) Uploading and transcoding media files
JP2008311905A (en) Sip converter device
WO2017088575A1 (en) Encryption mechanism-based ipc service implementation method and system
TWI602432B (en) Video streaming system
WO2013044715A1 (en) Information processing method and device in instant communication
JP2008311969A (en) Receiver, transmitter, communication system, control method for the receiver, communication method, control program for the receiver, and recording medium with the communication program stored
CN107547923B (en) Video plug-flow system
US7234003B2 (en) Method and apparatus to facilitate direct transfer of data between a data device and a network connection
JP2010103656A (en) Content transmitter and content receiver
US20220321420A1 (en) System and method for sharing media resources for network based communication
JP2019507511A (en) Method for playing multiple media titles, compatible media source device, media player device, media delegation device, and configurable and adapted computer program
EP3461135A1 (en) Method for managing the access right to a digital content
US20120271959A1 (en) Feature set based content communications systems and methods
US10447680B2 (en) Communication control apparatus, communication control method, and recording medium
US11303692B2 (en) Communication apparatus for transmitting response, communication method, and storage medium
JP6289076B2 (en) Information processing apparatus, information processing method, and program