CN105160267A - File security detection method and apparatus - Google Patents

File security detection method and apparatus Download PDF

Info

Publication number
CN105160267A
CN105160267A CN201510428088.1A CN201510428088A CN105160267A CN 105160267 A CN105160267 A CN 105160267A CN 201510428088 A CN201510428088 A CN 201510428088A CN 105160267 A CN105160267 A CN 105160267A
Authority
CN
China
Prior art keywords
file
described file
inactive
determines
play control
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
CN201510428088.1A
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.)
TVM Beijing Technology Co Ltd
Original Assignee
TVM Beijing 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 TVM Beijing Technology Co Ltd filed Critical TVM Beijing Technology Co Ltd
Priority to CN201510428088.1A priority Critical patent/CN105160267A/en
Publication of CN105160267A publication Critical patent/CN105160267A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a file security detection method and apparatus, and belongs to the field of communications. The method comprises: when playing a file by a playing control, analyzing a format of the file; and judging whether the format of the file is within a specified file format range, and if so, determining that the file is an effective file, or otherwise, determining that the file is an invalid file. The apparatus comprises an analysis module and a detection module. According to the file security detection method and apparatus, the file security detection can be realized and the file control capability of the playing control is improved.

Description

Detect the method and apparatus of file security
Technical field
The present invention relates to the communications field, particularly a kind of method and apparatus detecting file security.
Background technology
Ventuz (Wei Tusi) is real-time picture material creation, an editor and broadcasts control software design.It is absorbed in the making of high-end audio-visual content, comprises professional displaying, video wall is installed, live scene shows and interaction, multiple point touching application and the field such as studio and broadcast.Ventuz designability is strong, easy to use, can be applicable to video wall, projection mapping, radio and television at wire wrapping, and can realize interactivity with nearly all interactive device and use.
In Ventuz system, use play control to play relevant file, but whether can correctly play for file, current play control is also without any control device.
Summary of the invention
In view of this, the invention provides a kind of method and apparatus detecting file security, to improve the control ability of play control to file.Described technical scheme is as follows:
First aspect, the invention provides a kind of method detecting file security, described method comprises:
When play control plays a file, analyze the form of described file;
Judge that the form of described file is whether within the scope of the file layout of specifying, and if so, then determines that described file is effective document, otherwise, determine that described file is inactive file.
Wherein, the form of the described file of described analysis, comprising:
Obtain the suffix name of described file, determine the form of described file according to described suffix name.
Wherein, the described form judging described file, whether within the scope of the file layout of specifying, if so, then determines that described file is effective document, otherwise, determine that described file is inactive file, comprising:
In the file layout set pre-set, search the form of described file, if find the form of described file, then determine that described file is effective document, otherwise, determine that described file is inactive file.
Wherein, described method also comprises:
When determining that described file is effective document, described play control plays described file.
Wherein, described method also comprises:
When determining that described file is inactive file, document lending described in prompting user.
Second aspect, the invention provides a kind of device detecting file security, described device comprises:
Analysis module, during for playing a file when play control, analyzes the form of described file;
Detection module, for judging that the form of described file is whether within the scope of the file layout of specifying, and if so, then determines that described file is effective document, otherwise, determine that described file is inactive file.
Wherein, described analysis module comprises:
Analytic unit, for obtaining the suffix name of described file, determines the form of described file according to described suffix name.
Wherein, described detection module comprises:
Detecting unit, for searching the form of described file in the file layout set pre-set, if find the form of described file, then determines that described file is effective document, otherwise, determine that described file is inactive file.
Wherein, described device also comprises:
Playing module, for when described detection module determines that described file is effective document, uses described play control to play described file.
Wherein, described device also comprises:
Alarm module, for when described detection module determines that described file is inactive file, document lending described in prompting user.
The beneficial effect that technical scheme provided by the invention is brought is: when play control plays a file, analyze the form of described file; Judge that the form of described file is whether within the scope of the file layout of specifying, and if so, then determines that described file is effective document, otherwise, determine that described file is inactive file, the detection to file security can be realized, improve the control ability of play control to file.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram detecting file security that one embodiment of the invention provides;
Fig. 2 is a kind of method flow diagram detecting file security that another embodiment of the present invention provides;
Fig. 3 is a kind of structure drawing of device detecting file security that another embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
The present invention relates to a kind of method and apparatus detecting file security, in Ventuz system, detect to realize the security of play control to file in Ventuz system, improve play control to the control ability of file.
See Fig. 1, one embodiment of the invention provides a kind of method detecting file security, comprising:
101: when play control plays a file, analyze the form of this file;
In the present embodiment, described file can be the file of arbitrary format, and as video file, audio file, picture file etc., the present embodiment is not specifically limited this.
When described file is video file, this play control can be video playback control, and when described file is audio file, this play control can be audio frequency play control or video playback control, when described file is picture file, this play control can be picture playing control etc.
102: judge that the form of this file is whether within the scope of the file layout of specifying, and if so, then determines that this file is effective document, otherwise, determine that this file is inactive file.
In the present embodiment, optionally, analyze the form of this file, comprising:
Obtain the suffix name of this file, determine the form of this file according to this suffix name.
In the present embodiment, optionally, judge that the form of described file is whether within the scope of the file layout of specifying, and if so, then determines that described file is effective document, otherwise, determine that described file is inactive file, comprising:
In the file layout set pre-set, search the form of described file, if find the form of described file, then determine that described file is effective document, otherwise, determine that described file is inactive file.
In the present embodiment, optionally, the method also comprises:
When determining that this file is effective document, this play control plays this file.
In the present embodiment, optionally, the method also comprises:
When determining that this file is inactive file, this document lending of prompting user.
The said method that the present embodiment provides, when play control plays a file, analyzes the form of described file; Judge that the form of described file is whether within the scope of the file layout of specifying, and if so, then determines that described file is effective document, otherwise, determine that described file is inactive file, the detection to file security can be realized, improve the control ability of play control to file.
See Fig. 2, another embodiment of the present invention provides a kind of method detecting file security, comprising:
201: pre-set file layout set, comprise multiple file layout in this set;
Such as, the set of default file form, comprising: MP3, MP4, jpg, tif, bmp etc.
202: when play control plays a file, obtain the suffix name of this file, determine the form of this file according to this suffix name;
Such as, the suffix obtaining file is called MP4, then can determine that this file is video file and form is MP4, the suffix obtaining file is called jpg, then can determine that this file is picture file and form is jpg, the suffix obtaining file is called MP3, then can determine that this file is audio file and form is MP3 etc.
203: the form searching this file in above-mentioned file layout set, if find the form of this file, then performs 204; If do not find the form of this file, then perform 205;
204: determine that this file is effective document, play control plays this file, and flow process terminates;
205: determine that this file is inactive file, this document lending of prompting user, flow process terminates.
Wherein, after this document lending of prompting user, user can also be asked to reload this file, if still made mistakes after reloading this file, then this file of user can be pointed out extremely cannot to play.
The said method that the present embodiment provides, when play control plays a file, analyzes the form of described file; Judge that the form of described file is whether within the scope of the file layout of specifying, and if so, then determines that described file is effective document, otherwise, determine that described file is inactive file, the detection to file security can be realized, improve the control ability of play control to file.
See Fig. 3, another embodiment of the present invention provides a kind of device detecting file security, comprising:
Analysis module 301, during for playing a file when play control, analyzes the form of this file;
Detection module 302, for judging that the form of this file is whether within the scope of the file layout of specifying, and if so, then determines that this file is effective document, otherwise, determine that this file is inactive file.
In the present embodiment, optionally, analysis module comprises:
Analytic unit, for obtaining the suffix name of this file, determines the form of this file according to this suffix name.
In the present embodiment, optionally, detection module comprises:
Detecting unit, for searching the form of described file in the file layout set pre-set, if find the form of described file, then determines that described file is effective document, otherwise, determine that described file is inactive file.
In the present embodiment, optionally, this device also comprises:
Playing module, for when this detection module determines that this file is effective document, uses this play control to play this file.
In the present embodiment, optionally, this device also comprises:
Alarm module, for when this detection module determines that this file is inactive file, this document lending of prompting user.
The said apparatus that the present embodiment provides can perform the method provided in above-mentioned either method embodiment, and detailed process is shown in the description in embodiment of the method, does not repeat herein.
The said apparatus that the present embodiment provides, when play control plays a file, analyzes the form of described file; Judge that the form of described file is whether within the scope of the file layout of specifying, and if so, then determines that described file is effective document, otherwise, determine that described file is inactive file, the detection to file security can be realized, improve the control ability of play control to file.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. detect a method for file security, it is characterized in that, described method comprises:
When play control plays a file, analyze the form of described file;
Judge that the form of described file is whether within the scope of the file layout of specifying, and if so, then determines that described file is effective document, otherwise, determine that described file is inactive file.
2. method according to claim 1, is characterized in that, the form of the described file of described analysis, comprising:
Obtain the suffix name of described file, determine the form of described file according to described suffix name.
3. method according to claim 1, is characterized in that, the described form judging described file, whether within the scope of the file layout of specifying, if so, then determines that described file is effective document, otherwise, determine that described file is inactive file, comprising:
In the file layout set pre-set, search the form of described file, if find the form of described file, then determine that described file is effective document, otherwise, determine that described file is inactive file.
4. method according to claim 1, is characterized in that, described method also comprises:
When determining that described file is effective document, described play control plays described file.
5. method according to claim 1, is characterized in that, described method also comprises:
When determining that described file is inactive file, document lending described in prompting user.
6. detect a device for file security, it is characterized in that, described device comprises:
Analysis module, during for playing a file when play control, analyzes the form of described file;
Detection module, for judging that the form of described file is whether within the scope of the file layout of specifying, and if so, then determines that described file is effective document, otherwise, determine that described file is inactive file.
7. device according to claim 6, is characterized in that, described analysis module comprises:
Analytic unit, for obtaining the suffix name of described file, determines the form of described file according to described suffix name.
8. device according to claim 6, is characterized in that, described detection module comprises:
Detecting unit, for searching the form of described file in the file layout set pre-set, if find the form of described file, then determines that described file is effective document, otherwise, determine that described file is inactive file.
9. device according to claim 6, is characterized in that, described device also comprises:
Playing module, for when described detection module determines that described file is effective document, uses described play control to play described file.
10. device according to claim 6, is characterized in that, described device also comprises:
Alarm module, for when described detection module determines that described file is inactive file, document lending described in prompting user.
CN201510428088.1A 2015-07-20 2015-07-20 File security detection method and apparatus Pending CN105160267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510428088.1A CN105160267A (en) 2015-07-20 2015-07-20 File security detection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510428088.1A CN105160267A (en) 2015-07-20 2015-07-20 File security detection method and apparatus

