CN106484755A - The method of asynchronous quick loading video thumbnails - Google Patents

The method of asynchronous quick loading video thumbnails Download PDF

Info

Publication number
CN106484755A
CN106484755A CN201610610007.4A CN201610610007A CN106484755A CN 106484755 A CN106484755 A CN 106484755A CN 201610610007 A CN201610610007 A CN 201610610007A CN 106484755 A CN106484755 A CN 106484755A
Authority
CN
China
Prior art keywords
video
video thumbnails
smart machine
thumbnails
thumbnail
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
CN201610610007.4A
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.)
Shenzhen Meibeike Technology Co Ltd
Original Assignee
Shenzhen Meibeike 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 Shenzhen Meibeike Technology Co Ltd filed Critical Shenzhen Meibeike Technology Co Ltd
Priority to CN201610610007.4A priority Critical patent/CN106484755A/en
Publication of CN106484755A publication Critical patent/CN106484755A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/738Presentation of query results
    • G06F16/739Presentation of query results in form of a video summary, e.g. the video summary being a video sequence, a composite still image or having synthesized frames
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of method of asynchronous quick loading video thumbnails, including:Step 1, smart machine open the thread pool of the quantity of a loading video thumbnails task limited in the same time;Step 2, smart machine set up a memory management, and local file cache management;Step 3, when smart machine interface needs to show video thumbnails, will open a sub- thread and run inside thread pool;Step 4, sub-line journey generate the URL of the md5 value of 32 according to the address of video, go to search thumbnail by the URL, preserve the thumbnail;Video thumbnails are parsed and are shown by step 5, smart machine.The present invention can greatly improve, by obtaining data in internal memory or local file caching, the speed for loading video thumbnails.

Description

The method of asynchronous quick loading video thumbnails
Technical field
The present invention relates to domestic intelligent apparatus field, the method for more particularly to asynchronous quick loading video thumbnails.
Background technology
The development of domestic intelligent equipment now and the contact of network more and more tightr, by numerous electricity by way of network Sub- equipment is contacted together, and the technology interconnected between various equipment also reaches its maturity.As a kind of interconnection of smart machine also Through starting the extensive family for entering domestic consumer, multimedia function is achieved by being connected with television set.Media are such as realized Function, needs substantial amounts of video resource meet the demand of user, and user is in the Video Reservoir during Picking video resource, special It is not that the video resource that oneself likes is selected, needs to understand the content of video in advance, needs to go to understand from other approach, for not The video resource that is familiar with or knows nothing needs, and needs to play the video, carries out dragging broadcasting and goes to understand, for user Speech, such experience is very original, generally screens suitable video resource and has just spent the substantial amounts of time.For such Defect, existing way are by word brief introduction, allow user understand its content, but word brief introduction content is that comparison is thin, lead to The mode to video interception is crossed, allows user faster more intuitively understand video content, how quickly to load video thumbnails is me Need solve problem..
Content of the invention
For the problem that above-mentioned prior art is present, on the premise of interface fluency is not affected, rapidly load multiple Video thumbnails show that, on interface, which includes technical scheme below:
The method of asynchronous quick loading video thumbnails, including:
Step 1, smart machine open the thread pool of the quantity of a loading video thumbnails task limited in the same time;
Step 2, smart machine set up a memory management, and local file cache management;
Step 3, when smart machine interface needs to show video thumbnails, will open a sub- thread and run inside thread pool;
Step 4, sub-line journey generate the URL of the md5 value of 32 according to the address of video, go to search breviary by the URL Figure, preserves the thumbnail;
Video thumbnails are parsed and are shown by step 5, smart machine.
The thumbnail data with the presence or absence of the video in internal memory and local file caching is first looked for, if it does, that The direct access data are parsed and are shown in interface.
In internal memory and local file caching, when thumbnail is not preserved, the video from the original of video, will be intercepted Thumbnail, after intercepting, by the video thumbnails data, stores in internal memory and local file caching.
The present invention is had the advantages that compared with prior art:
The present invention can greatly improve, by obtaining data in internal memory or local file caching, the speed for loading video thumbnails Degree.
Description of the drawings
Fig. 1 is the FB(flow block) of the modification method at the mobile terminal synchronously simulating smart machine interface of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail below in conjunction with accompanying drawing.
As shown in figure 1, before this invention in specific embodiment, method includes:
S1, smart machine open the thread pool of the quantity of a loading video thumbnails task limited in the same time;
S2, smart machine set up a memory management, and local file cache management;
S3, when smart machine interface needs to show video thumbnails, will open a sub- thread and run inside thread pool;
S4, sub-line journey generate the URL of the md5 value of 32 according to the address of video, go to search thumbnail by the URL, protect Deposit the thumbnail;
Video thumbnails are parsed and are shown by S5, smart machine.
Hereinafter above-mentioned steps are described in detail.
The smart machine of the present invention is a Household multimedia equipment for having intelligence system, except the system that installs is soft Part, hardware components include CPU, memory etc..In the VIDEO PROJECTION technology of this present invention, also include for connecting with smart machine Connect, and show the display device of smart machine content.First, a thread pool is opened on the backstage of smart machine, loading is regarded The sub-line journey of frequency thumbnail is all placed in the thread pool and runs, and improves the opening speed of sub-line journey, limits sub-line in the same time The quantity of Cheng Yunhang, it is to avoid because excessive thread causes smart machine operation slow.
While creating a memory management class on backstage, android system provides this class of LruCache, can limit Spendable maximum memory value, and in the low memory of system, system can automatically reclaim the internal memory to ensure system Fluency.
A local file cache management class is created, data is directly stored in the form of a file locally, and limits Spendable maximum space.
When the interface of smart machine need to show video thumbnails, can backstage create a thread, by video address with And need the control for showing to be delivered in thread, then the thread is added to inside thread pool, goes to manage the line by thread pool The operation of journey.
When above-mentioned thread runs, first according to the address of video, a URL is generated according to the AES of MD5(URL Can be understood as a mark), it would be desirable to the interface control of display stamps this mark, completes it when video thumbnails are obtained Afterwards, judge again, marking whether for the control is consistent with current, if unanimously just shown, if inconsistent, then will Directly terminate this thread.Can so prevent, when multithreading is simultaneously using this control, cause thumbnail to show asking for mistake Topic.
URL according to generating goes to retrieve with the presence or absence of the thumbnail data in internal memory, if it is present, directly from internal memory Middle taking-up data are shown that at this time, the whole flow process that loads terminates, and speed of fetching data from internal memory is most fast.
If the not data in internal memory, then the URL according to generating goes to retrieve in local file caching with the presence or absence of should Thumbnail data, if it is present, obtaining data from local file caching, the data is stored in internal memory, under being easy to Data can be rapidly obtained from internal memory during secondary acquisition, then parse the data display in interface, at this time, whole loading Flow process terminates.Speed is slightly slow compared to from internal memory.
If not getting data from internal memory and local cache, then will intercept directly according to original Corresponding video thumbnails, intercept after completing, and the data are stored in internal memory and local file caching, for next time When display, data can be quickly obtained in depositing from internal memory or this region and parse and show.
Above content is only presently preferred embodiments of the present invention, for one of ordinary skill in the art, according to the present invention's Thought, all will change in specific embodiments and applications, and this specification content is should not be construed as to the present invention Restriction.

