CN102387409A - Method for video playing and based on stream media system - Google Patents

Method for video playing and based on stream media system Download PDF

Info

Publication number
CN102387409A
CN102387409A CN201110402612XA CN201110402612A CN102387409A CN 102387409 A CN102387409 A CN 102387409A CN 201110402612X A CN201110402612X A CN 201110402612XA CN 201110402612 A CN201110402612 A CN 201110402612A CN 102387409 A CN102387409 A CN 102387409A
Authority
CN
China
Prior art keywords
video
stream media
media system
time
real
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
CN201110402612XA
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.)
JIANGSU YUANWEI TECHNOLOGY Co Ltd
Original Assignee
JIANGSU YUANWEI 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 JIANGSU YUANWEI TECHNOLOGY Co Ltd filed Critical JIANGSU YUANWEI TECHNOLOGY Co Ltd
Priority to CN201110402612XA priority Critical patent/CN102387409A/en
Publication of CN102387409A publication Critical patent/CN102387409A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method for video playing and based on a stream media system. The method comprises the following steps: firstly, a user sends out video playing information; secondly, the stream media system receives the video playing information, at the same time receives real-time videos uploaded by a video sensing node, performs multi-stage caching to the real-time videos, and counts and records the number of video frames received by the cached videos in a time slot interval with a certain period of time; and thirdly, the stream media system reads the real-time video in a time slot interval with a certain period of time, and transmits the videos to users based on the recorded real-time video frames. The invention adopts the stream media system to realize video playing, the stream media system does not depend on a video coding system and a video coding system, supports the video sensing node adopting different video sensing schemes, can conveniently enlarge the scale of a network, has high compatibility and practicability, as well as excellent universal property, and is suitable for the playing of various videos.

Description

