201136314 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種影像播放系統及方法,尤其關於一種監 控影像播放系統及方法。 【先前技術】 [0002] 目前,影像監控設備的生產廠商眾多,各個廠商採用的 影像編碼方式各不相同。例如,對於網路攝像機,不同 的廠商可能採用H. 263、H. 264、MJPEG、MPEG4等編碼 方式。用戶觀看監控影像時需要採取相對應的解碼方式 進行解碼,給用戶帶來了很大的麻煩。此外,習知的影 像監控系統中,外部網路通常可以直接訪問内部網路的 監控設備,對影像資料的安全構成了威脅。 【發明内容】 [0003] 鑒於以上内容,有必要提供一種監控影像播放系統及方 法,便於用戶安全方便地查看監控影像。 [0004] 一種監控影像播放系統,該系統包括:監聽模組,用於 監聽用戶端對指定監控點的影像播放請求;搜索模組, 用於確定該指定監控點對應的監控設備,並搜索該監控 設備的設備資訊;獲取模組,用於根據搜索的設備資訊 與監控設備建立通訊連接,並根據影像播放請求從監控 設備獲取影像資料;編碼模組,用於對獲取的影像資料 進行解碼,並以預先確定的編碼方式對解碼的影像資料 重新編碼;及發送模組,用於將重新編碼後的影像資料 發送給用戶端。 一種監控影像播放方法,該方法包括步驟:監聽用戶端 099110968 表單編號A0101 第4頁/共15頁 0992019258-0 [0005] 201136314 對指定監控點的影像減請求;確定該指定監控點對應 的監控設備’並搜㈣監控設備㈣備㈣;根據搜索 的設備資訊與監控設《立㈣連接,並根據影像播放 請求從監控設髓«像資料;對獲取㈣料料進行 解碼,肋航確定的編碼h切解碼㈣像資料重新 編碼;及將重新編碼後的影像資料發送终用戶端 [0006] Ο 本發明回應於用戶端的影像播放請求, 影像資料,對影像資料重新編碼後傳送 用戶安全方便地查看監控影像》 從監控設備獲取 回用戶端,便於 [0007]201136314 VI. Description of the Invention: [Technical Field] The present invention relates to a video playback system and method, and more particularly to a monitoring video playback system and method. [Prior Art] [0002] At present, there are many manufacturers of image monitoring equipment, and the image coding methods adopted by various manufacturers are different. For example, for network cameras, different vendors may use H.263, H.264, MJPEG, MPEG4, etc. When the user views the surveillance image, it needs to adopt the corresponding decoding method to decode, which brings great trouble to the user. In addition, in the conventional image monitoring system, the external network usually directly accesses the monitoring device of the internal network, posing a threat to the security of the image data. SUMMARY OF THE INVENTION [0003] In view of the above, it is necessary to provide a monitoring image playing system and method for the user to view the monitoring image safely and conveniently. [0004] A monitoring video playback system, the system includes: a monitoring module, configured to monitor a video playback request of a user to a specified monitoring point; and a search module, configured to determine a monitoring device corresponding to the designated monitoring point, and search for the The device information of the monitoring device; the acquiring module is configured to establish a communication connection with the monitoring device according to the searched device information, and obtain image data from the monitoring device according to the image playing request; the encoding module is configured to decode the acquired image data, And re-encoding the decoded image data by using a predetermined encoding manner; and sending a module, configured to send the re-encoded image data to the user end. A method for monitoring video playback, the method comprising the steps of: monitoring user terminal 099110968 form number A0101 page 4 / total 15 page 0992019258-0 [0005] 201136314 image subtraction request for a specified monitoring point; determining a monitoring device corresponding to the designated monitoring point 'And search (four) monitoring equipment (four) preparation (four); according to the search for equipment information and monitoring set up "four (four) connection, and according to the video playback request from the monitoring set up "image data; to obtain (four) material decoding, the definition of the cost of the rib navigation h Decoding (4) image data re-encoding; and re-encoding the image data to the end user terminal [0006] Ο The invention responds to the video playback request of the user end, the image data, re-encodes the image data, and transmits the user safely and conveniently to view and monitor Image" Get back to the user terminal from the monitoring device for easy [0007]
【實施方式】 參閱圖1所示,係本發明監控影像播放系統較佳實施例的 應用環境示«。所述監控影像播放系㈣運行於舰 器11中,該伺服器11透過内部網路] U與至少一個監控設 m3 (圖中僅示出-個為例)通訊連接,_服器⑽ 連接外部網路!4。所述監控設幻3包括網路攝像機、數 位影像錄影機(digital video recorder,謂)及 數位影像伺服器(digital vider> 0 server , DVS)。該 監控設備13設置於各個監控點’用於採集各個的控點的 影像資料。㈣戶透過好端15請求播放監控影像時, 監控影像播放系統麗相對應的監控設備13獲取影像資 料,對影像資料重新編碼後傳送回用戶嫂^ 貝^用戶端15。所述用戶端15可以祕㈣部纟鹏12,也可叹接於外部網路14。所述内部祕12可以是企業級區域網路,所述外部網路可以是網際網路。在本實施例中,-肌这, ’ 糾服1§ 11還透過内部網路12與資料庫16通訊連接,該資料庫16儲疒· 設 099110968 表單編號A0101 第5頁/共15頁 0992019258-0 201136314 [0008] [0009] [0010] [0011] [0012] 備13的設備資訊,例如監控設備13的邝位址和埠號。 參閱圖2所示,係圖1中監控影像播玫系統1〇的功能模組 圖。該監控影像播放系統1()包括監聽模組_、搜索模組 21〇、獲取模組220、編碼模組23〇、加密模組24Q及發送 模組250。 所述監聽模組2GG用於監聽用戶端15對指^監控點的影像 播放請求。例如’監聽模謂〇監_連接於外部網路14 ^用户端15對A楝2樓第-會議㈣影像播放請求。所述 影像播放請求包括請求播放即時採集的監控影像以及請 求重播指定時間段的監控影像H實施例中,監聽模 組200利用即時流協定(Real_time streaming __ tocoi,RTSP)監聽用戶端15的影像播放請求。 所述搜索模組2则於衫該指定監控㈣應的監控設備 13並從貝料庫16搜索該監控設備J 3的設備資訊,例如 ip位址和蟫號。在本實施例中,所述監控設備13包括網 路攝像機、數位影像錄影機及數位影像伺服器。 所述獲取模組220用於根據搜索的設備資訊與監控設備13 建立通訊連接’並根據影像播放請求從監控設備13獲取 相對應的影像資料。在本實施例中,對於網路攝像機, 獲取模組220從該網路攝像機獲取即時採集的影像資料; 對於數位影像錄影機及數位影像伺服器,獲取模組220可 以獲取即時採集的影像資料,也可以獲取指定時間段的 影像資料。 所述編碼模組230用於對獲取的影像資料進行解碼,益以 099110968 表單編號A0101 第6頁/共15頁 0992019258-0 201136314 Γ確定的編碼方切解碼⑽像⑽重新編碼。在本 ^施例中,資料庫㈣儲存有每—個監控設備η對應的 碼::法’編碼模組23〇從資料庫“獲取監控 設備' 3的 ρ演算法,應_解碼演算法對獲取㈣像資料進行 :碼,再按照預先確定的編碼方式對解碼的影像資料重 新編碼,例如’採用η.264編碼方式對解碼的影像資料重 新編碼。對於手機用戶,可以將解碼後的影像資料轉換 成適於手機查看的格式,例如轉換為第三代合作夥伴計 Ο [0013] 劃(third generation partnership 3GPP)定義的3GP格式 project , Ο 所述加密模組240用於對重新編碼後的影像f料進行加密 。在本實施例中,加密模組24G採用資料加密標準(data enCryption standard,DES)演算法對重新編碼後的 影像資料進行加密。例如’假設編碼模組2難用離散余 弦變換演算法對影像資料重新編碼,則加密模組24〇採用 DES演算法對離散余弦變換後的直流分量和部分交流分量 進行加密。加密模組240還可以採用其也的加密演算法, 例如混沌演算法、高級加密標準(advanced enci_yp_ tion standard ’ AES)演算法對重新編碼後的影像資 料進行加密。 [0014] 所述發送模組250用於將加密後的影像資料發送給用戶端 15。在本實施例中,發送模組250將重新編碼後的影像資 料流程封裝成即時傳輸協議(Rea卜time Trarispoi't Protocol ’RTP)資料包後發送給用戶端用戶端15 採用相對應的解密演异法對接收的影像資料進行解密, 099110968 表單編號A0101 第7頁/共15頁 0992019258-0 201136314 並且採用相對應的解碼演算法進行解碼後,即可查看所 需的監控影像。 [0015] 參閱圖3所示,係本發明監控影像播放方法較佳實施例的 流程圖。 [0016] 步驟S301,監聽模組200監聽用戶端15對指定監控點的 影像播放請求。例如,監聽模組200監聽到連接於外部網 路14的用戶端15對A楝2樓第一會議室的影像播放請求。 所述影像播放請求包括請求播放即時採集的監控影像以 及請求重播指定時間段的監控影像。在本實施例中,監 聽模組200利用即時流協定監聽用戶端15的影像播放請求 〇 [0017] 步驟S302,搜索模組210確定該指定監控點對應的監控設 備13,並從資料庫16搜索監控設備13的設備資訊,例如 IP位址和埠號。在本實施例中,所述監控設備13包括網 路攝像機、數位影像錄影機及數位影像伺服器。 [0018] 步驟S303,獲取模組220根據搜索的設備資訊與監控設備 13建立通訊連接,並從監控設備13獲取用戶端15請求的 影像資料。在本實施例中,對於網路攝像機,獲取模組 220從該網路攝像機獲取即時採集的影像資料,對於數位 影像錄影機及數位影像伺服器,既可以獲取即時採集的 影像資料,也可以獲取指定時間段的影像資料。 [0019] 步驟S304,編碼模組230對獲取的影像資料進行解碼,並 以預先確定的編碼方式對解碼的影像資料重新編碼。在 本實施例中,資料庫16中儲存有每一個監控設備13對應 099110968 表單編號A0101 第8頁/共15頁 0992019258-0 201136314 [0020] Ο [0021] Ο [0022] :^演算法,編碼模組230從資料庫16獲取監控設備Μ 的解碼演算法,扁祕碼演算法對獲㈣影像資料進 打解碼,再按照預先確定的編衫式對解碼的影像資料 重新編碼,例如,採則.264編碼方式對解碼的影像資料 重新編碼。對於手顧戶,心將解碼後的影像資料轉 換成適於手機查看的格式,例如轉換為3Gp格式。 步驟S3G5 ’加密模組24G對重新編瑪後的影像資料進行加 密。在本實施财,加練f料加密標準刪 演算法對重新編碼後的影像資料進行加密。例如,假設 編碼模組23G採用離散余弦變換演算法對影像f料重新編 碼,則加密模組240採用DES演算法對離散余弦變換後的 直流分量和部分交流分量進行加密。加密模組24〇還可以 採用其他的加密演算法,例如混沌演算法、AES演算法對 重新編碼後的影像資料進行加密。 步驟S306 ’發送模組250將加蜜後的影像資料發送給用戶 +:\+ ' 乂 端15。在本實施例中,發遶事組25q將重新編碼後的影像 資料流程封裝成RTP資料包後發送給用戶端15 ^用戶端15 採用相對應的解密演算法對接收的影像資料進行解密, 並且採用相對應的解碼演算法進行解碼後,即可查看所 需的監控影像。 綜上所述,本發明符合發明專利要件,爰依法提出專利 申請。惟’以上所述者僅為本發明之較佳實施例,本發 明之範圍並不以上述實施例為限,舉凡熟悉本案技藝之 人士援依本發明之精神所作之等效修飾或變化,皆應涵 蓋於以下申清專利範圍内。 099110968 表單編號A0101 第9頁/共15頁 0992019258-0 201136314 【圖式簡單說明】 [0023] 圖1係本發明監控影像播放系統較佳實施例的應用環境示 意圖。 [0024] 圖2係圖1中監控影像播放系統的功能模組圖。 [0025] 圖3係本發明監控影像播放方法較佳實施例的流程圖。 【主要元件符號說明】 [0026] 監控影像播放系統:10 [0027] 伺服器:11 [0028] 内部網路:1 2 [0029] 監控設備:13 [0030] 外部網路:14 [0031] 用戶端:15 [0032] 資料庫:16 __ [0033] 監聽模組:200 [0034] 搜索模組:210 [0035] 獲取模組:220 [0036] 編碼模組:230 [0037] 加密模組:240 [0038] 發送模組:250 099110968 表單編號A0101 第10頁/共15頁 0992019258-0[Embodiment] Referring to Fig. 1, an application environment of a preferred embodiment of the surveillance video playback system of the present invention is shown. The monitoring video playing system (4) runs in the ship 11, and the server 11 communicates with at least one monitoring device m3 (only one is shown as an example) through the internal network U, and the server (10) is connected to the outside. network! 4. The monitoring set 3 includes a network camera, a digital video recorder (digital video recorder), and a digital video server (digital vider > 0 server , DVS). The monitoring device 13 is disposed at each monitoring point ' for collecting image data of each control point. (4) When the user requests to play the surveillance image through the good terminal 15, the monitoring device 13 corresponding to the surveillance video playback system obtains the image data, re-encodes the image data and transmits it back to the user terminal 用户^. The user terminal 15 can be secreted to the external network 14. The internal secret 12 may be an enterprise level local area network, and the external network may be an internet network. In this embodiment, - muscle, 'Fixion 1 § 11 is also communicated with the database 16 through the internal network 12, the database 16 storage 设 设置 099110968 Form No. A0101 Page 5 / Total 15 Page 0992019258- [0010] [0012] [0012] Device information of the device 13, such as the address and nickname of the monitoring device 13. Referring to Figure 2, it is a functional module diagram of the surveillance video broadcast system in Figure 1. The surveillance video playback system 1 () includes a monitor module _, a search module 21, an acquisition module 220, an encoding module 23, an encryption module 24Q, and a transmission module 250. The monitoring module 2GG is configured to listen to the image playback request of the user terminal 15 to the monitoring point. For example, the 'monitor mode is connected to the external network 14 ^ the client 15 to the A 2nd floor - conference (four) video playback request. The image playback request includes requesting to play the captured image captured in real time and requesting to replay the surveillance image for a specified time period. In the embodiment, the monitoring module 200 monitors the video playback of the user terminal 15 by using Real_time streaming __tocoi (RTSP). request. The search module 2 then monitors (4) the monitoring device 13 of the shirt and searches for the device information of the monitoring device J 3 from the shell library 16, such as an ip address and an apostrophe. In this embodiment, the monitoring device 13 includes a network camera, a digital video recorder, and a digital video server. The obtaining module 220 is configured to establish a communication connection with the monitoring device 13 according to the searched device information and obtain corresponding image data from the monitoring device 13 according to the image playing request. In this embodiment, for the network camera, the acquisition module 220 acquires the image data collected from the network camera; for the digital video recorder and the digital image server, the acquisition module 220 can acquire the image data collected in real time. It is also possible to obtain image data for a specified time period. The encoding module 230 is configured to decode the acquired image data, and the coded square decoding (10) image (10) is re-encoded by 099110968 Form No. A0101 Page 6 of 15 0992019258-0 201136314. In this embodiment, the database (4) stores the code corresponding to each monitoring device η: the method 'code module 23 〇 from the database "acquisition monitoring device" 3 ρ algorithm, should be _ decoding algorithm pair Obtain (4) image data: code, and then re-encode the decoded image data according to a predetermined encoding method, for example, 'recode the decoded image data by using η.264 encoding method. For mobile phone users, the decoded image data may be decoded. Converted into a format suitable for mobile phone viewing, for example, converted into a 3GP format project defined by a third generation partnership 3GPP, 加密 the encryption module 240 is used to re-encode the image In this embodiment, the encryption module 24G encrypts the re-encoded image data by using a data encryption standard (DES) algorithm. For example, it is assumed that the coding module 2 is difficult to use discrete cosine transform. After the algorithm re-encodes the image data, the encryption module 24 uses the DES algorithm to convert the DC component and part of the AC component after the discrete cosine transform. The encryption module 240 may also encrypt the re-encoded image data by using an encryption algorithm such as a chaotic algorithm or an advanced encryption standard 'AES' algorithm. [0014] The sending module 250 is configured to send the encrypted image data to the client 15. In the embodiment, the sending module 250 encapsulates the re-encoded image data into a real-time transport protocol (Rea time Trarispoi't Protocol ' After the RTP) data packet is sent to the client terminal 15 the corresponding image data is decrypted by the corresponding decryption algorithm, 099110968 Form No. A0101 Page 7 / 15 page 0992019258-0 201136314 and the corresponding decoding algorithm is adopted. After the method is decoded, the desired monitoring image can be viewed. [0015] Referring to FIG. 3, it is a flowchart of a preferred embodiment of the method for monitoring video playback according to the present invention. [0016] Step S301, the monitoring module 200 monitors the user. The video playback request of the terminal 15 to the designated monitoring point. For example, the monitoring module 200 monitors the user terminal 15 connected to the external network 14 to the second floor. The image playback request of the conference room includes the request to play the captured image that is collected in real time and the request to replay the surveillance image of the specified time period. In this embodiment, the monitoring module 200 monitors the image of the user terminal 15 by using the instant stream protocol. The play request 〇 [0017] Step S302, the search module 210 determines the monitoring device 13 corresponding to the designated monitoring point, and searches the database 16 for the device information of the monitoring device 13, such as an IP address and an nickname. In this embodiment, the monitoring device 13 includes a network camera, a digital video recorder, and a digital video server. [0018] Step S303, the obtaining module 220 establishes a communication connection with the monitoring device 13 according to the searched device information, and acquires the image data requested by the user terminal 15 from the monitoring device 13. In this embodiment, for the network camera, the acquisition module 220 acquires the image data collected in real time from the network camera, and can acquire the image data collected in real time for the digital video recorder and the digital image server. Image data for the specified time period. [0019] Step S304, the encoding module 230 decodes the acquired image data, and re-encodes the decoded image data in a predetermined encoding manner. In this embodiment, each monitoring device 13 stored in the database 16 corresponds to 099110968. Form number A0101 Page 8 / Total 15 pages 0992019258-0 201136314 [0020] 002 [0022] : ^ algorithm, coding The module 230 acquires the decoding algorithm of the monitoring device 从 from the database 16, and the flat secret code algorithm decodes the obtained (four) image data, and then re-encodes the decoded image data according to a predetermined pattern, for example, The .264 encoding method re-encodes the decoded image data. For the user, the heart converts the decoded image data into a format suitable for mobile phone viewing, for example, to 3Gp format. The step S3G5' encryption module 24G encrypts the re-encoded image data. In this implementation, the re-encoded image data is encrypted by the encryption and encryption standard deletion algorithm. For example, if the encoding module 23G re-codes the image by using the discrete cosine transform algorithm, the encryption module 240 encrypts the DC component and the partial AC component after the discrete cosine transform using the DES algorithm. The encryption module 24〇 can also use other encryption algorithms, such as a chaotic algorithm and an AES algorithm to encrypt the re-encoded image data. Step S306, the sending module 250 sends the image data after the honey is added to the user +:\+ ' terminal 15. In this embodiment, the routing object group 25q encapsulates the re-encoded image data into an RTP data packet and sends it to the client 15. The client 15 decrypts the received image data by using a corresponding decryption algorithm, and After decoding with the corresponding decoding algorithm, you can view the desired surveillance image. In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. However, the above description is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above embodiments, and equivalent modifications or variations made by those skilled in the art in light of the spirit of the present invention are It should be covered in the scope of the following patents. 099110968 Form No. A0101 Page 9 of 15 0992019258-0 201136314 [Simplified Schematic] [0023] FIG. 1 is a schematic diagram of an application environment of a preferred embodiment of a surveillance video playback system of the present invention. 2 is a functional block diagram of the surveillance video playback system of FIG. 1. 3 is a flow chart of a preferred embodiment of a method for monitoring video playback according to the present invention. [Main component symbol description] [0026] Monitor video playback system: 10 [0027] Server: 11 [0028] Internal network: 1 2 [0029] Monitoring device: 13 [0030] External network: 14 [0031] User End: 15 [0032] Database: 16 __ [0033] Monitoring module: 200 [0034] Search module: 210 [0035] Acquisition module: 220 [0036] Encoding module: 230 [0037] Encryption module: 240 [0038] Sending module: 250 099110968 Form number A0101 Page 10 / Total 15 page 0992019258-0