CN108259995A - A kind of method, apparatus and equipment of preview signal source - Google Patents

A kind of method, apparatus and equipment of preview signal source Download PDF

Info

Publication number
CN108259995A
CN108259995A CN201810040114.7A CN201810040114A CN108259995A CN 108259995 A CN108259995 A CN 108259995A CN 201810040114 A CN201810040114 A CN 201810040114A CN 108259995 A CN108259995 A CN 108259995A
Authority
CN
China
Prior art keywords
data
preview
demultiplexing
rtmp
forms
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.)
Granted
Application number
CN201810040114.7A
Other languages
Chinese (zh)
Other versions
CN108259995B (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

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 kind of method of preview signal source, including the data of the H.264 form transmitted by real time streaming transport protocol RTSP forms are demultiplexed;Real-time messages transport protocol RTMP forms will be encapsulated as by the data of demultiplexing;The data of H.264 form are sent in the form of RTMP after preview request is received, so as to user's preview signal source.In the present invention, display end can realize RTMP agreements good compatibility the preview of signal source, and H.264 the data compression degree of form is high, and occupied bandwidth is small, can improve the frame per second of data transmission in such cases, improves the fluency of preview screen.The invention also discloses a kind of devices and equipment of preview signal source, have the as above identical advantageous effect of method.

Description

A kind of method, apparatus and equipment of preview signal source
Technical field
The present invention relates to computer network field, more particularly to a kind of method of preview signal source, the invention further relates to A kind of device and equipment of preview signal source.
Background technology
In many cases, user needs to carry out preview, such as to video camera, computer display etc. to the picture of signal source Picture preview of signal source etc., in the prior art, the data of the H.264 form of signal source are with RTSP (Real Time Streaming Protocol, real time streaming transport protocol) form is transmitted, and the data being transmitted in the form of RTSP are due to simultaneous The problems such as capacitive, directly can not carry out preview in display end, and the prior art is first by the H.264 form transmitted in the form of RTSP Data conversion is into JPEG (Joint Photographic Experts Group, Joint Photographic Experts Group) form, Ran Houzai The data of jpeg format are sent to display end to show, the band that the picture of jpeg format occupies is roomy, the frame of data transmission Rate is relatively low, and the picture fluency of preview signal source is poor.
Therefore, how to provide a kind of scheme for solving above-mentioned technical problem is that those skilled in the art need to solve at present Problem.
Invention content
The object of the present invention is to provide a kind of methods of preview signal source, and occupied bandwidth is small, and preview screen fluency is high;This The another object of invention is to provide a kind of device and equipment of preview signal source, and occupied bandwidth is small, improves the stream of preview screen Smooth degree.
In order to solve the above technical problems, the present invention provides the method for preview signal source, including:
The data of the H.264 form transmitted by real time streaming transport protocol RTSP forms are demultiplexed;
Real-time messages transport protocol RTMP forms will be encapsulated as by the data of demultiplexing;
The data of H.264 form are sent in the form of RTMP after preview request is received, so as to described in user's preview Signal source.
Preferably, it is described will be demultiplexed by the data of H.264 form that RTSP forms are transmitted after, it is described will be through The data for crossing demultiplexing are encapsulated as before RTMP forms, and this method further includes:
Video data is selected from the data by demultiplexing;
It is then described to be encapsulated as RTMP forms by the data of demultiplexing and be specially:
The video data is encapsulated as RTMP forms.
Preferably, it is described will be demultiplexed by the data of H.264 form that RTSP forms are transmitted after, it is described to connect The data for sending H.264 form after preview request in the form of RTMP are received, it, should before signal source described in user's preview Method further includes:
The data of demultiplexing are passed through in storage.
Preferably, described store is specially by the data of demultiplexing:
The data of FLV forms will be stored as by the data of demultiplexing.
In order to solve the above technical problems, also a kind of device of preview signal source of the present invention, including:
Demultiplexing module, for will be demultiplexed by the data of H.264 form that RTSP forms are transmitted;
Package module, for the data for passing through demultiplexing to be encapsulated as RTMP forms;
Management module, for the data of H.264 form to be sent in the form of RTMP after preview request is received, so as to Signal source described in user's preview.
Preferably, which further includes the selection mould for selecting video data from the data by demultiplexing Block;
Then the package module is specifically used for the video data being encapsulated as RTMP forms.
Preferably, which further includes the memory module for storing the data by demultiplexing.
Preferably, the package module is LibRTMB.
Preferably, the demultiplexing module is RTSPLive555.
In order to solve the above technical problems, the present invention also provides a kind of equipment of preview signal source, including:
Memory, for storing computer program;
Processor realizes the method such as preview signal source described in any one of the above embodiments during for performing the computer program The step of.
The present invention provides a kind of method of preview signal source, including will be transmitted by real time streaming transport protocol RTSP forms The data of H.264 form demultiplexed;Real-time messages transport protocol RTMP forms will be encapsulated as by the data of demultiplexing; The data of H.264 form are sent in the form of RTMP after preview request is received, so as to user's preview signal source.
As it can be seen that in the present invention, first by the data of H.264 form transmitted by real time streaming transport protocol RTSP forms into Row demultiplexing will be encapsulated as RTMP forms by the data of demultiplexing, finally be sent out in the form of RTMP after preview request is received The data of H.264 form are sent, so as to user's preview signal source, display end can realize signal to the good compatibility of RTMP agreements The preview in source, H.264 the data compression degree of form is high, and occupied bandwidth is small, can improve the frame per second of data transmission in such cases, Improve the fluency of preview screen.
The present invention also provides a kind of devices and equipment of preview signal source, have the as above identical advantageous effect of method.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to institute in the prior art and embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow diagram of the method for preview signal source provided by the invention;
Fig. 2 is a kind of structure diagram of the device of preview signal source provided by the invention;
Fig. 3 is a kind of structure diagram of the equipment of preview signal source provided by the invention.
Specific embodiment
The core of the present invention is to provide a kind of method of preview signal source, and occupied bandwidth is small, and preview screen fluency is high;This Another core of invention is to provide a kind of device and equipment of preview signal source, and occupied bandwidth is small, improves the stream of preview screen Smooth degree.
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without making creative work shall fall within the protection scope of the present invention.
It please referring to Fig.1, Fig. 1 is a kind of flow diagram of the method for preview signal source provided by the invention, including:
Step S1:The data of the H.264 form transmitted by real time streaming transport protocol RTSP forms are demultiplexed;
Specifically, by the data that RTSP agreements are transmitted for display end compatibility it is bad, in the prior art by its into Row transcoding the technical issues of bring in above-mentioned background technology, in the present invention, will can be transmitted by RTSP agreements first H.264 the data of form are demultiplexed, so as to the action of next step.
Wherein, demultiplexing can split data into a plurality of types of data, such as data are divided into video data and sound Frequency according to etc..
In addition, signal source described in the embodiment of the present invention can there are many types, such as video camera or computer to show Show device etc., the present invention does not limit herein.
Step S2:By by demultiplexing data be encapsulated as RTMP (RealTime Messaging Protocol, in real time Message transmission protocol) form;
Specifically, the form that RTMP agreements can will be encapsulated as by the data of demultiplexing, so that it is assisted by RTMP View is transmitted.
Wherein, RTMP agreements have good compatibility for display end, and the data of RTMP agreements transmission can directly exist Display end shown, and RTMP agreements have the function of penetrating for router and fire wall, without the volume as RTSP agreements again It is outer to develop corresponding tool to realize the purpose of its preview data, reduce cost.
In addition, the real-time of RTMP agreements transmission data is more preferable, data delay is relatively low, improves preview speed, makes user There is better preview to experience.
Step S3:The data of H.264 form are sent in the form of RTMP after preview request is received, so that user's preview is believed Number source.
Specifically, preview request can be the network address that the RTMP agreements that display end is sent provide, display end is providing After corresponding network address, the preview of signal source by data access, can be realized, network address mentioned here can be used Family input or set in advance, the present invention does not herein limit.
Wherein, signal source preview can carry out on a variety of display ends, such as can on a computer display, the present invention It does not limit herein.
In addition, compression degree raising can improve the frame per second of data transmission, such as data transmission of the prior art can be with For 8 frame per second, the frame per second in the present invention can rise to 15 frame per second, improve the fluency of preview screen.
The present invention provides a kind of method of preview signal source, including will be transmitted by real time streaming transport protocol RTSP forms The data of H.264 form demultiplexed;Real-time messages transport protocol RTMP forms will be encapsulated as by the data of demultiplexing; The data of H.264 form are sent in the form of RTMP after preview request is received, so as to user's preview signal source.
As it can be seen that in the present invention, first by the data of H.264 form transmitted by real time streaming transport protocol RTSP forms into Row demultiplexing will be encapsulated as RTMP forms by the data of demultiplexing, finally be sent out in the form of RTMP after preview request is received The data of H.264 form are sent, so as to user's preview signal source, display end can realize signal to the good compatibility of RTMP agreements The preview in source, H.264 the data compression degree of form is high, and occupied bandwidth is small, can improve the frame per second of data transmission in such cases, Improve the fluency of preview screen.
On the basis of above-described embodiment:
Preferably, after being demultiplexed by the data of H.264 form that RTSP forms are transmitted, demultiplexing will be passed through Data be encapsulated as before RTMP forms, this method further includes:
Video data is selected from the data by demultiplexing;
RTMP forms then, which will be encapsulated as, by the data of demultiplexing is specially:
Video data is encapsulated as RTMP forms.
Specifically, the preview that signal source is carried out in view of user in some cases may not be needed audio data, only need pre- It lookes at video pictures, therefore video data can be selected from the data by demultiplexing in the present invention, further save Bandwidth improves preview speed.
Certainly, user can carry out the setting of above-mentioned selection action according to actual demand, such as can select audio data Preview etc. is carried out, the present invention does not limit herein.
Wherein, user can with the corresponding program of typing come realize this selection act, or the selection set in advance Action, the present invention do not limit herein.
Preferably, after being demultiplexed by the data of H.264 form that RTSP forms are transmitted, preview is being received The data of H.264 form are sent after request in the form of RTMP, before user's preview signal source, this method further includes:
The data of demultiplexing are passed through in storage.
Specifically, in the embodiment of the present invention, the data after demultiplexing can be stored, user has demand afterwards In the case of can transfer and be checked at any time, improve work efficiency.
Wherein, other than data are stored after demultiplexing, data can also be deposited before demultiplexing Storage, the present invention do not limit herein.
Preferably, it stores and is specially by the data of demultiplexing:
The data of FLV forms will be stored as by the data of demultiplexing.
Specifically, FLV forms have many advantages, such as that versatile, compression degree is high and loading velocity is fast.
Certainly, other than FLV forms, other forms can also be stored data as, the present invention does not limit herein.
It please referring to Fig.2, Fig. 2 is a kind of structure diagram of the device of preview signal source provided by the invention, including:
Demultiplexing module 1, for will be demultiplexed by the data of H.264 form that RTSP forms are transmitted;
Package module 2, for the data for passing through demultiplexing to be encapsulated as RTMP forms;
Management module 3, for the data of H.264 form to be sent in the form of RTMP after preview request is received, so as to Family preview signal source.
Specifically, management module 3 can be RTMP streaming media servers etc., the present invention does not limit herein.
Preferably, which further includes the selecting module for selecting video data from the data by demultiplexing;
Then package module 2 is specifically used for video data being encapsulated as RTMP forms.
Specifically, selecting module can be multiple types, such as can be RTSPLive555 etc., the present invention is not done herein It limits.
Preferably, which further includes the memory module for storing the data by demultiplexing.
Specifically, memory module can be a plurality of types of storage devices, the present invention does not limit herein.
Preferably, package module 2 is LibRTMB.
Specifically, LibRTMB has processing speed fast and advantages of simple structure and simple.
Certainly, other than LibRTMB, package module 2 can also be other types, and the present invention does not limit herein.
Preferably, demultiplexing module 1 is RTSPLive555.
Specifically, RTSPLive555 has many advantages, such as compatible high and uses simple.
Certainly, other than RTSPLive555, demultiplexing module 1 can also be other types, and the present invention does not limit herein It is fixed.
Above method embodiment is please referred to for the introduction of the device of preview signal source provided by the invention, the present invention is herein It repeats no more.
It please referring to Fig.3, Fig. 3 is a kind of structure diagram of the equipment of preview signal source provided by the invention, including:
Memory 4, for storing computer program;
Processor 5, the step of method such as the preview signal source of any of the above-described is realized during for performing computer program.
Above method embodiment is please referred to for the introduction of the equipment of preview signal source provided by the invention, the present invention is herein It repeats no more.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related part is said referring to method part It is bright.
It should also be noted that, in the present specification, term " comprising ", "comprising" or its any other variant are intended to contain Lid non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the present invention. A variety of modifications of these embodiments will be apparent for those skilled in the art, it is as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one The most wide range caused.

Claims (10)

  1. A kind of 1. method of preview signal source, which is characterized in that including:
    The data of the H.264 form transmitted by real time streaming transport protocol RTSP forms are demultiplexed;
    Real-time messages transport protocol RTMP forms will be encapsulated as by the data of demultiplexing;
    The data of H.264 form are sent in the form of RTMP after preview request is received, so as to signal described in user's preview Source.
  2. It is 2. according to the method described in claim 1, it is characterized in that, described by the H.264 form transmitted by RTSP forms After data are demultiplexed, described by before being encapsulated as RTMP forms by the data of demultiplexing, this method further includes:
    Video data is selected from the data by demultiplexing;
    It is then described to be encapsulated as RTMP forms by the data of demultiplexing and be specially:
    The video data is encapsulated as RTMP forms.
  3. It is 3. according to the method described in claim 1, it is characterized in that, described by the H.264 form transmitted by RTSP forms After data are demultiplexed, the data for sending H.264 form in the form of RTMP after preview request is received, with Just before signal source described in user's preview, this method further includes:
    The data of demultiplexing are passed through in storage.
  4. 4. according to the method described in claim 3, it is characterized in that, the storage is specially by the data of demultiplexing:
    The data of FLV forms will be stored as by the data of demultiplexing.
  5. 5. a kind of device of preview signal source, which is characterized in that including:
    Demultiplexing module, for will be demultiplexed by the data of H.264 form that RTSP forms are transmitted;
    Package module, for the data for passing through demultiplexing to be encapsulated as RTMP forms;
    Management module, for sending the data of H.264 form in the form of RTMP after preview request is received, so as to user Signal source described in preview.
  6. 6. device according to claim 5, which is characterized in that the device further includes the number for being demultiplexed from process According to the selecting module of middle selection video data;
    Then the package module is specifically used for the video data being encapsulated as RTMP forms.
  7. 7. device according to claim 5, which is characterized in that the device further includes to store by described in demultiplexing The memory module of data.
  8. 8. device according to claim 5, which is characterized in that the package module is LibRTMB.
  9. 9. according to claim 5-8 any one of them devices, which is characterized in that the demultiplexing module is RTSPLive555.
  10. 10. a kind of equipment of preview signal source, which is characterized in that including:
    Memory, for storing computer program;
    Processor is realized such as Claims 1-4 any one of them preview signal source during for performing the computer program The step of method.
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 true CN108259995A (en) 2018-07-06
CN108259995B 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
CN108259995B (en) 2020-07-24

Similar Documents

Publication Publication Date Title
CN103581699B (en) Video playing method, streaming media server and streaming media playing system
JP5512038B2 (en) Interface device and method for transmitting and receiving media data
US20200267234A1 (en) Resource Request Management
KR101006703B1 (en) System and method for transmitting media based files
US20140129618A1 (en) Method of streaming multimedia data over a network
TWI680662B (en) Method for distributing available bandwidth of a network amongst ongoing traffic sessions run by devices of the network, corresponding device
CN107005729A (en) The coffret transmitted for multimedia and file
JP2014507879A (en) Multimedia frame transmission apparatus and method in broadcasting system
EP2827596A1 (en) Transmitting and receiving method of multimedia video data and corresponding device
EP1879353B1 (en) Contents distribution system, contents distribution server, contents reproduction terminal, and contents distribution method
CN105577645A (en) Agent-based HLS client-end device and realization method thereof
JP2019186963A (en) Method for transmitting information about media data
CN110166805A (en) Cloud handset audio transfer control method, system and storage medium
CN112866727B (en) Streaming media live broadcast method and system capable of receiving third party push stream
CN110300278A (en) Video transmission method and equipment
US20140153581A1 (en) Priority-based buffer management
US20120331510A1 (en) Method, server and system for providing real-time video service in telecommunication network
CN106131563A (en) The method and system of hardware decoding H264 video flowing are carried out based on DXVA
CN102594769A (en) Method and system for transmitting network media data
CN104506920A (en) Method and device for playing omnimedia data information
CN108966024B (en) Audio and video stream transmission method, playback method, device and system
CN110659080B (en) Page display method and device, electronic equipment and storage medium
CN108259995A (en) A kind of method, apparatus and equipment of preview signal source
CN103634694A (en) IP-based streaming media playing method and system
CN107360226A (en) The store method and device of live video

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