CN102724585B - A kind of method and device playing prestrain for terminal equipment Internet video - Google Patents

A kind of method and device playing prestrain for terminal equipment Internet video Download PDF

Info

Publication number
CN102724585B
CN102724585B CN201210224223.7A CN201210224223A CN102724585B CN 102724585 B CN102724585 B CN 102724585B CN 201210224223 A CN201210224223 A CN 201210224223A CN 102724585 B CN102724585 B CN 102724585B
Authority
CN
China
Prior art keywords
video file
video
prestrain
buffer
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210224223.7A
Other languages
Chinese (zh)
Other versions
CN102724585A (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201210224223.7A priority Critical patent/CN102724585B/en
Publication of CN102724585A publication Critical patent/CN102724585A/en
Application granted granted Critical
Publication of CN102724585B publication Critical patent/CN102724585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The present invention is applicable to field of Internet multimedia, provides a kind of method and the device of playing prestrain for terminal equipment Internet video; The method comprises the steps: S1: current first video file to be played is downloaded to main video and loads buffer, and plays after being decoded by the first video file downloaded; S2: select the second video file next to be played, is downloaded to time video and loads in buffer by the second video file; S3: the speed of download of time recording first video file, the situation and the card adding up the first video file broadcasting pauses, by judging whether that meeting preload condition determines whether further prestrain second video file.

Description

A kind of method and device playing prestrain for terminal equipment Internet video
Technical field
The invention belongs to field of Internet multimedia, particularly relate to a kind of method playing prestrain for terminal equipment Internet video.
Background technology
Along with the development of internet multimedia technology, online multimedia plays to support it has been the focus function that each terminal equipment competitively provides.And due to cost low, the characteristics such as efficiency is high, energy-conserving and environment-protective, hard decoding technique is selected the method as video decode process by increasing terminal equipment now.Based on hard decoder, terminal equipment generally can open up certain buffering area in internal memory, for download network video, then gives hard decoders process.Like this, when video switch time, resolve owing to needing to download enough video lengths, user needs to wait for for a moment usually.Especially for some high definition film sources, user need wait for time will be longer, reduce Consumer's Experience.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of method playing prestrain for terminal equipment Internet video, be intended to solve in existing network video playback, cause user usually to need the problem waited for for a moment when video switch owing to needing the enough video lengths of download to carry out resolving.
The embodiment of the present invention is achieved in that a kind of method playing prestrain for terminal equipment Internet video, comprises the steps:
S1: current first video file to be played is downloaded to main video and loads buffer, and play after the first video file downloaded is decoded;
S2: select the second video file next to be played, is downloaded to time video and loads in buffer by described second video file;
S3: the speed of download of the first video file described in time recording, the situation and the card adding up the first video file broadcasting pauses, by judging whether that meeting preload condition determines whether the second video file described in further prestrain.
Further, describedly judge whether to meet preload condition and decide the second video file described in further prestrain and be specially: when the speed of download of described first video file is more than or equal to the code check of described first video file, carry out further prestrain, otherwise not prestrain further.
Further, in step sl, play after the first video file downloaded being carried out the soft parsing of header file and hard decoder.
Further, described step S2 specifically comprises the steps:
S21: judge whether the second video file is being play or just in prestrain, if so, then terminating, and if not, then proceeds to step S22;
S22: judge time video loads in buffer whether there is the second video file that is that loading or that loaded, if so, then proceeds to step S23, if not, then proceeds to step S3;
S23: select whether to continue to carry out prestrain to the second video file, if so, then proceed to step S3; If not, then terminate.
Further, described to the second video file prestrain specifically comprise the steps: to create time video load buffer or empty secondary video loading buffer that created in video file content.
Further, described method also comprises the steps: S4: when the second video file has been downloaded or current first video file finishes playing and needs to play next second video file, empty main video and load buffer, primary and secondary video is loaded buffer exchange, and start prestrain second video file playing user's selection.
The present invention also aims to provide a kind of device playing prestrain for terminal equipment Internet video, comprising:
Main video loads buffer, for storing current first video file to be played;
Decoder module, for decoding described first video file downloaded;
Player, for the first video file after broadcast decoder;
Secondary video loads buffer, for storing the second video file next to be played;
Judge module, the card situation of pausing play for the speed of download of described first video file according to time recording and the first video file of statistics judges whether to meet preload condition;
Preloaded components, for the second video file described in further prestrain when the output of described judge module meets preload condition.
Further, described device also comprises: Switching Module, for downloaded when the second video file or current first video file finishes playing and needs to play next second video file time, empty main video and load buffer, the secondary video content loaded in buffer is loaded into main video and loads buffer.
Further, described decoder module comprises: for the first video file downloaded being carried out the soft resolution unit of video file of the soft parsing of header file, and the first video file after parsing is carried out the video hard decoder unit of hard decoder.
In embodiments of the present invention, network first video file adopting main video loading buffer to store current broadcasting is play in the method for prestrain for terminal equipment Internet video, secondary video loads next second video file that buffer storage needs prestrain, the current first video file downloading and playing of second video file is not blocked immediately to load simultaneously and is needed to play next second video file, when the second video file is play, the second video file can realize playing at once like this, shorten and wait for that video starts the time of playing, improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the modular structure schematic diagram of the device of this prestrain method of use that the embodiment of the present invention provides;
Fig. 2 is the method realization flow figure playing prestrain for terminal equipment Internet video that the embodiment of the present invention provides;
Fig. 3 is the method refinement flow chart playing prestrain for terminal equipment Internet video that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 is the modular structure of the device of this prestrain method of use that the embodiment of the present invention provides; Comprise: player 1, main video load buffer 2, secondary video loads buffer 3, decoder module 4, judge module 5 and preloaded components 6; Main video loads buffer 2 for storing current first video file to be played; Decoder module 4 is for decoding described first video file downloaded; Player 1 is for the first video file after broadcast decoder; Secondary video loads buffer 3 for storing the second video file next to be played; The card situation of pausing that judge module 5 is play for the speed of download of described first video file according to time recording and the first video file of statistics judges whether to meet preload condition; Preloaded components 6 is for the second video file described in further prestrain when the output of described judge module meets preload condition.
In embodiments of the present invention, the device of this prestrain method of above-mentioned use also comprises Switching Module 7, for downloaded when the second video file or current first video file finishes playing and needs to play next second video file time, empty main video and load buffer, primary and secondary video is loaded buffer and exchanges; And prestrain second video file of user's selection is play by player 1.
As one embodiment of the present of invention, decoder module 4 comprises: video file soft resolution unit 41 video hard decoder unit 42; The soft resolution unit of video file 41 is for carrying out the soft parsing of header file by the first video file downloaded, and video hard decoder unit 42 is for carrying out hard decoder by the first video file after resolving.Use main video to load buffer Buffer and download current the first video file needing to play, by software parses file header, then start hard decoder, start to play the first video file; Meanwhile, once led the record of the first video file speed of download every 1 minute, to pause situation with the broadcasting card adding up the first video file.
In embodiments of the present invention, definition primary and secondary two videos load buffer device Buffer, main video loads buffer Buffer for storing network first video file of current broadcasting, and secondary video loads buffer Buffer for storing next second video file needing prestrain.Two buffer Buffer do not need to arrange excessive, generally arrange the size of data play required for 10S, to save system resource.After current first video file of beginning is play, carried out the calculating of a first video file speed of download every 1 minute, and store this value.When user selects next second video file needing prestrain from playlist, first need the broadcasting situation judging the first video file A according to the speed of download data of the first video file stored before.If the speed of download of the first video file is more than or equal to the code check of the first video file, shows that the first video file is play smooth, can prestrain be carried out, otherwise play card, not meet preload condition.
In embodiments of the present invention, if meet preload condition, then the second video file that download user is selected loads in buffer Buffer to secondary video.Meanwhile, in preloading procedure, every the speed of download of 1 minute inquiry the first video file, judge its broadcasting situation.If the first video file now compares card, then suspend the download of the second video file B, strive for the loading completing next the second video file when current first video file of few impact is play.When the second video file has been downloaded or current first video file finishes playing, when needing to play next second video file, empty main video and load buffer Buffer, and primary and secondary video is loaded buffer Buffer exchange, like this, second video file of prestrain can be play, at once without any need for the stand-by period.
As one embodiment of the present of invention, a) buffer Buffer size=video code rate (can parse from video file header) * 10S, if video code rate is 1Mb, then buffer Buffer size is 1Mb*10/8=6.4MB.B) video data/60S downloaded in video speed of download Va=1 minute; If downloading data is 600KB, then speed of download is 10KB/s.
Fig. 2 shows the method realization flow playing prestrain for terminal equipment Internet video that the embodiment of the present invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, specifically comprises the steps:
S1: current first video file to be played is downloaded to main video and loads buffer, and play after the first video file downloaded is decoded;
S2: select the second video file next to be played, is downloaded to time video and loads in buffer by described second video file;
S3: the speed of download of the first video file described in time recording, the situation and the card adding up the first video file broadcasting pauses, by judging whether that meeting preload condition determines whether the second video file described in further prestrain;
S4: when the second video file has been downloaded or current first video file finishes playing and needs to play next second video file, empty main video and load buffer, primary and secondary video is loaded buffer exchange, and start prestrain second video file playing user's selection.
As shown in Figure 3, as one embodiment of the present of invention, step S2 specifically comprises the steps:
S21: judge whether the second video file is being play or just in prestrain, if so, then terminating, and if not, then proceeds to step S22;
S22: judge time video loads in buffer whether there is the second video file that is that loading or that loaded, if so, then proceeds to step S23, if not, then proceeds to step S3;
S23: select whether to continue to carry out prestrain to the second video file, if so, then proceed to step S3; If not, then terminate.
As one embodiment of the present of invention, step S3 specifically comprises the steps:
S31: judge whether the speed of download data of the first video file meet preload condition; If so, then enter step S32, if not, then terminate;
S32: judge whether that creating time video loads buffer, if so, then enters step S34, if not, then enters step S33;
S33: create after time video loads buffer and enter step S35;
S34: empty the content in time video loading buffer;
S35: the second video file is downloaded to time video and loads in buffer;
S36: judge whether current download affects the broadcasting of the first video file, if so, then enters step S37, if not, be then back to step S35;
S37: stop download second video file.
As one embodiment of the present of invention, step S4 specifically comprises the steps:
S41: point out user can carry out the broadcasting of the second video file of prestrain when the second video file prestrain completes;
S42: judge whether user selects broadcasting second video file, if so, then enters step S44; If not, then step S43 is entered;
S43: wait for that current first video file enters step S44 after finishing playing;
S44: the broadcasting terminating current first video file, empties main video and loads buffer, primary and secondary video is loaded buffer and exchanges, and starts prestrain second video file playing user's selection;
S45: if user selects to exit, then empty primary and secondary video and load buffer and terminate after releasing resource.
In embodiments of the present invention, network first video file adopting main video loading buffer to store current broadcasting is play in the method for prestrain for terminal equipment Internet video, secondary video loads next second video file that buffer storage needs prestrain, when the second video file has been downloaded or current first video file finishes playing and needs to play next second video file, empty main video and load buffer, primary and secondary video is loaded buffer exchange, second video file of prestrain can be play, at once without any need for the stand-by period; Greatly shorten and wait for that video starts the time of playing, improve Consumer's Experience.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. play a method for prestrain for terminal equipment Internet video, it is characterized in that, comprise the steps:
S1: current first video file to be played is downloaded to main video and loads buffer, and play after the first video file downloaded is decoded;
S2: select the second video file next to be played, is downloaded to time video and loads in buffer by described second video file;
S3: the speed of download of the first video file described in time recording, the situation and the card adding up the first video file broadcasting pauses, by judging whether that meeting preload condition determines whether the second video file described in further prestrain;
Describedly judge whether to meet preload condition and decide the second video file described in further prestrain and be specially:
When the speed of download of described first video file is more than or equal to the code check of described first video file, carry out further prestrain, otherwise not prestrain further.
2. the method for claim 1, is characterized in that, in step sl, plays after the first video file downloaded is carried out the soft parsing of header file and hard decoder.
3. the method for claim 1, is characterized in that, described step S2 specifically comprises the steps:
S21: judge whether the second video file is being play or just in prestrain, if so, then terminating, and if not, then proceeds to step S22;
S22: judge time video loads in buffer whether there is the second video file that is that loading or that loaded, if so, then proceeds to step S23, if not, then proceeds to step S3;
S23: select whether to continue to carry out prestrain to the second video file, if so, then proceed to step S3; If not, then terminate.
4. method as claimed in claim 3, is characterized in that, describedly specifically comprises the steps: the second video file prestrain
Create time video loading buffer or empty the secondary video created and load video file content in buffer.
5. the method for claim 1, is characterized in that, described method also comprises the steps:
S4: when the second video file has been downloaded or current first video file finishes playing and needs to play next second video file, empty main video and load buffer, primary and secondary video is loaded buffer exchange, and start prestrain second video file playing user's selection.
6. play a device for prestrain for terminal equipment Internet video, it is characterized in that described device comprises:
Main video loads buffer, for storing current first video file to be played;
Decoder module, for decoding described first video file downloaded;
Player, for the first video file after broadcast decoder;
Secondary video loads buffer, for storing the second video file next to be played;
Judge module, the card situation of pausing play for the speed of download of described first video file according to time recording and the first video file of statistics judges whether to meet preload condition, if the speed of download of the first video file is more than or equal to the code check of the first video file, judge to meet preload condition, otherwise judge not meet preload condition; And
Preloaded components, for the second video file described in further prestrain when the output of described judge module meets preload condition.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
Switching Module, for downloaded when the second video file or current first video file finishes playing and needs to play next second video file time, empty main video and load buffer, the secondary video content loaded in buffer is loaded into main video and loads buffer.
8. device as claimed in claim 6, it is characterized in that, described decoder module comprises:
For the first video file downloaded being carried out the soft resolution unit of video file of the soft parsing of header file, and the first video file after parsing is carried out the video hard decoder unit of hard decoder.
CN201210224223.7A 2012-06-29 2012-06-29 A kind of method and device playing prestrain for terminal equipment Internet video Active CN102724585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210224223.7A CN102724585B (en) 2012-06-29 2012-06-29 A kind of method and device playing prestrain for terminal equipment Internet video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210224223.7A CN102724585B (en) 2012-06-29 2012-06-29 A kind of method and device playing prestrain for terminal equipment Internet video

