CN110569202A - Multimedia file playing method and system for movable storage equipment - Google Patents

Multimedia file playing method and system for movable storage equipment Download PDF

Info

Publication number
CN110569202A
CN110569202A CN201910853170.7A CN201910853170A CN110569202A CN 110569202 A CN110569202 A CN 110569202A CN 201910853170 A CN201910853170 A CN 201910853170A CN 110569202 A CN110569202 A CN 110569202A
Authority
CN
China
Prior art keywords
multimedia file
file data
storage device
partition
address
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
CN201910853170.7A
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 City A Microelectronics LLC
Original Assignee
Shenzhen City A Microelectronics LLC
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 City A Microelectronics LLC filed Critical Shenzhen City A Microelectronics LLC
Priority to CN201910853170.7A priority Critical patent/CN110569202A/en
Publication of CN110569202A publication Critical patent/CN110569202A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0866Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/64Browsing; Visualisation therefor
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/79Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories

Abstract

The invention discloses a multimedia file playing method and a multimedia file playing system for a movable storage device, and the technical scheme is characterized by comprising the following steps: partitioning a storage device in advance to form a display partition and a hidden partition, wherein specific playing software is stored in the display partition, and multimedia file data is stored in the hidden partition; only reporting the display partition to be identified by a host operating system when the storage equipment is powered on; and issuing a private command to the storage equipment through specific playing software to determine that a hidden partition exists in the storage equipment, analyzing the multimedia file data in the hidden partition and playing. The invention has the purpose of improving the data security in the storage device.

Description