Video broadcasting method based on stream media system
Technical field
The present invention relates to the video playback field, be specifically related to a kind of video broadcasting method based on stream media system towards Internet of Things
Background technology
Internet of Things is the network that is connected to form between article and article, is made up of for three layers sensing layer, network layer and application layer usually.At sensing layer; Object is through perception terminals such as various transducers such as temperature sensor, humidity sensor, FRID label, camera, GPS; Obtain the related parameter that has of surrounding environment; Information through network layer transmission and processing perceive then at application layer and user interactions, realizes the intelligent use of Internet of Things.
Along with popularizing of 3G technology; The user can obtain the high-speed mobile bandwidth in network coverage; 3G technology is applied to the network layer of Internet of Things, and Internet of Things node that can distance on the space is far away links to each other, and the development that the higher Streaming Media of network bandwidth requirement is applied in Internet of Things is provided the foundation for video-aware etc.; Pass through video-aware; The real-time video picture of mutual surrounding environment between object and object can obtain the situation of other nodes environment of living in the Internet of Things accurate and visually, can play an important role in fields such as intelligent transportation, live news, monitoring remote videos.
The video-aware technology is applied to Internet of Things mainly receives challenge from network layer stability; Wireless transmission methods such as 3G have time-delay and change the characteristics big, that packet loss is high; Influenced by this; Real-time video the variation of code check and frame per second can occur in transmission course, thereby influences the smooth playing degree of net cast.Present real-time video optimization method mainly can be divided into based on the method for dynamic coding with based on two types of player method for self regulating.Wherein, utilize video transmission and recipient's transmission statistic to react on video encoder,, adapt to network fluctuation through changing coding parameter based on the method for dynamic coding.In the communication process of real-time video; The reception feedback that the real-time video transmit leg changes according to video cache or video reception (or broadcast) is square is estimated the network delay bandwidth and is predicted; To predicting the outcome; Dynamically change coding parameter, increase or reduce video code rate, the frame per second of encoder output, shake with smooth network.But these class methods exist following defective: first; Parameter regulation for encoder depends on estimation and prediction to network state; And under the wireless environment, burst and discontinuous variation can take place in network, and therefore estimation and Forecasting Methodology are difficult to accurately reflect network change; Second; All need the parameter support of encoder based on the method for dynamic coding, and in Internet of Things was used, the awareness apparatus that is used for video-aware can not have unified video coding interface; Perhaps only have limited video coding and regulate parameter, so this method versatility is relatively poor.Based on the player method for self regulating mainly by the consumption of broadcast side's controls playing process of real-time video for video data; According to the network bandwidth and the variation that receives buffer memory; Dynamically change playback rate, eliminate the overflow and the underflow of decoder buffer, reach the purpose of smooth network shake.The major defect of these class methods is that method depends on the realization of Video Decoder; When browsing real-time video; Specific realization need the to be installed decoder of self-adjusting method, and decoder receives the restriction of running environment (like operating system, hardware condition) etc., versatility is relatively poor.
Summary of the invention
The purpose of this invention is to provide a kind of video encoder, decoder realization, video broadcasting method that versatility is good of not relying on based on stream media system
The technical scheme that realizes the object of the invention provides a kind of video broadcasting method based on stream media system, comprises the steps:
A, user send video playback information;
B, stream media system receiver, video broadcast information; The real-time video that while receiver, video sensing node is uploaded; Real time video data is carried out multi-level buffer, and the video frame number that receives in the video certain hour length time slot interval to buffer memory is added up and record;
Real-time video in C, the stream media system time for reading length time slot interval, and transmit video to the user according to the real-time video frame number that statistics obtains.
Further, multi-level buffer is the tandem multi-level buffer among the step B.
Step B comprises the steps:
B-1, stream media system receive the real-time video that sensing node is uploaded, and deposit in the exchange files buffer area;
When B-2, stream media system receive the user video playing request, find corresponding file cache exchanging district, and start the real time frame rate statistics to the video data in the exchange files buffer area according to the field in the request URL
B-3, read the video data in the respective file cache exchanging district, and be kept in the screen buffer.
Screen buffer is that stream media system is the memory buffer formation that fixed length is opened up in live request, is positioned to the ending of exchange files buffering area.
Step C comprises the steps:
C-1, stream media system read the frame per second that the real time frame rate statistics obtains, and according to this frame per second the video data in the memory buffer formation are transmitted video data to the user, and remove the frame of video that success transmits in the video buffer formation;
C-2, stream media system read and transmit next section video;
C-3, repeating step C-1 and step C-2 receive the user up to video-aware node stop uploaded videos or stream media system and send the solicited message that stops to watch video.
The present invention has positive effect: (1), employing stream media system are realized the method for video playback; It does not rely on video coding system and video decoding system; Support the video-aware node to adopt different video-aware schemes; Can enlarge network size easily, compatible strong good with versatility, broadcast when being applicable to various video.Practical.
(2), Streaming Media adopts the tandem multi-level buffer among the present invention, can effectively handle real-time video, level and smooth real-time video is shaken because of video frame rate and code check that situation such as Network Packet Loss, time delay change, disconnections suddenly cause; Further strengthened the fluency that real-time video is play, practicality is good.
(3), among the present invention, be provided with exchange files buffer area, screen buffer, accomplish respectively the real-time video of uploading is effectively handled, further make the video playback fluency good.
Description of drawings
Fig. 1 is a FB(flow block) of the present invention.
Embodiment
(embodiment 1)
As shown in Figure 1:
A kind of video broadcasting method based on stream media system comprises the steps: in the present embodiment
A, user send video playback information;
B, stream media system receiver, video broadcast information; The real-time video that while receiver, video sensing node is uploaded; Real time video data is carried out multi-level buffer, and the video frame number that receives in the video certain hour length time slot interval to buffer memory is added up and record;
Real-time video in C, the stream media system time for reading length time slot interval, and transmit video to the user according to the real-time video frame number that statistics obtains.
Multi-level buffer is the tandem multi-level buffer among the step B.
Step B comprises the steps:
B-1, stream media system receive the real-time video that sensing node is uploaded, and deposit in the exchange files buffer area;
When B-2, stream media system receive the user video playing request, find corresponding file cache exchanging district, and start the real time frame rate statistics to the video data in the exchange files buffer area according to the field in the request URL
B-3, read the video data in the respective file cache exchanging district, and be kept in the screen buffer.
Screen buffer is that stream media system is the memory buffer formation that fixed length is opened up in live request, is positioned to the ending of exchange files buffering area.
Step C comprises the steps:
C-1, stream media system read the frame per second that the real time frame rate statistics obtains, and according to this frame per second the video data in the memory buffer formation are transmitted video data to the user, and remove the frame of video that success transmits in the video buffer formation;
C-2, stream media system read and transmit next section video;
C-3, repeating step C-1 and step C-2 receive the user up to video-aware node stop uploaded videos or stream media system and send the solicited message that stops to watch video.
The module that mainly comprises two executed in parallel in the comprehensive above step present embodiment; First module is monitored the video upload request of video-aware node; The real-time video that sensing node is uploaded deposits filebuf in and the real-time video that receives is added up; Obtain the real video frame per second in each statistics time slot; Second module responds user watches the request of real-time live video, and the frame per second that from filebuf, reads video and obtain according to first module statistics pushes live video with adaptive frame per second to the user in each time slot.Mutual with the video frame rate data structure of the overall situation between two parts through filebuf.
For first module, carry out following flow process:
1) the real-time video upload request of monitoring video-aware node if the video-aware node is connected to streaming media server and begins to upload real-time video, is a presence with this video-aware node identification, carries out 2), otherwise, listening state be in always;
2) streaming media server receives the frame data that the video-aware node is uploaded, and judges whether the current video sensing node has started the adaptive video live broadcasting method, if start, carries out 3), otherwise, execution in step 6);
3) judge time interval of time slot time started and current time, if trough end when current carries out 4), otherwise, execution 5);
4) the true frame per second of actual reception video in this time slot of record in overall video frame rate data structure, with the frame number counter O reset, the time slot time started is set to the current time, redirect carries out 6);
5) the frame number counter is added one, be illustrated in and receive a new frame video in the current time slot, redirect carries out 2);
6) video data is write the video file buffering area, redirect carries out 2);
For second module, carry out following flow process:
1) the net cast request of streaming media server monitoring users is watched a certain if receive the user
The live video of video-aware node carries out 2), otherwise, monitor always and wait for that the user connects;
2) for the user creates the live thread of session, each live thread is associated with a user's real-time video live session;
3) video-aware node identification of watching according to user request and current time search this video-aware node and whether are uploading real-time video; If the current off-line state (be not connected to streaming media server and upload real-time video) that is in of video-aware node of request; The end session thread; Release is connected with the user's, if the current line states (uploading real-time video) that is in of video-aware node of request carries out 4);
4) send message to first module, start self adaptation real-time video live broadcasting method;
5) create the formation of internal memory video buffer, be used for preserving the real-time video that reads from filebuf, send the interface between the service as filebuf and RTSP;
6) from the pairing filebuf of video-aware node of user's request, read the up-to-date video data of uploading of sensing node in the memory buffer formation; The video length that reads equals the length of buffer queue; If read unsuccessful, the expression streaming media server do not receive enough frame of video, wait for that then enough videos are arranged in filebuf; If read success, carry out 7);
7) from overall video frame rate data structure, read the corresponding video frame rate of video data in the memory buffer formation, and send live video through the RTSP agreement to the user according to this frame per second, after video sends and accomplishes in the current time slot, redirect 6).
Obviously, the above embodiment of the present invention only be for clearly the present invention is described and is done for example, and be not to be qualification to execution mode of the present invention.For the those of ordinary skill in affiliated field, on the basis of above-mentioned explanation, can also make other multi-form variation or change.Here need not also can't give exhaustive to all execution modes.And these belong to conspicuous variation or the change that connotation of the present invention extends out and still belong to protection scope of the present invention.

