Method and system for generating BHD file based on DirectShow

A file and source file technology, applied in the field of video playback, can solve the problem of not being able to generate BHD files, and achieve the effect of a wide range of audio or video encoding formats, fast generation speed, and easy expansion.
CN106060656AActive Publication Date: 2016-10-26BEIJING BAOFENG TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING BAOFENG TECH
Publication Date
2016-10-26

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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