Multimedia file playing method and system for movable storage equipment
Technical Field
The present invention relates to the technical field of multimedia file playing, and in particular, to a multimedia file playing method and system for a removable storage device.
Background
NAND Flash (Flash memory) is the most popular non-volatile storage medium at present, and has the advantages of high performance, low power consumption, shock resistance, long service life and the like, so that NAND Flash is widely applied to common storage products such as mobile usb disks, Solid State Drives (SSDs), mobile memory cards and the like.
A storage device such as a solid state disk is a hard disk composed of a control unit and a solid state storage unit (NAND Flash). The solid state disk adopts a NAND Flash chip to store data, the NAND Flash chip needs to be erased before data is written in, the basic unit of the erasing operation is a Block (Block), each Block comprises a plurality of pages (Page), and the Page is the basic unit of data reading and writing operation.
When the storage device is connected with the computer through the USB interface, the storage device is powered on, an operating system of the computer can identify data in the storage device, and then read and write operations can be performed on the data in the storage device, so that the storage device can be suitable for each computer, and the accompanying data security problem is more and more emphasized by users.
the storage device is not only used for storing document table data, but also widely used for storing multimedia files, wherein the multimedia files comprise audio files and video files, and the multimedia files are widely applied to the fields of education training systems, audio-video media propagation, advertising and the like.
disclosure of Invention
aiming at the defects in the prior art, the invention aims to provide a multimedia file playing method for a movable storage device, which has the characteristic of improving the data security.
The technical purpose of the invention is realized by the following technical scheme:
a multimedia file playing method for a removable storage device comprises the following steps:
Partitioning a storage device in advance to form a display partition and a hidden partition, wherein specific playing software is stored in the display partition, and multimedia file data is stored in the hidden partition;
only reporting the display partition to be identified by a host operating system when the storage equipment is powered on;
and issuing a private command to the storage equipment through specific playing software to determine that a hidden partition exists in the storage equipment, analyzing the multimedia file data in the hidden partition and playing.
preferably, only reporting the display partition to be identified by the host operating system when the storage device is powered on includes the following steps:
a plurality of display partitions of the storage device are arranged, and specific playing software which is adaptive to different host operating system types is stored in each display partition;
Identifying the type of a host operating system when the storage equipment is powered on;
and reporting the display partition stored with the adaptive specific playing software based on the type of the host operating system.
Preferably, only reporting the display partition to be identified by the host operating system when the storage device is powered on includes the following steps:
a plurality of specific playing software is stored in a display partition of the storage device and is used for adapting to different host operating system types.
Preferably, the method further comprises the following steps:
The multimedia file data is encrypted by specific playing software and then written into a hidden partition of the storage equipment;
And the specific playing software analyzes the multimedia file data in the hidden partition to play after decryption.
preferably, the specific playing software parses the multimedia file data in the hidden partition to perform a playing action after decryption, and includes the following steps:
specific playing software searches an address linked list of the multimedia file data based on the selected multimedia file data to be played, wherein the address linked list is a cluster set of logical addresses of the multimedia file data stored in the storage equipment;
Judging whether an address linked list corresponding to the multimedia file data is found;
if yes, the logical address of each cluster in the address chain table is acquired one by one, the multimedia file data is read from the physical address mapped by the logical address, and the multimedia file data is decrypted and cached for playing.
preferably, if the address linked list corresponding to the multimedia file data is not found, the logical address of each cluster of the multimedia file data in the storage device is obtained, and the logical addresses of each cluster are sequentially combined into the address linked list for judgment and search.
preferably, the specific playing software needs to create an address linked list of the multimedia file data in advance before searching the address linked list of the multimedia file data based on the multimedia file data selected to be played.
Preferably, the pre-creating an address linked list of the multimedia file data includes the following steps:
When the multimedia file data is written into a hidden partition of the storage equipment through specific playing software, acquiring a logical address corresponding to each cluster of the multimedia file data in the storage equipment;
And sequentially forming the logical addresses of each cluster into an address linked list.
Preferably, the pre-creating an address linked list of the multimedia file data includes the following steps:
Scanning a folder and a file directory structure in a hidden partition of the storage device;
Acquiring a logical address corresponding to each cluster of each multimedia file data in a storage device;
and sequentially forming the logical addresses of each cluster into an address linked list.
In view of the defects in the prior art, another object of the present invention is to provide a multimedia file playing system for a removable storage device, which has the feature of improving data security.
the technical purpose of the invention is realized by the following technical scheme:
A multimedia file playback system for a removable storage device, comprising:
The device comprises a partitioning module, a storage module and a control module, wherein the partitioning module is used for partitioning a storage device in advance to form a display partition and a hidden partition, specific playing software is stored in the display partition, and multimedia file data is stored in the hidden partition;
The reporting module only reports the display partition to be identified by the host operating system when the storage equipment is powered on;
And the playing module issues a private command to the storage equipment through specific playing software to determine that a hidden partition exists in the storage equipment, analyzes the multimedia file data in the hidden partition and plays the multimedia file data.
in summary, compared with the prior art, the beneficial effects of the invention are as follows:
1. the storage equipment is partitioned when the storage equipment is set in a factory, a display partition and a hidden partition are respectively formed, the multimedia file data are stored in the hidden partition, and only the hidden partition in the storage equipment is identified through specific playing software and the multimedia file data in the hidden partition are played, so that the safety of the data in the storage equipment is improved;
2. The multimedia file data is encrypted and then written into the hidden partition of the storage device, so that the security of the data in the storage device is further improved;
3. When the specific playing software reads the multimedia file data, the multimedia file data can be read according to the pre-established address linked list, decrypted and cached, so that the playing fluency and the decryption efficiency of the specific playing software on the multimedia file data can be conveniently improved.
Drawings
Fig. 1 is a schematic structural diagram of a storage device according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating interaction between a storage device and a host according to an embodiment of the present invention;
fig. 3 is a block diagram of specific playing software according to the present invention;
fig. 4 is a schematic flow chart of a multimedia file playing method according to an embodiment of the present invention;
Fig. 5 is a schematic flow chart of decryption and playing of a multimedia file according to the technical solution of the present invention;
fig. 6 is a system block diagram of a multimedia file playing system according to the technical solution of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
the storage device comprises a mobile U disk, a Solid State Drives (SSD) and a mobile memory card. As shown in fig. 1, the storage device includes a control unit, a flash memory chip, and a cache unit, where the control unit is electrically connected to the flash memory chip and the cache unit, respectively, the control unit is used to implement data interaction with a host, the control unit receives a command sent by the host, and the control unit is responsible for parsing a host command, allocating the cache unit, implementing mapping between a logical address and a physical address, coordinating garbage collection and host service, and the like.
The cache unit may temporarily store data (e.g., read/write data of the host, intermediate data in the garbage collection process, etc.), and various table entry information (e.g., mapping relationship between logical address and physical address, data block wear and usage information, data block grade linked list, etc.). Usually, the cache unit is implemented by an external high-speed memory (such as SDRAM and ddr.) of the control unit, and the cache capacity can reach hundreds of MB in the high-performance enterprise-level SSD.
The storage device has the characteristic of being movable and is widely applied to a scene of file copy transmission, so that in the use process of the existing storage device, when the storage device is connected to a computer (also called a Host and a Host) through a USB interface, the Host can see all data conditions in the storage device. Therefore, when the storage device stores multimedia file data, the multimedia file data is easily copied, and thus, there are security problems such as data loss.
Therefore, in order to solve the technical problems, the storage device is partitioned in advance to form a display partition and a hidden partition respectively, the multimedia file data is stored in the hidden partition, and the display partition can be used for storing specific playing software for opening the multimedia file data.
example one
in view of the above, as shown in fig. 4, the present application proposes a multimedia file playing method for a removable storage device, including the following steps:
step S100, partitioning the storage device in advance to form a display partition and a hidden partition, wherein the display partition is stored with specific playing software, and the hidden partition is stored with multimedia file data.
according to the technical solution defined in step S100, specifically, as shown in fig. 2, when the storage device leaves the factory, the storage device can be partitioned by configuring an embedded program in a control unit of the storage device, so that the storage device forms a display partition and a hidden partition, in this embodiment, the number of the display partition and the hidden partition is not specifically limited, and is actually set according to an actual application situation, but at least one of the display partition and the hidden partition is set.
The storage device is partitioned specifically as follows:
The method comprises the steps that a user setting instruction is issued through an embedded program, the storage device is partitioned according to the user setting instruction, the number of display partitions and hidden partitions and the partition capacity of the display partitions and the hidden partitions are set, if the total capacity of the storage device is 4G, the storage device is divided into the display partitions and the hidden partitions, the partition capacity of the display partitions can be set to be 1G, and the partition capacity of the hidden partitions is set to be 3G.
generating a corresponding logical address according to the partition capacity of the display partition and the hidden partition, reading the physical addresses of the display partition and the hidden partition, generating a mapping table corresponding to the display partition and the hidden partition based on the logical address and the physical address, and writing the mapping table into the corresponding display partition and the hidden partition, so that the mapping table for generating the logical address to the physical address based on the partition capacity is written into both the display partition and the hidden partition.
The logical address refers to a relative address used in an application program, the physical address refers to an absolute address in the flash memory chip, the content stored in the mapping table is the mapping relation from the logical address to the physical address, the corresponding physical address can be found by inquiring the mapping table through the logical address, and then read-write access is carried out on data in the flash memory chip.
When a host operates a storage device to write data or read data, a logical address of a target operation is usually sent, the storage device receives the logical address, converts the logical address into a corresponding physical address on a flash memory chip, and then writes or reads the data, which is a basic flow of reading and writing of the storage device operated by the host.
Therefore, how to determine which physical address of the flash memory chip the data is written to, or how to read the data from that physical address of the flash memory chip, all the logical address to physical address translations are managed by the FTL translation layer algorithm of the control unit in the storage device, i.e. managing the mapping table of logical addresses to physical addresses.
Step S200, only reporting the display partition to be identified by the host operating system when the storage device is powered on.
According to the technical solution defined in step S200, specifically, in the prior art, a mapping table is generated in the storage device, the mapping table corresponds to a mapping of the entire physical address of the storage device to a logical address, when the storage device is powered on, the storage device reports the entire mapping table to the host, the host identifies the mapping table to obtain the logical address of the entire storage device, and no matter whether the storage device is a Linux operating system or a Windows operating system, only the file system of the storage device needs to be identified by the host, and data in the storage device is completely visible in the host operating system.
in the application, mapping tables are written in both a display partition and a hidden partition in a storage device, the storage device reports only partition capacity of the display partition and a logical address of the mapping tables to a host, and after a host operating system obtains the logical address of the display partition reported by the storage device, the host operating system reads the logical address through a file system driving layer so as to identify data in the display partition, and displays the data in the display partition in a file form through the file system driving layer.
the storage device does not report the logical address of the hidden partition mapping table to the host, so that the host cannot identify the hidden partition and cannot display and read and write data in the hidden partition, and the hidden partition is in an invisible state for a user. Wherein the file systems of the display partition and the hidden partition of the storage device are set to match the host operating system.
the method comprises the steps that a display partition is visible to a host operating system, but a hidden partition is invisible to the host operating system. The specific playing software is matched with the host operating system, the specific playing software can be operated and used under the host operating system, and the specific playing software can identify the data of the hidden partition in the storage device and carry out read-write operation when opened under the host operating system.
Therefore, the specific playing software is software established for identifying the hidden partition in the storage device and playing the multimedia file data in the hidden partition, and integrates the functions of the player and the burner, so that the multimedia file data can be read from the hidden partition and played, and the multimedia file data can be correspondingly burned into the hidden partition for storage.
In one embodiment, the specific playing software is stored in the host, and the multimedia file data of the hidden partition in the storage device can be opened through the specific playing software only by powering on the storage device in the host. In another embodiment, the specific playing software is stored in the display partition, the specific playing software moves along with the storage device, and the specific playing software can be opened in the host to play the multimedia file data in the hidden partition or burn the multimedia file data into the hidden partition of the storage device only by connecting the storage device with the host.
it is worth mentioning that, in one embodiment, a plurality of display partitions of the storage device are provided, and each display partition stores specific playing software adapted to different host operating system types;
identifying the type of a host operating system when the storage equipment is powered on;
And reporting the display partition stored with the adaptive specific playing software based on the type of the host operating system.
Specifically, the storage device is configured with a plurality of display partitions at the time of factory shipment, so that specific playing software adapted to different host operating system types is stored in different display partitions. For example, the storage device is configured with a first display partition in which the specific playback software adapted to the Linux operating system is stored, a second display partition in which the specific playback software adapted to the Windows operating system is stored, and a hidden partition.
Therefore, when the storage device is powered on, the storage device can identify the type of the host operating system, when the storage device is powered on, the host operating system performs data interaction with the storage device, different host operating systems in the data interaction issue different data interaction instructions, and the type of the host operating system can be identified through the data interaction instructions. If the storage device identifies that the host operating system type is the Linux operating system, the storage device reports the first display partition, so that only the first display partition is identified by the operating system of the host. If the storage device identifies that the host operating system type is the Windows operating system, the storage device reports the second display partition, so that only the second display partition is identified by the operating system of the host. By the mode, the purpose that the specific playing software in the storage device can adapt to a plurality of host operating systems is achieved.
In another embodiment, a plurality of specific playback software is stored in the display partition of the storage device, and the plurality of specific playback software is adapted to different host operating system types. Therefore, when the storage device is powered on, a user only needs to open specific playing software corresponding to the type of the host operating system according to the type of the host operating system. By the mode, the purpose that the specific playing software in the storage device can adapt to a plurality of host operating systems is achieved.
step S300, a private command is issued to the storage device through specific playing software to determine that a hidden partition exists in the storage device, and multimedia file data in the hidden partition is analyzed and played.
According to the technical solution defined in step S300, specifically, after the storage device is powered on, the host establishes a connection with the storage device, and the specific process of the specific playing software determining whether the hidden partition exists in the storage device is as follows:
the user opens the specific playing software, the specific playing software sends a private command to the storage device, the private command carries an authentication key, the storage device can acquire the authentication key in the private command after receiving the private command, the authentication key of the private command is matched with a preset key, and after the authentication key is successfully matched with the preset key, the storage device returns a logical address corresponding to the hidden partition mapping table and partition capacity of the hidden partition to the specific playing software to determine that the hidden partition exists in the storage device.
Otherwise, after the verification key fails to match the preset key, the storage device will not return the logical address corresponding to the hidden partition mapping table to indicate that there is no hidden partition in the storage device.
in addition, in order to improve the uniqueness of the use of the specific playing software, the specific playing software is also configured with a login page, and the specific playing software can be entered after an account number and a password are input into the login page and the authentication is successful.
In this application, as shown in fig. 3, a file system module and an audio/video file encoding/decoding module are configured in the specific playing software, so that the specific playing software can analyze folders and file directories of the hidden partitions through the file system module to form and display a playlist of multimedia file data.
Therefore, after the specific playing software acquires the play list of the multimedia file data, the user only needs to select the multimedia file data to be played in the play list, and the audio and video file coding and decoding module can read the multimedia file data and decode the multimedia file data, so that the playing action of the multimedia file data is realized.
In the application, the specific playing software is also provided with an encryption and decryption module and a data preprocessing module, the audio and video file coding and decoding module is used for carrying out data interaction with the data preprocessing module, the encryption and decryption module is used for carrying out data interaction with the file system module, and the file system module is used for carrying out data interaction with the storage device.
In order to further improve the security of the multimedia file data in the storage device, the multimedia file data entering the hidden partition of the storage device is encrypted, wherein the specific playing software has the function of a burner, namely the function of writing the multimedia file data into the storage device.
The multimedia file data is encrypted by specific playing software and then written into a hidden partition of the storage device. The multimedia file data is encrypted through the encryption algorithm in the encryption and decryption module, the encryption algorithm may adopt the existing AES encryption algorithm or other encryption algorithms, and the embodiment is not particularly limited.
Therefore, when the specific playing software plays the encrypted multimedia file data, the specific playing software analyzes the multimedia file data in the hidden partition to perform a playing action after decryption.
specifically, referring to fig. 5, in the specific playing software parsing the multimedia file data in the hidden partition to perform the playing action after decryption, the method includes the following steps:
step A1, the specific playing software searches the address linked list of the multimedia file data based on the selected multimedia file data to be played, wherein the address linked list is a cluster set of logical addresses of the multimedia file data stored in the storage device.
according to the technical solution defined in step a1, in particular, the concept of clusters is explained below: when the multimedia file data is stored in the storage device, the storage device stores a mapping table corresponding to logical addresses to physical addresses of the multimedia file data, wherein the storage of the data in the storage device is stored in cluster units, one multimedia file data is distributed among a plurality of clusters, so that one cluster corresponds to a segment of the mapping table from the logical addresses to the physical addresses, when the multimedia file data is distributed among the plurality of clusters, each cluster generates a sequential relation, and when the multimedia file data is read, the data in the clusters is read in sequence.
for example, if the size of the multimedia file data is 100MB and the size of each cluster is 10MB, the multimedia file data will be allocated to 10 clusters for storage, and each cluster is sequentially marked according to the storage order of the multimedia file data, such as logic _ a _1 cluster, logic _ a _2 cluster … …, and when the multimedia file data is read, the data in each cluster will be read sequentially.
The multimedia file data is large in single file data amount, clusters are enlarged through a file system of specific playing software, and therefore one cluster can store more data, and the purpose of reducing disk fragments of storage equipment is achieved.
Therefore, the specific playing software needs to create an address linked list of the multimedia file data in advance before searching the address linked list of the multimedia file data based on the multimedia file data selected to be played, specifically, a file address linked list management module and a buffer area management module are configured in a data preprocessing module of the specific playing software, the file address linked list management module is used for creating the address linked list in advance and searching and managing the address linked list corresponding to the multimedia file data, and the buffer area management module is used for caching the multimedia file data read according to the address linked list.
In one embodiment, the method for creating the address linked list of the multimedia file data in advance comprises the following steps:
When the multimedia file data is written into the hidden partition of the storage equipment through the specific playing software, the data preprocessing module acquires a logical address corresponding to each cluster of the multimedia file data in the storage equipment through the file system module;
the data preprocessing module sequentially combines the logical addresses of each cluster of the multimedia file data into an address linked list.
in another embodiment, the method for creating the address linked list of the multimedia file data in advance comprises the following steps:
The data preprocessing module scans a folder and file directory structure in a hidden partition of the storage device through the file system module;
acquiring a logical address corresponding to each cluster of each multimedia file data in a storage device;
the data preprocessing module sequentially combines the logical addresses of each cluster of the multimedia file data into an address linked list.
Therefore, the specific playing software can conveniently read, decrypt and cache the multimedia file data based on the address linked list in a mode that the specific playing software previously forms the multimedia file data into the address linked list through the data preprocessing module.
Specifically, in step a2, it is determined whether the address linked list corresponding to the multimedia file data is found.
And step A3, if yes, acquiring the logical address of each cluster in the address chain table one by one, reading the multimedia file data from the physical address mapped by the logical address, and caching the multimedia file data for playing after decryption.
according to the technical scheme defined by the steps A2-A3, specifically, the file address chain list management module is used for managing the address chain list, pre-creating the address chain list corresponding to the multimedia file data, and then searching the address chain list of the multimedia file data and judging whether the address chain list corresponding to the multimedia file data is found after the multimedia file data is selected to be played.
And if the address linked list corresponding to the multimedia file data is not found, temporarily creating the address linked list in the playing process.
the data preprocessing module acquires the logical address of each cluster of the multimedia file data in the storage device through the file system module, the data preprocessing module sequentially forms the logical address of each cluster into an address linked list, the generated address linked list is used for judgment and search, and then the specific playing software reads and plays through the address linked list.
If the address linked list corresponding to the multimedia file data is found, the logical address of each cluster in the address linked list is directly acquired one by one, the multimedia file data is read from the physical address mapped by the logical address, and the multimedia file data is decrypted and cached for playing.
the specific playing software plays the following modes according to the address linked list:
the data preprocessing module reads multimedia file data from the storage device according to the physical address mapped by the logical address of the cluster in the address linked list, decrypts the multimedia file data through the encryption and decryption module, and stores the decrypted multimedia file data in the buffer area management module for playing of specific playing software.
And simultaneously, the data preprocessing module reads the multimedia file data from the storage equipment for the physical address mapped by the logical address of the next cluster, and the encrypted and decrypted data is stored in the second data buffer area after being decrypted by the encryption and decryption module.
and when the specific playing software finishes the use of the data in the first data buffer area, the read and decrypted multimedia file data is directly obtained from the second data buffer area.
and when the data preprocessing module detects that the data in the first data buffer area is used, emptying the data in the first data buffer area, reading the next cluster of multimedia file data, decrypting the data by the encryption and decryption module, storing the data in the first data buffer area, and repeating the steps until the multimedia file data is played by the specific playing software.
Therefore, the method and the device can manage the clusters of the multimedia file data stored in the storage device, and generate the address linked list from the logical address pointed by each cluster, and when the specific playing software reads the multimedia file data, the specific playing software can read the multimedia file data according to the pre-established address linked list, decrypt and cache the multimedia file data, so that the playing fluency and the decryption efficiency of the specific playing software on the multimedia file data are conveniently improved.
Example two
The invention also provides a multimedia file playing system for the movable storage device, which is applied to the storage device and the host, wherein the storage device comprises a control unit, a flash memory chip and a cache unit, the control unit is respectively and electrically connected with the flash memory chip and the cache unit, the control unit is used for realizing data interaction with the host, the control unit receives a command sent by the host, and the control unit is responsible for analyzing the host command, distributing the cache unit, realizing mapping of a logical address and a physical address, coordinating garbage recovery and host service and the like.
referring to fig. 6, the system includes a partitioning module, a reporting module, and specific playing software.
The partition module is used for partitioning the storage equipment in advance to form a display partition and a hidden partition, wherein specific playing software is stored in the display partition, and multimedia file data is stored in the hidden partition; the reporting module is used for reporting the display partition to be identified by the host operating system when the storage equipment is powered on; the specific playing software is used for issuing a private command to the storage device to determine that a hidden partition exists in the storage device, analyzing the multimedia file data in the hidden partition and playing.
It should be noted that, in the reporting module, in an embodiment, a plurality of display partitions of the storage device are provided, and each display partition stores specific playing software adapted to different host operating system types; identifying the type of a host operating system when the storage equipment is powered on; and reporting the display partition stored with the adaptive specific playing software based on the type of the host operating system.
In another embodiment, a plurality of specific playback software is stored in the display partition of the storage device, and the plurality of specific playback software is adapted to different host operating system types.
in order to further improve the data security, the multimedia file data in the system is encrypted by specific playing software and then written into a hidden partition of the storage device; in the playing module, the specific playing software analyzes the multimedia file data in the hidden partition so as to play after decryption.
specifically, the specific playing software searches an address linked list of the multimedia file data based on the selected multimedia file data to be played, wherein the address linked list is a cluster set of logical addresses of the multimedia file data stored in the storage device;
judging whether an address linked list corresponding to the multimedia file data is found;
If yes, the logical address of each cluster in the address chain table is acquired one by one, the multimedia file data is read from the physical address mapped by the logical address, and the multimedia file data is decrypted and cached for playing.
if the address linked list corresponding to the multimedia file data is not found, the logical address of each cluster of the multimedia file data in the storage device is obtained, and the logical addresses of each cluster are sequentially combined into the address linked list for judgment and search.
Before the specific playing software searches the address linked list of the multimedia file data based on the selected played multimedia file data, the address linked list of the multimedia file data needs to be created in advance.
In one embodiment, the pre-creating of the address linked list of the multimedia file data comprises the following steps:
When the multimedia file data is written into a hidden partition of the storage equipment through specific playing software, acquiring a logical address corresponding to each cluster of the multimedia file data in the storage equipment;
And sequentially forming the logical addresses of each cluster into an address linked list.
In another embodiment, the pre-creating of the address linked list of the multimedia file data comprises the following steps:
Scanning a folder and a file directory structure in a hidden partition of the storage device;
acquiring a logical address corresponding to each cluster of each multimedia file data in a storage device;
and sequentially forming the logical addresses of each cluster into an address linked list.
therefore, the storage device in the application is partitioned when the storage device is factory set, the display partition and the hidden partition are respectively formed, the multimedia file data are stored in the hidden partition, only the hidden partition in the storage device is identified through specific playing software, the multimedia file data in the hidden partition are played, and the safety of the data in the storage device is improved.
And the multimedia file data is encrypted and then written into a hidden partition of the storage device so as to further improve the data security.
The method and the device can manage the clusters of the multimedia file data stored in the storage device, and generate the address linked list from the logical address pointed by each cluster, when the specific playing software reads the multimedia file data, the specific playing software can read the multimedia file data according to the pre-established address linked list, decrypt the read multimedia file data and then cache the decrypted multimedia file data, so that the playing fluency and the decryption efficiency of the specific playing software on the multimedia file data can be conveniently improved.
The above description is intended to be illustrative of the present invention and not to limit the scope of the invention, which is defined by the claims appended hereto.

