CN108259995B - Method, device and equipment for previewing signal source - Google Patents

Method, device and equipment for previewing signal source Download PDF

Info

Publication number
CN108259995B
CN108259995B CN201810040114.7A CN201810040114A CN108259995B CN 108259995 B CN108259995 B CN 108259995B CN 201810040114 A CN201810040114 A CN 201810040114A CN 108259995 B CN108259995 B CN 108259995B
Authority
CN
China
Prior art keywords
data
format
rtmp
signal source
previewing
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
CN201810040114.7A
Other languages
Chinese (zh)
Other versions
CN108259995A (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.)
Vtron Group Co Ltd
Original Assignee
Vtron Group 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 Vtron Group Co Ltd filed Critical Vtron Group Co Ltd
Priority to CN201810040114.7A priority Critical patent/CN108259995B/en
Publication of CN108259995A publication Critical patent/CN108259995A/en
Application granted granted Critical
Publication of CN108259995B publication Critical patent/CN108259995B/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/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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for previewing a signal source, which comprises the steps of demultiplexing H.264 format data transmitted in a real-time streaming protocol (RTSP) form; packaging the demultiplexed data into a real-time message transfer protocol (RTMP) form; and after receiving the preview request, sending the data in the H.264 format in an RTMP form so that a user can preview the signal source. In the invention, the good compatibility of the display end to the RTMP protocol can realize the preview of the signal source, the data compression degree of the H.264 format is high, the occupied bandwidth is small, the frame rate of data transmission can be improved under the condition, and the fluency of previewing the picture is improved. The invention also discloses a device and equipment for previewing the signal source, which have the same beneficial effects as the method.

Description

