Movatterモバイル変換


[0]ホーム

URL:


CN105142015A - Method of sharing and playing BHD file based on DLNA - Google Patents

Method of sharing and playing BHD file based on DLNA
Download PDF

Info

Publication number
CN105142015A
CN105142015ACN201510601745.8ACN201510601745ACN105142015ACN 105142015 ACN105142015 ACN 105142015ACN 201510601745 ACN201510601745 ACN 201510601745ACN 105142015 ACN105142015 ACN 105142015A
Authority
CN
China
Prior art keywords
file
bhd
dlna
server
video data
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
CN201510601745.8A
Other languages
Chinese (zh)
Other versions
CN105142015B (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.)
BEIJING BAOFENG TECHNOLOGY Co Ltd
Original Assignee
BEIJING BAOFENG 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 BEIJING BAOFENG TECHNOLOGY Co LtdfiledCriticalBEIJING BAOFENG TECHNOLOGY Co Ltd
Priority to CN201510601745.8ApriorityCriticalpatent/CN105142015B/en
Publication of CN105142015ApublicationCriticalpatent/CN105142015A/en
Application grantedgrantedCritical
Publication of CN105142015BpublicationCriticalpatent/CN105142015B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The application discloses a method of sharing and playing a BHD file based on DLNA. The method comprises the steps of using a DLNA server to establish connection with a DLNA client, wherein the DLNA server comprises a HTTP server; using the DLNA server to notice the DLNA client to open and play a video, wherein the address of the video is a URL of an HTTP protocol, and the URL contains an IP port of the HTTP server and the address information of the BHD file; after the DLNA client receives the notice, using a player of the DLNA client to send out a BHD file request to the HTTP server, after the HTTP server receives the request, finding the corresponding BHD file; using a format conversion module in the HTTP server to read and analyze the BHD file; using the format conversion module to convert the BHD file into a MP4 file, and generating an offset relation of the MP4 format file header and a video data area in a memory; using the HTTP server to send the MP4 format file header and the video data area to the player of the DLNA client; after the player of the DLNA client receives the MP4 format file header and the video data area, playing the video. According to the application, a general player can play the BHD file.

Description