Claims (10)

1. A multimedia file playing method for a removable storage device is characterized by comprising the following steps:
Partitioning a storage device in advance to form a display partition and a hidden partition, wherein specific playing software is stored in the display partition, and multimedia file data is stored in the hidden partition;
Only reporting the display partition to be identified by a host operating system when the storage equipment is powered on;
And issuing a private command to the storage equipment through specific playing software to determine that a hidden partition exists in the storage equipment, analyzing the multimedia file data in the hidden partition and playing.
2. The method as claimed in claim 1, wherein only the display partition is reported to be recognized by the host operating system when the storage device is powered on, comprising the following steps:
A plurality of display partitions of the storage device are arranged, and specific playing software which is adaptive to different host operating system types is stored in each display partition;
identifying the type of a host operating system when the storage equipment is powered on;
And reporting the display partition stored with the adaptive specific playing software based on the type of the host operating system.
3. the method as claimed in claim 1, wherein only the display partition is reported to be recognized by the host operating system when the storage device is powered on, comprising the following steps:
A plurality of specific playing software is stored in a display partition of the storage device and is used for adapting to different host operating system types.
4. the method for playing the multimedia file on the removable storage device according to claim 1, further comprising the steps of:
the multimedia file data is encrypted by specific playing software and then written into a hidden partition of the storage equipment;
And the specific playing software analyzes the multimedia file data in the hidden partition to play after decryption.
5. The method for playing the multimedia file on the removable storage device according to claim 4, wherein the specific playing software parses the multimedia file data in the hidden partition for playing after decrypting, comprising the following steps:
specific playing software searches an address linked list of the multimedia file data based on the selected multimedia file data to be played, wherein the address linked list is a cluster set of logical addresses of the multimedia file data stored in the storage equipment;
Judging whether an address linked list corresponding to the multimedia file data is found;
if yes, the logical address of each cluster in the address chain table is acquired one by one, the multimedia file data is read from the physical address mapped by the logical address, and the multimedia file data is decrypted and cached for playing.
6. The method as claimed in claim 5, wherein if the address chain table corresponding to the multimedia file data is not found, the logical address of the multimedia file data in each cluster in the storage device is obtained, and the logical addresses of each cluster are sequentially combined into the address chain table for determining and searching.
7. the method as claimed in claim 5, wherein the specific playing software needs to create the address chain table of the multimedia file data in advance before searching the address chain table of the multimedia file data based on the multimedia file data selected for playing.
8. The method for playing the multimedia file for the removable storage device according to claim 7, wherein the step of creating an address linked list of the multimedia file data in advance comprises the steps of:
when the multimedia file data is written into a hidden partition of the storage equipment through specific playing software, acquiring a logical address corresponding to each cluster of the multimedia file data in the storage equipment;
and sequentially forming the logical addresses of each cluster into an address linked list.
9. The method for playing the multimedia file for the removable storage device according to claim 7, wherein the step of creating an address linked list of the multimedia file data in advance comprises the steps of:
scanning a folder and a file directory structure in a hidden partition of the storage device;
acquiring a logical address corresponding to each cluster of each multimedia file data in a storage device;
And sequentially forming the logical addresses of each cluster into an address linked list.
10. A multimedia file playback system for a removable storage device, comprising:
the device comprises a partitioning module, a storage module and a control module, wherein the partitioning module is used for partitioning a storage device in advance to form a display partition and a hidden partition, specific playing software is stored in the display partition, and multimedia file data is stored in the hidden partition;
The reporting module only reports the display partition to be identified by the host operating system when the storage equipment is powered on;
And the playing module issues a private command to the storage equipment through specific playing software to determine that a hidden partition exists in the storage equipment, analyzes the multimedia file data in the hidden partition and plays the multimedia file data.
CN201910853170.7A 2019-09-10 2019-09-10 Multimedia file playing method and system for movable storage equipment Pending CN110569202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910853170.7A CN110569202A (en) 2019-09-10 2019-09-10 Multimedia file playing method and system for movable storage equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910853170.7A CN110569202A (en) 2019-09-10 2019-09-10 Multimedia file playing method and system for movable storage equipment

