CN106162375A - Image player and image playing method - Google Patents
Image player and image playing method Download PDFInfo
- Publication number
- CN106162375A CN106162375A CN201510174661.0A CN201510174661A CN106162375A CN 106162375 A CN106162375 A CN 106162375A CN 201510174661 A CN201510174661 A CN 201510174661A CN 106162375 A CN106162375 A CN 106162375A
- Authority
- CN
- China
- Prior art keywords
- frame
- packet loss
- image
- prediction
- processing unit
- 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.)
- Withdrawn
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of image player and image playing method.Image player includes communication unit, decoding unit and processing unit.Communication unit passes through the multiple frame of network received in sequence.Decoding unit decodes and plays this little frames.Processing unit judges whether these a little frames have packet loss, if the first frame in these a little frames has packet loss, processing unit abandons the first frame and judges that the second frame received after the first frame is key frame or prediction frame, if the second frame is key frame, then the frame after the second frame and the second frame is sent to decoding unit, if the second frame is prediction frame, then abandon the second frame.Thus can avoid producing broken figure phenomenon when playing video.
Description
Technical field
The present invention relates to a kind of image player and image playing method, particularly relate to one and avoid broadcasting
Film playback as time produce image player and the image playing method of broken figure phenomenon.
Background technology
In general, when by network transmission data, may utilize biography transport control protocol between two electronic installations
View (Transmission Control protocol, TCP) or UDP (User Datagram
Protocol, UDP) transmit.Transmission control protocol is utilized to have, to transmit data, the advantage that reliability is high, but
Its transfer rate is slower.And utilize UDP to have the fast advantage of transfer rate to transmit data,
But it is it cannot be guaranteed that packet loss (packet loss) will not be occurred.
Owing to being transmitted the speed of data by UDP, therefore at the shadow having instant demand
This agreement can be utilized to transmit data in transmission.But, if in the case of network condition instability,
The package utilizing UDP to transmit may be lost, and this can cause transmitted frame data the completeest
Whole and the problem that image breaks figure occurs.Therefore, how to solve to transmit image number by UDP
According to and cause image to break the problem of figure, be the targets that should endeavour of those skilled in the art.
Summary of the invention
The present invention provides a kind of image player and image playing method, and it can be avoided when playing video
Produce broken figure phenomenon.
The present invention proposes a kind of image player, and it includes communication unit, decoding unit and processes single
Unit.Communication unit, by the multiple frame of network received in sequence.Decoding unit decodes and plays this little frames.Place
Whether reason these a little frames of unit judges have packet loss, if the first frame in these a little frames has packet loss, process
Unit abandons the first frame and judges that the second frame received after the first frame is key frame or prediction frame, if the
Two frames are key frame, then the frame after the second frame and the second frame is sent to decoding unit, if the second frame is
Prediction frame, then abandon the second frame.
The present invention proposes a kind of image playing method, and it includes by the multiple frame of network received in sequence.This
Method also includes judging whether have packet loss in these a little frames.If this method also includes first in these a little frames
Frame has packet loss, abandons the first frame and judges that the second frame received after the first frame is key frame or pre-
Survey frame.If this method also includes that the second frame is key frame, then after decoding and play the second frame and the second frame
Frame, if the second frame for prediction frame, then abandon the second frame.
Based on above-mentioned, the image player of the present invention and image playing method can judge that the frame that receives is whether
There is packet loss, if there being packet loss, abandoning frame and the frame afterwards thereof of this packet loss, and using
Person's interface display information warning, until receive key frame, is further continued for playing video, allows the user will not
See the broken figure image produced because unstable networks causes packet loss.
For the features described above of the present invention and advantage can be become apparent, special embodiment below, and coordinate
Accompanying drawing is described in detail below.
Accompanying drawing explanation
Fig. 1 is the block chart of the image player according to the present invention one exemplary embodiment;
Fig. 2 is to transmit frame showing to image player according to the present invention one exemplary embodiment from mobile device
It is intended to;
Fig. 3 is the flow chart of the image playing method according to the present invention one exemplary embodiment.
Description of reference numerals:
100: image player;
110: communication unit;
120: decoding unit;
130: processing unit;
200: mobile device;
201,201a: key frame;
202: prediction frame;
203: front and back predict frame;
The step of S301, S303, S305, S307, S309, S311: image playing method.
Detailed description of the invention
Fig. 1 is the block chart of the image player according to the present invention one exemplary embodiment.
Refer to Fig. 1, the image player 100 of the present invention includes communication unit 110, decoding unit
120 and processing unit 130.Communication unit 110 e.g. supports motor and Electronic Engineering Association
The channel radios such as (Institute of Electrical and Electronics Engineers, IEEE) 802.11n/b/g
The network interface card that the wireless network card of beacon standard or support cable network link, and can be by outside network connections
Mobile device 200.Decoding unit 120 can be support H.261 arrive H.265, dynamic image expert group (Moving
Picture Experts Group, MPEG) etc. the decoder (decoder) of video encoding standard.Processing unit
130 can be CPU (Central Processing Unit, CPU), microprocessor
(Microprocessor), digital signal processor (Digital Signal Processor, DSP), programmable
Controller, ASIC (Application Specific Integrated Circuits, ASIC),
Programmable logic device (Programmable Logic Device, PLD) or other similar devices.Image
Playing device 100 can be the electronic installation that PC, notebook computer, TV etc. have playing function.
Mobile device 200 can be personal digital assistant (Personal Digital Assistant, PDA) mobile phone, intelligence
Mobile phone (Smart Phone), panel computer (Tablet) etc., the present invention not kind to mobile device 200
Class is any limitation as.
Fig. 2 is to transmit frame showing to image player according to the present invention one exemplary embodiment from mobile device
It is intended to.
Referring to Fig. 1 and Fig. 2, in image coding technology, the frame constituting image can be divided into key
Frame 201 (Intra frame, I frame), prediction frame 202 (Predicted frame, P frame) and front and back predict
Frame 203 (Bi-predictive frame, B frame).Key frame 201 has complete image data, in advance
Survey frame 202 and only have partial image data (such as, the personage moved in same background), therefore must
The image of frame 202 is predicted in the data just can completely display that must utilize frame before it, and front and back predicts
Frame 203 the most only has partial image data, it is therefore necessary to the data of utilization frame before it and afterwards are
Can completely predicts the image of frame 203 before and after showing.Although it should be noted that frame in fig. 2 with
Key frame 201, the order arrangement of prediction frame 202, front and back prediction frame 203 and key frame 201a, but this
Invention is not limited thereto.In another exemplary embodiment, key frame 201 rear also can followed by multiple
Prediction frame 202 or front and back prediction frame 203.
When mobile device 200 will be by its image data (such as, the instant desktop images of mobile device 200)
When being sent to image player 100, mobile device 200 can by Wireless Display standard (such as,
Miracast), in Wi-Fi direct (Wi-Fi Direct) mode, image data is sent to mobile device 200.
Specifically, before transferring data, mobile device 200 understands elder generation with encoder (encoder) to image number
According to encoding, and the image data after coding is utilized instantaneous transmission agreement (Real-time Transport
Protocol, RTP) encapsulation, then will by UDP (User Datagram Protocol, UDP)
Package sends image player 100 to.
Correctly connect owing to can't confirm whether data have by UDP (UDP) transmission data
Receive, therefore can accelerate the speed of data transmission.But, can by UDP transmission data
The phenomenon of packet loss can be had in the case of unstable networks.At mobile device 200 transmission frame to shadow
During as playing device 100, each frame can be divided into multiple package and transmit.If wherein there being package passing
Send middle loss, when namely image player 100 does not receive whole package of a corresponding frame, shadow
As playing device 100 will produce brokenly figure phenomenon at this frame of broadcasting.Meanwhile, that follows after this frame is pre-
Survey frame 202 or front and back predict that frame 203 also can produce brokenly figure phenomenon.
In this exemplary embodiment, the processing unit 130 of image player 100 can be held when receiving frame
Whether continuous its all frames received of detection have packet loss (packet loss).For convenience of explanation, at this
Assume that the processing unit 130 of image player 100 judges that key frame 201 has packet loss.Specifically
For, mobile device 200, when utilizing instantaneous transmission agreement (RTP) transmission data, can first randomly generate one
The initial value of individual ordinal number (sequence number), and record at its first package transmitted
The position of the 16 to 31st bit of header file, and add up that this is initial when transmitting ensuing package
Value, record is in the header file of each package.Therefore, as long as processing unit 130 judges key frame 201
The ordinal number of package the most continuous, it is possible to judge whether key frame 201 has packet loss.
When key frame 201 has packet loss, processing unit 130 can abandon this key frame 201 and (or delete
It is positioned at incomplete key frame 201 in buffer) and follow behind and not prediction for key frame 201a
Frame 202 and front and back prediction frame 203.Due to key frame 201, prediction frame 202 and front and back predict frame 203
Through being dropped, the most just do not having image to may be displayed on image player 100, therefore processing
Unit 130 can be in user interface display information warning (such as network shakiness information), until receiving key
Frame 201a is further continued for playing key frame 201a and the frame at key frame 201a rear.It should be noted that every
One frame all can be divided into multiple package when transmission, and the kind of each frame (key frame 201, prediction
Frame 202, front and back prediction frame 203) can record in the header file of first package of each frame, therefore
By the header file of the first of each frame package, processing unit 130 can judge that this frame is key frame
201, prediction frame 202 or front and back prediction frame 203.
Fig. 3 is the flow chart of the image playing method according to the present invention one exemplary embodiment.
Refer to Fig. 3, in step S301, image player 100 sequentially connects from mobile device 200
Receive multiple frame.
In step S303, the processing unit 130 of image player 100 judges whether the frame received has
Packet loss.If not having packet loss, in step S305, frame is sent to decoding by processing unit 130
Unit 120 decodes and plays.
If the first frame in these a little frames has packet loss, in step S307, processing unit 130 abandons
One frame in user interface display network shakiness information.
Then, in step S309, processing unit 130 judges whether next frame (or second frame) is crucial
Frame.If next frame is key frame, then returning to step S305, this frame is sent to solve by processing unit 130
Code unit 120 decodes and plays.
If next frame is not key frame (that is, for predicting frame or front and back predicting frame), then in step S311,
Processing unit 130 abandons the frame that this is not key frame, and returns in step S309, processing unit
130 judge whether next frame is key frame.
This step can repeat always, until next frame is key frame, enters back into step S305, processes single
This key frame is sent to decoding unit 120 and decodes and play by unit 130, and stops showing that network is unstable
Information.
In sum, the image player of the present invention and image playing method can judge the frame that receives whether
There is packet loss, if there being packet loss, abandoning frame and the frame afterwards thereof of this packet loss, and using
Person's interface display network shakiness information, until receive key frame, is further continued for playing video, allows user
Not can be appreciated that the broken figure image produced because unstable networks causes packet loss.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, rather than right
It limits;Although the present invention being described in detail with reference to foregoing embodiments, this area common
Skilled artisans appreciate that the technical scheme described in foregoing embodiments still can be modified by it,
Or the most some or all of technical characteristic is carried out equivalent;And these amendments or replacement, and
The essence not making appropriate technical solution departs from the scope of various embodiments of the present invention technical scheme.
Claims (12)
1. an image player, it is characterised in that including:
Communication unit, by the multiple frame of network received in sequence;
Decoding unit, decodes and plays the plurality of frame;And
Processing unit, it is judged that whether the plurality of frame has packet loss, if the first frame in the plurality of frame
Packet loss, described processing unit is had to abandon described first frame and judge reception after described first frame
Second frame is key frame or prediction frame, if described second frame is described key frame, then by described second frame and
Described frame after described second frame is sent to described decoding unit, if described second frame is described prediction frame,
Then abandon described second frame.
Image player the most according to claim 1, it is characterised in that if the plurality of frame does not has
Having packet loss, the most described decoding unit sequentially decodes and plays the plurality of frame.
Image player the most according to claim 1, it is characterised in that described processing unit leads to
The ordinal number of the header file crossing the multiple packages judging corresponding the plurality of frame judges described the most continuously
Whether multiple frames have packet loss, described package to include instantaneous transmission agreement package.
Image player the most according to claim 1, it is characterised in that described processing unit leads to
Cross the header file of multiple packages of corresponding described second frame to judge that described second frame is described key frame or institute
State prediction frame.
Image player the most according to claim 1, it is characterised in that described processing unit exists
After abandoning described first frame, at user interface display information warning.
Image player the most according to claim 1, it is characterised in that the plurality of frame passes through
UDP transmits.
7. an image playing method, it is characterised in that including:
By the multiple frame of network received in sequence;
Judge whether the plurality of frame has packet loss;
If the first frame in the plurality of frame has packet loss, abandon described first frame and judge described
The second frame received after one frame is key frame or prediction frame;And
If described second frame is described key frame, then decode and play described second frame and described second frame it
After described frame, if described second frame is described prediction frame, then abandon described second frame.
Image playing method the most according to claim 7, it is characterised in that also include: if described
Multiple frames do not have packet loss, the most sequentially decode and play the plurality of frame.
Image playing method the most according to claim 7, it is characterised in that judge the plurality of frame
In described first frame whether have the step of packet loss also to include:
By judging that the ordinal number of the header file of multiple packages of corresponding the plurality of frame is sentenced the most continuously
Whether disconnected the plurality of frame has packet loss, described package to include instantaneous transmission agreement package.
Image playing method the most according to claim 7, it is characterised in that judge described second
Frame is that the step of described key frame or described prediction frame also includes:
Judge that described second frame is described key by the header file of multiple packages of corresponding described second frame
Frame or described prediction frame.
11. image playing methods according to claim 7, it is characterised in that abandon described first
The step of frame also includes:
At user interface display information warning.
12. image playing methods according to claim 7, it is characterised in that the plurality of frame leads to
Cross UDP to transmit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510174661.0A CN106162375A (en) | 2015-04-14 | 2015-04-14 | Image player and image playing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510174661.0A CN106162375A (en) | 2015-04-14 | 2015-04-14 | Image player and image playing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106162375A true CN106162375A (en) | 2016-11-23 |
Family
ID=57336032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510174661.0A Withdrawn CN106162375A (en) | 2015-04-14 | 2015-04-14 | Image player and image playing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106162375A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791997A (en) * | 2016-12-29 | 2017-05-31 | Tcl集团股份有限公司 | The processing method and system of a kind of stream medium data in receiving terminal, television terminal |
CN106961627A (en) * | 2017-03-24 | 2017-07-18 | 西安理工大学 | A kind of method for improving real-time video play quality |
CN109996088A (en) * | 2017-12-29 | 2019-07-09 | 阿里巴巴集团控股有限公司 | A kind of live data processing method and processing device |
CN112492118A (en) * | 2018-06-21 | 2021-03-12 | 深圳市道通智能航空技术有限公司 | Data transmission control method, information sending end, receiving end and aircraft graph transmission system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080165246A1 (en) * | 2007-01-06 | 2008-07-10 | Samsung Electronics Co., Ltd. | Method and apparatus for controlling intra-refreshing in a video telephony communication system |
US20100238789A1 (en) * | 2009-03-18 | 2010-09-23 | Microsoft Corporation | Error recovery in an audio-video multipoint control component |
CN102223544A (en) * | 2011-06-02 | 2011-10-19 | 福州瑞芯微电子有限公司 | Method for processing error after detecting error in H264 video stream |
CN102752670A (en) * | 2012-06-13 | 2012-10-24 | 广东威创视讯科技股份有限公司 | Method, device and system for reducing phenomena of mosaics in network video transmission |
CN104320416A (en) * | 2014-11-13 | 2015-01-28 | 杭州海康威视数字技术股份有限公司 | Method and device for packaging real-time transport protocol data |
-
2015
- 2015-04-14 CN CN201510174661.0A patent/CN106162375A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080165246A1 (en) * | 2007-01-06 | 2008-07-10 | Samsung Electronics Co., Ltd. | Method and apparatus for controlling intra-refreshing in a video telephony communication system |
US20100238789A1 (en) * | 2009-03-18 | 2010-09-23 | Microsoft Corporation | Error recovery in an audio-video multipoint control component |
CN102223544A (en) * | 2011-06-02 | 2011-10-19 | 福州瑞芯微电子有限公司 | Method for processing error after detecting error in H264 video stream |
CN102752670A (en) * | 2012-06-13 | 2012-10-24 | 广东威创视讯科技股份有限公司 | Method, device and system for reducing phenomena of mosaics in network video transmission |
CN104320416A (en) * | 2014-11-13 | 2015-01-28 | 杭州海康威视数字技术股份有限公司 | Method and device for packaging real-time transport protocol data |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791997A (en) * | 2016-12-29 | 2017-05-31 | Tcl集团股份有限公司 | The processing method and system of a kind of stream medium data in receiving terminal, television terminal |
CN106961627A (en) * | 2017-03-24 | 2017-07-18 | 西安理工大学 | A kind of method for improving real-time video play quality |
CN106961627B (en) * | 2017-03-24 | 2019-07-02 | 北京金风易通科技有限公司 | A method of improving real-time video play quality |
CN109996088A (en) * | 2017-12-29 | 2019-07-09 | 阿里巴巴集团控股有限公司 | A kind of live data processing method and processing device |
CN112492118A (en) * | 2018-06-21 | 2021-03-12 | 深圳市道通智能航空技术有限公司 | Data transmission control method, information sending end, receiving end and aircraft graph transmission system |
CN112492118B (en) * | 2018-06-21 | 2023-11-17 | 深圳市道通智能航空技术股份有限公司 | Data transmission control method, information sending end, information receiving end and aircraft image transmission system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9986579B2 (en) | Split miracast transmission over multiple frequency bands | |
RU2634908C2 (en) | Method and device for mediadata delivery management | |
US20090002556A1 (en) | Method and Apparatus for Packet Insertion by Estimation | |
US10939252B2 (en) | Wireless communication apparatus, wireless communication method, and program for using a threshold to control multicast retransmission | |
KR20100050516A (en) | Streaming data content in a network | |
CN106162375A (en) | Image player and image playing method | |
CN103125084A (en) | MAC data service enhancements | |
US9729903B2 (en) | Data transmitting device and method | |
EP3281317B1 (en) | Multi-layer timing synchronization framework | |
WO2014204180A1 (en) | Method and apparatus for rate adaptation in motion picture experts group media transport | |
EP3127289B1 (en) | Method and apparatus for signaling and operation of low delay consumption of media data in mmt | |
TWI558192B (en) | Vedio playing apparatus and video playing method | |
US11212061B2 (en) | QoS control device in multi-wireless network environment for video transmission and a controlling method thereof | |
US20160182919A1 (en) | Transmitting device and receiving device | |
US20130329810A1 (en) | Power Optimization for Sending Static Indications in Video Transmissions | |
CN116018799B (en) | Image transmission method and device | |
US20240007518A1 (en) | Electronic device for transmitting plurality of media streams, and method therefor | |
US20230415036A1 (en) | Display control in cloud gaming applications | |
WO2024060719A1 (en) | Data transmission methods, apparatus, electronic device, and storage medium | |
EP4319176A1 (en) | Method for transmitting streaming media data and related device | |
KR100618973B1 (en) | Portable VOD terminal device | |
CN117014622A (en) | Video frame processing method, device, video system, medium and chip | |
CN114900507A (en) | RTC audio data processing method, device, equipment and storage medium | |
CN102187722A (en) | Method for efficient utilization of radio resources in wireless communications system | |
CN110839164A (en) | Video transmission method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20161123 |