• Home
Name Date Size #Lines LOC

..--

engine/12-May-2024-55,35243,014

images/12-May-2024-

interface/histreamer/12-May-2024-3516

tests/12-May-2024-9,5287,339

.gitattributesD12-May-2024631 1615

.gitignoreD12-May-2024415 2524

BUILD.gnD12-May-20243.1 KiB103101

CMakeLists.txtD12-May-2024994 3023

LICENSED12-May-20249.9 KiB177150

README.mdD12-May-20244.7 KiB7862

README_zh.mdD12-May-20244.4 KiB7561

bundle.jsonD12-May-20242.3 KiB6665

config.gniD12-May-20242.6 KiB5854

README.md

1# HiStreamer<a name="EN-US_TOPIC_0000001148809513"></a>
2
3- [HiStreamer<a name="EN-US_TOPIC_0000001148809513"></a>](#histreamer)
4  - [Introduction<a name="section1158716411637"></a>](#introduction)
5  - [Logical architecture<a name="section1158716411638"></a>](#logical-architecture)
6  - [List of plug-ins<a name="section1158716411639"></a>](#plugin-list)
7  - [Directory Structure<a name="section1158716411640"></a>](#directory-structure)
8  - [Repositories Involved<a name="section1158716411641"></a>](#repositories-involved)
9
10## Introduction<a name="section1158716411637"></a>
11
12HiStreamer is the foundation module of the multimedia subsystem. It provides a processing pipeline and plug-ins required by the media framework, such as the file source, codecs, muxer and demuxer, and audio and video data processor.
13
14## Logical architecture<a name="section1158716411638"></a>
15As a media engine, HiStreamer connects to player_framework (on a Standard device) or media_lite (on a Mini or Small device) and provides application apis externally. It is divided into three layers:
16- Application scenario Encapsulation layer: for example, HiPlayer and HiRecorder.
17- Pipeline framework layer: including Pipeline framework, each Filter node implementation.
18- Plug-in layer: includes plug-in framework, various plug-ins.
19
20![Logical architecture diagram](images/histreamer_architecture.png)
21
22## Plugin list<a name="section1158716411639"></a>
23The HiStreamer plug-in list is as follows:
24| The plug-in name   | path      |External dependencies | License  | function         | applicable scene |
25| --         | --          | --  | --       | --           | --          |
26| FFMPEG Adapter| plugins/ffmpeg_adapter | FFMPEG | LGPL etc. | Decapsulation: mp3, m4a, mp4, wav<br>Decode: mp3, aac |Small/Standard devices that support dynamic linking |
27| File Source | plugins/source/file_source | FileSystem | Apache | Reading file data | All the device |
28| Minimp3 Adapter | plugins/minimp3_adapter | minimp3 | CC0 | Decapsulation: mp3<br>decode : mp3 | All the device |
29| Minimp4 Demuxer | plugins/demuxer/minimp4_demuxer | minimp4 | CC0 | Decapsulation: m4a | All the device |
30| Aac Demuxer | plugins/demuxer/aac_demuxer | NA | Apache | Decapsulation: aac | All the device |
31| HDI Sink | plugins/hdi_adapter | Audio HDI | Apache | play music  | mini/small device|
32
33
34
35## Directory Structure<a name="section1158716411640"></a>
36
37The structure of the repository directory is as follows:
38
39```
40/foundation/multimedia/histreamer
41├── LICENSE                             # License file
42└── ohos.build                          # Build file
43/foundation/multimedia/histreamer      # HiStreamer media engine component business code
44├─LICENSE                              # The license file
45├─engine                               # The engine code
46│  ├─foundation                        # Basic tool classes, including OS adaptation
47│  ├─pipeline framework                # pipeline frame
48│  │  ├─core                           # pipeline core implementation
49│  │  ├─factory                        # filter factory
50│  │  └─filters                        # Several filter node implementations
51│  │      ├─codec                      # Codec node implementation
52│  │      ├─demux                      # Decapsulation node implementation
53│  │      ├─sink                       # Output node implementation
54│  │      └─source                     # Data source node implementation
55│  ├─player                            # Player package
56│  └─plugin                            # plug-in
57│     ├─common                         # The underlying type definitions on which the plug-in interface depends
58│     ├─core                           # Plug-in framework
59│     ├─interface                      # Plug-in interface
60│     └─plugins                        # Several plug-in implementations
61│         ├─minimp3_adapter            # minimp3 adapter
62│         ├─ffmpeg_adapter             # FFMPEG adaption (adaption into encapsulation and decapsulation, codec plug-in)
63│         ├─hdi_adapter                # HDI adapter (adapter to output plug-in)
64│         ├─demuxer                    # Unpack plugin
65│         ├─sink                       # Output plug-in
66│         └─source                     # Data source plug-in
67└─interface                            # Engine external interface
68```
69
70## Repositories Involved<a name="section1158716411641"></a>
71
72- [multimedia Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/multimedia.md)
73
74- [player_framework](https://gitee.com/openharmony/multimedia_player_framework)
75
76- [media_lite](https://gitee.com/openharmony/multimedia_media_lite)
77
78- **multimedia_histreamer**

README_zh.md

1# 媒体引擎组件<a name="ZH-CN_TOPIC_0000001148809513"></a>
2
3- [媒体引擎组件<a name="ZH-CN_TOPIC_0000001148809513"></a>](#媒体引擎组件)
4  - [简介<a name="section1158716411637"></a>](#简介)
5  - [逻辑架构<a name="section_histreamer_arch"></a>](#逻辑架构)
6  - [插件列表<a name="section_histreamer_plugins"></a>](#插件列表)
7  - [目录<a name="section161941989596"></a>](#目录)
8  - [相关仓<a name="section1533973044317"></a>](#相关仓)
9
10## 简介<a name="section1158716411637"></a>
11
12HiStreamer是一个轻量级的媒体引擎组件,提供播放、录制等场景的媒体数据流水线处理。
13- 播放场景分为如下几个节点:数据源读取、解封装、解码、输出;
14- 录制场景分为如下几个节点:数据源读取、编码、封装、输出。
15
16这些节点的具体功能,主要在插件中实现。可以插件的形式扩展支持新的数据源、封装格式、编解码格式、输出方式。
17
18## 逻辑架构<a name="section_histreamer_arch"></a>
19HiStreamer作为媒体引擎,向上对接player_framework(standard设备上)或者media_lite(mini/small设备上),再对外提供应用API。它内部分为三层:
20- 应用场景封装层: 比如HiPlayer, HiRecorder。
21- Pipeline框架层: 包括Pipeline框架,各个Filter节点实现。
22- 插件层: 包括插件框架,各种插件。
23
24![逻辑架构图](images/histreamer_architecture.png)
25
26## 插件列表<a name="section_histreamer_plugins"></a>
27HiStreamer插件列表如下:
28| 插件名称    | 路径        | 外部依赖 | License  |  功能        | 适用场景    |
29| --         | --          | --  | --       | --           | --          |
30| FFMPEG Adapter| plugins/ffmpeg_adapter | FFMPEG | LGPL etc. | 解封装:mp3,m4a,mp4,wav<br>解码:mp3,aac | 支持动态链接的<br>small/standard设备 |
31| File Source | plugins/source/file_source | FileSystem | Apache | 读取文件数据 | 所有设备 |
32| Minimp3 Adapter | plugins/minimp3_adapter | minimp3 | CC0 | 解封装: mp3<br>解码: mp3 | 所有设备 |
33| Minimp4 Demuxer | plugins/demuxer/minimp4_demuxer | minimp4 | CC0 | 解封装: m4a | 所有设备 |
34| Aac Demuxer | plugins/demuxer/aac_demuxer | NA | Apache | 解封装: aac | 所有设备 |
35| HDI Sink | plugins/hdi_adapter | Audio HDI | Apache | 播放音乐 | mini/small设备 |
36
37## 目录<a name="section161941989596"></a>
38
39仓目录结构如下:
40
41```
42/foundation/multimedia/histreamer      # HiStreamer媒体引擎组件业务代码
43├─LICENSE                              # 证书文件
44├─engine                               # 引擎代码
45│  ├─foundation                        # 基础工具类, 包括OS适配
46│  ├─pipeline                          # pipeline框架
47│  │  ├─core                           # pipeline核心实现
48│  │  ├─factory                        # filter工厂
49│  │  └─filters                        # 若干filter节点实现
50│  │      ├─codec                      # 编解码节点实现
51│  │      ├─demux                      # 解封装节点实现
52│  │      ├─sink                       # 输出节点实现
53│  │      └─source                     # 数据源节点实现
54│  ├─player                            # 播放器封装
55│  └─plugin                            # 插件
56│     ├─common                         # 插件接口依赖的基础类型定义
57│     ├─core                           # 插件框架
58│     ├─interface                      # 插件接口
59│     └─plugins                        # 若干插件实现
60│         ├─minimp3_adapter            # minimp3适配
61│         ├─ffmpeg_adapter             # FFMPEG适配(适配成封装解封装、编解码插件)
62│         ├─hdi_adapter                # HDI适配(适配成输出插件)
63│         ├─demuxer                    # 解封装插件
64│         ├─sink                       # 输出插件
65│         └─source                     # 数据源插件
66└─interface                            # 引擎对外接口
67```
68
69## 相关仓<a name="section1533973044317"></a>
70
71- [媒体子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E5%AA%92%E4%BD%93%E5%AD%90%E7%B3%BB%E7%BB%9F.md)
72
73- [player_framework](https://gitee.com/openharmony/multimedia_player_framework)
74
75- [media_lite](https://gitee.com/openharmony/multimedia_media_lite)