Publications (1)

Publication Number Publication Date
CN110569202A true CN110569202A (en) 2019-12-13

Family

ID=68778746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910853170.7A Pending CN110569202A (en) 2019-09-10 2019-09-10 Multimedia file playing method and system for movable storage equipment

Country Status (1)

Country Link
CN (1) CN110569202A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177783A (en) * 2019-12-31 2020-05-19 北京明朝万达科技股份有限公司 Method and device for preventing mobile storage medium from being divulged
CN111597513A (en) * 2020-05-18 2020-08-28 郑州点读电子科技有限公司 Multimedia processing method, device and storage disc
CN114491651A (en) * 2022-04-18 2022-05-13 深圳佰维存储科技股份有限公司 File system protection method and device, readable storage medium and electronic equipment
CN117311639B (en) * 2023-10-17 2024-04-12 刘湛渊 Information hiding storage device and initialization, reading and writing method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007030760A2 (en) * 2005-09-08 2007-03-15 Sandisk Corporation Mobile memory system for secure storage and delivery of media content
US20090006796A1 (en) * 2007-06-29 2009-01-01 Sandisk Corporation Media Content Processing System and Non-Volatile Memory That Utilizes A Header Portion of a File
US20090313432A1 (en) * 2008-06-13 2009-12-17 Spence Richard C Memory device storing a plurality of digital media files and playlists
CN101669124A (en) * 2007-06-29 2010-03-10 桑迪士克公司 Method of storing and accessing header data from memory
CN102654849A (en) * 2011-03-03 2012-09-05 赛酷特(北京)信息技术有限公司 Method for hiding and reading by partitions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007030760A2 (en) * 2005-09-08 2007-03-15 Sandisk Corporation Mobile memory system for secure storage and delivery of media content
US20090006796A1 (en) * 2007-06-29 2009-01-01 Sandisk Corporation Media Content Processing System and Non-Volatile Memory That Utilizes A Header Portion of a File
CN101669124A (en) * 2007-06-29 2010-03-10 桑迪士克公司 Method of storing and accessing header data from memory
US20090313432A1 (en) * 2008-06-13 2009-12-17 Spence Richard C Memory device storing a plurality of digital media files and playlists
CN102654849A (en) * 2011-03-03 2012-09-05 赛酷特(北京)信息技术有限公司 Method for hiding and reading by partitions

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177783A (en) * 2019-12-31 2020-05-19 北京明朝万达科技股份有限公司 Method and device for preventing mobile storage medium from being divulged
CN111597513A (en) * 2020-05-18 2020-08-28 郑州点读电子科技有限公司 Multimedia processing method, device and storage disc
CN111597513B (en) * 2020-05-18 2023-08-04 郑州点读电子科技有限公司 Multimedia processing method, device and storage disk
CN114491651A (en) * 2022-04-18 2022-05-13 深圳佰维存储科技股份有限公司 File system protection method and device, readable storage medium and electronic equipment
CN114491651B (en) * 2022-04-18 2022-07-05 深圳佰维存储科技股份有限公司 File system protection method and device, readable storage medium and electronic equipment
CN117311639B (en) * 2023-10-17 2024-04-12 刘湛渊 Information hiding storage device and initialization, reading and writing method thereof