A kind of method sharing broadcasting BHD file based on DLNA
Technical field
The present invention relates to video playback field, specifically, relate to a kind of method sharing broadcasting BHD file based on DLNA.
Background technology
DLNA is a kind of general Network Control Protocol.Be intended to settlement computer and other electronic products, interconnecting by wireless or cable network such as between mobile phone, flat board, photo, video, music can be shared in above equipment, on the mobile devices such as mobile phone, by ordinary playing device software, play-over local video file.Ordinary playing device is can this general media file format of normal play MP4 file, and its file extent is called .mp4.And BHD file a kind of media file format that to be MPC player exclusive, its file extent is called .bhd, and ordinary playing device (except MPC most player, the especially mobile device such as mobile phone) can not normal play.Ordinary playing device can not support BHD formatted file, but can play MP4 formatted file, and supports http protocol, if be MP4 file by BHD file transcoding, then needs to take a large amount of time and disk storage space.
Summary of the invention
Technical problem to be solved by this invention realizes playing BHD file by ordinary playing device.
For solving the problems of the technologies described above, the invention provides a kind of method sharing broadcasting BHD file based on DLNA, comprising step:
DLNA server and DLNA client connect, and wherein said DLNA server comprises http server;
DLNA server notice DLNA client is opened and displaying video, and the address of described video is the URL of http protocol, the IP port containing http server in URL and BHD file address information;
After DLNA client is notified, the player of DLNA client sends BHD file request to http server,
After http server receives request, find corresponding BHD file;
Format converting module in http server reads and resolves described BHD file;
Described BHD file transform is MP4 file by described format converting module, generates MP4 formatted file head and video data district offset relationship in internal memory;
Http server sends MP4 formatted file head and video data district to the player of DLNA client;
After the player of DLNA client receives MP4 formatted file head and video data district, displaying video.
Preferably, described BHD file transform is MP4 file by described format converting module, generates MP4 formatted file head and video data district offset relationship, be further in internal memory,
Described format converting module reads BHD file header, resolves one-level index, finds the position of each secondary index;
Whether described format converting module reads and resolves each secondary index, obtain the document location of each frame frequency data, size of data, timestamp and be key frame information;
According to document location, size of data, the timestamp of every one-frame video data with whether be key frame information, according to the form of MP4 file header, composition MP4 file header;
The video data district of BHD file, directly as the video data district of MP4 file.
Preferably, described BHD file, is further,
The index of described BHD file is made up of one-level index and secondary index, containing one-level index in BHD file header, the content of one-level index is each secondary index positional information hereof, the secondary index of BHD file is distributed in video data district, and whether the content of each secondary index is document location, size of data, the timestamp of concrete every one-frame video data of its correspondence and is key frame information.
Preferably, described MP4 file, is further,
The index of MP4 file, only has one-level index, and in MP4 file header, whether its one-level index contains document location, size of data, the timestamp of all video datas in file and be key frame information.
Preferably, described DLNA client, further, is made up of separately DLNA renderer.
Preferably, described DLNA server, further, is made up of DLNA data server and DLNA controller.
Compared with prior art, the method sharing broadcasting BHD file based on DLNA of the present invention, reaches following effect:
1) the application is by DLNA agreement and http server, is converted to MP4 file, achieves the broadcasting of ordinary playing device to BHD file by virtual for BHD file;
2) BHD file and the difference of MP4 file are that file header form is different, but video data district is the same.According to BHD file generated MP4 file header, video data need not be changed, and this process operand is minimum additionally need not take disk storage space;
3) ordinary playing device is to server request BHD file, but actual what receive is MP4 file.Realize playing possibility;
4) use DLNA agreement, its concrete control flow is all completed by DLNA server and DLNA client inside.User only needs to specify BHD file to be played, need not complex operations, and simplify the operation flow process.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 shares based on DLNA the method flow diagram playing BHD file;
Fig. 2 is BHD file transform is MP4 document flowchart.
Embodiment
As employed some vocabulary to censure specific components in the middle of specification and claim.Those skilled in the art should understand, and hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of title the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " as mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.In addition, " couple " word and comprise directly any and indirectly electric property coupling means at this.Therefore, if describe a first device in literary composition to be coupled to one second device, then represent described first device and directly can be electrically coupled to described second device, or be indirectly electrically coupled to described second device by other devices or the means that couple.Specification subsequent descriptions is for implementing better embodiment of the present invention, and right described description is to illustrate for the purpose of rule of the present invention, and is not used to limit scope of the present invention.Protection scope of the present invention is when being as the criterion depending on the claims person of defining.
Below in conjunction with accompanying drawing, the present invention is described in further detail, but not as a limitation of the invention.
Embodiment 1:
Composition graphs 1, present embodiments provides a kind of method sharing broadcasting BHD file based on DLNA, comprises step:
Step 101:DLNA server and DLNA client connect, and wherein said DLNA server comprises http server;
DLNA comprises data server, controller, renderer three part, and in the application, DLNA data server and DLNA controller form service end jointly, is DLNA server.DLNA renderer forms client separately, is DLNA client.
Step 102:DLNA server notice DLNA client is opened and displaying video, and the address of described video is the URL of http protocol, the IP port containing http server in URL and BHD file address information;
After step 103:DLNA client is notified, the player of DLNA client sends BHD file request to http server;
After step 104:HTTP server receives request, find corresponding BHD file;
Format converting module in step 105:HTTP server reads and resolves described BHD file;
Step 106: described BHD file transform is MP4 file by described format converting module, generates MP4 formatted file head and video data district offset relationship in internal memory;
Described BHD file, be further, the index of described BHD file is made up of one-level index and secondary index, containing one-level index in BHD file header, the content of one-level index is each secondary index positional information hereof, the secondary index of BHD file is distributed in video data district, and whether the content of each secondary index is document location, size of data, the timestamp of concrete every one-frame video data of its correspondence and is key frame information.
Described MP4 file, is further, and the index of MP4 file only has one-level index, and in MP4 file header, whether its one-level index contains document location, size of data, the timestamp of all video datas in file and be key frame information.
As shown in Figure 2, method BHD file format being converted to MP4 file format is as follows:
Described format converting module reads BHD file header, resolves one-level index, finds the position of each secondary index;
Whether described format converting module reads and resolves each secondary index, obtain the document location of each frame frequency data, size of data, timestamp and be key frame information;
According to document location, size of data, the timestamp of every one-frame video data with whether be key frame information, according to the form of MP4 file header, composition MP4 file header;
The video data district of BHD file, directly as the video data district of MP4 file.
BHD file and the difference of MP4 file are that file header form is different.But video data district is the same.Therefore, can according to BHD file, generate MP4 file header, video data need not be changed, and this process operand is minimum.
Step 107:HTTP server sends MP4 formatted file head and video data district to the player of DLNA client;
After the player of step 108:DLNA client receives MP4 formatted file head and video data district, displaying video.Displaying video adopts prior art, is not specifically limited here.
Embodiment 2:
On the basis of embodiment 1, the present embodiment is Application Example.
Scene: certain user has film " terminator 5.bhd " on its PC, ites is desirable to watch this film on its handset.(http server address is wherein 192.168.0.1 to the DLNA server its PC being provided with in the application, port numbers 8812), its mobile phone is provided with DLNA client (as KXCast software, a kind of general DLNA client player).Concrete steps are as follows:
Step 201: user opens the DLNA server on PC and the DLNA client on mobile phone.
DLNA client in step 201.1:DLNA server automatic-search current local area network, and show DLNA client (simultaneously there are other DLNA clients in possible network, mobile phone, intelligent television etc. as other people) used.
Step 201.2: user selects the DLNA client on the mobile phone of oneself on DLNA server.
Step 202: user selects to play local film " terminator 5.bhd " on DLNA server.
Step 202.1:DLNA server sends " opening " instruction, containing, for example lower URL in its instruction to DLNA client:http: // 192.168.0.1:8812/ terminator 5.bhd.DLNA client returns acknowledge message.
Step 202.2:DLNA server sends " broadcasting " instruction to DLNA client.DLNA client returns acknowledge message.
Step 203:DLNA client is that the http server (http server namely in DLNA server) of " 192.168.0.1:8812 " sends HTTP request to address, and containing URI in its HTTP request agreement is " terminator 5.bhd ".
After step 204:HTTP server receives request, analysis request agreement, learns that requested file is for " terminator 5.bhd ".
Step 205:HTTP server judges that file type is BHD file, automatically loads " format converting module ", and is read by " format converting module " and resolved " terminator 5.bhd ";
Step 206: " terminator 5.bhd " is converted to MP4 file by format converting module, detailed process is as follows:
" terminator 5.bhd " file structure is file header (size 12836 byte) data field (size 1822863276 byte)
Step 206.1: format converting module reads and resolves " terminator 5.bhd " file header, from in the one-level index file header, obtain the information (if the 10th secondary index position is hereof 20480042 bytes, size is 3028 bytes) such as all secondary indexs position hereof, size;
Step 206.2: format converting module reads successively and resolves all secondary indexs, obtain the document location of every one-frame video data, size of data, timestamp and whether be that key frame information is (as the 1047th frame, position is 32007870 bytes, size 4037 byte, timestamp 40228 milliseconds, non-key frame);
Step 206.3: according to document location, size of data, the timestamp of every one-frame video data with whether be key frame information, according to the form of MP4 file header, composition MP4 file header (size 2044576 byte).Because MP4 file is larger than former BHD file header, all video datas all create identical skew in file position, MP4 file video data district, all modify with this and increase identical skew (as the 1047th frame in the position of the every frame video data recorded in MP4 file header, after amendment, position is 32007870+2044576-12836 byte, other Information invariabilities);
The video data district of step 206.4:BHD file, directly as the video data district (size is still 1822863276 bytes) of MP4 file.
Step 207:HTTP server returns http response to DLNA client, containing, for example lower content in its response protocol:
Data type is MP4 video format (Contenttype:video/mp4).
Data length is the file size of the MP4 file after conversion.
Data are the MP4 file (MP4 file header obtains from the internal memory of format converting module, and video data district reads according to side-play amount in former " terminator 5.bhd " file) after conversion.
After the player of step 208:DLNA client receives MP4 formatted file head and video data district, start displaying video.
Compared with prior art, the method sharing broadcasting BHD file based on DLNA of the present invention, reaches following effect:
1) the application is by DLNA agreement and http server, is converted to MP4 file, achieves the broadcasting of ordinary playing device to BHD file by virtual for BHD file;
2) BHD file and the difference of MP4 file are that file header form is different, but video data district is the same.According to BHD file generated MP4 file header, video data need not be changed, and this process operand is minimum additionally need not take disk storage space;
3) ordinary playing device is to server request BHD file, but actual what receive is MP4 file.Realize playing possibility;
4) use DLNA agreement, its concrete control flow is all completed by DLNA server and DLNA client inside.User only needs to specify BHD file to be played, need not complex operations, and simplify the operation flow process.
Above-mentioned explanation illustrate and describes some preferred embodiments of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection range of claims of the present invention.

