This commit is contained in:
wonderfullook
2022-08-01 17:00:30 +08:00
2 changed files with 7 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
## Introduction
Tang nano 9K is an exquisite development board based on [Gowin](https://www.gowinsemi.com/en/) GW1NR-9 FPGA chip.It equips with HDMI connector, RGB screen interface connector, SPI screen connector, 32Mbit SPI flash and 6 LEDs, so users can use it for FPGA verification, risc-v soft core verification and basic function verification easily and quickly. Its 8640 LUT4 logic units can not only be used for various complex logic circuits designing, but also used for running a complete PicoRV soft core. It also meets various needs of users, such as learning FPGA, verifying soft core and further design.
Tang nano 9K is a development board based on [Gowin](https://www.gowinsemi.com/en/) GW1NR-9 FPGA chip.It equips with HDMI connector, RGB screen interface connector, SPI screen connector, 32Mbit SPI flash and 6 LEDs, so users can use it for FPGA verification, risc-v soft core verification and basic function verification easily and quickly. Its 8640 LUT4 logic units can not only be used for various complex logic circuits designing, but also used for running a complete PicoRV soft core. It also meets various needs of users, such as learning FPGA, verifying soft core and further design.
![](./../../../assets/Tang/Nano-9K/9K.png)

View File

@@ -20,7 +20,10 @@ PyAV 是一个用于 FFmpeg 的 python 绑定。通过容器、流、包、编
<iframe src="//player.bilibili.com/player.html?aid=717126108&bvid=BV1dQ4y1f7RN&cid=385731209&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="max-width:640px; max-height:480px;"> </iframe>
</p>
共有2个[测试视频](https://dl.sipeed.com/shareURL/MaixII/MaixII-Dock/example),将这里得到的视频存放到 Linux 系统的 root 目录中,将 `path_to_video` 的参数修改成所存放视频路径。
## 如何播放视频?
这里共有2个[测试视频](https://dl.sipeed.com/shareURL/MaixII/MaixII-Dock/example),将这里得到的视频存放到 Linux 系统的 root 目录中,将 `path_to_video` 的参数修改成所存放视频路径。
> 注意,请尽量使用我们所提供的测试视频进行视频播放,因为**视频播放对视频编码格式、音频编码格式以及尺寸有要求**。文件名为 "badapple_240_60fps.mp4" 测试视频的视频编码格式为h264测试视频的音频编码格式为aac大小为 240 x 240如果想要播放自己的视频请先检查视频格式是否符合要求。
```python
@@ -55,7 +58,7 @@ finally:
p.terminate()
```
## 如何录制视频并播放
## 如何录制视频?
2022年07月26日 根据 pyav.org 文档加源码整理如下代码从录制编码到播放x264 支持手机预览但解码性能低),注意该代码只在 av 9.2.0 版本的库可用,需要更新 0.5.2 系统底包的av 8.0.3)喔(这种需要编译的包 pip 是得不到的)。
@@ -101,4 +104,4 @@ for frame in container.decode(video=0):
display.show(img)
```
试试吧。
试试吧,可以看到录制的是我们填充的 image 图像,打印了时间字符串