Claims (3)

1. the method for asynchronous quick loading video thumbnails, it is characterised in that method includes:
Step 1, smart machine open the thread pool of the quantity of a loading video thumbnails task limited in the same time;
Step 2, smart machine set up a memory management, and local file cache management;
Step 3, when smart machine interface needs to show video thumbnails, will open a sub- thread and run inside thread pool;
Step 4, the sub-line journey generate the URL of the md5 value of 32 according to the address of video, go to search contracting by the URL Sketch map, preserves the thumbnail;
Video thumbnails are parsed and are shown by step 5, smart machine.
2. the method for asynchronous quick loading video thumbnails according to claim 1, it is characterised in that first look for internal memory And the thumbnail data in local file caching with the presence or absence of the video, if it is present, the direct access data are entered Row parsing simultaneously shows in interface.
3. the method for asynchronous quick loading video thumbnails according to claim 1, it is characterised in that internal memory and local In file cache, when thumbnail is not preserved, the video thumbnails from the original of video, will be intercepted, after intercepting, should Video thumbnails data, store in internal memory and local file caching.
CN201610610007.4A 2016-07-29 2016-07-29 The method of asynchronous quick loading video thumbnails Pending CN106484755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610610007.4A CN106484755A (en) 2016-07-29 2016-07-29 The method of asynchronous quick loading video thumbnails

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610610007.4A CN106484755A (en) 2016-07-29 2016-07-29 The method of asynchronous quick loading video thumbnails

Publications (1)

Publication Number Publication Date
CN106484755A true CN106484755A (en) 2017-03-08

Family

ID=58273151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610610007.4A Pending CN106484755A (en) 2016-07-29 2016-07-29 The method of asynchronous quick loading video thumbnails

Country Status (1)

