CN103648021A - Method for playing network video files from USB storage device - Google Patents

Method for playing network video files from USB storage device Download PDF

Info

Publication number
CN103648021A
CN103648021A CN201310720594.9A CN201310720594A CN103648021A CN 103648021 A CN103648021 A CN 103648021A CN 201310720594 A CN201310720594 A CN 201310720594A CN 103648021 A CN103648021 A CN 103648021A
Authority
CN
China
Prior art keywords
video file
network video
memory device
usb memory
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310720594.9A
Other languages
Chinese (zh)
Other versions
CN103648021B (en
Inventor
陈金强
徐浩
李小东
余胜锡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guowei Group Shenzhen Co ltd
Original Assignee
Shenzhen State Micro Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen State Micro Technology Co Ltd filed Critical Shenzhen State Micro Technology Co Ltd
Priority to CN201310720594.9A priority Critical patent/CN103648021B/en
Publication of CN103648021A publication Critical patent/CN103648021A/en
Application granted granted Critical
Publication of CN103648021B publication Critical patent/CN103648021B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a method for playing network video files from a USB storage device. The method comprises the steps: node information of the network video files in storage space of the USB storage device is created, wherein the node information consists of relevant information files provided with the virtual video files and records and used for obtaining the network video files; a host computer plays the virtual video files in the USB storage device, the USB storage device returns cache data with preset playing lengths and stored in a real file data area to the host computer according to a host computer request and stores remaining video contents of the network video files obtained from a server into a cache according to the relevant information files of the virtual video files, and data blocks in the cache responds to the host computer request to finish playing of the network video files. The method is simple, brings convenience to a user and is especially suitable for playing of video files though intelligent terminals.

Description

Method from USB memory device playing network video file
Technical field
The present invention relates to the audio video transmission technology of Digital Television, especially relate to a kind of method from USB memory device playing network video file.
Background technology
Along with the development of TV tech and popularizing of television network broadcast, digital TV set-top box and all-in-one have entered into huge numbers of families, become one of necessity of people's life.
Existing digital TV set-top box and digital television all-in-one all provide plays the upper video file function of USB memory device (such as USB flash disk, USB interface-based portable hard drive etc.).Therefore, user needs the mode of first downloading by network, video file is downloaded to the computer USB flash disk of restoring from the Internet, or from the memory devices such as CD, hard disc of computer, video file is copied on USB flash disk, again USB flash disk is plugged on to the USB interface of digital TV set-top box and digital television all-in-one, plays the video file in USB flash disk.
There is following defect in prior art:
1, need to before broadcasting, in advance video file to be played be stored on the USB memory devices such as USB flash disk to complex operation and wasting time and energy.
2, the most storage capacity requirement of existing video file is larger, although the capacity of existing USB memory device is also larger, but still needs often to change the video file in USB memory device.
Summary of the invention
The present invention proposes a kind of method from USB memory device playing network video file, do not need to store whole playing video file, only need the nodal information of store video files, thereby solve current video file, before broadcasting, need to be kept in advance the technical problem that USB memory device causes complex operation and wastes time and energy.
The present invention adopts following technical scheme to realize: a kind of method from USB memory device playing network video file, and it comprises step:
At the memory space of USB memory device, create the nodal information of network video file, nodal information is comprised of for obtaining the relevant information file of the server info of network video file virtual video file and record;
USB memory device obtains the video content of the default playout length of network video file beginning from server, this video content is as the data cached authentic document data field that is kept at USB memory device of virtual video file;
When main frame carries out play operation to the virtual video file on USB memory device, USB memory device first data cachedly returns to described main frame by described host request by described, then according to the relevant information file of described virtual video file, from described server, obtain the remaining video content of network video file and deposit buffer memory in the mode of data block, with the request of the data block response main frame in buffer memory, completing the broadcasting of network video file.
Wherein, the step that creates the nodal information of network video file at the memory space of USB memory device comprises:
According to input parameter, to the server at network video file place, send read operation, the video content that obtains size information and the default playout length of network video file beginning of network video file, this input parameter comprises the IP address of video server, the filename of network video file and default playout length;
According to the document size information of network video file, USB memory device creates virtual video file, data cached using the video content of the default playout length of network video file beginning as virtual video file, and be the logical block number of virtual file data field in the remaining video content assignment USB memory device of network video file;
Create the relevant information file of the broadcasting site for service information of network video file.
Wherein, described relevant information file comprises the filename of network video file and for obtaining the server ip address information of network video file.
Wherein, buffer memory be obtained and be deposited in to data corresponding to the logical block number of described virtual file data field need from described server by USB memory device.
Wherein, the storage size corresponding to video content of the default playout length of described net network video file beginning, is the integral multiple of data block size in the file system of USB memory device.
Wherein, described main frame is digital TV set-top box or digital television all-in-one.
Compared with prior art, the present invention has following beneficial effect:
The present invention only needs the nodal information of storage networking video file, when main frame playing network video file, USB memory device is play the data cached of the default playout length video content of map network video file beginning to user on the one hand, the remaining video file obtaining from server is on the other hand play for main frame, thereby facilitates user.Implementation method of the present invention is comparatively simple, is particluarly suitable for the broadcasting that the intelligent terminals such as current smart mobile phone, IPAD are realized network video file.
Accompanying drawing explanation
Fig. 1 is system configuration schematic diagram of the present invention;
Fig. 2 is the structural representation of FAT32 formatted file system in USB memory device;
Fig. 3 is the schematic flow sheet of a preferred embodiment of the invention;
Fig. 4 is the logical data exchange schematic diagram of each several part in Fig. 1.
Embodiment
The present invention need to not store complete network video file in advance before broadcasting on USB memory device, only need the nodal information of storage networking video file, when main frame playing video file USB memory device just obtains corresponding network video file from server, for main frame, play, thereby facilitate user.
As shown in Figure 1, it is main frame that the playing device of video file playback process in the support USB memory devices such as digital TV set-top box or digital television all-in-one is take in the present invention, this main frame is connected with USB memory device by USB interface, realizes the playing function of playing network video file on USB memory device.Main frame is supported the driving of USB master controller, the driving of USB mass storage device class, file system intermediate layer, player function etc.And USB memory device must support USB device driving, USB mass storage device class command analysis, block device to monitor the functions such as driving, network interface card driving, procotol (such as ICP/IP protocol), data buffering processing.
For the ease of understanding the present invention, the file system of USB memory device is slightly described.As shown in Figure 2, the file layout for FAT32 form in piece memory device is by guidance field, FAT district, catalogue data district, authentic document data field, virtual file data field.Some partition informations are deposited in guidance field.Each catalogue of FAT district or file take logical block space situation, each record and logical block corresponding relation in FAT district, and recording the next logical block positional information of content representation or current logical block is last logical block.Catalogue data district storing directory information, authentic document region storing documents content; Catalogue data district, authentic document data field may be incorporated in a region.Virtual file data field only has the numbering of logical block, and real space does not exist.The scope that the scope of the logical block number of virtual file data field is monitored by block device.Because subregion is had to certain specific (special) requirements, so need special partitioning tool.
As shown in Figure 3, a preferred embodiment of the present invention comprises following performing step:
Step S1, at the memory space of USB memory device, create the nodal information of network video file, can realize or directly by smart machine application program, be realized by computer applied algorithm.
Such as, user logins video website websites such as (as:) happy view, strange skill net, Sina's videos or oneself builds video website, according to the nodal information of the information creating video file of film.
For example: on the video server of depositing at video file, deposit one of them video file name and be called test.ts.
The nodal information of network video file is comprised of virtual video file and relevant information file, has recorded the information such as address of filename and the place server of network video file in relevant information file.Virtual video file offers when main frame is play and uses, and the relevant information file that comprises the information such as broadcasting site for service is for USB memory device.
By computer applied algorithm realize or directly by smart machine application program when the memory space of USB memory device creates the nodal information of network video file, the video content of the IP address of computer or smart machine input network video file place server, the filename test.ts of network video file, the default playout length PL of network video file beginning, to network video file place server, initiate read operation, obtain total playout length information N of network video file and the video content of the default playout length PL of network video file beginning; Then, according to total playout length information N of network video file, create the virtual video file of test.ts by name, the slow data of the beginning playout length PL of this virtual video file are the video content of the default playout length PL of network video file beginning obtaining from server, and this video content authentic document data area stores, and the logical block number that the remaining video content of the residue playout length N-PL of network video file is only distributed virtual file data field; And creating the file test_info of the broadcasting site for service relevant information of video file, file test_info is for depositing the information such as IP address of filename and the server of network video file.
Shown in Fig. 4, step S2 ~ step S4 realizes main frame and plays the virtual video file test.ts on USB memory device.
Step S2, main frame are play the virtual video file test.ts on USB memory device.
Block device supervision driving task on USB memory device knows that main frame need to read virtual video file test.ts at once, first the data cached of playout length PL in authentic document data field is returned to main frame by host request.
Step S3, USB memory device find the relevant information file test_info of the playback website of network video file according to virtual video file test.ts, from relevant information file test_info, obtain the IP address of server and the filename of network video file, using the filename of server ip address and network video file as parameter, start immediately Network Data Capture task; Obtaining the remaining video content of this network video file from network and depositing the buffer area of USB memory device in.
The block device of step S4, USB memory device monitors to drive and continues the data block request that monitors that main frame sends, when finding the data of logical block of host request virtual file data field, and the request of taking out correct data block response main frame from buffer area; Block device monitors driving task and the work of Network Data Capture task coordinate, and whole video file finishes playing always.
Therefore, between main frame and USB memory device, logic is exactly that main frame is constantly asked the data of logical block size to USB memory device alternately, and USB memory device responds corresponding data on request.Block device monitors that driving the address of differentiation host request logical block is authentic document data field or virtual file data field; If authentic document data field, directly from authentic document data field user-data-answer main frame; If virtual file data field, USB memory device is from buffer area user-data-answer main frame as required, and the data of buffer area are downloaded and obtained from network video file place server with Network Data Capture task by USB memory device.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (6)

1. from a method for USB memory device playing network video file, it is characterized in that, comprise step:
At the memory space of USB memory device, create the nodal information of network video file, nodal information is comprised of for obtaining the relevant information file of the server info of network video file virtual video file and record;
USB memory device obtains the video content of the default playout length of network video file beginning from server, this video content is as the data cached authentic document data field that is kept at USB memory device of virtual video file;
When main frame carries out play operation to the virtual video file on USB memory device, USB memory device first data cachedly returns to described main frame by described host request by described, then according to the relevant information file of described virtual video file, from described server, obtain the remaining video content of network video file and deposit buffer memory in the mode of data block, with the request of the data block response main frame in buffer memory, completing the broadcasting of network video file.
2. according to claim 1 from the method for USB memory device playing network video file, it is characterized in that, the step that creates the nodal information of network video file at the memory space of USB memory device comprises:
According to input parameter, to the server at network video file place, send read operation, the video content that obtains size information and the default playout length of network video file beginning of network video file, this input parameter comprises the IP address of video server, the filename of network video file and default playout length;
According to the document size information of network video file, USB memory device creates virtual video file, data cached using the video content of the default playout length of network video file beginning as virtual video file, and be the logical block number of virtual file data field in the remaining video content assignment USB memory device of network video file;
Create the relevant information file of the broadcasting site for service information of network video file.
3. according to claim 2 from the method for USB memory device playing network video file, it is characterized in that, described relevant information file comprises the filename of network video file and for obtaining the server ip address information of network video file.
4. according to claim 2 from the method for USB memory device playing network video file, it is characterized in that, buffer memory be obtained and be deposited in to the data corresponding to logical block number of described virtual file data field need from described server by USB memory device.
5. according to claim 2 from the method for USB memory device playing network video file, it is characterized in that, the storage size corresponding to video content of the default playout length of described net network video file beginning is the integral multiple of data block size in the file system of USB memory device.
6. according to claim 1 from the method for USB memory device playing network video file, it is characterized in that, described main frame is digital TV set-top box or digital television all-in-one.
CN201310720594.9A 2013-12-24 2013-12-24 The method that network video file is played from USB storage device Expired - Fee Related CN103648021B (en)

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 true CN103648021A (en) 2014-03-19
CN103648021B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872758A (en) * 2015-08-12 2016-08-17 乐视致新电子科技(天津)有限公司 Intelligent television channel operation and play method and corresponding device
CN106155945A (en) * 2015-04-28 2016-11-23 安富科技股份有限公司 Notification method of media source hot-plug real-time notification system of multimedia device
CN106937161A (en) * 2015-12-31 2017-07-07 深圳市美贝壳科技有限公司 The method that media file data in external storage is imported
CN107168666A (en) * 2017-04-21 2017-09-15 陈景雄 The system and method for USB interface-based audio video transmission and multi-screen mapping

Citations (7)

* Cited by examiner, † Cited by third party
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
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
CN102855909A (en) * 2012-08-29 2013-01-02 四三九九网络股份有限公司 Batch dynamic loading method for video titles
CN103383673A (en) * 2012-05-02 2013-11-06 宏碁股份有限公司 Universal serial bus USB network storage device, system and method
CN103442259A (en) * 2013-08-21 2013-12-11 杭州浦禾通信技术有限公司 Method and device for reconstructing media data

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
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 宏碁股份有限公司 Universal serial bus USB network storage device, system and method
CN102855909A (en) * 2012-08-29 2013-01-02 四三九九网络股份有限公司 Batch dynamic loading method for video titles
CN103442259A (en) * 2013-08-21 2013-12-11 杭州浦禾通信技术有限公司 Method and device for reconstructing media data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155945A (en) * 2015-04-28 2016-11-23 安富科技股份有限公司 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
CN107168666A (en) * 2017-04-21 2017-09-15 陈景雄 The system and method for USB interface-based audio video transmission and multi-screen mapping

Also Published As

Publication number Publication date
CN103648021B (en) 2017-08-29

Similar Documents

Publication Publication Date Title
US8737820B2 (en) Systems and methods for recording content within digital video
CN101226530B (en) Media system having synchronization with preemptive prioritization of synchronization order
CN102326178A (en) Method and apparatus for reproducing content through integrated channel management
CN109240607B (en) File reading method and device
CN103634616A (en) Cloud storage-based streaming media video-on-demand method and apparatus
CN103648021A (en) Method for playing network video files from USB storage device
CN103310001B (en) A kind of method and apparatus that list of videos is set
WO2008018311A1 (en) Data processing device, data processing method, and computer program
CN1835112B (en) Data capture apparatus and data capture method
CN105786539A (en) File downloading method and device
CN103220587A (en) Method and device for obtaining time shifting contents
AU2021202286A1 (en) Managing data
CN105824820A (en) Media file buffer memory method and device
CN102055629A (en) Home gateway equipment and method for sharing network resources through same
EP3780625A1 (en) Recorded data processing method and relevant device
CN109669623A (en) A kind of file management method, document management apparatus, electronic equipment and storage medium
CN103581243A (en) System and method for massive streaming media storage
CN102681883A (en) Resource calling method and system in media asset searching and browsing system
WO2016197867A1 (en) Data processing method and device applicable to computing device
CN104794156A (en) File sharing method and device
JP6375665B2 (en) VIDEO DATA MANAGEMENT DEVICE, VIDEO DATA MANAGEMENT METHOD, AND VIDEO DATA MANAGEMENT PROGRAM
US10430120B2 (en) Data object management method and data object management system
CN113127415A (en) Method, device, medium and electronic equipment for processing real-time stream file
CN105224561B (en) Cache storage method and device based on paging file
CN102272710A (en) Method and apparatus for creating files in a file system

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