CN103886028A - Method and device for copying files from storage equipment to advertisement players - Google Patents

Method and device for copying files from storage equipment to advertisement players Download PDF

Info

Publication number
CN103886028A
CN103886028A CN201410070302.6A CN201410070302A CN103886028A CN 103886028 A CN103886028 A CN 103886028A CN 201410070302 A CN201410070302 A CN 201410070302A CN 103886028 A CN103886028 A CN 103886028A
Authority
CN
China
Prior art keywords
file
advertisement machine
multimedia file
memory device
multimedia
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.)
Granted
Application number
CN201410070302.6A
Other languages
Chinese (zh)
Other versions
CN103886028B (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.)
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shirui Electronics 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 Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shirui Electronics Co Ltd
Priority to CN201410070302.6A priority Critical patent/CN103886028B/en
Publication of CN103886028A publication Critical patent/CN103886028A/en
Application granted granted Critical
Publication of CN103886028B publication Critical patent/CN103886028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/184Distributed file systems implemented as replicated file system
    • G06F16/1844Management specifically adapted to replicated file systems

Landscapes

  • Engineering & Computer Science (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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for copying files from storage equipment to advertisement players. The method includes steps of acquiring description files of to-be-played multimedia files in the storage equipment; searching and parsing the description files and acquiring file attributes before the files are copied from the storage equipment to the advertisement player; comparing the acquired file attributes to file attributes of the multimedia files in the storage equipment, and copying the multimedia files to the advertisement players if the acquired file attributes are consistent with the file attributes of the multimedia files in the storage equipment. The description files contain the file attributes of the to-be-played multimedia files. The method and the device have the advantages that when multimedia files which are not required to be played at present are stored in the storage equipment, only the description files need to be parsed, so that the multimedia file required to be played at present can be identified, then the identified multimedia files are copied to the advertisement players, and copying time and storage spaces of the advertisement players can be saved.

Description

Method and apparatus from memory device copied files to advertisement machine
Technical field
The present invention relates to electronic information technical field, particularly relate to a kind of method and apparatus from memory device copied files to advertisement machine.
Background technology
Advertisement machine is issued for information, it is smart machine of new generation, by terminal software control network information transfer, show and form a complete advertisement broadcast control system with multimedia terminal, can carry out advertising by Multi-media Materials such as picture, word, video, little plug-in units (weather, the exchange rate etc.).
Generally advertisement machine is to arrive multimedia file by Network Capture, if but it is not good to run into network condition, multimedia file just cannot arrive advertisement machine by network push, at this moment just need to be by memory device, for example USB flash disk, the multimedia file that needs are play copies memory device to, again by memory device insertion of advertising machine, advertisement machine will copy whole multimedia files of memory device to the storage space of advertisement machine automatically, and in the time that all files has copied, advertisement machine starts to play.But when memory device has unnecessary left over by history file, when non-this play needed multimedia file, advertisement machine also can, by these file copies to its storage space, cause the waste of storage time and advertisement machine storage space etc.
Summary of the invention
Based on this, be necessary for the problems referred to above, a kind of method and apparatus from memory device copied files to advertisement machine is provided, make it save the storage space of copy time and advertisement machine.
A method from memory device copied files to advertisement machine, comprises step:
Obtain the description document of multimedia file to be played in memory device, the file attribute that described description document comprises multimedia file to be played;
Before from memory device copied files to advertisement machine, search and resolve described description document, obtain described file attribute;
By the file attribute comparison of multimedia file in the described file attribute obtaining and memory device, if consistent, copy this multimedia file to advertisement machine.
A device from memory device copied files to advertisement machine, comprising:
Description document acquisition module, for obtaining the description document of memory device multimedia file to be played, the file attribute that described description document comprises multimedia file to be played;
Description document parsing module, before from memory device copied files to advertisement machine, searches and resolves described description document, obtains described file attribute;
Multimedia file copy module, for by the file attribute comparison of the described file attribute obtaining and memory device multimedia file, if consistent, copies this multimedia file to advertisement machine.
The above-mentioned method and apparatus from memory device copied files to advertisement machine, in the time that memory device, stores has non-this to play needed multimedia file, do not need its deletion, only need identify this by description document analysis and play the multimedia file needing, then copy the multimedia file identifying to advertisement machine, greatly saved the time of copy and the storage space of advertisement machine.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the inventive method embodiment;
Fig. 2 is the structural representation of apparatus of the present invention embodiment.
Embodiment
Below in conjunction with accompanying drawing, to the present invention, the embodiment of the method from memory device copied files to advertisement machine is described in detail.
As shown in Figure 1, a kind of method from memory device copied files to advertisement machine, comprises step:
S100, obtain the description document of multimedia file to be played in memory device, the file attribute that described description document comprises multimedia file to be played;
S200, from memory device copied files to advertisement machine before, search and resolve described description document, obtain described file attribute;
S300, by the file attribute comparison of multimedia file in the described file attribute obtaining and memory device, if consistent, copy this multimedia file to advertisement machine.
Multimedia file to be played in step S100 can be existing multimedia file in memory device, can be also to edit by existing software for editing the multimedia file that imports to memory device.If multimedia file to be played is existing multimedia file in memory device, by the file attribute of described multimedia file to be played, for example title, size, memory location etc. are recorded in description document; If import by outside, when user uses existing software for editing to make a advertisement machine broadcast program list, the multimedia file that this broadcasting is needed adds the different play area of this user interface to, then preserve described programme, the file attribute record of multimedia file is arrived to description document, more described programme and description document are exported in memory device.The file attribute of described description document is unique corresponding with multimedia file to be played.
During by memory device insertion of advertising machine, in first detection of stored equipment, whether contain description document, if described description document does not exist, flow process finishes, if find description document, further resolve described description document, obtain the file attribute of multimedia file to be played in description document, the file attribute of the multimedia file in the file attribute obtaining and memory device is compared one by one, if more consistent, this multimedia file in memory device is copied in advertisement machine, in the time that the multimedia file in the memory device that each file attribute of described description document record mates all copies advertisement machine to, copy completes.
In order better to manage and check the multimedia file that copies advertisement machine to, can set up dissimilar file in advertisement machine in advance, such as Video, Image, Text etc., then copy each multimedia file in corresponding file to by described file attribute.For example, described file attribute comprises: title, file type, size, MD5(Message-Digest Algorithm, Message-Digest Algorithm 5) any one or a few in type, the memory location of value, storage area, the size of storage area; Wherein MD5 value has been guaranteed the complete consistance of multimedia file, and the type of storage area comprises Video, Image, Text etc., and storage area is placed with multimedia file to be played, can be dissimilar file;
In one embodiment, if the described file attribute obtaining is consistent with the file attribute of multimedia file in memory device, can also comprise step:
The type of the file type of this multimedia file and advertisement machine default file folder is compared, if consistent, this multimedia file is copied in this default file folder.
If itself stored this part multimedia file to be played in advertisement machine, in order to save the file copy time, in one embodiment, if the described file attribute obtaining is consistent with the file attribute of multimedia file in memory device, before this multimedia file being copied to the step of advertisement machine, can also comprise step:
By the file attribute comparison of the described file attribute obtaining and advertisement machine storing multimedia, if inconsistent, enter the step that this multimedia file is copied to advertisement machine, if unanimously, do not carry out the step of this multimedia file copy.Due in description document to the relevant file attribute of storage may to store relevant file attribute inconsistent with existing same multimedia file in advertisement machine, so file attribute comparison of the title that can only described file attribute be comprised, file type, size, MD5 value etc. and advertisement machine storing multimedia, if inconsistent, copy this multimedia file to advertisement machine.
In order conveniently to check whether each multimedia file has copied, in one embodiment, the multimedia file in advertisement machine in copy procedure can be added to " .temp " extension name, if copied, delete " .temp " extension name of described multimedia file;
If in multimedia file copy procedure, suddenly extract memory device, or other reasons causes file copy abnormal, cause the file corruption in advertisement machine, do not copy the storage space that successful multimedia file takies advertisement machine, cause the wasting of resources, the file simultaneously damaging further may affect follow-up file and play, so, need to clear up not copying successful file in time.In one embodiment, if copy procedure is interrupted, remove the multimedia file that contains described " .temp " extension name in advertisement machine, with saving resource space, avoid affecting subsequent file and play.
During from memory device copied files to advertisement machine, for easy-to-look-up described description document, in one embodiment, described description document can contain fixing extension name, for example " .pgl " (program list) etc., described file attribute can be with JSON(JavaScript Object Notation) format record is to described description document;
During from memory device copied files to advertisement machine, search description document by described fixing extension name, then resolve by JSON kit the described description document finding, wherein resolve description document by JSON kit and can realize by method well known in the prior art.
The embodiment of method for a better understanding of the present invention, is described in detail the inventive method below in conjunction with a specific embodiment.
When user uses software for editing to make the programme of this multimedia file to be played, by multimedia file to be played, for example a1, a2, a3, add the different play area of user interface to, then preserve described programme, the file attribute of multimedia file to be played is recorded in description document to the expansion " .pgl " by name of described description document with JSON format structure;
Import in USB flash disk in particular file folder SWSMPL preserving the programme of multimedia file to be played and description document, wherein SWSMPL also stores this and plays unwanted multimedia file b1, b2, b3;
By USB flash disk insertion of advertising machine, search description document by the method for searching extension name " .pgl ", if find described description document, use JSON kit to resolve described description document, obtain file attribute ma1, ma2, ma3;
By file attribute ma1, the ma2 of acquisition, ma3 respectively with USB flash disk in the file attribute of multimedia file compare, determine that this file that need to copy advertisement machine to is a1, a2, a3, b1, b2, b3 are the multimedia file that does not need copy;
According to the file type of a1, a2, a3, for example respectively they are copied to, in file dissimilar in advertisement machine,, a1 is video, copy in the video file in advertisement machine, a2, a3 are pictures, copy in the image file in advertisement machine; Wherein in copy procedure respectively by its called after a1.temp, a2.temp, a3.temp, removes extension name " .temp " while copy.
In order better to save copy time, avoid repeating copy, by file attribute ma1, the ma2 of acquisition, ma3 respectively with USB flash disk in the file attribute of multimedia file compare after, ma1, ma2, ma3(can also not comprised to the file attribute of storage area) respectively with advertisement machine in the file attribute of the multimedia file stored compare, if inconsistent, a1, a2, a3 are copied to corresponding file in advertisement machine.
If extract USB flash disk in copy procedure, delete the multimedia file of expansion " .temp " by name in advertisement machine, for example delete a2.temp.
Based on same inventive concept, the present invention also provides a kind of device from memory device copied files to advertisement machine, below in conjunction with accompanying drawing, the embodiment of apparatus of the present invention is described in detail.
As shown in Figure 2, a kind of device from memory device copied files to advertisement machine, comprising:
Description document acquisition module 100, for obtaining the description document of memory device multimedia file to be played, the file attribute that described description document comprises multimedia file to be played;
Description document parsing module 200, before from memory device copied files to advertisement machine, searches and resolves described description document, obtains described file attribute;
Multimedia file copy module 300, for by the file attribute comparison of the described file attribute obtaining and memory device multimedia file, if consistent, copies this multimedia file to advertisement machine.
In order better to manage and check the multimedia file that copies advertisement machine to, can set up dissimilar file in advertisement machine in advance, then by described file attribute, each multimedia file is copied in corresponding file.For example, described file attribute comprises: any one or a few in the size of the type of title, file type, size, MD5 value, storage area, memory location, storage area;
In one embodiment, if the described file attribute obtaining is consistent with the file attribute of multimedia file in memory device, described multimedia file copy module 300 is also for comparing the type of the file type of this multimedia file and advertisement machine default file folder, if consistent, this multimedia file is copied in this default file folder.
If itself stored this part multimedia file to be played in advertisement machine, in order to save the file copy time, in one embodiment, if the described file attribute obtaining is consistent with the file attribute of multimedia file in memory device, described multimedia file copy module 300 can also be used for the file attribute comparison of the described file attribute obtaining and advertisement machine storing multimedia, if inconsistent, copy this multimedia file to advertisement machine.Due in description document to the relevant file attribute of storage may to store relevant file attribute inconsistent with existing same multimedia file in advertisement machine, so file attribute comparison of the title that can only described file attribute be comprised, file type, size, MD5 value etc. and advertisement machine storing multimedia, if inconsistent, copy this multimedia file to advertisement machine.
In order conveniently to check whether each multimedia file has copied, in one embodiment, described multimedia file copy module 300 can also add the multimedia file in advertisement machine in copy procedure " .temp " extension name, if copied, delete " .temp " extension name of described multimedia file;
If in multimedia file copy procedure, suddenly extract memory device, or other reasons causes file copy abnormal, need clear up not copying successful file in time.In one embodiment, if copy procedure is interrupted, 300 of described multimedia file copy modules are removed the multimedia file that contains described " .temp " extension name in advertisement machine.
During from memory device copied files to advertisement machine, for easy-to-look-up described description document, in one embodiment, described description document can contain fixing extension name, and described file attribute arrives described description document with JSON format record;
During from memory device copied files to advertisement machine, described description document parsing module is searched description document by described fixing extension name, then resolve by JSON kit the described description document finding, wherein resolve description document by JSON kit and can realize by method well known in the prior art.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. the method from memory device copied files to advertisement machine, is characterized in that, comprises step:
Obtain the description document of multimedia file to be played in memory device, the file attribute that described description document comprises multimedia file to be played;
Before from memory device copied files to advertisement machine, search and resolve described description document, obtain described file attribute;
By the file attribute comparison of multimedia file in the described file attribute obtaining and memory device, if consistent, copy this multimedia file to advertisement machine.
2. the method from memory device copied files to advertisement machine according to claim 1, it is characterized in that, described file attribute comprises: any one or a few in the size of the type of title, file type, size, MD5 value, storage area, memory location, storage area;
If the described file attribute obtaining is consistent with the file attribute of multimedia file in memory device, also comprise step:
The type of the file type of this multimedia file and advertisement machine default file folder is compared, if consistent, this multimedia file is copied in this default file folder.
3. the method from memory device copied files to advertisement machine according to claim 1, it is characterized in that, if the described file attribute obtaining is consistent with the file attribute of multimedia file in memory device, before this multimedia file being copied to the step of advertisement machine, also comprise step:
By the file attribute comparison of the described file attribute obtaining and advertisement machine storing multimedia, if inconsistent, enter the step that this multimedia file is copied to advertisement machine.
4. the method from memory device copied files to advertisement machine according to claim 1, it is characterized in that, multimedia file in advertisement machine in copy procedure is added to " .temp " extension name, if copied, delete " .temp " extension name of described multimedia file;
If copy procedure is interrupted, remove the multimedia file that contains described " .temp " extension name in advertisement machine.
5. according to the method from memory device copied files to advertisement machine described in claim 1 to 4 any one, it is characterized in that, described description document contains fixing extension name, and described file attribute arrives described description document with JSON format record;
During from memory device copied files to advertisement machine, search description document by described fixing extension name, then resolve by JSON kit the described description document finding.
6. the device from memory device copied files to advertisement machine, is characterized in that, comprising:
Description document acquisition module, for obtaining the description document of memory device multimedia file to be played, the file attribute that described description document comprises multimedia file to be played;
Description document parsing module, before from memory device copied files to advertisement machine, searches and resolves described description document, obtains described file attribute;
Multimedia file copy module, for by the file attribute comparison of the described file attribute obtaining and memory device multimedia file, if consistent, copies this multimedia file to advertisement machine.
7. the device from memory device copied files to advertisement machine according to claim 6, it is characterized in that, described file attribute comprises: any one or a few in the size of the type of title, file type, size, MD5 value, storage area, memory location, storage area;
If the described file attribute obtaining is consistent with the file attribute of multimedia file in memory device, described multimedia file copy module is also for comparing the type of the file type of this multimedia file and advertisement machine default file folder, if consistent, this multimedia file is copied in this default file folder.
8. the device from memory device copied files to advertisement machine according to claim 6, it is characterized in that, if the described file attribute obtaining is consistent with the file attribute of multimedia file in memory device, described multimedia file copy module is also for by the file attribute comparison of the described file attribute obtaining and advertisement machine storing multimedia, if inconsistent, copy this multimedia file to advertisement machine.
9. the device from memory device copied files to advertisement machine according to claim 6, it is characterized in that, described multimedia file copy module also adds the multimedia file in advertisement machine in copy procedure " .temp " extension name, if copied, delete " .temp " extension name of described multimedia file;
If copy procedure is interrupted, described multimedia file copy module is removed the multimedia file that contains described " .temp " extension name in advertisement machine.
10. according to the device from memory device copied files to advertisement machine described in claim 6 to 9 any one, it is characterized in that, described description document contains fixing extension name, and described file attribute arrives described description document with JSON format record;
During from memory device copied files to advertisement machine, described description document parsing module is searched description document by described fixing extension name, then resolves by JSON kit the described description document finding.
CN201410070302.6A 2014-02-27 2014-02-27 Method and apparatus from storage device copied files to advertisement machine Active CN103886028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410070302.6A CN103886028B (en) 2014-02-27 2014-02-27 Method and apparatus from storage device copied files to advertisement machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410070302.6A CN103886028B (en) 2014-02-27 2014-02-27 Method and apparatus from storage device copied files to advertisement machine

Publications (2)

Publication Number Publication Date
CN103886028A true CN103886028A (en) 2014-06-25
CN103886028B CN103886028B (en) 2018-04-20

Family

ID=50954920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410070302.6A Active CN103886028B (en) 2014-02-27 2014-02-27 Method and apparatus from storage device copied files to advertisement machine

Country Status (1)

Country Link
CN (1) CN103886028B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657439A (en) * 2016-01-19 2016-06-08 四川长虹电器股份有限公司 Program management method for uniprocessor version double-screen advertising machine
CN112115109A (en) * 2020-09-25 2020-12-22 努比亚技术有限公司 File sharing method and device and computer readable storage medium
CN115080522A (en) * 2021-03-15 2022-09-20 中国联合网络通信集团有限公司 File display method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278256A1 (en) * 2004-06-15 2005-12-15 Eric Vandewater System and method of promoting copy-managed digital content
CN101399948A (en) * 2008-07-14 2009-04-01 南京Lg新港显示有限公司 Medium file storage device and method
CN101814308A (en) * 2009-02-24 2010-08-25 阿尔派株式会社 Reproduction device and reproduction method
CN101997886A (en) * 2009-08-20 2011-03-30 北京同步科技有限公司 Information issuing system and method
CN102436388A (en) * 2011-12-22 2012-05-02 华为技术有限公司 Method and device for upgrading software of embedded system
CN103227818A (en) * 2013-03-27 2013-07-31 福建伊时代信息科技股份有限公司 Terminal, server, file transferring method, file storage management system and file storage management method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278256A1 (en) * 2004-06-15 2005-12-15 Eric Vandewater System and method of promoting copy-managed digital content
CN101399948A (en) * 2008-07-14 2009-04-01 南京Lg新港显示有限公司 Medium file storage device and method
CN101814308A (en) * 2009-02-24 2010-08-25 阿尔派株式会社 Reproduction device and reproduction method
CN101997886A (en) * 2009-08-20 2011-03-30 北京同步科技有限公司 Information issuing system and method
CN102436388A (en) * 2011-12-22 2012-05-02 华为技术有限公司 Method and device for upgrading software of embedded system
CN103227818A (en) * 2013-03-27 2013-07-31 福建伊时代信息科技股份有限公司 Terminal, server, file transferring method, file storage management system and file storage management method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657439A (en) * 2016-01-19 2016-06-08 四川长虹电器股份有限公司 Program management method for uniprocessor version double-screen advertising machine
CN105657439B (en) * 2016-01-19 2018-12-07 四川长虹电器股份有限公司 The program management method of standalone version double-screen advertising machine
CN112115109A (en) * 2020-09-25 2020-12-22 努比亚技术有限公司 File sharing method and device and computer readable storage medium
CN112115109B (en) * 2020-09-25 2024-03-22 努比亚技术有限公司 File sharing method, equipment and computer readable storage medium
CN115080522A (en) * 2021-03-15 2022-09-20 中国联合网络通信集团有限公司 File display method and device

Also Published As

Publication number Publication date
CN103886028B (en) 2018-04-20

Similar Documents

Publication Publication Date Title
US20180089203A1 (en) Providing relevant video scenes in response to a video search query
US9952783B2 (en) Data processing method and apparatus, and shared storage device
CN102693305B (en) A kind of fileinfo method for previewing and system
US20130179172A1 (en) Image reproducing device, image reproducing method
CN106537380A (en) Automated archiving of user generated media files
CN103559276A (en) Method and device for clearing useless files
CN104811742A (en) Video data storage method and device
JP7483102B2 (en) Image file generating device and method, image file reproducing device, and program
KR101832680B1 (en) Searching for events by attendants
CN102223410A (en) Searching method of intelligent information terminal and terminal
CN109241780B (en) Method, device and equipment for detecting hidden information of image
CN102411629A (en) File scanning method and device based on android system
US20120131017A1 (en) Tag information management apparatus, tag information management system, computer readable medium, and tag information management method
EP3745727A1 (en) Method and device for data processing
CN106649721B (en) File duplicate removal method and device
CN102737690B (en) Method and terminal that music application starts
CN107562372B (en) Electronic equipment, data management method thereof and computer readable storage medium
CN104834749A (en) File synchronization method and synchronization system for mobile terminal and PC terminal
CN103886028A (en) Method and device for copying files from storage equipment to advertisement players
CN106547823A (en) Without drive crime scene investigation device data acquisition unit and method
CN104346102A (en) Automatic data deleting method based on DICOM
US20060104605A1 (en) Method and apparatus for recording image data
CN107241618B (en) Recording method and recording apparatus
CN101986662A (en) Widget instance operation method and system
CN109040827B (en) Video file playing method, storage medium and intelligent terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant