CN112584194A - Video code stream pushing method and device, computer equipment and storage medium - Google Patents

Video code stream pushing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112584194A
CN112584194A CN202011269330.2A CN202011269330A CN112584194A CN 112584194 A CN112584194 A CN 112584194A CN 202011269330 A CN202011269330 A CN 202011269330A CN 112584194 A CN112584194 A CN 112584194A
Authority
CN
China
Prior art keywords
video
code stream
stream data
path
paths
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011269330.2A
Other languages
Chinese (zh)
Inventor
全鹏
许裕锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ifreecomm Technology Co ltd
Original Assignee
Ifreecomm Technology Co ltd
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 Ifreecomm Technology Co ltd filed Critical Ifreecomm Technology Co ltd
Priority to CN202011269330.2A priority Critical patent/CN112584194A/en
Publication of CN112584194A publication Critical patent/CN112584194A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application relates to a method and a device for pushing video code streams, computer equipment and a storage medium. The method comprises the following steps: receiving two paths of video code stream data pushed by video monitoring equipment through a video receiving channel; the video receiving channel is opened based on transmission parameter information sent by the video monitoring equipment; the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame; and storing the two paths of video code stream data. By adopting the method, various code stream data can be provided, the types of the code stream data are enriched, so that the method is suitable for different application scenes, and the user terminal can check the monitoring video in real time under different scenes and download the monitoring video file recorded by the server.

Description

