CN103648021B - The method that network video file is played from USB storage device - Google Patents
The method that network video file is played from USB storage device Download PDFInfo
- Publication number
- CN103648021B CN103648021B CN201310720594.9A CN201310720594A CN103648021B CN 103648021 B CN103648021 B CN 103648021B CN 201310720594 A CN201310720594 A CN 201310720594A CN 103648021 B CN103648021 B CN 103648021B
- Authority
- CN
- China
- Prior art keywords
- video file
- storage device
- file
- network video
- usb storage
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 239000000203 mixture Substances 0.000 claims description 2
- 239000011800 void material Substances 0.000 claims 1
- 238000012360 testing method Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 238000013481 data capture Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 244000097202 Rathbunia alamosensis Species 0.000 description 1
- 235000009776 Rathbunia alamosensis Nutrition 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Television Signal Processing For Recording (AREA)
Abstract
The present invention discloses a kind of method that network video file is played from USB storage device, and it includes step:The nodal information of network video file is created in the memory space of USB storage device, nodal information with virtual video file with the relevant information file for recording the server info for obtaining network video file by constituting;Main frame plays the virtual video file in USB storage device, USB storage device, which will be stored in real file data area, to be preset the data cached of playout length and by host request returns to main frame, and according to the relevant information file of virtual video file, the remaining video content for obtaining network video file from the server is stored in caching, responds the request of main frame to complete the broadcasting of network video file with the data block in caching.Implementation method of the present invention is simple, facilitates user, is particluarly suitable for the broadcasting that intelligent terminal realizes video file.
Description
Technical field
The present invention relates to the audio video transmission technology of DTV, net is played from USB storage device more particularly, to one kind
The method of network video file.
Background technology
With the development and the popularization of television network broadcast of TV tech, DTV STB and all-in-one have been entered into
One of huge numbers of families, the necessity lived as people.
Existing DTV STB and digital television all-in-one all provides broadcasting USB storage device(Such as USB flash disk, base
In mobile hard disk of USB interface etc.)Upper video file function.Therefore, user needs to first pass through the mode of network download, from interconnection
Video file is downloaded into computer is restored again into USB flash disk on the net, or answers video file from the storage devices such as CD, hard disc of computer
Make on USB flash disk, then USB flash disk is plugged on the USB interface of DTV STB and digital television all-in-one, play in USB flash disk
Video file.
There is following defect in prior art:
1st, need that video file to be played is stored in the USB storage devices such as USB flash disk in advance before broadcasting, it is cumbersome
And waste time and energy.
2nd, the most storage capacity requirement of existing video file is larger, although the capacity of existing USB storage device is also larger, but
Still need often to change the video file in USB storage device.
The content of the invention
The present invention proposes a kind of method that network video file is played from USB storage device, it is not necessary to which storage is whole to play
Video file, only need to store the nodal information of video file, so that solve current video file needs prior preservation before broadcasting
Cause technical problem that is cumbersome and wasting time and energy in USB storage device.
The present invention adopts the following technical scheme that realization:A kind of method that network video file is played from USB storage device, its
Including step:
The nodal information of network video file is created in the memory space of USB storage device, nodal information is by virtual video
File and the relevant information file composition for recording the server info for obtaining network video file;
USB storage device obtains the video content of the default playout length of network video file beginning, the video from server
Content as virtual video file the data cached real file data area for being stored in USB storage device;
When main frame plays out operation to the virtual video file in USB storage device, USB storage device first will be described
It is data cached to return to the main frame by the host request, then according to the relevant information file of the virtual video file,
The remaining video content of network video file is obtained from the server and caching is stored in the way of data block, with caching
Data block responds the request of main frame to complete the broadcasting of network video file.
Wherein, include the step of the memory space of USB storage device creates the nodal information of network video file:
Read operation is sent to the server where network video file according to input parameter, the big of network video file is obtained
The video content of small information and the default playout length of network video file beginning, the input parameter is with including the IP of video server
Location, the filename of network video file and default playout length;
According to the document size information of network video file, USB storage device creates virtual video file, by Internet video
The video content of the default playout length of file beginning is the surplus of network video file as the data cached of virtual video file
The logical block number of virtual file data field in remaining video content distribution USB storage device;
Create the relevant information file of the broadcasting site for service information of network video file.
Wherein, the relevant information file includes the filename of network video file and for obtaining network video file
Server ip address information.
Wherein, the corresponding data of logical block number of the virtual file data field need to be by USB storage device from the clothes
Business device obtains and is stored in caching.
Wherein, the corresponding storage size of video content of the default playout length of net network video file beginning, is USB
The integral multiple of data block size in the file system of storage device.
Wherein, the main frame is DTV STB or digital television all-in-one.
Compared with prior art, the present invention has the advantages that:
The present invention only need to store the nodal information of network video file, when main frame plays network video file, USB
On the one hand storage device plays the data cached of the default playout length video content of map network video file beginning to user, separately
On the one hand the remaining video file obtained from server is played for main frame, so as to facilitate user.Implementation method of the present invention is more simple
It is single, it is particluarly suitable for the broadcasting that the intelligent terminals such as current smart mobile phone, IPAD realize network video file.
Brief description of the drawings
Fig. 1 is the system structure diagram of the present invention;
Fig. 2 is the structural representation of FAT32 formatted file systems in USB storage device;
Fig. 3 is the schematic flow sheet of a preferred embodiment of the invention;
Fig. 4 is that the logical data of each several part in Fig. 1 exchanges schematic diagram.
Embodiment
The present invention need not store complete network video file in USB storage device in advance before broadcasting, need to only deposit
The nodal information of network video file is stored up, when main frame playing video file USB storage device just obtains corresponding from server
Network video file for main frame play, so as to facilitate user.
As shown in figure 1, the present invention is supported in USB storage device with DTV STB or digital television all-in-one etc.
The playing device of video file playback process is main frame, and the main frame is connected by USB interface with USB storage device, realizes and plays
The playing function of network video file in USB storage device.Main frame supports USB host controller driving, USB mass-memory units
Class driving, file system intermediate layer, player function etc..And USB storage device must support USB device driving, USB Large Copacities
Storage device class command analysis, block device monitoring driving, trawl performance, procotol(Such as ICP/IP protocol), data buffering
The functions such as processing.
For the ease of understanding the present invention, the file system to USB storage device is slightly described.As shown in Fig. 2 being deposited for block
The file layout of FAT32 forms is by guidance field, FAT area, catalogue data area, real file data area, virtual in storage equipment
File data area.Deposit some partition informations in guidance field.The each catalogue of FAT area or file take logical block special case, FAT
Each record and logical block corresponding relation in area, the record next logical block location information of content representation or current logic block are
Last logical block.Catalogue data area storing directory information, authentic document region storage file content;It is catalogue data area, true
Real file data field may be incorporated in a region.Virtual file data field only has the numbering of logical block, and real space is not deposited
.The scope that the scope of the logical block number of virtual file data field is monitored by block device.Because there is necessarily special want to subregion
Ask, so needing special partitioning tool.
As shown in figure 3, a preferred embodiment of the present invention includes step is implemented as described below:
Step S1, USB storage device memory space create network video file nodal information, can be by computer
Application program is realized or directly realized by smart machine application program.
Such as, user logins a video website(Such as:The websites such as LeEco net, strange skill net, Sina's video)Or oneself build
Video website, according to the nodal information of the information creating video file of film.
For example:On the video server that video file is deposited, it is test.ts to deposit one of video files names.
The nodal information of network video file is made up of virtual video file and relevant information file, in relevant information file
It has recorded the information such as the filename of network video file and the address of place server.Virtual video file is supplied to main frame to play
When use, and used comprising the relevant information file for playing the information such as site for service for USB storage device.
Realized by computer applied algorithm or the memory space directly by smart machine application program in USB storage device is created
During the nodal information of establishing network video file, the IP of server where computer or smart machine input network video file
Location, the filename test.ts of network video file, the default playout length PL of network video file beginning video content, to net
Server initiates read operation where network video file, obtains the total playout length information N and Internet video text of network video file
The default playout length PL of part beginning video content;Then, according to total playout length information N of network video file, name is created
For test.ts virtual video file, the beginning playout length PL of the virtual video file slow data are to be obtained from server
Playout length PL video content is preset in the network video file beginning taken, and the video content is deposited with real file data area
Storage, and the remaining playout length N-PL of network video file remaining video content only distributes the logical block of virtual file data field
Numbering;And the file test_info of the broadcasting site for service relevant information of video file is created, file test_info is used to deposit
Put the information such as the filename of network video file and the IP address of server.
With reference to shown in Fig. 4, step S2 ~ step S4 realizes that main frame plays the virtual video file in USB storage device
test.ts。
Step S2, main frame play the virtual video file test.ts in USB storage device.
Block device monitoring driving task in USB storage device knows immediately that main frame needs to read virtual video file
The data cached of playout length PL in real file data area, first by host request is returned to main frame by test.ts.
Step S3, USB storage device find the playback website of network video file according to virtual video file test.ts
Relevant information file test_info, obtains the IP address and Internet video text of server from related message file test_info
The filename of server ip address and network video file, is started Network Data Capture as parameter immediately and appointed by the filename of part
Business;Obtaining the remaining video content of the network video file from network and be stored in the buffer area of USB storage device.
Step S4, the block device monitoring driving of USB storage device continue to monitor the data block request that main frame is sent, and work as discovery
During the data of the logical block of host request virtual file data field, asking for correct data block response main frame is taken out from buffer area
Ask;Block device monitors that driving task works with Network Data Capture task coordinate, and whole video file finishes playing always.
Therefore, it is exactly that main frame constantly asks logical block to USB storage device that logic, which is interacted, between main frame and USB storage device
The data of size, USB storage device responds corresponding data on request.Host request logical block is distinguished in block device monitoring driving
Address is real file data area or virtual file data field;If real file data area, directly from authentic document number
According to area's user-data-answer main frame;If virtual file data field, then USB storage device reads data sound from buffer area on demand
Answer main frame, and the data of buffer area by USB storage device with Network Data Capture task from server where network video file
Download and obtain.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.
Claims (6)
1. a kind of method that network video file is played from USB storage device, it is characterised in that including step:
The nodal information of network video file is created in the memory space of USB storage device, nodal information is by virtual video file
It is used for the relevant information file composition of server info for obtaining network video file with record;
USB storage device obtains the video content of the default playout length of network video file beginning, the video content from server
It is used as the data cached real file data area for being stored in USB storage device of virtual video file;
Host request, USB storage device are sent when main frame plays out operation to the virtual video file in USB storage device
First by it is described it is data cached by the host request return to the main frame, then believed according to the correlation of the virtual video file
File is ceased, the remaining video content of network video file is obtained from the server and is stored in caching in the way of data block, with
Data block in caching responds the request of main frame to complete the broadcasting of network video file;
The USB storage device uses FAT32 file format.
2. the method for network video file is played from USB storage device according to claim 1, it is characterised in that deposit in USB
The step of memory space of storage equipment creates the nodal information of network video file includes:
Read operation is sent to the server where network video file according to input parameter, the size letter of network video file is obtained
The video content of breath and the default playout length of network video file beginning, IP address of the input parameter including video server,
The filename of network video file and default playout length;
According to the document size information of network video file, USB storage device creates virtual video file, by network video file
The video content of the default playout length of beginning is regarded as the data cached of virtual video file, and for the residue of network video file
The logical block number of virtual file data field in frequency content assignment USB storage device;
Create the relevant information file of the broadcasting site for service information of network video file.
3. the method for network video file is played from USB storage device according to claim 2, it is characterised in that the net
The relevant information file of the broadcasting site for service information of network video file includes the filename of network video file and for obtaining
The server ip address information of network video file.
4. the method for network video file is played from USB storage device according to claim 2, it is characterised in that the void
Intending the corresponding data of logical block number in file data area need to be obtained from the server by USB storage device and be stored in caching.
5. the method for network video file is played from USB storage device according to claim 2, it is characterised in that the net
The corresponding storage size of video content of the default playout length of network video file beginning, be USB storage device file system in
The integral multiple of data block size.
6. the method for network video file is played from USB storage device according to claim 1, it is characterised in that the master
Machine is DTV STB or digital television all-in-one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310720594.9A CN103648021B (en) | 2013-12-24 | 2013-12-24 | The method that network video file is played from USB storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310720594.9A CN103648021B (en) | 2013-12-24 | 2013-12-24 | The method that network video file is played from USB storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103648021A CN103648021A (en) | 2014-03-19 |
CN103648021B true CN103648021B (en) | 2017-08-29 |
Family
ID=50253162
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310720594.9A Expired - Fee Related CN103648021B (en) | 2013-12-24 | 2013-12-24 | The method that network video file is played from USB storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103648021B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106155945B (en) * | 2015-04-28 | 2020-03-06 | 安富科技股份有限公司 | Notification method of media source hot-plug real-time notification system of multimedia device |
CN105872758A (en) * | 2015-08-12 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Intelligent television channel operation and play method and corresponding device |
CN106937161A (en) * | 2015-12-31 | 2017-07-07 | 深圳市美贝壳科技有限公司 | The method that media file data in external storage is imported |
CN107168666B (en) * | 2017-04-21 | 2021-01-26 | 陈景雄 | System and method for audio and video transmission and multi-screen mapping based on USB interface |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007105200A1 (en) * | 2006-03-16 | 2007-09-20 | Sandisk Il Ltd | A data storage management method and device |
CN101473296A (en) * | 2006-06-16 | 2009-07-01 | 高通股份有限公司 | USB wireless network drive |
CN102594769A (en) * | 2011-01-05 | 2012-07-18 | 深圳市闪联信息技术有限公司 | Method and system for transmitting network media data |
CN103383673A (en) * | 2012-05-02 | 2013-11-06 | 宏碁股份有限公司 | Device, system, and method of universal serial bus USB network storage |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040177166A1 (en) * | 2003-03-05 | 2004-09-09 | International Business Machines Corporation | Network access point apparatus and method |
CN102855909B (en) * | 2012-08-29 | 2015-06-17 | 四三九九网络股份有限公司 | Batch dynamic loading method for video titles |
CN103442259B (en) * | 2013-08-21 | 2017-02-22 | 杭州浦禾通信技术有限公司 | Method and device for reconstructing media data |
-
2013
- 2013-12-24 CN CN201310720594.9A patent/CN103648021B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007105200A1 (en) * | 2006-03-16 | 2007-09-20 | Sandisk Il Ltd | A data storage management method and device |
CN101473296A (en) * | 2006-06-16 | 2009-07-01 | 高通股份有限公司 | USB wireless network drive |
CN102594769A (en) * | 2011-01-05 | 2012-07-18 | 深圳市闪联信息技术有限公司 | Method and system for transmitting network media data |
CN103383673A (en) * | 2012-05-02 | 2013-11-06 | 宏碁股份有限公司 | Device, system, and method of universal serial bus USB network storage |
Also Published As
Publication number | Publication date |
---|---|
CN103648021A (en) | 2014-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8737820B2 (en) | Systems and methods for recording content within digital video | |
CN102547478B (en) | Triggered slice on-demand system and method of streaming media based on CDN (Content Distribution Network) | |
JP5540086B2 (en) | Synchronized distributed media assets | |
CN103299600B (en) | For transmitting the apparatus and method of live media content | |
US9055193B2 (en) | System and method of a remote conference | |
CN103648021B (en) | The method that network video file is played from USB storage device | |
CN108566561A (en) | Video broadcasting method, device and storage medium | |
JP2007306570A (en) | Access of data resource using pause point | |
JP5314840B2 (en) | Content playback apparatus and content playback method | |
KR100809641B1 (en) | Method for exchanging contents between heterogeneous system and contents management system for performing the method | |
CN103533444A (en) | Method and device for supporting time-shifting playing | |
CN103956175A (en) | Playing method and equipment of multi-media files | |
US10375454B1 (en) | Audio data and image data integration | |
CN105812831B (en) | Network program recording method, device and system and playing method and device | |
CN102685560B (en) | Content delivery system, content delivery server and content delivery method | |
CN105847943A (en) | Playback equipment, and audio and video playback method and device thereof | |
JP2009157761A (en) | Storage system and data management method thereof | |
CN108966024B (en) | Audio and video stream transmission method, playback method, device and system | |
US20090006581A1 (en) | Method and System For Downloading Streaming Content | |
CN102300124A (en) | Method and system for partitioning television channels in a platform | |
CN106507137B (en) | A kind of footmark configuration method, server and system | |
CN106302617B (en) | Data processing method and device applied to computing device | |
CN112887786B (en) | Video playing method and device and computer readable medium | |
CN106961635A (en) | Massaging device | |
CN104219534A (en) | System and method for implementing cloud storage agency by using Linux set top box |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 22A, Guoshi building, 1801 Shahe West Road, high tech Zone, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province Patentee after: GUOWEI GROUP (SHENZHEN) Co.,Ltd. Address before: 518000 Guangdong city of Shenzhen province Nanshan District high tech Industrial Park South high SSMEC building two floor Patentee before: SHENZHEN STATE MICRO TECHNOLOGY Co.,Ltd. |
|
CP03 | Change of name, title or address | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170829 |
|
CF01 | Termination of patent right due to non-payment of annual fee |