Publications (1)

Publication Number Publication Date
CN105160267A true CN105160267A (en) 2015-12-16

Family

ID=54801119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510428088.1A Pending CN105160267A (en) 2015-07-20 2015-07-20 File security detection method and apparatus

Country Status (1)

Country Link
CN (1) CN105160267A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749953A (en) * 2005-06-30 2006-03-22 无敌科技(西安)有限公司 Multimedia playing system with unlimit extension type format support capability
CN101211353A (en) * 2006-12-27 2008-07-02 北京海尔集成电路设计有限公司 Method for recognizing multi- format media file
CN102346752A (en) * 2010-08-06 2012-02-08 康佳集团股份有限公司 Network television multimedia file error identification method and system
US20120191870A1 (en) * 2008-12-31 2012-07-26 Roger Pantos Real-time or near real-time streaming with compressed playlists

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749953A (en) * 2005-06-30 2006-03-22 无敌科技(西安)有限公司 Multimedia playing system with unlimit extension type format support capability
CN101211353A (en) * 2006-12-27 2008-07-02 北京海尔集成电路设计有限公司 Method for recognizing multi- format media file
US20120191870A1 (en) * 2008-12-31 2012-07-26 Roger Pantos Real-time or near real-time streaming with compressed playlists
CN102346752A (en) * 2010-08-06 2012-02-08 康佳集团股份有限公司 Network television multimedia file error identification method and system