Publications (2)

Publication Number Publication Date
CN102724585A CN102724585A (en) 2012-10-10
CN102724585B true CN102724585B (en) 2016-01-13

Family

ID=46950223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210224223.7A Active CN102724585B (en) 2012-06-29 2012-06-29 A kind of method and device playing prestrain for terminal equipment Internet video

Country Status (1)

Country Link
CN (1) CN102724585B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152651B (en) * 2013-01-31 2016-04-20 广东欧珀移动通信有限公司 A kind of automatic adjustment streaming media buffer district plays the method and system of thresholding
CN104581354A (en) * 2013-10-25 2015-04-29 腾讯科技(深圳)有限公司 Video buffering method and video buffering device
CN104683831A (en) * 2013-12-02 2015-06-03 青岛永通电梯工程有限公司 Video playing device
CN103634661A (en) * 2013-12-03 2014-03-12 乐视致新电子科技(天津)有限公司 Method and device for implementing video on demand
CN104811789B (en) * 2014-01-24 2019-03-22 宇龙计算机通信科技(深圳)有限公司 The management method and device of multimedia file
CN103873921A (en) * 2014-03-26 2014-06-18 北京奇艺世纪科技有限公司 Seamless video play method and player
CN104052991A (en) * 2014-06-17 2014-09-17 德科仕通信(上海)有限公司 Method and system for detecting HAS video standstill
CN104811751B (en) * 2015-04-28 2018-08-28 深圳市优网科技有限公司 A kind of interim card recognition methods when streaming media playing and device
CN105898528A (en) * 2015-12-02 2016-08-24 乐视网信息技术(北京)股份有限公司 Multimedia processing method based on Android platform, device and mobile terminal device
CN105916008A (en) * 2015-12-15 2016-08-31 乐视网信息技术(北京)股份有限公司 Video buffering method and device
CN105490886A (en) * 2015-12-31 2016-04-13 北京金山安全软件有限公司 Method and device for testing network speed and electronic equipment
CN106231405A (en) * 2016-09-27 2016-12-14 北京金山安全软件有限公司 Audio and video playing method and system, audio and video playing conversion device and mobile terminal
CN107241639A (en) * 2017-05-05 2017-10-10 广州优视网络科技有限公司 The method of preloading video, equipment, video player, electronic equipment
CN107222756B (en) * 2017-05-27 2020-04-14 中山大学 Network first broadcast preloading method and system based on packet network coding
CN108595224B (en) * 2018-04-28 2021-01-12 Oppo广东移动通信有限公司 Application program prompting method and device, storage medium and terminal
CN110545480A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Preloading control method and device of media file and storage medium
CN109413474B (en) * 2018-12-19 2021-02-26 北京奇艺世纪科技有限公司 Online video playing acceleration method and device
CN109525887B (en) * 2018-12-27 2021-06-18 长沙理工大学 Self-adjusting playing method, system and device of online video
CN112203111B (en) * 2020-09-29 2023-03-14 北京达佳互联信息技术有限公司 Multimedia resource preloading method and device, electronic equipment and storage medium
CN115190338B (en) * 2022-07-05 2024-04-26 上海哔哩哔哩科技有限公司 Video preloading method and system
CN115361585B (en) * 2022-08-19 2023-11-07 广州市百果园信息技术有限公司 Video playing and clamping prediction method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1813301A (en) * 2003-08-14 2006-08-02 三星电子株式会社 Method and apparatus for reproducing AV data in interactive mode, and information storage medium thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6584498B2 (en) * 1996-09-13 2003-06-24 Planet Web, Inc. Dynamic preloading of web pages
JP4837247B2 (en) * 2003-09-24 2011-12-14 パナソニック株式会社 Processor
US8521709B2 (en) * 2006-10-31 2013-08-27 The Jellyvision Lab, Inc. Methods for preloading media assets
JP4806713B2 (en) * 2009-01-29 2011-11-02 株式会社日立製作所 Recording method, recording apparatus, reproducing method, reproducing apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1813301A (en) * 2003-08-14 2006-08-02 三星电子株式会社 Method and apparatus for reproducing AV data in interactive mode, and information storage medium thereof