Method, device and equipment for previewing signal source
Technical Field
The invention relates to the field of computer networks, in particular to a method for previewing a signal source, and also relates to a device and equipment for previewing the signal source.
Background
In many cases, a user needs to preview a picture of a signal source, for example, a picture of a signal source such as a video camera, a computer display, and the like, in the prior art, data in an h.264 format of the signal source is transmitted in an RTSP (Real time streaming Protocol) form, and due to problems such as compatibility, the data transmitted in the RTSP form cannot be directly previewed on a display terminal.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method for previewing a signal source, which has the advantages of small occupied bandwidth and high fluency of previewing pictures; another object of the present invention is to provide an apparatus and device for previewing a signal source, which occupy less bandwidth and improve fluency of previewing a picture.
In order to solve the above technical problem, the present invention provides a method for previewing a signal source, comprising:
demultiplexing the data in the H.264 format transmitted in the form of the real-time streaming protocol RTSP;
packaging the demultiplexed data into a real-time message transfer protocol (RTMP) form;
and after receiving the preview request, sending the data in the H.264 format in an RTMP form so that a user can preview the signal source.
Preferably, after demultiplexing the h.264 format data transmitted through the RTSP format, before encapsulating the demultiplexed data into the RTMP format, the method further includes:
selecting video data from the demultiplexed data;
the encapsulating the demultiplexed data into the RTMP form specifically includes:
and packaging the video data into an RTMP form.
Preferably, after demultiplexing the h.264 format data transmitted through the RTSP format, before sending the h.264 format data in the form of RTMP after receiving a preview request so that a user can preview the signal source, the method further includes:
storing the demultiplexed data.
Preferably, the storing the demultiplexed data specifically is:
storing the demultiplexed data as the data in F L V format.
In order to solve the above technical problem, the present invention further provides a device for previewing a signal source, including:
the demultiplexing module is used for demultiplexing the data in the H.264 format transmitted in the RTSP form;
the packaging module is used for packaging the demultiplexed data into an RTMP form;
and the management module is used for sending the data in the H.264 format in an RTMP form after receiving the preview request so as to facilitate the user to preview the signal source.
Preferably, the apparatus further comprises a selection module for selecting video data from the demultiplexed data;
the encapsulation module is specifically configured to encapsulate the video data into an RTMP format.
Preferably, the apparatus further comprises a storage module for storing the demultiplexed data.
Preferably, the encapsulation module is L ibRTMB.
Preferably, the demultiplexing module is RTSP L ive 555.
In order to solve the above technical problem, the present invention further provides an apparatus for previewing a signal source, including:
a memory for storing a computer program;
a processor for implementing the steps of the method of previewing a source of signals according to any one of the preceding claims when executing the computer program.
The invention provides a method for previewing a signal source, which comprises the steps of demultiplexing H.264 format data transmitted in a real-time streaming protocol (RTSP) form; packaging the demultiplexed data into a real-time message transfer protocol (RTMP) form; and after receiving the preview request, sending the data in the H.264 format in an RTMP form so that a user can preview the signal source.
It can be seen that, in the present invention, the data in h.264 format transmitted in the form of RTSP is demultiplexed, the demultiplexed data is packaged in the form of RTMP, and finally the data in h.264 format is transmitted in the form of RTMP after receiving the preview request, so that the user can preview the signal source, the good compatibility of the display end to the RTMP protocol can implement the preview of the signal source, the data in h.264 format has high compression degree and small occupied bandwidth, and under this condition, the frame rate of data transmission can be increased, and the fluency of the preview picture can be increased.
The invention also provides a device and equipment for previewing the signal source, and the device and equipment have the same beneficial effects as the method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for previewing a signal source according to the present invention;
FIG. 2 is a schematic structural diagram of an apparatus for previewing a signal source according to the present invention;
fig. 3 is a schematic structural diagram of an apparatus for previewing a signal source according to the present invention.
Detailed Description
The core of the invention is to provide a method for previewing a signal source, which has small occupied bandwidth and high fluency of previewing pictures; the other core of the invention is to provide a device and equipment for previewing the signal source, which have small occupied bandwidth and improve the fluency of previewing the image.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for previewing a signal source according to the present invention, including:
step S1: demultiplexing the data in the H.264 format transmitted in the form of the real-time streaming protocol RTSP;
specifically, the compatibility of the data transmitted through the RTSP protocol to the display end is not good, and transcoding is performed in the prior art, which brings technical problems in the background art.
The demultiplexing may divide the data into multiple types of data, such as video data and audio data.
In addition, the signal source in the embodiment of the present invention may be of various types, such as a video camera or a computer display, and the present invention is not limited herein.
Step S2: packaging the demultiplexed data into an RTMP (real time Messaging Protocol) form;
in particular, the demultiplexed data may be packaged in the form of an RTMP protocol so as to be transmitted through the RTMP protocol.
The RTMP protocol has good compatibility with a display end, data transmitted by the RTMP protocol can be directly displayed on the display end, the RTMP protocol has the penetrating function of a router and a firewall, a corresponding tool does not need to be additionally developed like an RTSP protocol to achieve the purpose of previewing the data, and cost is reduced.
In addition, the RTMP protocol has better real-time property of data transmission and lower data delay, thereby improving the preview speed and leading the user to have better preview experience.
Step S3: and after receiving the preview request, sending the data in the H.264 format in an RTMP form so that a user can preview the signal source.
Specifically, the preview request may be a network address provided by an RTMP protocol sent by the display terminal, and the display terminal may access data to preview the signal source after providing a corresponding network address, where the network address may be input by a user or set in advance, and the present invention is not limited herein.
The signal source preview may be performed on various display terminals, for example, on a computer display, which is not limited herein.
In addition, the frame rate of data transmission can be increased by increasing the compression degree, for example, the data transmission in the prior art can be 8 frames per second, and the frame rate in the invention can be increased to 15 frames per second, so that the fluency of the preview picture is improved.
The invention provides a method for previewing a signal source, which comprises the steps of demultiplexing H.264 format data transmitted in a real-time streaming protocol (RTSP) form; packaging the demultiplexed data into a real-time message transfer protocol (RTMP) form; and after receiving the preview request, sending the data in the H.264 format in an RTMP form so that a user can preview the signal source.
It can be seen that, in the present invention, the data in h.264 format transmitted in the form of RTSP is demultiplexed, the demultiplexed data is packaged in the form of RTMP, and finally the data in h.264 format is transmitted in the form of RTMP after receiving the preview request, so that the user can preview the signal source, the good compatibility of the display end to the RTMP protocol can implement the preview of the signal source, the data in h.264 format has high compression degree and small occupied bandwidth, and under this condition, the frame rate of data transmission can be increased, and the fluency of the preview picture can be increased.
On the basis of the above-described embodiment:
preferably, after demultiplexing the h.264 format data transmitted through the RTSP format, before encapsulating the demultiplexed data into the RTMP format, the method further includes:
selecting video data from the demultiplexed data;
then, encapsulating the demultiplexed data into an RTMP form specifically includes:
the video data is encapsulated into an RTMP form.
Specifically, in some cases, it is considered that the user may preview the signal source without audio data, but only previews the video picture, so that the video data can be selected from the demultiplexed data, the bandwidth is further saved, and the preview speed is improved.
Of course, the user may set the selection action according to actual requirements, for example, may select audio data for previewing, and the invention is not limited herein.
The user may enter a corresponding program to implement the selection action, or may also be a selection action set in advance, which is not limited herein.
Preferably, after demultiplexing the h.264 format data transmitted through the RTSP format, the method further includes, before transmitting the h.264 format data in the RTMP format after receiving the preview request so that the user can preview the signal source:
storing the demultiplexed data.
Specifically, in the embodiment of the present invention, the data after demultiplexing may be stored, and a user may call and check the data at any time in the case of a need later, so that the working efficiency is improved.
In addition to storing the data after demultiplexing, the data may also be stored before demultiplexing, and the present invention is not limited herein.
Preferably, storing the demultiplexed data specifically includes:
the demultiplexed data was stored as data in F L V format.
Specifically, the F L V format has the advantages of strong versatility, high compression degree, fast loading speed, and the like.
Of course, the data may be stored in other formats besides the F L V format, and the invention is not limited herein.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an apparatus for previewing a signal source according to the present invention, including:
a demultiplexing module 1, configured to demultiplex data in the h.264 format transmitted in the RTSP format;
the encapsulation module 2 is used for encapsulating the demultiplexed data into an RTMP form;
and the management module 3 is used for sending the data in the H.264 format in an RTMP form after receiving the preview request so as to facilitate the user to preview the signal source.
Specifically, the management module 3 may be an RTMP streaming media server, and the like, which is not limited herein.
Preferably, the apparatus further comprises a selection module for selecting video data from the demultiplexed data;
the encapsulation module 2 is specifically configured to encapsulate the video data into an RTMP form.
Specifically, the selection module may be of various types, for example, the selection module may be RTSP L ive555, and the invention is not limited herein.
Preferably, the apparatus further comprises a storage module for storing the demultiplexed data.
Specifically, the memory module may be a plurality of types of memory devices, and the invention is not limited herein.
Preferably, the package module 2 is L ibRTMB.
Specifically, L ibRTMB has the advantages of high processing speed, simple structure and the like.
Of course, the package module 2 may be of other types besides L ibRTMB, and the invention is not limited herein.
Preferably, the demultiplexing module 1 is RTSP L ive 555.
Specifically, the RTSP L ive555 has the advantages of high compatibility, simplicity in use and the like.
Of course, the demultiplexing module 1 may be of other types besides the RTSP L ive555, and the invention is not limited herein.
For the introduction of the apparatus for previewing a signal source according to the present invention, please refer to the above method embodiment, and the present invention is not described herein again.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an apparatus for previewing a signal source according to the present invention, including:
a memory 4 for storing a computer program;
a processor 5 for implementing the steps of the method of previewing a source of a signal according to any one of the preceding claims when executing a computer program.
For the introduction of the apparatus for previewing the signal source according to the present invention, please refer to the above method embodiment, and the present invention is not described herein again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It should also be noted that, in the present specification, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A method of previewing a source of a signal, comprising:
demultiplexing the data in the H.264 format transmitted in the form of the real-time streaming protocol RTSP;
packaging the demultiplexed data into a real-time message transfer protocol (RTMP) form;
after receiving a preview request, sending the data in the H.264 format in an RTMP form so that a user can preview the signal source;
after demultiplexing the h.264 format data transmitted through the RTSP format, and before encapsulating the demultiplexed data into the RTMP format, the method further includes:
selecting video data from the demultiplexed data;
the encapsulating the demultiplexed data into the RTMP form specifically includes:
and packaging the video data into an RTMP form.
2. The method of claim 1, wherein after demultiplexing the h.264 format data transmitted through RTSP format, before sending the h.264 format data in RTMP format after receiving a preview request for a user to preview the signal source, the method further comprises:
storing the demultiplexed data.
3. The method according to claim 2, wherein the storing the demultiplexed data is specifically:
storing the demultiplexed data as the data in F L V format.
4. An apparatus for previewing a source of a signal, comprising:
the demultiplexing module is used for demultiplexing the data in the H.264 format transmitted in the RTSP form;
the packaging module is used for packaging the demultiplexed data into an RTMP form;
the management module is used for sending the data in the H.264 format in an RTMP form after receiving the preview request so that a user can preview the signal source;
the apparatus also includes a selection module for selecting video data from the demultiplexed data;
the encapsulation module is specifically configured to encapsulate the video data into an RTMP format.
5. The apparatus of claim 4, further comprising a storage module for storing the demultiplexed data.
6. The apparatus of claim 4, wherein the encapsulation module is L ibRTMB.
7. The apparatus according to any of claims 4-6, wherein the demultiplexing module is RTSP L ive 555.
8. An apparatus for previewing a source of a signal, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of previewing a signal source according to any one of claims 1 to 3 when executing said computer program.
CN201810040114.7A 2018-01-16 2018-01-16 Method, device and equipment for previewing signal source Active CN108259995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810040114.7A CN108259995B (en) 2018-01-16 2018-01-16 Method, device and equipment for previewing signal source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810040114.7A CN108259995B (en) 2018-01-16 2018-01-16 Method, device and equipment for previewing signal source