Video code stream pushing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for pushing a video stream, a computer device, and a storage medium.
Background
With the development of computer technology and the coming of the 5G era, the appearance of the Internet of things brings great convenience to modern life, and more enterprises can intelligently sense, identify and manage various devices and use processes on line by using an Internet of things platform. At present, a mainstream Video monitoring system generally adopts a local intranet deployment mode, stores Video acquired by a camera in a DVR (Digital Video Recorder, DVR for short) or an NVR (Network Video Recorder), and deploys a computer in a monitoring room for viewing the Video.
However, in the current video monitoring mode, after all monitoring devices are networked, data are gathered to a central terminal for processing, when different user terminals need to browse and view monitoring videos, an administrator needs to manually perform associated configuration in a locally deployed computer, a large amount of manpower and energy is needed to arrange configuration, and especially when multiple users view or download monitoring videos in different scenes, only single code stream data can be provided, and the video monitoring method cannot adapt to different application scenes.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device and a storage medium for pushing a video bitstream capable of providing multiple bitstream data.
A method for pushing a video code stream includes:
receiving two paths of video code stream data pushed by video monitoring equipment through a video receiving channel; the video receiving channel is opened based on transmission parameter information sent by the video monitoring equipment; the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and storing the two paths of video code stream data.
In one embodiment, before receiving two paths of video code stream data pushed by a video monitoring device through a video receiving channel, the method further includes:
receiving a WebRTC connection request sent by the video monitoring equipment;
returning a corresponding acceptance response according to the WebRTC connection request, and establishing WebRTC connection with the video monitoring equipment;
receiving transmission parameter information sent by the video monitoring equipment;
and opening a corresponding video receiving channel according to the transmission parameter information.
In one embodiment, after storing the two paths of video stream data, the method further includes:
forwarding the first path of code stream data to a corresponding user terminal;
and forwarding the second path of code stream data to a recording server.
In one embodiment, the forwarding the first path of code stream data to a corresponding user terminal includes:
sending the first path of code stream data to the user terminal through the opened video sending channel; the video transmission channel is opened based on the negotiated transmission parameter information.
In one embodiment, the method further comprises:
receiving a video file downloading request sent by the user terminal;
and inquiring the video file from a database according to the video file downloading request, and sending the second path of code stream data corresponding to the inquired video file to the user terminal.
A push device of a video bitstream, the device comprising:
the receiving module is used for receiving two paths of video code stream data pushed by the video monitoring equipment through the video receiving channel; the video receiving channel is opened based on transmission parameter information sent by the video monitoring equipment; the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and the storage module is used for storing the two paths of video code stream data.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving two paths of video code stream data pushed by video monitoring equipment through a video receiving channel; the video receiving channel is opened based on transmission parameter information sent by the video monitoring equipment; the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and storing the two paths of video code stream data.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving two paths of video code stream data pushed by video monitoring equipment through a video receiving channel; the video receiving channel is opened based on transmission parameter information sent by the video monitoring equipment; the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and storing the two paths of video code stream data.
According to the method and the device for pushing the video code stream, the computer equipment and the storage medium, the two paths of video code stream data pushed by the video monitoring equipment are received through the video receiving channel, and the video receiving channel is opened based on the transmission parameter information sent by the video monitoring equipment. The two paths of video code stream data comprise a first path of code stream data and a second path of code stream data, the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame. The second path of code stream data is used for recording video files, and the second path of code stream data is generated by adopting fixed period coding key frames and stores two paths of video code stream data. Therefore, various code stream data can be provided, the types of the code stream data are enriched, the code stream data are adapted to different application scenes, the monitoring videos can be checked by the user terminal through an external network in real time in different scenes, and the monitoring video files recorded by the cloud server can be downloaded.
A method for pushing a video code stream includes:
encoding the collected video frames into two paths of video code stream data, wherein the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and pushing the two paths of video code stream data to a server through a video sending channel, wherein the video sending channel is opened based on transmission parameter information exchanged with the server.
A push device of a video bitstream, the device comprising:
the encoding module is used for encoding the collected video frames into two paths of video code stream data, wherein the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and the pushing module is used for pushing the two paths of video code stream data to the server through a video sending channel, and the video sending channel is opened based on the transmission parameter information exchanged with the server.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
encoding the collected video frames into two paths of video code stream data, wherein the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and pushing the two paths of video code stream data to a server through a video sending channel, wherein the video sending channel is opened based on transmission parameter information exchanged with the server.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
encoding the collected video frames into two paths of video code stream data, wherein the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and pushing the two paths of video code stream data to a server through a video sending channel, wherein the video sending channel is opened based on transmission parameter information exchanged with the server.
According to the method and the device for pushing the video code stream, the computer equipment and the storage medium, the collected video frames are coded into two paths of video code stream data, wherein the two paths of video code stream data comprise the first path of code stream data and the second path of code stream data. The first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame. The second path of code stream data is used for recording video files, and the second path of code stream data is generated by adopting fixed period coding key frames. And pushing the two paths of video code stream data to the server through a video sending channel, wherein the video sending channel is opened based on the transmission parameter information exchanged with the server. Therefore, the collected video frames are coded into two paths of video code stream data, various code stream data can be provided, the types of the code stream data are enriched, different application scenes are adapted, the user terminal can check the monitoring video in real time through the external network in different scenes, and the monitoring video file recorded by the cloud server can be downloaded.
Drawings
FIG. 1 is a diagram illustrating an application environment of a method for pushing video streams in an embodiment;
FIG. 2 is a flowchart illustrating a method for pushing video streams in an embodiment;
FIG. 3 is a flowchart illustrating the step of turning on the corresponding video receiving channel according to the transmission parameter information in one embodiment;
fig. 4A is a schematic flow chart illustrating a step of forwarding two paths of video stream data in one embodiment;
FIG. 4B is a block diagram illustrating an exemplary video stream push architecture;
FIG. 5 is a flowchart illustrating a method for pushing video streams in another embodiment;
FIG. 6 is a block diagram of an embodiment of a push device for video streams;
FIG. 7 is a block diagram of an exemplary push apparatus for video streams;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The pushing method of the video code stream provided by the application can be applied to the application environment shown in fig. 1. Wherein the video surveillance device 102 communicates with the server 104 over a network. The server 104 receives two paths of video code stream data pushed by the video monitoring device 102 through a video receiving channel, and the video receiving channel is opened based on the transmission parameter information sent by the video monitoring device 102. The two paths of video code stream data comprise a first path of code stream data and a second path of code stream data, the first path of code stream data is used for video monitoring and previewing, the first path of code stream data is generated without adopting a fixed period coding key frame, the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame. The server 104 stores two paths of video code stream data. The server 104 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, a method for pushing a video bitstream is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step 202, two paths of video code stream data pushed by a video monitoring device are received through a video receiving channel, the video receiving channel is started based on transmission parameter information sent by the video monitoring device, the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data, the first path of code stream data is used for video monitoring and previewing, the first path of code stream data is generated without a fixed period coding key frame, the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by the fixed period coding key frame.
The user can use different types of terminal equipment to log in the cloud server platform, and when different users log in the cloud server platform, the user can initiate viewing requests or downloading requests of monitoring videos in different scenes through triggering operation. The monitoring video refers to a video file collected by monitoring equipment. WebRTC, the name of which is abbreviated from Web Real-Time Communication (English), is an API that supports Web browsers for Real-Time voice conversations or video conversations. WebRTC realizes a web-based video conference, the standard is WHATWG protocol, and the aim is to achieve Real-Time communication (RTC) capability by providing simple javascript through a browser.
Specifically, different monitoring devices can establish connection with the server based on WebRTC. The server can receive two paths of video code stream data pushed by the video monitoring equipment through a video receiving channel, the video receiving channel is started based on transmission parameter information sent by the video monitoring equipment, the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data, the first path of code stream data is used for video monitoring and previewing, the first path of code stream data is generated without a fixed period coding key frame, the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by the fixed period coding key frame. The video monitoring device refers to a device having an image acquisition function in a monitoring system, such as a camera monitoring device. The code stream (Data Rate) is the number of times that a communication port changes high and low levels when transmitting Data in 1 second, and is also called a code Rate, and the more Data is transmitted per unit time, the more information is contained, and it is the most important part in picture quality control in video encoding. The code stream data refers to data in standard formats of audio and video transmitted on the internet according to a real-time streaming protocol. The video stream data may include a plurality of frames of images arranged in sequence, and the transmission of the video stream data refers to the transmission of the plurality of frames of images through the video stream in sequence. After the WebRTC connection is established between the server and the video monitoring device, the server may negotiate with the monitoring device to transmit parameter information corresponding to video stream data. For example, after the WebRTC connection is established between the server and the video monitoring device, the video monitoring device may send the generated SDP information to the server through the WebRTC connection, and complete exchange of the SDP information with the server, that is, the video monitoring device and the server complete negotiation of related transmission parameter information, the server may open a corresponding video receiving channel according to the transmission parameter information included in the SDP information, and the opened video receiving channel is used to receive video code stream data pushed by the video monitoring device. The SDP refers to Session Description Protocol (Session Description Protocol or SDP for short) and describes initialization parameters of streaming media. Because the WebRTC media information interaction needs to use the SDP data format, when the monitoring device needs to transmit video stream data to the server, the server needs to first acquire SDP file information, and then open a corresponding video receiving channel to transmit corresponding video stream data through transmission parameter information included in the SDP information.
And step 204, storing two paths of video code stream data.
After the server receives the two paths of video code stream data pushed by the video monitoring equipment through the video receiving channel, the server can store the two paths of video code stream data. The first path of code stream data is used for video monitoring and previewing, the first path of code stream data is generated without adopting a fixed period coding key frame, the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame. The key frame is used for describing all information of the compressed image and can restore the image, and the non-key frame is used for compensating the information of the key frame and gradually optimizing the image effect. Therefore, after the server stores the two paths of video code stream data sent by the monitoring device, when the server receives different requests sent by the user terminal, the server can send different code streams to the corresponding user terminal, for example, after the user terminal establishes a connection with the cloud server based on WebRTC, the user terminal can subscribe to view a real-time monitoring video pushed by the monitoring device, and can view and download a video file recorded by the cloud server.
In this embodiment, two paths of video code stream data pushed by the video monitoring device are received through the video receiving channel, and the video receiving channel is opened based on the transmission parameter information sent by the video monitoring device. The two paths of video code stream data comprise a first path of code stream data and a second path of code stream data, the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame. The second path of code stream data is used for recording video files, and the second path of code stream data is generated by adopting fixed period coding key frames and stores two paths of video code stream data. Therefore, various code stream data can be provided, the types of the code stream data are enriched, the code stream data are adapted to different application scenes, the monitoring videos can be checked by the user terminal through an external network in real time in different scenes, and the monitoring video files recorded by the cloud server can be downloaded.
In an embodiment, as shown in fig. 3, before receiving two paths of video code stream data pushed by a video monitoring device through a video receiving channel, the method further includes a step of opening the corresponding video receiving channel according to the transmission parameter information, which specifically includes:
step 302, a WebRTC connection request sent by a video monitoring device is received.
And step 304, returning a corresponding acceptance response according to the WebRTC connection request, and establishing WebRTC connection with the video monitoring equipment.
Step 306, receiving transmission parameter information sent by the video monitoring device.
And 308, opening a corresponding video receiving channel according to the transmission parameter information.
Before the server receives two paths of video code stream data pushed by the video monitoring equipment through the video receiving channel, when the server receives a WebRTC connection request sent by the video monitoring equipment, the server can return a corresponding receiving response according to the WebRTC connection request, and the WebRTC connection is established with the video monitoring equipment. After the WebRTC connection is established between the server and the video monitoring device, the server can receive transmission parameter information sent by the video monitoring device through the WebRTC connection, and the server opens a corresponding video receiving channel according to the transmission parameter information to receive code stream data sent by the video monitoring device. Because the WebRTC media information interaction needs to use an SDP data format, after the server establishes WebRTC connection with the video monitoring device, the server can receive SDP information sent by the video monitoring device through the WebRTC connection, and the server opens a corresponding video receiving channel according to transmission parameter information included in the SDP information. Therefore, based on the WebRTC connection, the corresponding video receiving channel can be opened according to the transmission parameter information contained in the SDP information, different video code stream data can be pushed to the server, and the types of the code stream data are enriched so as to adapt to different application scenes.
In an embodiment, as shown in fig. 4A, after storing two paths of video code stream data, the method further includes a step of forwarding the two paths of video code stream data, which specifically includes:
and 402, forwarding the first path of code stream data to a corresponding user terminal.
And step 404, forwarding the second path of code stream data to a recording server.
The server receives the two paths of video code stream data pushed by the video monitoring equipment through the video receiving channel, and after the two paths of video code stream data are stored, the server can forward the two paths of video code stream data. Specifically, the server may distribute the received code stream data, forward the corresponding first path of code stream data to a user subscribing to the video monitoring device, and forward the corresponding second path of code stream data to the recording server. That is, the server may forward the first path of code stream data to the corresponding user terminal, and forward the second path of code stream data to the recording server. The first path of code stream data is used for video monitoring and previewing, and is characterized in that a fixed period coding key frame is not adopted, the consumed bandwidth is the same with the image quality, the data volume of the key frame is far larger than that of a non-key frame, and the fixed period coding key frame is not adopted in the first path of code stream data, so that the data volume can be effectively reduced, and the consumption of the bandwidth is reduced under the same with the image quality, such as the coding data volume of a P frame. The second path of code stream data is used for recording a video file, and the path code stream data is characterized in that key frames are encoded at fixed periods, for example, every 30 frames, so that the recorded file can support progress dragging during playing. Fig. 4B is a schematic diagram of an architecture of video stream pushing. When different user terminals log in the cloud server platform by using the browser, the user terminals can check and preview real-time monitoring videos and download video files recorded by the cloud server. The user terminal can also subscribe the plug flow of the video monitoring equipment on the cloud server by using the browser supporting the WebRTC, and automatically acquires the corresponding plug flow. Therefore, the cloud server can automatically forward the video code stream data subscribed by the user terminal. Meanwhile, video file index and video file downloading services for inquiring and recording by mobile equipment and PC equipment are provided, monitoring videos in different scenes are checked on the external network, and convenience is brought to users.
In one embodiment, the step of forwarding the first path of code stream data to the corresponding user terminal includes:
and sending the first path of code stream data to the user terminal through the opened video sending channel, wherein the video sending channel is opened based on the negotiated transmission parameter information.
The user terminal can subscribe the plug flow of the video monitoring equipment on the cloud server by using the browser supporting the WebRTC, and automatically acquires the corresponding plug flow. Specifically, when the cloud server receives two paths of video code stream data pushed by the video monitoring device through the video receiving channel, the server can forward the second path of code stream data to the recording server for recording and storing the recording file. If a user subscribes the plug flow of the monitoring device, the server may forward the first path of code stream data to the corresponding subscribing user. Therefore, various code stream data can be provided, the types of the code stream data are enriched, different application scenes are adapted, and the fact that the user terminal can check the monitoring video in real time through the external network under different scenes is achieved.
In one embodiment, the method further includes a step of sending the second code stream data corresponding to the queried video file to the user terminal, and specifically includes:
and receiving a video file downloading request sent by a user terminal.
And according to the video file downloading request, inquiring the video file from the database, and sending the second path of code stream data corresponding to the inquired video file to the user terminal.
When different user terminals log in the cloud server platform by using the browser, the user terminals can check and preview real-time monitoring videos and download video files recorded by the cloud server. Specifically, when the server receives a video file downloading request sent by the user terminal, the server may query the video file from the database according to the video file downloading request, and send the second path of code stream data corresponding to the queried video file to the user terminal. Therefore, various code stream data can be provided, the types of the code stream data are enriched, different application scenes are adapted, and the fact that the user terminal can download the monitoring video file recorded by the cloud server in different scenes is achieved.
In an embodiment, as shown in fig. 5, a method for pushing a video bitstream is provided, which is described by taking the method as an example for being applied to the video monitoring device in fig. 1, and includes the following steps:
step 502, encoding the collected video frame into two paths of video code stream data, wherein the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data, the first path of code stream data is used for video monitoring and previewing, the first path of code stream data is generated without adopting a fixed period coding key frame, the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame.
And step 504, pushing the two paths of video code stream data to a server through a video sending channel, wherein the video sending channel is opened based on transmission parameter information exchanged with the server.
The video monitoring equipment encodes the collected video frames into two paths of video code stream data, wherein the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data, the first path of code stream data is used for video monitoring preview, the first path of code stream data is generated without adopting a fixed period coding key frame, the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame. The video monitoring equipment can push the two paths of video code stream data to the server through a video sending channel, and the video sending channel is opened based on the transmission parameter information exchanged with the server. Therefore, the collected video frames are coded into two paths of video code stream data, wherein the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data. The first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame. The second path of code stream data is used for recording video files, and the second path of code stream data is generated by adopting fixed period coding key frames. And pushing the two paths of video code stream data to the server through a video sending channel, wherein the video sending channel is opened based on the transmission parameter information exchanged with the server. Therefore, the collected video frames are coded into two paths of video code stream data, various code stream data can be provided, the types of the code stream data are enriched, different application scenes are adapted, the user terminal can check the monitoring video in real time through the external network in different scenes, and the monitoring video file recorded by the cloud server can be downloaded.
It should be understood that although the various steps in the flow charts of fig. 1-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided a push apparatus for a video bitstream, including: a receiving module 602 and a storing module 604, wherein:
the receiving module 602 is configured to receive two paths of video code stream data pushed by a video monitoring device through a video receiving channel, where the video receiving channel is opened based on transmission parameter information sent by the video monitoring device, the two paths of video code stream data include a first path of code stream data and a second path of code stream data, the first path of code stream data is used for video monitoring and previewing, the first path of code stream data is generated without using a fixed period coding key frame, the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by using a fixed period coding key frame.
And the storage module 604 is configured to store two paths of video code stream data.
In one embodiment, the apparatus further comprises: and opening the module.
The receiving module is further used for receiving the WebRTC connection request sent by the video monitoring equipment, returning a corresponding receiving response according to the WebRTC connection request, establishing WebRTC connection with the video monitoring equipment, receiving transmission parameter information sent by the video monitoring equipment, and the starting module is used for starting a corresponding video receiving channel according to the transmission parameter information.
In one embodiment, the apparatus further comprises: and a forwarding module.
The forwarding module is used for forwarding the first path of code stream data to the corresponding user terminal; and forwarding the second path of code stream data to a recording server.
In one embodiment, the apparatus further comprises: and a sending module.
The sending module is used for sending the first path of code stream data to the user terminal through the opened video sending channel, and the video sending channel is opened based on the negotiated transmission parameter information.
In one embodiment, the receiving module is further configured to receive a video file download request sent by the user terminal. The sending module is also used for inquiring the video file from the database according to the video file downloading request and sending the second path of code stream data corresponding to the inquired video file to the user terminal.
In one embodiment, as shown in fig. 7, there is provided a push apparatus for a video bitstream, including: an encoding module 702 and a push module 704, wherein:
the encoding module 702 is configured to encode the acquired video frame into two paths of video code stream data, where the two paths of video code stream data include a first path of code stream data and a second path of code stream data, the first path of code stream data is used for video monitoring and previewing, the first path of code stream data is generated without using a fixed period encoding key frame, the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by using a fixed period encoding key frame.
And the pushing module 704 is configured to push the two paths of video code stream data to the server through a video sending channel, where the video sending channel is opened based on the transmission parameter information exchanged with the server.
For specific limitations of the video stream pushing apparatus, reference may be made to the above limitations on the video stream pushing method, which is not described herein again. All or part of the modules in the pushing device of the video code stream can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing video code stream data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a pushing method of video code streams.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the steps of the above-described method embodiments being implemented when the computer program is executed by the processor.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for pushing a video code stream includes:
receiving two paths of video code stream data pushed by video monitoring equipment through a video receiving channel; the video receiving channel is opened based on transmission parameter information sent by the video monitoring equipment; the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and storing the two paths of video code stream data.
2. The method according to claim 1, wherein before receiving two paths of video stream data pushed by a video monitoring device through a video receiving channel, the method further comprises:
receiving a WebRTC connection request sent by the video monitoring equipment;
returning a corresponding acceptance response according to the WebRTC connection request, and establishing WebRTC connection with the video monitoring equipment;
receiving transmission parameter information sent by the video monitoring equipment;
and opening a corresponding video receiving channel according to the transmission parameter information.
3. The method according to claim 1, wherein after storing the two paths of video stream data, the method further comprises:
forwarding the first path of code stream data to a corresponding user terminal;
and forwarding the second path of code stream data to a recording server.
4. The method according to claim 3, wherein the forwarding the first path code stream data to the corresponding user terminal includes:
sending the first path of code stream data to the user terminal through the opened video sending channel; the video transmission channel is opened based on the negotiated transmission parameter information.
5. The method of claim 4, further comprising:
receiving a video file downloading request sent by the user terminal;
and inquiring the video file from a database according to the video file downloading request, and sending the second path of code stream data corresponding to the inquired video file to the user terminal.
6. A method for pushing a video code stream includes:
encoding the collected video frames into two paths of video code stream data, wherein the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and pushing the two paths of video code stream data to a server through a video sending channel, wherein the video sending channel is opened based on transmission parameter information exchanged with the server.
7. A device for pushing a video bitstream, the device comprising:
the receiving module is used for receiving two paths of video code stream data pushed by the video monitoring equipment through the video receiving channel; the video receiving channel is opened based on transmission parameter information sent by the video monitoring equipment; the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and the storage module is used for storing the two paths of video code stream data.
8. A device for pushing a video bitstream, the device comprising:
the encoding module is used for encoding the collected video frames into two paths of video code stream data, wherein the two paths of video code stream data comprise a first path of code stream data and a second path of code stream data; the first path of code stream data is used for video monitoring and previewing, and the first path of code stream data is generated without adopting a fixed period coding key frame; the second path of code stream data is used for recording a video file, and the second path of code stream data is generated by adopting a fixed period coding key frame;
and the pushing module is used for pushing the two paths of video code stream data to the server through a video sending channel, and the video sending channel is opened based on the transmission parameter information exchanged with the server.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202011269330.2A 2020-11-13 2020-11-13 Video code stream pushing method and device, computer equipment and storage medium Pending CN112584194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011269330.2A CN112584194A (en) 2020-11-13 2020-11-13 Video code stream pushing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011269330.2A CN112584194A (en) 2020-11-13 2020-11-13 Video code stream pushing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112584194A true CN112584194A (en) 2021-03-30

