CN112449202B - Video live broadcasting method - Google Patents

Video live broadcasting method Download PDF

Info

Publication number
CN112449202B
CN112449202B CN202011324272.9A CN202011324272A CN112449202B CN 112449202 B CN112449202 B CN 112449202B CN 202011324272 A CN202011324272 A CN 202011324272A CN 112449202 B CN112449202 B CN 112449202B
Authority
CN
China
Prior art keywords
video
server
equipment
stream
live broadcast
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.)
Active
Application number
CN202011324272.9A
Other languages
Chinese (zh)
Other versions
CN112449202A (en
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.)
Suzhou Dianji Iot Technology Co ltd
Original Assignee
Suzhou Dianji Iot 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 Suzhou Dianji Iot Technology Co ltd filed Critical Suzhou Dianji Iot Technology Co ltd
Priority to CN202011324272.9A priority Critical patent/CN112449202B/en
Publication of CN112449202A publication Critical patent/CN112449202A/en
Application granted granted Critical
Publication of CN112449202B publication Critical patent/CN112449202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2181Source of audio or video content, e.g. local disk arrays comprising remotely distributed storage units, e.g. when movies are replicated over a plurality of video servers
    • 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/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • H04N21/2326Scheduling disk or memory reading operations
    • 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/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2542Management at additional data server, e.g. shopping server, rights management server for selling goods, e.g. TV shopping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/47815Electronic shopping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Landscapes

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

Abstract

The invention discloses a video live broadcasting method, which comprises the following steps: step 100, binding live broadcast equipment and setting a stream pushing address; step 200: a terminal APP acquires a live video stream pushing address; step 300: informing the live broadcast equipment of stream pushing; step 400: converting and distributing video data; step 500: and playing and closing the video. The invention has the beneficial effects that: because the live broadcast equipment uses the RTMP protocol, the video equipment can continuously push the picture data to the server, and a large amount of network bandwidth and server resources are occupied, and the technical scheme of the invention promotes the following aspects: controlling the live broadcast equipment to push video picture data according to actual requirements, reducing the data volume pushed in idle time periods, and reducing the flow cost generated by the pushing; and the server load of the whole APP operation is reduced.

Description