Similar Documents

Publication Publication Date Title
US9813751B2 (en) Media source identification
CN103905925B (en) The method and terminal that a kind of repeated program plays
WO2017107441A1 (en) Method and device for capturing continuous video pictures
CN108900854B (en) Live broadcast microphone room switching method, storage medium, equipment and system
JP6499324B2 (en) Method, client and computer storage medium for playing video
WO2017181598A1 (en) Method and device for playing video
US8949123B2 (en) Display apparatus and voice conversion method thereof
CN103686335A (en) Information processing method and electronic equipment
JP2011211481A (en) Video/audio player
CN104918101B (en) A kind of method, playback terminal and the system of automatic recording program
WO2017152608A1 (en) Playing control method and device
CN105516772A (en) Data processing method and set top box
CN105929941B (en) Information processing method and device and terminal equipment
CN105516756B (en) A kind of network video store method and mobile terminal
CN108882004B (en) Video recording method, device, equipment and storage medium
CN105160267A (en) File security detection method and apparatus
JP5886431B2 (en) Method, related system and related playback module for playing multimedia content
CN105163203B (en) The method and apparatus of playing video file
CN105187953A (en) Method and device for playing files
CN105072509B (en) Switch the method and apparatus of file
KR20230029438A (en) Display device and controlling method of display device
CN105163202A (en) Method and device for switching files
US20180107496A1 (en) Method of expanding function of android standard multimedia player and multimedia playing system
CN106937161A (en) The method that media file data in external storage is imported
CN103702203A (en) Playing control method and system for additional content during playing of streaming media

Legal Events

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

Application publication date: 20151216

RJ01 Rejection of invention patent application after publication