Country Link
CN (1) CN106484755A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832100A (en) * 2017-10-27 2018-03-23 平安普惠企业管理有限公司 A kind of loading method and its terminal of APK plug-in units
GB2579071A (en) * 2018-11-19 2020-06-10 Canon Kk Method and apparatus for processing requests for thumbnail images in a video surveillance system
CN111277916A (en) * 2020-01-09 2020-06-12 深圳震有科技股份有限公司 Queue-based video thumbnail loading processing method and device, equipment and medium
CN112866789A (en) * 2021-01-08 2021-05-28 广东九联科技股份有限公司 Smooth display method and storage medium for video first frame thumbnail

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130014004A1 (en) * 2006-03-27 2013-01-10 Research In Motion Limited System and method for rendering presentation pages based on locality
CN103914205A (en) * 2013-01-09 2014-07-09 腾讯科技(深圳)有限公司 File thumbnail display method and device for intelligent terminal
CN104252379A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Picture thumbnail display method and device
CN104657380A (en) * 2013-11-20 2015-05-27 青岛海信移动通信技术股份有限公司 Picture loading method and device
CN105096236A (en) * 2015-07-22 2015-11-25 北京锤子数码科技有限公司 Image thumbnail loading method and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130014004A1 (en) * 2006-03-27 2013-01-10 Research In Motion Limited System and method for rendering presentation pages based on locality
CN103914205A (en) * 2013-01-09 2014-07-09 腾讯科技(深圳)有限公司 File thumbnail display method and device for intelligent terminal
CN104252379A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Picture thumbnail display method and device
CN104657380A (en) * 2013-11-20 2015-05-27 青岛海信移动通信技术股份有限公司 Picture loading method and device
CN105096236A (en) * 2015-07-22 2015-11-25 北京锤子数码科技有限公司 Image thumbnail loading method and electronic device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832100A (en) * 2017-10-27 2018-03-23 平安普惠企业管理有限公司 A kind of loading method and its terminal of APK plug-in units
CN107832100B (en) * 2017-10-27 2020-12-04 平安普惠企业管理有限公司 APK plug-in loading method and terminal thereof
GB2579071A (en) * 2018-11-19 2020-06-10 Canon Kk Method and apparatus for processing requests for thumbnail images in a video surveillance system
US10929465B2 (en) 2018-11-19 2021-02-23 Canon Kabushiki Kaisha Method and apparatus for processing requests for thumbnail images in a video surveillance system
GB2579071B (en) * 2018-11-19 2022-03-02 Canon Kk Method and apparatus for processing requests for thumbnail images in a video surveillance system
CN111277916A (en) * 2020-01-09 2020-06-12 深圳震有科技股份有限公司 Queue-based video thumbnail loading processing method and device, equipment and medium
CN112866789A (en) * 2021-01-08 2021-05-28 广东九联科技股份有限公司 Smooth display method and storage medium for video first frame thumbnail
CN112866789B (en) * 2021-01-08 2023-05-05 广东九联科技股份有限公司 Smooth display method of video first frame thumbnail and storage medium

Similar Documents

Publication Publication Date Title
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
CN103760966B (en) Picture buffering implementation method
US20190149872A1 (en) Information exchanging method and device, audio terminal and computer-readable storage medium
CN110019081A (en) Data persistence processing method, device, system and readable storage medium storing program for executing
CN107395659A (en) A kind of method and device of service handling and common recognition
CN104699626B (en) Terminal internal memory processing method, device and terminal
CN106484755A (en) The method of asynchronous quick loading video thumbnails
CN108984170A (en) The multilingual rendering method of the H5 page and device
CN107005608B (en) Prevent the method, apparatus and electronic equipment of camera interference antenna
CN108932332A (en) The loading method and device of static resource
CN105391587B (en) The Samba configuring management methods and system of a kind of network equipment
CN104951410B (en) The access method and device of a kind of chip information
CN110244985A (en) A kind of view rendering method, computer storage medium and terminal device
CN103617209A (en) File management method and file management device for mobile terminal
CN107092475A (en) The call method and device of a kind of interactive controls
US20080153546A1 (en) Methods and apparatuses for sim application toolkit (sat) management
CN104778222A (en) Media library establishing and updating method on basis of USB (Universal Serial Bus) storage equipment
CN106375362A (en) Cache synchronization method and system for distributed server
CN104423961A (en) Method and system for generating testing script
CN104410914A (en) Method, device and terminal for playing multimedia contents
CN105550246A (en) System and method for loading network picture under Android platform
CN106658142A (en) Interface configuration method and device
CN107864384A (en) Redirect the method and device that internet video plays on cloud desktop
CN107329738A (en) Component update method and device
CN104469477B (en) Media resource method for pushing and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170308

WD01 Invention patent application deemed withdrawn after publication