CN104717545A - Video playing method and device - Google Patents

Video playing method and device Download PDF

Info

Publication number
CN104717545A
CN104717545A CN201310695728.6A CN201310695728A CN104717545A CN 104717545 A CN104717545 A CN 104717545A CN 201310695728 A CN201310695728 A CN 201310695728A CN 104717545 A CN104717545 A CN 104717545A
Authority
CN
China
Prior art keywords
data
video
video data
node
video packets
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
CN201310695728.6A
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.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310695728.6A priority Critical patent/CN104717545A/en
Publication of CN104717545A publication Critical patent/CN104717545A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention discloses a video playing method and device. The method includes the steps that after a request node transmits video data obtaining request information to a target node, video data response information transmitted by the target node based on the video data obtaining request information is received, and video data packages carried in the video data response information are obtained; the request node plays videos according to the video data packages. By the adoption of the technical scheme, it is unnecessary to play video data contained in the video data packages in a playing buffering region after waiting to determine that storage space occupied by all the video data packages obtained by the request node is larger than or equal to the buffering area in size, on the premise of normal video playing, the operation steps for the video data are simplified, and the problem that in the prior art, the videos can be played only after many processing steps are executed is solved.

Description

A kind of video broadcasting method and device
Technical field
The present invention relates to multimedia technology field, particularly relate to a kind of video broadcasting method and device.
Background technology
Along with the develop rapidly of multimedia technology, various ways can be adopted to carry out transmission and the broadcasting of Streaming Media, wherein, P2P(Peer to Peer; Point-to-point) stream media system is a kind of conventional streaming media and Play System.
In existing point-to-point stream media system, streaming medium content is cut into multiple data block (chunk), using each data block as the base unit of transmission of flow media data, thus complete continuous print data flow and transmit between node (Peer), wherein, each data block is identified by unique chunk id.Sharing and exchanging the buffered message (being called for short BM) all depending on the description node buffer status exchanged between node of programme content, namely completes sharing of programme content by buffered message and exchanges.
In point-to-point stream media system, when requesting node needs to carry out video playback, can to the above-mentioned video data of other node acquisition request in point-to-point stream media system.At present, usually arrange a buffering area in requesting node this locality, when shared by the above-mentioned video data that requesting node obtains, storage size is greater than or equal to the size of above-mentioned buffering area, namely requesting node plays the video data in this buffering area.Consult shown in Fig. 1, the detailed process of video playback is:
Step 100: requesting node sends video data to destination node and obtains request message.
Step 110: requesting node obtains destination node and generates based on above-mentioned video data request message and feed back to the video packets of data of carrying in the video data response message of requesting node.
Step 120: this video packets of data is stored in above-mentioned buffering area by requesting node, and when storage size equals buffer size shared by all video packets of data comprised in this buffering area, then perform step 130;
Step 130: requesting node plays the video data that in this buffering area, all video packets of data comprise.
As can be seen here, there is the problem needing to perform more treatment step ability displaying video in prior art.
Summary of the invention
The embodiment of the present invention provides a kind of video broadcasting method and device, in order to solve the problem needing to perform more treatment step ability displaying video existed in prior art.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
A kind of video broadcasting method, is applied in point-to-point stream media system, comprises:
Requesting node in described point-to-point stream media system sends video data to the destination node in described point-to-point stream media system and obtains request message;
Described request node receives the video data response message that described destination node generates based on described video data request message;
Described request node obtains the video packets of data that the described request node that carries in described video data response message is asked, and described video packets of data be not stored to the buffering area in described request node, when also not judging shared by described video packets of data, whether storage size is greater than or equal to described buffer size, play the video data that described video packets of data comprises.
Optionally, described request node divides described video packets of data before carrying out video playback according to described video packets of data, generates and takies at least one data block that storage size is preset value.
Optionally, when the number of data blocks generated is at least two, the video data that described request node comprises according to each data block in described at least two data blocks respectively distinguishes corresponding reproduction time sequencing, is followed successively by described each data block and arranges ascending label respectively.
Optionally, after described request node divides described video packets of data, when generating a data block, described request node plays the video data that described data block comprises; After described request node divides described video packets of data, when generating at least two data blocks, described request node play successively according to the order that the label that described data block is corresponding is ascending described in the video data that comprises of at least two data blocks.
Optionally, each data block takies storage size is 188*128K byte.
Adopt technique scheme, after the video packets of data of acquisition is divided by requesting node, play-over the video data that at least one data block after division comprises, thus ensure that the fluency of video playback.In addition, in requesting node this locality, a large amount of code need not be set to realize the broadcasting of video data, avoid code and take system memory space and safeguard the problem of code, reduce system burden, effectively improve systematic function.
A kind of video play device, is applied in point-to-point stream media system, comprises:
Transmitting element, obtains request message for sending video data to the destination node in described point-to-point stream media system;
Receiving element, for receiving the video data response message that described destination node generates based on described video data request message;
Broadcast unit, for obtaining the video packets of data that the described request node that carries in described video data response message is asked, and described video packets of data be not stored to the buffering area in described request node, when also not judging shared by described video packets of data, whether storage size is greater than or equal to described buffer size, play the video data that described video packets of data comprises.
Further, also comprise generation unit, for: described video packets of data is divided, generates and take at least one data block that storage size is preset value.
Optionally, described generation unit, specifically for: when the number of data blocks generated is at least two, the video data comprised according to each data block in described at least two data blocks respectively distinguishes corresponding reproduction time sequencing, is followed successively by described each data block and arranges ascending label respectively.
Optionally, described broadcast unit, specifically for: after described video packets of data is divided, when generating a data block, play the video data that described data block comprises; After described video packets of data is divided, when generating at least two data blocks, the video data that described in playing successively according to the order that the label that described data block is corresponding is ascending, at least two data blocks comprise.
Optionally, it is 188*128K byte that each data block that described generation unit generates takies storage size.
Adopt technique scheme, after the video packets of data of acquisition is divided by requesting node, play-over the video data that at least one data block after division comprises, thus ensure that the fluency of video playback.In addition, in requesting node this locality, a large amount of code need not be set to realize the broadcasting of video data, avoid code and take system memory space and safeguard the problem of code, reduce system burden, effectively improve systematic function.
In the embodiment of the present invention, after requesting node sends video data acquisition request message to destination node, receiving target node obtains the video data response message of request message transmission based on this video data, and obtains the video packets of data of carrying in this video data response message; Requesting node carries out video playback according to this video packets of data.Adopt technical solution of the present invention, after need not waiting for that shared by all video packets of data that requesting node obtains, memory space is greater than or equal to buffer size, the video data that video packets of data just in play buffer comprises, thus under the prerequisite realizing normal play video, simplify the operating procedure for video data, solve the problem needing to perform more treatment step ability displaying video existed in prior art.
Accompanying drawing explanation
Fig. 1 is video playback flow chart in prior art;
Fig. 2 is point-to-point Frame of Streaming Media System schematic diagram in the embodiment of the present invention;
Fig. 3 is video playback flow chart in the embodiment of the present invention;
Fig. 4 is video play device structural representation in the embodiment of the present invention.
Embodiment
In order to solve in prior art the problem needing to perform more treatment step ability displaying video.In the embodiment of the present invention, after requesting node sends video data acquisition request message to destination node, receiving target node obtains the video data response message of request message transmission based on this video data, and obtains the video packets of data of carrying in this video data response message; Requesting node carries out video playback according to this video packets of data.Adopt technical solution of the present invention, after need not waiting for that shared by all video packets of data that requesting node obtains, memory space is greater than or equal to buffer size, the video data that video packets of data just in play buffer comprises, thus under the prerequisite realizing normal play video, simplify the operating procedure for video data, solve the problem needing to perform more treatment step ability displaying video existed in prior art.
The embodiment of the present invention is applied in point-to-point stream media system, consult and Figure 2 shows that point-to-point stream media system structural representation in the embodiment of the present invention, wherein, multiple requesting node and the destination node corresponding with each requesting node is comprised in this point-to-point stream media system, below for the video data reciprocal process in point-to-point stream media system between a requesting node and a destination node, by reference to the accompanying drawings the preferred embodiment of the present invention is described in detail.
Consult shown in Fig. 3, in the embodiment of the present invention, the detailed process that requesting node carries out video playback is:
Step 300: requesting node sends video data to destination node and obtains request message.
In the embodiment of the present invention, requesting node is the node of asking video data in point-to-point stream media system, and destination node is and has above-mentioned video data and the node sending this video data to requesting node.As can be seen here, in point-to-point stream media system, requesting node and destination node are only relative concept, when the video data of other nodes of node acquisition request any in point-to-point stream media system, this any node is requesting node, and other nodes above-mentioned are destination node.
In the embodiment of the present invention, comprise a process stream class libraries in requesting node this locality, the buffering area of this process Streaming Media class libraries and corresponding requests node, in this process Streaming Media class libraries, is set to 0 by the buffer size of requesting node.Adopt technique scheme, buffer size is set to 0, make requesting node need not wait-receiving mode to all video packets of data shared by storage size meet buffer size after carry out video playback again.
Step 310: the video data response message that requesting node receiving target node generates based on above-mentioned video data request message.
In the embodiment of the present invention, after destination node obtains the video data acquisition request message of requesting node transmission, namely according to the video data that this video data acquisition request message acquisition requesting node is asked, and according to this video data generating video packet; And this video packets of data generating video data response message of destination node general layout is sent to requesting node.
Step 320: requesting node obtains the video packets of data that the requesting node that carries in above-mentioned video data response message is asked, video packets of data is not stored to the buffering area in requesting node, when also not judging whether storage size shared by video packets of data is greater than or equal to buffer size, play the video data that above-mentioned video packets of data comprises.
In the embodiment of the present invention, namely requesting node obtains the video packets of data of carrying in this video data response message after receiving the video data response message of destination node transmission.Due in above process, the buffer size of requesting node this locality is set to 0, therefore, after requesting node receives above-mentioned video packets of data, this video packets of data need not be placed in buffering area, play-over the video data that above-mentioned video packets of data comprises.Adopt this technical scheme, under the prerequisite realizing normal play video, simplify the operating procedure for video data, solve the problem needing to perform more treatment step ability displaying video existed in prior art
Further, requesting node divides above-mentioned video packets of data, is repacked by the video data in this video packets of data to generate to take at least one data block that storage size is preset value.
Optionally, storage size shared by usual video packets of data is fixed value, and a video packets of data can be divided into multiple data block; Special, just take storage size in last video packets of data that displaying video is corresponding may be less than above-mentioned fixed value when current, now, this last video packets of data can be divided into and take at least one data block that storage size is preset value.
Based on above-mentioned partition process, when the number of data blocks generated is at least two, the video data that requesting node comprises according to each data block in above-mentioned at least two data blocks respectively distinguishes corresponding reproduction time sequencing, is followed successively by above-mentioned each data block and arranges ascending label respectively.Such as, the reproduction time that wherein data block A is corresponding is reproduction time that t1, data block B are corresponding be the reproduction time that t2, data block C are corresponding is t3, and t1 early than t3, t3 early than t2, now, arranging label to data block A is 1, data block C be set to label 2, and data block B is set to label 3.
Optionally, above-mentioned preset value is 188*128K byte, and it is 188*128K byte that each data block generated after namely dividing video packets of data takies storage size.
In the embodiment of the present invention, after requesting node divides above-mentioned video packets of data, the video data that above-mentioned data block comprises can be play, be specially: when only generating a data block after dividing video packets of data, requesting node plays the video data that this data block comprises; After requesting node divides above-mentioned video packets of data, when generating at least two data blocks, requesting node plays according to the order that the label that above-mentioned data block is corresponding is ascending the video data that at least two data blocks comprise successively.Such as, after requesting node divides video packets of data, generate data block A, data block B, data block C, and label corresponding to data block A is 1, the label that data block C is corresponding is 2, data block B corresponding labels is 3, then the requesting node first video data that comprises of played data block A, then the video data that comprises of played data block C, the video data that last played data block B comprises.
Adopt technique scheme, after the video packets of data of acquisition is divided by requesting node, play-over the video data that at least one data block after division comprises, thus ensure that the fluency of video playback.
In addition, in the prior art, when last video packets of data that the video data of requesting node request is current displaying video, and this video packets of data takies storage size when being less than buffer size, usually by supplementing a large amount of code in above-mentioned buffering area, using the method for this code as video packets of data, solve video data in buffering area not enough time cannot the problem of displaying video, and a large amount of codes will take memory spaces a large amount of in requesting node, and the later stage needs to expend higher cost and safeguard above-mentioned code, thus add the burden of system.Adopt technical solution of the present invention, in requesting node this locality, a large amount of code need not be set to realize the broadcasting of video data, avoid code and take system memory space and safeguard the problem of code, reduce system burden, effectively improve systematic function.
Based on technique scheme, consult shown in Fig. 4, the embodiment of the present invention provides a kind of video play device, comprises transmitting element 40, receiving element 41, and broadcast unit 42, wherein:
Transmitting element 40, obtains request message for sending video data to destination node;
Receiving element 41, for the video data response message that receiving target node generates based on above-mentioned video data request message;
Broadcast unit 42, for obtaining the video packets of data that the requesting node that carries in above-mentioned video data response message is asked, and described video packets of data be not stored to the buffering area in described request node, when also not judging shared by described video packets of data, whether storage size is greater than or equal to described buffer size, play the video data that described video packets of data comprises.
Further, said apparatus also comprises generation unit 43, before carrying out video playback according to described video packets of data, divides described video packets of data, generates and takies at least one data block that storage size is preset value.
In the embodiment of the present invention, the buffer size that the process Streaming Media class libraries comprised requesting node this locality is corresponding is set to 0; Requesting node sends video data to destination node and obtains request message; The video data response message that requesting node receiving target node generates based on above-mentioned video data request message; Requesting node obtains the video packets of data that the requesting node that carries in above-mentioned video data response message is asked, and carries out video playback according to this video packets of data.Adopt technical solution of the present invention, local buffer size is set to 0 by requesting node, after need not waiting for that shared by all video packets of data that requesting node obtains, memory space is greater than or equal to buffer size, the video data that video packets of data just in play buffer comprises, thus under the prerequisite realizing normal play video, simplify the operating procedure for video data, solve the problem needing to perform more treatment step ability displaying video existed in prior art; And, requesting node obtains a data block and namely plays the video data comprised in this data block, need not by the broadcasting by supplementing video data in a large amount of codes implement buffering area in buffering area, avoid code to take system memory space and safeguard the problem of code, reduce system burden, effectively improve systematic function.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the embodiment of the present invention and not depart from the spirit and scope of the embodiment of the present invention.Like this, if these amendments of the embodiment of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a video broadcasting method, is applied in point-to-point stream media system, it is characterized in that, comprising:
Requesting node in described point-to-point stream media system sends video data to the destination node in described point-to-point stream media system and obtains request message;
Described request node receives the video data response message that described destination node generates based on described video data request message;
Described request node obtains the video packets of data that the described request node that carries in described video data response message is asked, and described video packets of data be not stored to the buffering area in described request node, when also not judging shared by described video packets of data, whether storage size is greater than or equal to described buffer size, play the video data that described video packets of data comprises.
2. the method for claim 1, is characterized in that, described request node comprises before carrying out video playback according to described video packets of data further:
Described request node divides described video packets of data, generates and takies at least one data block that storage size is preset value.
3. method as claimed in claim 2, is characterized in that, generates and takies at least one data block that storage size is preset value, specifically comprise;
When the number of data blocks generated is at least two, the video data that described request node comprises according to each data block in described at least two data blocks respectively distinguishes corresponding reproduction time sequencing, is followed successively by described each data block and arranges ascending label respectively.
4. method as claimed in claim 3, it is characterized in that, described request node plays the video data that described video packets of data comprises, and specifically comprises:
After described request node divides described video packets of data, when generating a data block, described request node plays the video data that described data block comprises;
After described request node divides described video packets of data, when generating at least two data blocks, described request node distinguishes the ascending order of corresponding label according to each data block in described at least two data blocks, plays the video data that described each data block comprises respectively successively.
5. the method as described in any one of claim 1-4, is characterized in that, it is 188*128K byte that each data block takies storage size.
6. a video play device, is applied in point-to-point stream media system, it is characterized in that, comprising:
Transmitting element, obtains request message for sending video data to the destination node in described point-to-point stream media system;
Receiving element, for receiving the video data response message that described destination node generates based on described video data request message;
Broadcast unit, for obtaining the video packets of data that the described request node that carries in described video data response message is asked, and described video packets of data be not stored to the buffering area in described request node, when also not judging shared by described video packets of data, whether storage size is greater than or equal to described buffer size, play the video data that described video packets of data comprises.
7. device as claimed in claim 6, is characterized in that, also comprise generation unit, for:
Before carrying out video playback according to described video packets of data, described video packets of data is divided, generate and take at least one data block that storage size is preset value.
8. device as claimed in claim 7, is characterized in that, described generation unit, specifically for;
When the number of data blocks generated is at least two, the video data comprised according to each data block in described at least two data blocks respectively distinguishes corresponding reproduction time sequencing, is followed successively by described each data block and arranges ascending label respectively.
9. device as claimed in claim 8, is characterized in that, described broadcast unit, specifically for:
After described video packets of data is divided, when generating a data block, play the video data that described data block comprises; After described video packets of data is divided, when generating at least two data blocks, the video data that described in playing successively according to the order that the label that described data block is corresponding is ascending, at least two data blocks comprise.
10. the device as described in any one of claim 6-9, is characterized in that, it is 188*128K byte that each data block that described generation unit generates takies storage size.
CN201310695728.6A 2013-12-17 2013-12-17 Video playing method and device Pending CN104717545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310695728.6A CN104717545A (en) 2013-12-17 2013-12-17 Video playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310695728.6A CN104717545A (en) 2013-12-17 2013-12-17 Video playing method and device

