Video transmission method and system for network camera device, and medium
By binding to the camera device registered on the service platform, direct video download between the camera device and the user side is realized, which solves the problem of excessive expenses during the video transmission process and improves the efficiency and stability of video transmission.
Patent Information
- Application Number
- PCT/CN2024/136890
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-05
- Filing Date
- 2024-12-04
- Publication Date
- 2025-06-12
AI Technical Summary
In the prior art, the video transmission process increases the cost expenditure between users' use of cloud services and data transmission, resulting in unnecessary cost consumption.
By binding the user end registered on the service platform to the camera device, a direct connection between the camera device and the user end is established. The user end downloads videos in the camera device based on the video list, without the need to code or stream through the intermediate service platform.
It reduces user traffic costs and service expenses, reduces service unavailability caused by intermediate service platform failure, and improves the efficiency and stability of video transmission.
Smart Images

Figure CN2024136890_12062025_PF_FP_ABST
Abstract
Description
Video transmission method, system and medium for network camera device Technical Field
[0001] The present application relates to the field of video transmission, and in particular to a video transmission method, system and medium for a network camera device. Background Art
[0002] With the development of technology, watching live and recorded broadcasts has become an essential part of people's lives. Existing video transmission methods use webcams to capture real-time or recorded video, push or pull files to an intermediate streaming server for encoding and decoding, and then transmit the relevant data stream to the user's app or PC application. However, due to the high cost of setting up streaming processing capabilities and operating and maintenance costs, many cameras are supported by cloud services. Traditional video transmission methods increase user expenses for cloud services and data transmission, resulting in unnecessary costs. Summary of the Invention
[0003] The embodiments of the present application provide a video transmission method, system, and medium for a network camera device. By implementing the method of the present application, the problem of excessive cost expenditure during video transmission can be solved.
[0004] In a first aspect, an embodiment of the present application provides a video transmission method for a network camera device, which is applied to a video transmission system for a network camera device, the system including a service platform, a user terminal and a camera device, the method including: if the service platform receives a user request initiated by the registered user terminal, the service platform verifies the user terminal through registration information, and if the verification is successful, sends a temporary key to the user terminal and the camera device, and sends the IPv6 information of the camera device bound to the user terminal and a video list to the user terminal; the camera device uploads the video list to the service platform, receives the temporary key sent by the service platform, receives the video request initiated by the user terminal, verifies the user terminal according to the temporary key carried in the video request, and if the verification is successful, allows the user terminal to obtain the video file in the video list; the user terminal sends the user request to the service platform, receives the IPv6 information, the video list and the temporary key sent by the service platform, generates the video request according to the temporary key, and sends the video request to the corresponding camera device through the IPv6 information, downloads the video file in the video list to the local computer and plays it.
[0005] In the second aspect, an embodiment of the present application also provides a video transmission system for a network camera device, which includes: a service platform, a user terminal and a camera device, wherein the service platform is used to verify the user terminal through registration information if it receives a user request initiated by the registered user terminal, and if the verification is successful, it sends a temporary key to the user terminal and the camera device, and sends the IPv6 information of the camera device bound to the user terminal and the video list to the user terminal; the camera device is used to upload the video list to the service platform, receive the temporary key sent by the service platform, receive the video request initiated by the user terminal, verify the user terminal according to the temporary key carried in the video request, and if the verification is successful, allow the user terminal to obtain the video file in the video list; the user terminal is used to send the user request to the service platform, receive the IPv6 information, the video list and the temporary key sent by the service platform, generate the video request according to the temporary key, and send the video request to the corresponding camera device through the IPv6 information, download the video file in the video list to the local and play it.
[0006] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0007] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions can implement the above method when executed by a processor.
[0008] The embodiments of the present application provide a video transmission method, system, and medium for a network camera device. Among them, a video transmission system applied to a network camera device is applied to a video transmission system of a network camera device, the system includes a service platform, a user terminal and a camera device, and the method includes: if the service platform receives a user request initiated by the registered user terminal, the user terminal is verified through registration information, and if the verification is successful, a temporary key is sent to the user terminal and the camera device, and the IPv6 information of the camera device bound to the user terminal and a video list are sent to the user terminal; the camera device uploads the video list to the service platform, receives the temporary key sent by the service platform, receives the video request initiated by the user terminal, verifies the user terminal according to the temporary key carried in the video request, and if the verification is successful, allows the user terminal to obtain the video file in the video list; the user terminal sends the user request to the service platform, receives the IPv6 information, the video list and the temporary key sent by the service platform, generates the video request according to the temporary key, and sends the video request to the corresponding camera device through the IPv6 information, downloads the video file in the video list to the local and plays it. The embodiment of the present application establishes a direct connection between the camera device and the user terminal by binding the user terminal registered on the service platform with the camera device, and uploads the video list to the service platform. The user terminal downloads the video from the camera device according to the video list, without the need for encoding, decoding and streaming through the service platform, thereby reducing the user's traffic costs and service fee expenditures, and at the same time reducing service unavailability caused by failures of the intermediate service platform, thereby improving the efficiency and stability of video transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0010] FIG1 is a flow chart of a video transmission method of a network camera device provided in an embodiment of the present application;
[0011] FIG2 is a schematic diagram of a sub-flow diagram of a video transmission method of a network camera device provided in an embodiment of the present application;
[0012] FIG3 is a schematic diagram of a sub-flow diagram of a video transmission method of a network camera device provided in an embodiment of the present application;
[0013] FIG4 is a schematic diagram of a sub-flow diagram of a video transmission method of a network camera device provided in an embodiment of the present application;
[0014] FIG5 is a schematic diagram of a sub-flow diagram of a video transmission method of a network camera device provided in an embodiment of the present application;
[0015] FIG6 is a schematic diagram of a sub-flow diagram of a video transmission method of a network camera device provided in an embodiment of the present application;
[0016] FIG7 is a schematic diagram of a sub-flow diagram of a video transmission method of a network camera device provided in an embodiment of the present application;
[0017] FIG8 is a schematic block diagram of a video transmission system of a network camera device provided in an embodiment of the present application;
[0018] FIG9 is a schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. The embodiments in this application and all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0020] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0021] It should also be understood that the terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0022] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0023] Please refer to Figure 1, which is a flow chart of a video transmission method for a network camera device provided in an embodiment of the present application. The video transmission method for a network camera device in this embodiment is applied to a video transmission system for a network camera device, wherein the video transmission system for a network camera device includes a service platform, a user terminal, and a camera device. The service platform is used to authenticate a server and register a user terminal, the user terminal is used to obtain video, and the camera device is used to capture and save video. The service platform can realize fast and stable transmission of video from the camera device to the user terminal, and reduce expenditure costs.
[0024] Figure 1 is a flow chart of a method for transmitting video using a network camera device according to an embodiment of the present invention. As shown in the figure, the method includes the following steps S110-S130.
[0025] S110. If the service platform receives a user request initiated by the registered user terminal, it verifies the user terminal through the registration information. If the verification is successful, it sends a temporary key to the user terminal and the camera device, and sends the IPv6 information of the camera device bound to the user terminal and the video list to the user terminal.
[0026] In this embodiment, the service platform is a specific intermediate platform. For example, the service platform may include an authentication server and a video list server. The authentication server is used to register the user terminal, enter the camera device information and send a temporary key; the video list server is used to receive the video list sent by the camera device. The user terminal is a device that obtains and plays videos. For example, the user terminal can be a user APP or PC application, and the camera device is a camera that collects the video information. The registration information is the information generated when the user terminal registers in the service platform, such as a user name, password, etc. The temporary key is a key for mutual authentication between the user terminal and the camera device. The video list is the list information of the video files recorded by the camera device. After registering in the service platform, the user terminal can initiate the user request, and the user request is used to request a video list and a temporary key. After receiving a user request from the registered user terminal, the service platform can verify the user request based on the user name and password. If the verification is successful, a temporary key is sent to the user terminal and the camera device bound to it, and the IPv6 information and video list of the camera device bound to the user terminal are sent to the user terminal, wherein the IPv6 information is the information of the camera device received by the service platform, and the bound camera device can be directly and accurately found through the IPv6 information. The service platform verifies and responds to the user request of the user terminal to send a temporary key to the user terminal and the camera device, and sends the IPv6 information and video list of the camera device to the user terminal, so that the user terminal can obtain the video of the camera device according to demand, thereby reducing the intermediate expenses.
[0027] In one embodiment, as shown in FIG2 , the step S110 includes steps S1101 - S1103 ;
[0028] S1101, receiving a storage request initiated by the camera device, and storing information of the camera device;
[0029] S1102: Receive a registration request initiated by the user terminal, and determine whether the information of the camera device to be bound carried in the registration request is stored in the platform;
[0030] S1103: If it has been stored, bind the user terminal to the camera device to be bound.
[0031] In this embodiment, the service platform receives a storage request from the camera device, wherein the storage request is used to request that the camera device information be stored in the service platform, and the storage request carries basic information of the camera device, such as IMEI, PIN code, or IPv6 information. The service platform receives the basic information and stores it in a local database. The service platform receives a registration request from the user terminal, wherein the user terminal registers on the service platform to generate registration information such as a username and password, and enters or selects a camera device to be bound on the service platform. Specifically, the camera device to be bound can be selected by entering information such as the IMEI or PIN code of the camera device. The service platform determines whether the camera device information to be bound carried in the registration request is stored in the platform. For example, if the user terminal selects the camera device to be bound by entering a PIN code, the service platform performs a precise search based on the entered PIN code. If no matching camera device is found, the binding is terminated. If a matching camera device is found, the user is bound to the camera device and a successful match message is returned to the user terminal, thereby ending the binding process. By receiving the storage request initiated by the camera device and receiving the registration request initiated by the user terminal, the user terminal and the camera device can be bound, and a connection relationship is established between the two to facilitate the user terminal to obtain video information of the bound camera device.
[0032] In one embodiment, as shown in FIG3 , the step S1101 includes steps S11011 - S11012;
[0033] S11011. The camera device obtains configuration information of the service platform and sends the storage request to the service platform;
[0034] S11012. The service platform receives the storage request initiated by the camera device, and stores the camera information carried in the storage request, wherein the camera information includes IMEI, manufacturer, PIN code and IPv6 information.
[0035] In this embodiment, the configuration information includes information such as the network line of the service platform. After obtaining the configuration information of the service platform, a storage request is sent to the service platform based on the configuration information. The storage request carries the camera information, wherein the camera information includes information such as IMEI (International Mobile Equipment Identity), manufacturer, PIN (Personal Identification Number), and IPv6. IPv6 is a next-generation IP protocol designed by the Internet Engineering Task Force (IETF) to replace IPv4. Because the last 64 bits of IPv6 are determined by the camera device, it needs to be reported to obtain accurate IPv6 information of the camera device. The IPv6 information supports direct connection between the APP and the camera device. Specifically, the service platform receives the IPv6 information and sends it to the user terminal. The user terminal can find the camera device based on the IPv6 information to establish a connection between the two. The service platform receives the entry request initiated by the camera device and stores the camera information carried in the entry request. For example, the camera information can be classified, stored, and retrieved based on the PIN code of the camera device. The camera device obtains the configuration information of the service platform and sends the entry request to the service platform, thereby storing its own camera information in the service platform.
[0036] In one embodiment, as shown in FIG4 , the step S110 further includes steps S1104 - S1105 ;
[0037] S1104: Determine, based on the user request, whether the video requested to be viewed is a real-time video or a recorded video;
[0038] S1105: If a request is made to watch the real-time video, detecting whether the camera device is currently performing a task of recording the real-time video; if not, sending a recording instruction to the camera device.
[0039] In this embodiment, the service platform parses the user request and can understand whether the video the user requests to watch is a real-time video or a recorded video based on the parsed user request. For example, if the parsed user request shows: video.currentTime = 10, it means that the user terminal requests to watch a real-time video. If video.currentTime = 01, it means that the user terminal requests to watch a recorded video. It is sufficient to determine whether the video requested to watch is a real-time video or a recorded video, and the specific code of the user request is not limited. If the user requests to watch a real-time video, that is, a live broadcast, it is detected whether the bound camera device is currently performing the task of recording a real-time video. It should be noted that the camera device does not record videos in real time. It only records real-time videos when there is a demand. Therefore, the service platform needs to detect whether the camera device is currently performing the task of recording a real-time video. If not, a recording instruction is sent to the camera device to generate a real-time video list and send it to the user terminal. By determining whether the video requested to be watched is a real-time video or a recorded video based on the user's request, a recording instruction is sent to the camera device to remind the camera device to record the real-time video so that it can be sent to the user end, thereby avoiding the problem that the user end cannot obtain the video.
[0040] In one embodiment, as shown in FIG5 , the step S110 further includes steps S111 - S112 ;
[0041] S111: If a request is made to watch the real-time video, the latest video list is sent to the user terminal;
[0042] S112: If a request is made to watch the recorded video, the video list of the time period specified in the user request is sent to the user terminal.
[0043] In this embodiment, the live video is a live broadcast; the pre-recorded video is a pre-recorded video. If, after analyzing the user request, it is determined that the video requested by the user is live, the latest video list is sent to the user. It is understood that since the video being viewed is live, it must be recorded in real time according to a preset time period. Therefore, the video list for live videos is constantly changing, so the service platform needs to send the latest video list to the user. If the user requests to watch a pre-recorded video, the user request is similarly analyzed to obtain the specified time period included in the user request. The corresponding video list is sent to the user based on the specified time period. For example, if the user specifies that the time period is from 8:00 PM to 9:00 PM on September 12th, the service platform will send the video list for the corresponding time period to the user. By determining the video requested by the user and performing different operations based on different video requests, user needs can be fully met.
[0044] S120, the camera device uploads the video list to the service platform, receives the temporary key sent by the service platform, receives the video request initiated by the user terminal, verifies the user terminal according to the temporary key carried in the video request, and allows the user terminal to obtain the video files in the video list if the verification is successful.
[0045] In this embodiment, the video list is a list of video files recorded by the camera device, and the temporary key is a key used to authenticate the user terminal. For example, the temporary key may include information such as the user terminal ID, the camera device ID, and the session number. The temporary key is generated by a specific communication protocol and is not limited to this. It only needs to enable the camera device to authenticate the user terminal. The camera device receives a video request initiated by the user terminal, parses the video request, obtains the temporary key, and compares the parsed temporary key with the temporary key sent by the service platform. If the verification is successful, it indicates that the user terminal is legitimate, and the camera device allows the user terminal to download the required video file from it, wherein the video file includes the video file of the real-time video and the video file of the recorded video. The camera device uploads the video list to the service platform so that the user terminal can obtain the video file list of the camera device, and authenticates the user terminal using the temporary key to verify the legitimacy of the user terminal. If the verification is successful, the user terminal is allowed to obtain the video file, so that the video file can be prevented from being illegally obtained.
[0046] In one embodiment, as shown in FIG6 , the step S120 includes steps S1201 - S1202 ;
[0047] S1201, recording the video file and encoding and decoding the video file to generate a TS file;
[0048] S1202: Store the TS file in a preset directory, and generate the video list according to the preset directory.
[0049] In this embodiment, the TS file is a TS (Transport Stream) stream file, which is a DVD file format and a standard data container format used to transmit and store audio and video programs and system information protocol data, and is mainly used in digital broadcasting systems. The preset target is a pre-created directory for storing the TS file. The camera device records the video file according to the shooting rules, for example, recording the video according to a predetermined time. The successfully recorded video file is encoded and decoded to generate a TS file, wherein encoding and decoding is the process of transforming a signal or a data stream. The TS file is stored in a preset directory, and a video list is generated according to the preset directory at regular intervals. For example, a corresponding video list is generated according to the preset target every other day, and the generated video list is sent to the service platform. The camera device generates a TS file by recording the video file and encoding and decoding the video file, and stores the TS file in the preset directory, so that the video list is generated according to the preset directory, so that the video files of the camera device can be clearly understood and queried by the user end.
[0050] S130, the user terminal sends the user request to the service platform, receives the IPv6 information, the video list and the temporary key sent by the service platform, generates the video request according to the temporary key, and sends the video request to the corresponding camera device through the IPv6 information, downloads the video file in the video list to the local and plays it.
[0051] In this embodiment, the user request is a request to apply for the video list. The service platform receives the user request and verifies it. If the verification is successful, the requested video list and temporary key are issued. The user terminal receives the video list and temporary key, selects the video file to be obtained according to the video list, and generates a video request according to the temporary key and sends it to the camera device. The camera device authenticates the user terminal through the temporary key. If the authentication is successful, the user terminal is given the permission to download the video file. After obtaining the permission, the user terminal can download the video file to be played to the local database for playback. The user terminal sends the user request to the service platform, receives the video list and the temporary key sent by the service platform to obtain the video list of the camera device and generates a video request, and finds the camera device for the video file to be obtained through the IPv6 information, and sends the video request to the camera device to download the video file to the local and play it. By directly downloading the video file from the camera device, there is no need to download the file from the intermediate platform, which greatly reduces the user's cost expenditure and reduces the service unavailability caused by the failure of the intermediate cloud service platform, thereby improving the efficiency and stability of video transmission.
[0052] In one embodiment, as shown in FIG7 , the step S130 includes steps S131 - S132 ;
[0053] S131. If the video file downloaded to the local computer is a live broadcast file, obtain the latest video list, download the latest video file to the local computer, and play it;
[0054] S132: Repeat the steps of obtaining the latest video list, downloading the latest video file to the local computer, and playing the video file.
[0055] In this embodiment, the live broadcast file is a video file of a real-time video. If the user terminal requests to watch a real-time video, the video file downloaded to the local computer is a live broadcast file. It can be understood that the live broadcast file is updated in real time, so the user terminal needs to obtain the latest video list from the service platform. After obtaining the latest video list, the latest video file therein is downloaded to the local computer for playback, and the user terminal needs to repeat this step to complete the viewing of the real-time video. If you want to watch the recorded video, you only need to obtain the video you want to watch, without repeated acquisition. The user terminal watches the real-time video by repeatedly executing the steps of obtaining the latest video list, downloading the latest video file to the local computer, and playing it.
[0056] FIG8 is a schematic block diagram of a video transmission system 200 for a network camera device provided in an embodiment of the present application. As shown in FIG8 , corresponding to the above-described video transmission method for a network camera device, the present application also provides a video transmission method system for a network camera device. The video transmission system for a network camera device includes a unit for executing the above-described video transmission method for a network camera device. The system can be configured in a desktop computer, tablet computer, laptop computer, or other terminal. Specifically, referring to FIG8 , the video transmission system for a network camera device includes a service platform 210, a user terminal 220, and a camera device 230.
[0057] The service platform 210 is configured to, upon receiving a user request initiated by a registered user terminal, verify the user terminal using the registration information, and if the verification is successful, send a temporary key to the user terminal and the camera device, and send the IPv6 information of the camera device bound to the user terminal and a video list to the user terminal.
[0058] In one embodiment, the service platform 210 includes a receiving unit, a registration unit, and a binding unit.
[0059] A receiving unit, configured to receive a storage request initiated by the camera device and store the information of the camera device;
[0060] A registration unit, configured to receive a registration request initiated by the user terminal and determine whether the information of the camera device to be bound carried in the registration request is stored in the platform;
[0061] A binding unit is used to bind the user terminal with the camera device to be bound if it has been stored.
[0062] In one embodiment, the receiving unit includes:
[0063] The camera device is used to obtain the configuration information of the service platform and send the storage request to the service platform;
[0064] The service platform is used to receive the storage request initiated by the camera device and store the camera information carried in the storage request, wherein the camera information includes IMEI, manufacturer, PIN code and IPv6 information.
[0065] In one embodiment, the service platform 210 includes a judgment unit and a detection unit.
[0066] A determination unit, configured to determine, based on the user request, whether the video requested to be viewed is a real-time video or a recorded video;
[0067] The detection unit is used to detect whether the camera device is currently performing the task of recording the real-time video if a request is made to watch the real-time video, and if not, send a recording instruction to the camera device.
[0068] In one embodiment, the service platform 210 includes a first sending unit and a second sending unit.
[0069] A first sending unit is configured to send the latest video list to the user terminal if a request is made to watch the real-time video;
[0070] The second sending unit is configured to send the video list of the time period specified in the user request to the user terminal if a request is made to watch the recorded video.
[0071] The camera device 220 is used to upload the video list to the service platform, receive the temporary key sent by the service platform, receive the video request initiated by the user terminal, verify the user terminal according to the temporary key carried in the video request, and allow the user terminal to obtain the video files in the video list if the verification is successful.
[0072] In one embodiment, the camera device 220 includes an encoding unit and a generating unit.
[0073] An encoding unit, configured to record the video file and encode and decode the video file to generate a TS file;
[0074] A generating unit is used to store the TS file in a preset directory and generate the video list according to the preset directory.
[0075] The user terminal 230 is used to send the user request to the service platform, receive the IPv6 information, the video list and the temporary key sent by the service platform, generate the video request according to the temporary key, and send the video request to the corresponding camera device through the IPv6 information, download the video file in the video list to the local and play it.
[0076] In one embodiment, the user terminal 230 includes an acquisition unit and a playback unit.
[0077] an acquiring unit, configured to acquire the latest video list if the video file downloaded to the local computer is a live broadcast file, download the latest video file to the local computer, and play the video file;
[0078] The playing unit is used to repeatedly execute the steps of obtaining the latest video list, downloading the latest video file to the local computer and playing it.
[0079] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the video transmission system 200 and each device and each unit of the above-mentioned network camera device can refer to the corresponding description in the aforementioned method embodiment. For the convenience and brevity of the description, it will not be repeated here.
[0080] The video transmission system of the network camera device described above can be implemented in the form of a computer program, and the computer program can be run on the computer device shown in FIG. 9 .
[0081] Please refer to Figure 9, which is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 can be a server, which can be an independent server or a server cluster composed of multiple servers.
[0082] 9 , the computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0083] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, which, when executed, can enable the processor 502 to execute a video transmission method for a network camera device.
[0084] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0085] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a video transmission method of a network camera device.
[0086] The network interface 505 is used to communicate with other devices over the network. Those skilled in the art will appreciate that the structure shown in FIG9 is merely a block diagram of a portion of the structure related to the present invention, and does not limit the computer device 500 to which the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0087] The processor 502 is configured to run a computer program 5032 stored in the memory to implement the steps of the above method.
[0088] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0089] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.
[0090] Therefore, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor performs the steps of the above method.
[0091] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0092] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0093] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and other division methods may be used in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not implemented.
[0094] The steps in the method of the embodiment of the present application can be adjusted in order, combined, and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided, and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit.
[0095] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0096] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A video transmission method for a network camera device, characterized in that: A video transmission system applied to a network camera device, the system comprising a service platform, a user terminal and a camera device, the method comprising: If the service platform receives a user request initiated by the registered user terminal, it verifies the user terminal through the registration information. If the verification is successful, it sends a temporary key to the user terminal and the camera device, and sends the IPv6 information of the camera device bound to the user terminal and the video list to the user terminal; The camera device uploads the video list to the service platform, receives the temporary key sent by the service platform, receives the video request initiated by the user terminal, verifies the user terminal according to the temporary key carried in the video request, and allows the user terminal to obtain the video files in the video list if the verification is successful; The user terminal sends the user request to the service platform, receives the IPv6 information, the video list and the temporary key sent by the service platform, generates the video request according to the temporary key, and sends the video request to the corresponding camera device through the IPv6 information, downloads the video file in the video list to the local and plays it.
2. The method according to claim 1, characterized in that Before the step of receiving a user request initiated by the registered user terminal, the method further includes: Receiving a storage request initiated by the camera device, and storing the information of the camera device; Receiving a registration request initiated by the user terminal, and determining whether the information of the camera device to be bound carried in the registration request is stored in the platform; If it has been stored, the user terminal is bound to the camera device to be bound.
3. The method according to claim 1, characterized in that: After the step of sending the temporary key to the user terminal and the camera device, the method further includes: Determining, according to the user request, whether the video requested to be viewed is a real-time video or a recorded video; If a request is made to watch the real-time video, it is detected whether the camera device is currently performing a task of recording the real-time video, and if not, a recording instruction is sent to the camera device.
4. The method according to claim 3, characterized in that The step of sending the video list of the camera device bound to the user terminal to the user comprises: If a request is made to watch the real-time video, the latest video list is sent to the user terminal; If a request is made to watch the recorded video, the video list of the time period specified in the user request is sent to the user terminal.
5. The method according to claim 1, characterized in that Before the step of uploading the video list to the service platform, the method further includes: Record the video file and encode and decode the video file to generate a TS file; The TS file is stored in a preset directory, and the video list is generated according to the preset directory.
6. The method according to claim 1, characterized in that The step of downloading the video files in the video list to a local computer and playing them comprises: If the video file downloaded to the local computer is a live broadcast file, the latest video list is obtained, and the latest video file is downloaded to the local computer and played; Repeat the steps of obtaining the latest video list, downloading the latest video file to the local computer and playing it.
7. The method according to claim 2, characterized in that The step of receiving the storage request initiated by the camera device and storing the information of the camera device comprises: The camera device obtains the configuration information of the service platform and sends the storage request to the service platform; The service platform receives the storage request initiated by the camera device, and stores the camera information carried in the storage request, wherein the camera information includes IMEI, manufacturer, PIN code and IPv6 information.
8. A video transmission system for a network camera device, characterized in that: The system includes a service platform, a user terminal and a camera device, wherein: The service platform is used to verify the user terminal through registration information if receiving a user request initiated by the registered user terminal, and if the verification is successful, send a temporary key to the user terminal and the camera device, and send the IPv6 information of the camera device bound to the user terminal and a video list to the user terminal; The camera device is used to upload the video list to the service platform, receive the temporary key sent by the service platform, receive the video request initiated by the user terminal, verify the user terminal according to the temporary key carried in the video request, and allow the user terminal to obtain the video file in the video list if the verification is successful; The user terminal is used to send the user request to the service platform, receive the IPv6 information, the video list and the temporary key sent by the service platform, generate the video request according to the temporary key, and send the video request to the corresponding camera device through the IPv6 information, download the video file in the video list to the local and play it.
9. A video transmission system of a network camera device, characterized in that: The method comprises at least three computer devices, each of which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processors in at least two of the computer devices jointly implement the method as claimed in any one of claims 1 to 7 when executing the corresponding computer programs.
10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Bidirectional safety certification based IP (internet protocol) Camera service realization method of point-to-point protocol
CN101938485A
System and method for implementing video calls based on intelligent terminals and IP (Internet Protocol) cameras
CN104836980A
HLS streaming media live broadcast method and system
CN108235064A
Intelligent camera security control and data secrecy method based on identity password
CN108881960A
VR video encryption playing method, server, user side and system
CN114679608A