Family

ID=75122819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011269330.2A Pending CN112584194A (en) 2020-11-13 2020-11-13 Video code stream pushing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112584194A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738140A (en) * 2021-04-01 2021-04-30 浙江华创视讯科技有限公司 Video stream transmission method, device, storage medium and equipment based on WebRTC
CN113891019A (en) * 2021-09-24 2022-01-04 深圳Tcl新技术有限公司 Video encoding method, video encoding device, shooting equipment and storage medium
CN115361364A (en) * 2022-10-08 2022-11-18 成都华栖云科技有限公司 Data transmission method of communication protocol based on WebRTC

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009021983A (en) * 2007-06-13 2009-01-29 Panasonic Corp Monitor image recording apparatus
CN102256115A (en) * 2011-09-01 2011-11-23 杭州海康威视数字技术股份有限公司 Video monitoring method and device for digital video recorder under low-bandwidth condition
US20130083161A1 (en) * 2011-09-30 2013-04-04 University Of Illinois Real-time video coding using graphics rendering contexts
CN103327361A (en) * 2012-11-22 2013-09-25 中兴通讯股份有限公司 Method, device and system for obtaining real-time video communication playback data flow
CN107666593A (en) * 2017-08-28 2018-02-06 中国电子科技集团公司第二十八研究所 A kind of realtime video transmission method under fluctuation network environment
CN109862400A (en) * 2019-02-18 2019-06-07 苏州长风航空电子有限公司 A kind of flow-medium transmission method, device and its system
CN110602445A (en) * 2019-08-13 2019-12-20 万翼科技有限公司 Video monitoring data acquisition method and device, computer equipment and storage medium
CN110740290A (en) * 2018-07-20 2020-01-31 浙江宇视科技有限公司 Monitoring video previewing method and device
CN110830777A (en) * 2019-11-29 2020-02-21 公安部第一研究所 Method for previewing GB/T28181 standard monitoring video through cross-browser based on WebRTC protocol

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009021983A (en) * 2007-06-13 2009-01-29 Panasonic Corp Monitor image recording apparatus
CN102256115A (en) * 2011-09-01 2011-11-23 杭州海康威视数字技术股份有限公司 Video monitoring method and device for digital video recorder under low-bandwidth condition
US20130083161A1 (en) * 2011-09-30 2013-04-04 University Of Illinois Real-time video coding using graphics rendering contexts
CN103327361A (en) * 2012-11-22 2013-09-25 中兴通讯股份有限公司 Method, device and system for obtaining real-time video communication playback data flow
CN107666593A (en) * 2017-08-28 2018-02-06 中国电子科技集团公司第二十八研究所 A kind of realtime video transmission method under fluctuation network environment
CN110740290A (en) * 2018-07-20 2020-01-31 浙江宇视科技有限公司 Monitoring video previewing method and device
CN109862400A (en) * 2019-02-18 2019-06-07 苏州长风航空电子有限公司 A kind of flow-medium transmission method, device and its system
CN110602445A (en) * 2019-08-13 2019-12-20 万翼科技有限公司 Video monitoring data acquisition method and device, computer equipment and storage medium
CN110830777A (en) * 2019-11-29 2020-02-21 公安部第一研究所 Method for previewing GB/T28181 standard monitoring video through cross-browser based on WebRTC protocol

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738140A (en) * 2021-04-01 2021-04-30 浙江华创视讯科技有限公司 Video stream transmission method, device, storage medium and equipment based on WebRTC
CN113891019A (en) * 2021-09-24 2022-01-04 深圳Tcl新技术有限公司 Video encoding method, video encoding device, shooting equipment and storage medium
CN115361364A (en) * 2022-10-08 2022-11-18 成都华栖云科技有限公司 Data transmission method of communication protocol based on WebRTC
CN115361364B (en) * 2022-10-08 2022-12-20 成都华栖云科技有限公司 Data transmission method of communication protocol based on WebRTC