Publications (1)

Publication Number Publication Date
CN104717545A true CN104717545A (en) 2015-06-17

Family

ID=53416426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310695728.6A Pending CN104717545A (en) 2013-12-17 2013-12-17 Video playing method and device

Country Status (1)

Country Link
CN (1) CN104717545A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107920258A (en) * 2016-10-11 2018-04-17 中国移动通信有限公司研究院 A kind of data processing method and device
CN110874268A (en) * 2018-09-04 2020-03-10 阿里巴巴集团控股有限公司 Data processing method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102232298A (en) * 2011-04-07 2011-11-02 华为技术有限公司 Method, device and system for transmitting and processing media content
US20120117605A1 (en) * 2010-11-04 2012-05-10 Industrial Technology Research Institute System and method for peer-to-peer live streaming

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120117605A1 (en) * 2010-11-04 2012-05-10 Industrial Technology Research Institute System and method for peer-to-peer live streaming
CN102232298A (en) * 2011-04-07 2011-11-02 华为技术有限公司 Method, device and system for transmitting and processing media content

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107920258A (en) * 2016-10-11 2018-04-17 中国移动通信有限公司研究院 A kind of data processing method and device
CN110874268A (en) * 2018-09-04 2020-03-10 阿里巴巴集团控股有限公司 Data processing method, device and equipment
CN110874268B (en) * 2018-09-04 2023-04-18 阿里巴巴集团控股有限公司 Data processing method, device and equipment