Claims (5)

1. the video broadcasting method based on stream media system is characterized in that: comprise the steps:
A, user send video playback information;
B, stream media system receiver, video broadcast information; The real-time video that while receiver, video sensing node is uploaded; Real time video data is carried out multi-level buffer, and the video frame number that receives in the video certain hour length time slot interval to buffer memory is added up and record;
Real-time video in C, the stream media system time for reading length time slot interval, and transmit video to the user according to the real-time video frame number that statistics obtains.
2. the video broadcasting method based on stream media system according to claim 1 is characterized in that: multi-level buffer is the tandem multi-level buffer among the step B.
3. the video broadcasting method based on stream media system according to claim 2, it is characterized in that: step B comprises the steps:
B-1, stream media system receive the real-time video that sensing node is uploaded, and deposit in the exchange files buffer area;
When B-2, stream media system receive the user video playing request, find corresponding file cache exchanging district, and start the real time frame rate statistics to the video data in the exchange files buffer area according to the field in the request URL
B-3, read the video data in the respective file cache exchanging district, and be kept in the screen buffer.
4. the video broadcasting method based on stream media system according to claim 3 is characterized in that: screen buffer is that stream media system is the memory buffer formation that fixed length is opened up in live request, is positioned to the ending of exchange files buffering area.
5. the video broadcasting method based on stream media system according to claim 4, it is characterized in that: step C comprises the steps:
C-1, stream media system read the frame per second that the real time frame rate statistics obtains, and according to this frame per second the video data in the memory buffer formation are transmitted video data to the user, and remove the frame of video that success transmits in the video buffer formation;
C-2, stream media system read and transmit next section video;
C-3, repeating step C-1 and step C-2 receive the user up to video-aware node stop uploaded videos or stream media system and send the solicited message that stops to watch video.
CN201110402612XA 2011-12-07 2011-12-07 Method for video playing and based on stream media system Pending CN102387409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110402612XA CN102387409A (en) 2011-12-07 2011-12-07 Method for video playing and based on stream media system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110402612XA CN102387409A (en) 2011-12-07 2011-12-07 Method for video playing and based on stream media system