Similar Documents

Publication Publication Date Title
US10264044B2 (en) Apparatus and method for sending content as chunks of data to a user device via a network
EP3562163B1 (en) Audio-video synthesis method and system
US20170353647A1 (en) Method and Apparatus for Live Capture Image-Live Streaming Camera
CN112584194A (en) Video code stream pushing method and device, computer equipment and storage medium
US20090254960A1 (en) Method for a clustered centralized streaming system
US20060015634A1 (en) Progressive streaming media rendering
US9153127B2 (en) Video transmitting apparatus, video receiving apparatus, and video transmission system
JP2007208458A (en) System, terminal, and method for communication
CN104683734A (en) Video surveillance content adaptation method, system, central server and device
CN113891175B (en) Live broadcast push flow method, device and system
KR20150106351A (en) Method and system for playback of motion video
US9665646B1 (en) Method and system for providing bit rate adaptaion to video files having metadata
CN112839238A (en) Screen projection playing method and device and storage medium
WO2015035934A1 (en) Methods and systems for facilitating video preview sessions
TWI680668B (en) Screen image transmission method, image restoration method, screen image transmission system, image restoration system, screen image transmission program, image restoration program, image compression method, image compression system, and image compression program
CN116248644A (en) Optimization method based on WebRTC plug flow technology
US20030061273A1 (en) Extended content storage method and apparatus
CN114051150A (en) Live broadcast method and device, electronic equipment and computer readable storage medium
KR20130122117A (en) Method and apparatus for transmitting a moving image in a real time
WO2015086222A1 (en) Process for increasing the resolution and the visual quality of video streams exchanged between users of a video conference service
CN113938457B (en) Method, system and equipment for cloud mobile phone to apply remote camera
CN105228005B (en) The method and apparatus of channel broadcast information are obtained in a kind of IPTV
CN113676777B (en) Data processing method and device
US20230199267A1 (en) Method and apparatus for processing adaptive multi-view streaming
WO2022199484A1 (en) Media playback method and apparatus and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210330