Similar Documents

Publication Publication Date Title
JP6219800B2 (en) Multi-track video content service method and system for providing multi-track video content
CN103650526B (en) Playlists for real-time or near real-time streaming
JP6563424B2 (en) Stream media data transmission method, client and server
US20220174346A1 (en) Video playing method and apparatus
WO2015165395A1 (en) Video playback method and apparatus
CN107920258B (en) Data processing method and device
EP3147905A1 (en) Bandwidth limited dynamic frame rate video trick play
CN103491427A (en) Method and device for processing video
CN112333536A (en) Audio and video editing method, equipment and computer readable storage medium
WO2018233539A1 (en) Video processing method, computer storage medium, and device
CN104902145A (en) Method and device for playing live streaming video
JP6587997B6 (en) Sliding window management method and system for time machine function
US9633694B2 (en) Full fidelity remote video editing
CN104717545A (en) Video playing method and device
CN104753811A (en) Streaming medium service optimizing method, device and system
CN104506920A (en) Method and device for playing omnimedia data information
JP2017168940A (en) Playback control program, conversion program, playback control device, terminal device, moving image playback system, playback control method, and conversion method
CN112887786B (en) Video playing method and device and computer readable medium
JP6513054B2 (en) Client device of content delivery system, method and program for acquiring content
CN104754424A (en) Node list access method and node list access device
CN104735115A (en) P2P downloading method and device
JP2015512188A (en) Method and system for providing file data of media files
JP2017055203A (en) Information apparatus
CN104683882A (en) Generation and play method and device for multiple speed file of stream medium
CN106303587A (en) A kind of method and device downloading audio, video data

Legal Events

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

Application publication date: 20150617