Also Published As

Publication number Publication date
CN102724585A (en) 2012-10-10

Similar Documents

Publication Publication Date Title
CN102724585B (en) A kind of method and device playing prestrain for terminal equipment Internet video
JP6266109B2 (en) Movie screen processing method and apparatus
KR102163151B1 (en) Systems and methods for encoding and streaming video encoded using a plurality of maximum bitrate levels
US6970641B1 (en) Playback of interactive programs
US20220046296A1 (en) Systems and Methods for Providing Audio Content During Trick-Play Playback
KR102206136B1 (en) System and method for providing variable speed in trick play mode
US10051334B2 (en) Apparatus and method for resuming playing of media source, and smart television
CN101609401B (en) Non-interference screen recording method and system thereof
AU770707B2 (en) Playback of interactive programs
CN105187895B (en) For the hardware-accelerated data cache method and system for playing video of mobile platform
US8291122B2 (en) Methods and systems for uninterrupted media change
EP2635025B1 (en) Video processing method and video appliance implementing the method
CN103596057A (en) Intelligent-television media player and playing continuing control method thereof, and intelligent television
CN111866549B (en) Video processing method and device, terminal and storage medium
CN103517131A (en) Method for playing segmental videos in gapless mode in television set and television set
US8509599B2 (en) Recording and reproducing apparatus, recording and reproducing method and program
US8300701B2 (en) Offspeed playback in a video editing system of video data compressed using long groups of pictures
CN111726683A (en) Media playing method and device, electronic equipment and storage medium
CN115442666B (en) IPTV video double-speed playing method and system
KR101917775B1 (en) Method and apparatus for random access of multiple contents streaming service
CN104954869B (en) Multi-medium play method and device based on Android system
KR20090089712A (en) Method of playing continuous contents in series in video-on-demand system and video-on-demand apparatus thereof
US9047914B1 (en) Content navigation
US9159367B2 (en) Automatic playback of one or more excerpt(s) of a video sequence on a data processing device
CN116233504A (en) Live broadcast push flow 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
C14 Grant of patent or utility model
GR01 Patent grant