Claims (6)

CN201510601745.8A2015-09-192015-09-19A method of based on the shared broadcasting BHD files of DLNAActiveCN105142015B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510601745.8ACN105142015B (en)2015-09-192015-09-19A method of based on the shared broadcasting BHD files of DLNA

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510601745.8ACN105142015B (en)2015-09-192015-09-19A method of based on the shared broadcasting BHD files of DLNA

Publications (2)

Publication NumberPublication Date
CN105142015Atrue CN105142015A (en)2015-12-09
CN105142015B CN105142015B (en)2018-10-09

Family

ID=54727200

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510601745.8AActiveCN105142015B (en)2015-09-192015-09-19A method of based on the shared broadcasting BHD files of DLNA

Country Status (1)

CountryLink
CN (1)CN105142015B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106060604A (en)*2016-06-282016-10-26暴风集团股份有限公司Method and system for realizing digital rights management play based on BHD file
CN106331795A (en)*2016-08-112017-01-11乐视控股(北京)有限公司Data preview method, data preview system, server and preview device
CN119788902A (en)*2025-03-102025-04-08宜创富科技(深圳)有限公司 A TV screen sharing collaborative control method, terminal device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5487073A (en)*1991-10-081996-01-23Bull S.A.Test system for a very high-speed ring network and an operating procedure for the system
CN1523590A (en)*2003-02-212004-08-25上海乐金广电电子有限公司Optical pickup device being compatible with different recording medium
US20090192086A1 (en)*2002-05-312009-07-30The Government Of The United States Of America, As Represented By The Secretary,Identification of a novel bhd gene
CN101867568A (en)*2009-04-202010-10-20索尼公司Network server, media format conversion method and media format conversion system
CN102625193A (en)*2011-01-272012-08-01郑州威科姆科技股份有限公司A method of realizing multimedia file network playing by virtue of auxiliary files
CN102804686A (en)*2010-03-162012-11-28三星电子株式会社Content output system and codec information sharing method in same system
CN103686202A (en)*2012-09-182014-03-26中兴通讯股份有限公司Real-time transcoding transmitting method and system based on HTTP (Hyper Text Transport Protocol) under DLNA (Digital Living Network Alliance)
CN103942254A (en)*2014-03-182014-07-23电子科技大学Pirated video resource discovery method oriented to network disk share service

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5487073A (en)*1991-10-081996-01-23Bull S.A.Test system for a very high-speed ring network and an operating procedure for the system
US20090192086A1 (en)*2002-05-312009-07-30The Government Of The United States Of America, As Represented By The Secretary,Identification of a novel bhd gene
CN1523590A (en)*2003-02-212004-08-25上海乐金广电电子有限公司Optical pickup device being compatible with different recording medium
CN101867568A (en)*2009-04-202010-10-20索尼公司Network server, media format conversion method and media format conversion system
CN102804686A (en)*2010-03-162012-11-28三星电子株式会社Content output system and codec information sharing method in same system
CN102625193A (en)*2011-01-272012-08-01郑州威科姆科技股份有限公司A method of realizing multimedia file network playing by virtue of auxiliary files
CN103686202A (en)*2012-09-182014-03-26中兴通讯股份有限公司Real-time transcoding transmitting method and system based on HTTP (Hyper Text Transport Protocol) under DLNA (Digital Living Network Alliance)
CN103942254A (en)*2014-03-182014-07-23电子科技大学Pirated video resource discovery method oriented to network disk share service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
VAN DANG KHOA MAU. ET AL: "Using DLNA cloud for sharing multimedia contents beyond home networks", 《ADVANCED COMMUNICATION TECHNOLOGY (ICACT), 2014 16TH INTERNATIONAL CONFERENCE》*

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106060604A (en)*2016-06-282016-10-26暴风集团股份有限公司Method and system for realizing digital rights management play based on BHD file
CN106331795A (en)*2016-08-112017-01-11乐视控股(北京)有限公司Data preview method, data preview system, server and preview device
CN119788902A (en)*2025-03-102025-04-08宜创富科技(深圳)有限公司 A TV screen sharing collaborative control method, terminal device and storage medium

