Skip to content

Commit

Permalink
Add the GStreamer demo
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-yue-yu committed Sep 13, 2023
1 parent 37e8360 commit 8e3d047
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/hardware/en/lichee/th1520/lpi4a/8_application.md
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,35 @@ kdenlive
The video editing view is as follows:
![kdenlive_use](./../../../../zh/lichee/th1520/lpi4a/assets/application/kdenlive_use.png)
## GStreamer
GStreamer is a pipeline-based multimedia framework based on GObject and written in C. It is designed to be used with a wide variety of applications and applications. With GStreamer, it is easy to create a wide range of multimedia-capable components, including simple audio playback, audio and video playback, recording, streaming and audio editing. Based on the pipelined design , you can create many multimedia applications such as video editors , streaming media broadcasting and media players and so on .
Next, a demo showing how to run GStreamer on LPi4A.
First, you need to install the relevant dependencies:
```shell
sudo apt install git build-essential libgstreamer* gstreamer1.0-tools
```
Then pull the relevant source code repository
```shell
git clone https://gitlab.freedesktop.org/gstreamer/gst-docs
```
Go to the `gst-docs/examples/tutorials` directory and compile, we'll get the `basic-tutorial-1` executable
```shell
cd gst-docs/examples/tutorials
gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0`
```
After successful compilation, an executable program will be generated in the current directory, use the following command to run
```shell
./basic-tutorial-1
```
![gstreamer_demo](./../../../../zh/lichee/th1520/lpi4a/assets/application/gstreamer_demo.png)
## Other
Contributions are welcome~ You can get ¥5~150 ($1~20) coupon if your contribution is accepted!
28 changes: 28 additions & 0 deletions docs/hardware/zh/lichee/th1520/lpi4a/8_application.md
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,34 @@ kdenlive
视频编辑效果如下:
![kdenlive_use](./assets/application/kdenlive_use.png)
## GStreamer
GStreamer 是一个基于管道的多媒体框架,基于 GObject,以 C 语言写成。凭借 GStreamer,可以很容易地创建各种多媒体功能组件,包括简单的音频回放、音频和视频播放、录音、流媒体和音频编辑。基于流水线设计,可以创建诸如视频编辑器、流媒体广播和媒体播放器等等的很多多媒体应用。
接下来,展示如何在 LPi4A 上运行 GStreamer 的 demo。
首先,需要安装相关的依赖:
```shell
sudo apt install git build-essential libgstreamer* gstreamer1.0-tools
```
然后拉取相关源码仓库
```shell
git clone https://gitlab.freedesktop.org/gstreamer/gst-docs
```
进入到 `gst-docs/examples/tutorials` 目录下,编译出 `basic-tutorial-1` 可执行程序
```shell
cd gst-docs/examples/tutorials
gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0`
```
编译成功后会在当前目录下生成可执行程序,使用下面的命令运行即可看到效果:
```shell
./basic-tutorial-1
```
![gstreamer_demo](./assets/application/gstreamer_demo.png)
## 其它
欢迎投稿~ 投稿接受后可得¥5~150($1~20)优惠券!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8e3d047

Please sign in to comment.