Publications (2)

Publication Number Publication Date
CN108259995A CN108259995A (en) 2018-07-06
CN108259995B true CN108259995B (en) 2020-07-24

Family

ID=62726631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810040114.7A Active CN108259995B (en) 2018-01-16 2018-01-16 Method, device and equipment for previewing signal source

Country Status (1)

Country Link
CN (1) CN108259995B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581699A (en) * 2013-11-04 2014-02-12 广州华工信元通信技术有限公司 Video playing method, streaming media server and streaming media playing system
CN105791884A (en) * 2016-03-07 2016-07-20 读者出版传媒股份有限公司 Streaming media live broadcast method and streaming media live broadcast system
CN105872453A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Web camera monitoring method and system as well as server
CN106791931A (en) * 2017-01-05 2017-05-31 上海浦东软件园汇智软件发展有限公司 A kind of method and apparatus of data flow transcoding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581699A (en) * 2013-11-04 2014-02-12 广州华工信元通信技术有限公司 Video playing method, streaming media server and streaming media playing system
CN105872453A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Web camera monitoring method and system as well as server
CN105791884A (en) * 2016-03-07 2016-07-20 读者出版传媒股份有限公司 Streaming media live broadcast method and streaming media live broadcast system
CN106791931A (en) * 2017-01-05 2017-05-31 上海浦东软件园汇智软件发展有限公司 A kind of method and apparatus of data flow transcoding