Similar Documents

Publication Publication Date Title
CN110569202A (en) Multimedia file playing method and system for movable storage equipment
RU2257609C2 (en) Device for accessing semiconductor memory card, computer- readable data carrier, initialization method and semiconductor memory card
KR100952135B1 (en) Flash management system using only sequential write
JP6910131B2 (en) Storage device including multiple partitions for multiple mode operation, and its operation method
US10163135B2 (en) Combining user content with supplemental content at a data storage device
US7461198B2 (en) System and method for configuration and management of flash memory
US9298384B2 (en) Method and device for storing data in a flash memory using address mapping for supporting various block sizes
CN110489357B (en) Method and system for hiding data on removable storage device
KR100533682B1 (en) Data managing device and method for flash memory
EP0978040B1 (en) Memory device
CN101008919A (en) Audio/video data access method and device based on raw device
KR101374065B1 (en) Data Distinguish Method and Apparatus Using Algorithm for Chip-Level-Parallel Flash Memory
US8433847B2 (en) Memory drive that can be operated like optical disk drive and method for virtualizing memory drive as optical disk drive
KR20170142931A (en) Read cache management
US20120191897A1 (en) Non-volatile memory system and management method thereof
CN110515550B (en) Method and device for separating cold data and hot data of SATA solid state disk
CN104794024A (en) Data recovery method
CN104751076A (en) Method for recovering disk data
CN110554843A (en) Method and system for storing file data by multiple storage devices
US10929066B1 (en) User stream aware file systems with user stream detection
JP2002539557A (en) Copy protection of storage media by randomizing location and key for write access
CN102203793A (en) Storage device and method for dynamic content tracing
CN110658978A (en) Data processing method and device, electronic equipment and readable storage medium
US8219830B2 (en) Apparatus and method for management for file aggregates and file directories
US20110078391A1 (en) Information recording apparatus, information recording method, and computer-readable medium

Legal Events

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

Application publication date: 20191213