Video live broadcasting method
Technical Field
The invention relates to the field of live broadcast, in particular to a video live broadcast method.
Background
With the development of network information technology, people have higher and higher requirements for information intercommunication, from the basic requirement of sound to the viewing of still pictures and to the transmission of real-time pictures at present. Because of the RTMP protocol used for data transmission, data transmission will be uninterrupted, the data volume is huge, the server load becomes large, and the relative cost also increases.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a video live broadcast method, which reduces the cost and the data transmission pressure and solves the network data transmission load caused by using an RTMP protocol to transmit video pictures.
In order to solve the technical problem, the invention provides a video live broadcasting method, which comprises the following steps:
step 100, binding live broadcast equipment and setting a stream pushing address;
step 200: a terminal APP acquires a live video stream pushing address;
step 300: informing the live broadcast equipment of stream pushing;
step 400: converting and distributing video data;
step 500: and playing and closing the video.
The invention has the beneficial effects that:
because the live broadcast equipment uses the RTMP protocol, the video equipment can continuously push the picture data to the server, and a large amount of network bandwidth and server resources are occupied, and the technical scheme of the invention promotes the following aspects: controlling the live broadcast equipment to push video picture data according to actual requirements, reducing the data volume pushed in idle periods, and reducing the flow cost generated by the pushing; and the server load of the whole APP operation is reduced.
In one embodiment, step 100, binding live broadcast equipment and setting a stream pushing address; ", specifically includes:
step 110: the shop user uses the management background to create commodity maintenance commodity details and add live broadcast equipment, and sends an equipment binding request to the cloud server through a TCP/IP protocol;
step 120: after receiving a request sent by a management background, the cloud server records commodity information to the MySql server;
step 130: the cloud server sends a request to the live broadcast server through a TCP/IP protocol, the live broadcast server generates a unique stream pulling address and a stream pushing address corresponding to the equipment according to the pushed equipment number, and the data are returned to the cloud server;
step 140: after receiving the push flow address and the pull flow address returned by the live broadcast server, the cloud server binds the equipment with the push flow address and the pull flow address and stores the equipment to the MySql server;
step 150: the device server receives the request of the cloud server and informs the devices which are deployed on site in advance, the stream pushing address of the devices is set to be the stream pushing address pushed by the cloud server, and the operation result is returned to the cloud server.
Step 160: and the cloud server receives the information returned by the equipment server and then informs the management terminal of the operation result.
In one embodiment, the device server receives a request from the cloud server and notifies the device, which is deployed in the field in advance, through the P2P communication protocol.
In one embodiment, the "step 200: a terminal APP acquires a live video stream pushing address; ", specifically includes:
step 210: a client screens a needed product through a mall module in a terminal APP, finds an entry of a video playing picture in detailed information of a commodity, and requests a cloud server to acquire a pull address;
step 220: after receiving the request of the terminal user, the cloud server queries the pull address corresponding to the commodity in the MySql data according to the unique code of the commodity, returns the pull address to the terminal APP through a TCP/IP protocol, and simultaneously sends a push stream request to the equipment server.
In one embodiment, the "step 300: informing the live broadcast equipment of stream pushing; ", specifically includes:
step 310: after receiving a request of a cloud server, the equipment server finds corresponding equipment information in the MySql database through the equipment number, and informs corresponding live equipment of stream pushing through a P2P protocol;
step 320: after receiving the request from the device server, the live device starts to transmit the video frame to the live server through the RTMP protocol according to the stream pushing address set in step 150.
In one embodiment, the "step 400: converting and distributing video data; ", specifically includes:
step 410: the live broadcast server receives a video stream pushed by live broadcast equipment and stores the video stream;
step 420: judging whether the format of the data stream meets the requirement of the step 220, if not, executing a step 430;
step 430: converting the video stream data to the format specified in step 220;
step 440: and sending the data pushed by the live broadcast equipment to the terminal user through the CDN technology.
In one embodiment, "step 500: video playing and closing ", specifically comprising:
step 510: the terminal APP displays the video data in the terminal APP through the RTMP player after the terminal APP obtains the video stream data from the live broadcast server through the stream pulling address;
step 520: after the terminal APP closes the video playing picture, informing the equipment server of the end of the stream pulling request;
step 530: and after receiving the pull stream ending request, the equipment server informs the corresponding live broadcast equipment to stop pushing the stream.
Based on the same inventive concept, the present application also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the methods when executing the program.
Based on the same inventive concept, the present application also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of any of the methods.
Based on the same inventive concept, the present application further provides a processor for executing a program, wherein the program executes to perform any one of the methods.
Drawings
Fig. 1 is a flow chart diagram of a video live broadcasting method of the present invention.
Detailed Description
The present invention is further described below in conjunction with the following figures and specific examples so that those skilled in the art may better understand the present invention and practice it, but the examples are not intended to limit the present invention.
And step 100, binding live broadcast equipment and setting a stream pushing address.
Step 110: a shop user uses a management background to create commodity maintenance commodity details and add live broadcast equipment, namely, a device binding request is sent to a cloud server through a Transmission Control Protocol/Internet Protocol (TCP/IP), wherein the TCP/IP is the most basic communication Protocol in the use of a network.
Step 120: the cloud server records the merchandise information to the MySql server (MySql is a relational database management system that stores data in different tables instead of putting all data in a large repository, which increases speed and flexibility
Step 130: the cloud server sends a request to the live broadcast server through a TCP/IP protocol, the live broadcast server generates a unique pull stream address and a push stream address corresponding to the equipment according to the pushed equipment number, and the data are returned to the cloud server.
Step 140: and after receiving the push stream address and the pull stream address returned by the live broadcast server, the cloud server binds the equipment with the push stream address and the pull stream address and stores the equipment to the MySql server.
Step 150: the device server receives a request of the cloud server and informs a device which is deployed on the spot in advance through a P2P communication protocol, a stream pushing address of the device is set to be a stream pushing address pushed by the cloud server, and an operation result is returned to the cloud server. ( P2P, also called peer-to-peer internet technology, is a new network technology, and relies on the computing power and bandwidth of participants in the network, rather than aggregating the dependencies on a few servers. P2P networks are typically used to connect nodes through Ad Hoc connections. Such networks may be used for a variety of purposes, and various file sharing software has been widely used. P2P technology is also used in data communication of real-time media services like VoIP )
Step 160: and the cloud server receives the information returned by the equipment server and then informs the management terminal of the operation result.
Step 200: and the terminal APP acquires a live video stream pushing address.
Step 210: the client screens the needed products through a mall module in the terminal APP, finds an entry of a video playing picture in detailed information of the commodity, and requests the cloud server to acquire a pull stream address (submit a unique code of the commodity).
Step 220: after receiving the request of the terminal user, the cloud server queries the pull address corresponding to the commodity in the MySql data according to the unique code of the commodity, returns the pull address to the terminal APP through a TCP/IP protocol, and simultaneously sends a push stream request to the equipment server (transmission equipment number).
Step 300: and informing the live broadcast equipment of pushing the stream.
Step 310: after receiving the request of the cloud server, the device server finds corresponding device information in the MySql database through the device number, and informs the corresponding live broadcast device of stream pushing through a P2P protocol.
Step 320: after receiving the request from the device server, the live broadcast device starts to transmit the video frame to the live broadcast server according to the stream pushing address set in step 150 by using the RTMP Protocol (RTMP is an acronym of Real Time Messaging Protocol), which is based on TCP and is a Protocol family including multiple variants such as RTMP basic Protocol and RTMPT/RTMPs/RTMPE.
Step 400: video data is converted and distributed.
Step 410: and the live broadcast server receives the video stream pushed by the live broadcast equipment and then stores the video stream.
Step 420: it is determined whether the format of the data stream meets the requirements of step 220, and if not, step 430 is performed.
Step 430: the video stream data is converted to the format specified in step 220.
Step 440: and sending the data pushed by the live broadcast equipment to the terminal user through the CDN technology. (CDN (Content Delivery Network) refers to a Content Delivery Network, also called a Content Delivery Network, and the concept starts in 1996, and is proposed by a research group of the national institute of technology and technology, massachusetts, USA) to improve the quality of service of the Internet. In order to deliver rich broadband media Content on the traditional IP Network, they propose to build a Content Delivery platform on the existing Internet to specially provide service for websites, and a special CDN service company is established in 1999 to provide professional service for Yahoo.
Step 500: and playing and closing the video.
Step 510: and the terminal APP displays the video data in the terminal APP through the RTMP player after the terminal APP obtains the video stream data from the live broadcast server through the stream pulling address.
Step 520: and after the terminal APP closes the video playing picture, informing the equipment server that the stream pulling request is finished.
Step 530: and after receiving the pull stream ending request, the equipment server informs the corresponding live broadcast equipment to stop pushing the stream.
The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.

Claims (8)

1. A method for live video, comprising:
step 100, binding live broadcast equipment and setting a stream pushing address, which specifically comprises the following steps:
step 110: the shop user uses the management background to create commodity maintenance commodity details and add live broadcast equipment, and sends an equipment binding request to the cloud server through a TCP/IP protocol;
step 120: after receiving a request sent by a management background, the cloud server records commodity information to the MySql server;
step 130: the cloud server sends a request to the live broadcast server through a TCP/IP protocol, the live broadcast server generates a unique stream pulling address and a stream pushing address corresponding to the equipment according to the pushed equipment number, and the data are returned to the cloud server;
step 140: after receiving the push flow address and the pull flow address returned by the live broadcast server, the cloud server binds the equipment with the push flow address and the pull flow address and stores the equipment to the MySql server;
step 150: the device server receives a request of the cloud server to inform a device which is deployed on the site in advance, sets a stream pushing address of the device as a stream pushing address pushed by the cloud server, and returns an operation result to the cloud server;
step 160: the cloud server receives the information returned by the equipment server and informs the management terminal of the operation result;
step 200: a terminal APP acquires a live video stream pushing address;
step 300: informing the live broadcast equipment of stream pushing;
step 400: converting and distributing video data;
step 500: and playing and closing the video.
2. The method of claim 1, wherein the device server receives a request from the cloud server to notify the devices pre-deployed in the field via a P2P communication protocol.
3. A video live broadcast method according to claim 1, wherein the "step 200: a terminal APP obtains a live video stream pushing address; ", specifically includes:
step 210: a client screens a needed product through a mall module in a terminal APP, finds an entrance of a video playing picture in detailed information of a commodity, and requests a cloud server to obtain a pull address;
step 220: after receiving the request of the terminal user, the cloud server queries the pull address corresponding to the commodity in the MySql data according to the unique code of the commodity, returns the pull address to the terminal APP through a TCP/IP protocol, and simultaneously sends a push stream request to the equipment server.
4. A video live broadcast method according to claim 1, wherein the step 300: informing the live broadcast equipment of stream pushing; ", specifically includes:
step 310: after receiving a request of a cloud server, the equipment server finds corresponding equipment information in the MySql database through the equipment number, and informs corresponding live equipment of stream pushing through a P2P protocol;
step 320: after receiving the request from the device server, the live device starts to transmit the video frame to the live server through the RTMP protocol according to the stream pushing address set in step 150.
5. The video live broadcasting method of claim 1, wherein the step of "step 400: converting and distributing video data; ", specifically includes:
step 410: the live broadcast server receives a video stream pushed by live broadcast equipment and then stores the video stream;
step 420: judging whether the format of the data stream meets the requirement of the step 220, if not, executing a step 430;
step 430: converting the video stream data to the format specified in step 220;
step 440: and sending the data pushed by the live broadcast equipment to the terminal user through the CDN technology.
6. The video live broadcasting method of claim 1, wherein the step of "step 500: video playing and closing ", specifically comprising:
step 510: the terminal APP displays the video data in the terminal APP through the RTMP player after the terminal APP obtains the video stream data from the live broadcast server through the stream pulling address;
step 520: after the terminal APP closes the video playing picture, informing the equipment server that the stream pulling request is finished;
step 530: and after receiving the pull stream ending request, the equipment server informs the corresponding live broadcast equipment to stop pushing the stream.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the program is executed by the processor.
8. 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.
CN202011324272.9A 2020-11-23 2020-11-23 Video live broadcasting method Active CN112449202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011324272.9A CN112449202B (en) 2020-11-23 2020-11-23 Video live broadcasting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011324272.9A CN112449202B (en) 2020-11-23 2020-11-23 Video live broadcasting method

Publications (2)

Publication Number Publication Date
CN112449202A CN112449202A (en) 2021-03-05
CN112449202B true CN112449202B (en) 2022-10-28

Family

ID=74737594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011324272.9A Active CN112449202B (en) 2020-11-23 2020-11-23 Video live broadcasting method

Country Status (1)

Country Link
CN (1) CN112449202B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107105309A (en) * 2017-04-25 2017-08-29 北京潘达互娱科技有限公司 Live dispatching method and device
WO2018219048A1 (en) * 2017-05-31 2018-12-06 华为技术有限公司 Live broadcast method, system and related device
CN110233984A (en) * 2018-03-06 2019-09-13 北京视联动力国际信息技术有限公司 A kind of monitoring system and method based on view networking
CN110267093A (en) * 2019-05-15 2019-09-20 广州视源电子科技股份有限公司 Live video method for pushing, device, storage medium, terminal and live streaming mirror

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107105309A (en) * 2017-04-25 2017-08-29 北京潘达互娱科技有限公司 Live dispatching method and device
WO2018219048A1 (en) * 2017-05-31 2018-12-06 华为技术有限公司 Live broadcast method, system and related device
CN110233984A (en) * 2018-03-06 2019-09-13 北京视联动力国际信息技术有限公司 A kind of monitoring system and method based on view networking
CN110267093A (en) * 2019-05-15 2019-09-20 广州视源电子科技股份有限公司 Live video method for pushing, device, storage medium, terminal and live streaming mirror

Also Published As

Publication number Publication date
CN112449202A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN101485170B (en) Rendering repeatable data objects streamed over a network
CN107135417B (en) A kind of throwing screen method and system of HLS protocol
US9621958B2 (en) Deferred, on-demand loading of user presence within a real-time collaborative service
US20030126277A1 (en) Apparatus and method for providing multimedia streaming service by using point-to-point connection
US20140165119A1 (en) Offline download method, multimedia file download method and system thereof
US20080127245A1 (en) On demand dynamic advertisement insertion in an internet protocol stream
CN101867777B (en) Video ordering transmission method based on peer-to-peer computing set-top box
CN104618785A (en) Audio and video playing method, device and system
CN102571979A (en) Multi-screen interactive equipment and binding method thereof
US9172594B1 (en) IPv6 to web architecture
US20100198977A1 (en) Automatic live stream trees
US10757195B2 (en) Device interconnection and service discovery via a communication cloud
CN108200444B (en) Video live broadcast method, device and system
AU2010101495A4 (en) Method of P2P video communication implemented on web page
CN110856011A (en) Method for grouping live broadcast interaction, electronic equipment and storage medium
CN113055692A (en) Data processing method and device
US20230199239A1 (en) Streaming video trunking
US9871716B2 (en) Broadcast readiness testing in distributed content delivery networks
US10601910B2 (en) Method for broadcasting a piece of content in an it network
CN106209824A (en) The cloud edit methods of data, system and the client of cloud editor
CN114501052A (en) Live broadcast data processing method, cloud platform, computer equipment and storage medium
WO2024066938A1 (en) Livestreaming screenshotting method, apparatus and device, and storage medium
CN108881963A (en) Data capture method, server-side and client
CN112449202B (en) Video live broadcasting method
CN1812566A (en) Apparatus and method for realizing P2P stream broadcasting in information family appliances

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
GR01 Patent grant
GR01 Patent grant