Publications (1)

Publication Number Publication Date
CN102387409A true CN102387409A (en) 2012-03-21

Family

ID=45826277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110402612XA Pending CN102387409A (en) 2011-12-07 2011-12-07 Method for video playing and based on stream media system

Country Status (1)

Country Link
CN (1) CN102387409A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135486A (en) * 2014-08-08 2014-11-05 浙江奇汇电子提花机有限公司 Streaming media wireless adaptive transmission method based on TCP (Transmission Control Protocol)
CN104202650A (en) * 2014-09-28 2014-12-10 西安诺瓦电子科技有限公司 Streaming media broadcast system and method and LED display screen system
CN104683866A (en) * 2013-11-29 2015-06-03 成都鼎桥通信技术有限公司 Playing processing method for received streaming video
CN105979218A (en) * 2016-06-13 2016-09-28 中南大学 High-definition real-time monitoring video efficient transmission method
CN106850629A (en) * 2017-02-09 2017-06-13 广东欧珀移动通信有限公司 The processing method and mobile terminal of a kind of stream medium data
CN110620793A (en) * 2019-10-31 2019-12-27 苏州浪潮智能科技有限公司 Method, device and medium for improving audio quality
CN112104879A (en) * 2020-11-13 2020-12-18 腾讯科技(深圳)有限公司 Video coding method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0940986A2 (en) * 1998-03-02 1999-09-08 Matsushita Electric Industrial Co., Ltd. Method and system downloading a desired portion of a continuous medium with a raised precision
CN1852425A (en) * 2006-05-19 2006-10-25 北京中星微电子有限公司 Method and apparatus for obtaining current broadcasting time while broadcasting multi-medium document
CN101076099A (en) * 2007-06-14 2007-11-21 北京中星微电子有限公司 Method and device for controlling video record and synchronized-controlling unit
CN101321265A (en) * 2007-06-07 2008-12-10 中兴通讯股份有限公司 Method and system for implementing peer-to-peer network media order frame-across broadcast mode
CN101466034A (en) * 2008-12-25 2009-06-24 华为技术有限公司 Method and device for sending and playing stream medium data and stream medium program request system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0940986A2 (en) * 1998-03-02 1999-09-08 Matsushita Electric Industrial Co., Ltd. Method and system downloading a desired portion of a continuous medium with a raised precision
CN1852425A (en) * 2006-05-19 2006-10-25 北京中星微电子有限公司 Method and apparatus for obtaining current broadcasting time while broadcasting multi-medium document
CN101321265A (en) * 2007-06-07 2008-12-10 中兴通讯股份有限公司 Method and system for implementing peer-to-peer network media order frame-across broadcast mode
CN101076099A (en) * 2007-06-14 2007-11-21 北京中星微电子有限公司 Method and device for controlling video record and synchronized-controlling unit
CN101466034A (en) * 2008-12-25 2009-06-24 华为技术有限公司 Method and device for sending and playing stream medium data and stream medium program request system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683866A (en) * 2013-11-29 2015-06-03 成都鼎桥通信技术有限公司 Playing processing method for received streaming video
CN104135486A (en) * 2014-08-08 2014-11-05 浙江奇汇电子提花机有限公司 Streaming media wireless adaptive transmission method based on TCP (Transmission Control Protocol)
CN104202650A (en) * 2014-09-28 2014-12-10 西安诺瓦电子科技有限公司 Streaming media broadcast system and method and LED display screen system
CN104202650B (en) * 2014-09-28 2017-11-17 西安诺瓦电子科技有限公司 Stream media play system and method, LED display screen system
CN105979218A (en) * 2016-06-13 2016-09-28 中南大学 High-definition real-time monitoring video efficient transmission method
CN106850629A (en) * 2017-02-09 2017-06-13 广东欧珀移动通信有限公司 The processing method and mobile terminal of a kind of stream medium data
CN110100424A (en) * 2017-02-09 2019-08-06 Oppo广东移动通信有限公司 A kind of processing method and mobile terminal of stream medium data
US10992723B2 (en) 2017-02-09 2021-04-27 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing streaming media data and terminal
CN110100424B (en) * 2017-02-09 2021-08-31 Oppo广东移动通信有限公司 Streaming media data processing method and mobile terminal
CN110620793A (en) * 2019-10-31 2019-12-27 苏州浪潮智能科技有限公司 Method, device and medium for improving audio quality
CN110620793B (en) * 2019-10-31 2022-03-15 苏州浪潮智能科技有限公司 Method, device and medium for improving audio quality
CN112104879A (en) * 2020-11-13 2020-12-18 腾讯科技(深圳)有限公司 Video coding method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102387409A (en) Method for video playing and based on stream media system
CN104125429B (en) The adjusting method and device of video data transmission
US9860294B2 (en) Media content streaming
Wang et al. AMES-cloud: A framework of adaptive mobile video streaming and efficient social video sharing in the clouds
CN102946570B (en) Transmission system and method for multi-stream streaming media of self-adaption network bandwidth
CN102075728B (en) The method and system of a kind of shared audio frequency and/or video
CN103354618B (en) HLS-based multi-scenario streaming media adaptive live broadcast method
KR100703399B1 (en) Transcoding apparatus and method for seamless video contents transmission
US8625443B2 (en) System for measuring transmission bandwidth for media streaming and method for same
CN101511010A (en) Method and device for sending medium stream
CN103210642B (en) Occur during expression switching, to transmit the method for the scalable HTTP streams for reproducing naturally during HTTP streamings
CN103167324A (en) Method and apparatus to control a multipath adaptive streaming session
US20130219440A1 (en) Apparatus and method for simulcast over a variable bandwidth channel
CN102130886B (en) Network video streaming media system, transmission processing method, transmitting end
Chen AMVSC: A framework of adaptive mobile video streaming in the cloud
US20090222576A1 (en) Method and apparatus for reducing power consumption of a network communication device receiving streaming content via an ip-based network
CN101917613A (en) Acquiring and coding service system of streaming media
JP6436772B2 (en) Method for dynamically adapting received bit rate and associated receiver
EP2830278A1 (en) Method of identification of multimedia flows and corresponding apparatus
CN104320716B (en) A kind of video method of uplink transmission collaborative based on multiple terminals collaboration
CN103945281A (en) Method, device and system for video transmission processing
CN101827251A (en) Method and device for playing network streaming media
CN102196249B (en) Monitoring data playback method, EC (Encoder) and video management server
CN102439935B (en) Media adaptation method and apparatus
CN103929682A (en) Method and device for setting key frames in video live broadcast system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120321