Also Published As

Publication number Publication date
CN108259995A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
US12096046B2 (en) Live streaming method and system, server, and storage medium
CN103581699B (en) Video playing method, streaming media server and streaming media playing system
CN105991962B (en) Connection method, information display method, device and system
CN108200447B (en) Live broadcast data transmission method and device, electronic equipment, server and storage medium
CN111010614A (en) Method, device, server and medium for displaying live caption
CN102761456B (en) A kind of method, Apparatus and system obtaining browser of mobile terminal performance parameter
CN102196015B (en) Manuscript system-based internal and external network data transmission method and system
CN108810657B (en) Method and system for setting video cover
CN105142020A (en) Method and system for converting video in unsupported format in mobile terminal
CN110113298B (en) Data transmission method, device, signaling server and computer readable medium
CN103347215B (en) A kind of multi-screen interaction method and Set Top Box
CN116261021B (en) Video stream playing method and device, electronic equipment and storage medium
CN108259995B (en) Method, device and equipment for previewing signal source
CN111818010B (en) Data transmission method and device, electronic equipment and storage medium
KR20140051498A (en) Apparatus and method for transmitting transport characteristics of multimedia data in dynamic network environment
CN110661745B (en) Overhead transmission method, device, equipment and computer readable storage medium
CN111918074A (en) Live video fault early warning method and related equipment
CN104639979A (en) Video sharing method and system
CN113259737A (en) Monitoring method, related device and readable storage medium
KR102271571B1 (en) MEDIA SERVER FOR PROVIDING webRTC-BASED VIDEO CHATTING SERVICE AND SYSTEM THEREOF
CN110730328B (en) Method for displaying multi-channel videos into single page of browser
WO2016082806A1 (en) Video processing method and device
CN106851134B (en) Method, device and system for transmitting image data
CN113489934A (en) Intelligent housekeeper server, system and screen remote interaction method
CN110120967B (en) Data synchronization method and 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
GR01 Patent grant
GR01 Patent grant