Also Published As

Publication numberPublication date
CN105142015B (en)2018-10-09

Similar Documents

PublicationPublication DateTitle
CN106454472B (en)Multi-screen interaction method and system
US20140253803A1 (en)Method, Apparatus, and System for Displaying Interactive Message
US7574514B2 (en)Systems and methods for identifying original streams of media content
US7830821B2 (en)Method of connecting and sharing resources of network terminal devices of two private networks via user agents
CN104918105B (en)More screen playing methods, equipment and the system of media file
CN110446114B (en) Multimedia data processing device, method, electronic device and storage medium
US10972581B2 (en)Media processing method and device
WO2015054604A1 (en)Framework for screen content sharing system with generalized screen descriptions
EP2723112A1 (en)Rights control method and apparatus for digital living network alliance
EP3001636B1 (en)Method and device for switching media playing device
CN102460414B (en)Method and apparatus for providing a remote user interface
CN105142015A (en)Method of sharing and playing BHD file based on DLNA
US20130054759A1 (en)Electronic apparatus and method for transferring contents on cloud system to device connected to dlna
EP2605586A1 (en)Stream media channel switch method, switch agent, client and terminal
CN102110133B (en)Use the system and method for universal plug and play display document content
CN103078851A (en)Message receiving and transmitting method, message interaction system and DLNA (Digital Living Network Alliance) equipment
CN103297666B (en)The method, apparatus and system of video monitoring are realized based on universal plug and play
JP2010239456A (en)Content list transfer system and content list transfer method
CN104506896B (en)The operation processing method and device of smart television
Rico et al.A semantically enhanced UPnP control point for sharing multimedia content
JP5224387B2 (en) Content sharing system, content control apparatus, content sharing method, and content sharing program
CN105187905A (en)Method for simultaneously downloading and playing P2P video based on DLNA
WO2014176970A1 (en)Data synchronization method and digital media server
EP2259591A2 (en)Data receiving method and device for applications providing an iptv communications service
Caron et al.A transcoding server for the home domain

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:100191 Beijing, Xueyuan Road No. 51, the first to enjoy the science and technology building, floor 6,

Applicant after:Storm group Limited by Share Ltd

Address before:100191 Beijing, Xueyuan Road No. 51, the first to enjoy the science and technology building, floor 6,

Applicant before:Beijing Baofeng Technology Co., Ltd.

CORChange of bibliographic data
GR01Patent grant
GR01Patent grant
PP01Preservation of patent right
PP01Preservation of patent right

Effective date of registration:20190705

Granted publication date:20181009


[8]ページ先頭

©2009-2025 Movatter.jp