Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for generating bhd files based on directshow

A file and source file technology, which is applied in the field of video playback, can solve problems such as the inability to generate BHD files, achieve the effects of wide audio or video encoding formats, fast generation speed, and improved user experience

Active Publication Date: 2019-04-26
BEIJING BAOFENG TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the present invention provides a method and system for generating BHD files based on DirectShow, which solves the problem that BHD files cannot be generated based on DirectShow in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for generating bhd files based on directshow
  • Method and system for generating bhd files based on directshow
  • Method and system for generating bhd files based on directshow

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] like figure 2 As shown, it is a schematic flowchart of an optional embodiment of the method for generating a BHD file based on DirectShow according to the present invention. The invention can generate BHD files based on DirectShow, and supports audio or video code conversion in various formats to generate BHD files. The method for generating the BHD file based on DirectShow in the present embodiment comprises the following steps:

[0059] Step 201, receiving a request to generate a BHD file based on DirectShow, and parsing the source file information therefrom; wherein, the BHD file includes: a file header and a data area, and the file header includes: decoder information in BHD format .

[0060] Step 202. Create a source file filter (Filter) according to the source file information and load source file data. For example, when the source file is in mkv format, create an mkv separator as the source file Filter.

[0061] Filter, also known as "filter", is an independe...

Embodiment 2

[0070] like image 3 As shown, it is a schematic flowchart of an alternative embodiment of the method for generating a BHD file based on DirectShow described in Embodiment 2 of the present invention. On the basis of Embodiment 1, this embodiment describes the specific content of the file header and data area of ​​the BHD file generated based on DirectShow. The steps of the method for generating a BHD file based on DirectShow described in this embodiment are as follows:

[0071] Step 301: Receive a request to generate a BHD file based on DirectShow, and parse out source file information from it.

[0072] Step 302: Create a source file filter according to the source file information and load source file data.

[0073] Step 303: Create a BHD file transcoding filter according to the source file filter, and form at least one link corresponding to the transmission functional unit of the source file filter and the transmission functional unit of the BHD file transcoding filter.

...

Embodiment 3

[0082] like Figure 4 As shown, it is a schematic structural diagram of a system for generating BHD files based on DirectShow according to the present invention. The system for generating a BHD file based on DirectShow in this embodiment is used to implement the method for generating a BHD file based on DirectShow in the above embodiment, and the system includes: a receiving module 401, a loading module 402, a linking module 403, a converting module 404 and a generating module 405 .

[0083] Wherein, the receiving module 401 is coupled with the loading module 402, and is used to receive a request for generating a BHD file based on DirectShow, and parse out source file information therefrom; wherein, the BHD file includes: a file header and a data area , and the file header includes: decoder information in BHD format;

[0084] The loading module 402 is coupled to the receiving module 401 and the linking module 403, and is used to create a source file filter and load the sourc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for generating a BHD file based on DirectShow. The method comprises the following steps: receiving a request of generating the BHD file based on the DirectShow, resolving source file information from the request, creating a source file filter, and loading source file data; creating a BHD muxer filter, and making pins of the source file filter correspond to pins of the BHD muxer filter to form a link; acquiring media type parameters for linking from the link, and converting the media type parameters for linking into decoder information in a BHD format; transmitting audio and video data of the source file data to the BHD muxer filter through the link, and converting the audio and video data into media data in the BHD format; creating the BHD file according to the decoder information in the BHD format and the source file information; and acquiring the media data in the BHD format, and writing the acquired media data into a data area of the BHD file. Through adoption of the method, the BHD file can be generated on the basis of the DirectShow.

Description

technical field [0001] The present invention relates to the technical field of video playing, and more specifically, relates to a method and system for generating BHD files based on DirectShow. Background technique [0002] BHD file (that is, a file in BHD format) is a media file format unique to Baofeng Video Player. Its file extension is .bhd, which is aimed at video quality, video size, video frame number, bit rate, mobile phone Optimized for power saving, etc., a data format specially developed for Baofeng video player to play. like figure 1 As shown, it is the basic structure of the BHD file, including: the file header 101 and the data area 102 are composed of two parts. Among them, the file header 101 contains the basic information 111 of the file (such as file playback time, number of tracks, etc.), track information 112 (each track corresponds to a track information, and a file contains one or more tracks), index information 113, etc. . The track information 112 ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N21/4402
CPCH04N21/440218
Inventor 吴超朱春明朱彦东张鹏宇
Owner BEIJING BAOFENG TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products