Skip to content

Commit d85b5f4

Browse files
committed
* update video doc
1 parent 2c6641c commit d85b5f4

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

docs/doc/en/video/play.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ update:
1111

1212
This document provides instructions for using the Play Video feature.
1313

14-
`MaixPy` supports playing `h264`, `mp4` and `flv` video formats, note that currently only `avc` encoded `mp4` and `flv` files are supported.
14+
`MaixPy` supports playing `h264`, `mp4` and `flv` video formats, note that currently only `avc` encoded `mp4` and `flv` files are supported. Additionally, due to hardware encoder limitations, if you encounter issues decoding the video during playback, try re-encoding it with `ffmpeg` and then play it again. Refer to the following command:
15+
16+
```shell
17+
ffmpeg -i input_video.mp4 -c:v libx264 -x264opts "bframes=0" -c:a aac -strict experimental output_video.mp4
18+
```
19+
20+
1521

1622
## Play `MP4` video
1723

docs/doc/zh/video/play.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ update:
1111

1212
本文档提供播放视频功能的使用方法。
1313

14-
`MaixPy`支持播放`h264``mp4``flv`格式的视频,需要注意目前只支持`avc`编码的`mp4``flv`文件
14+
`MaixPy`支持播放`h264``mp4``flv`格式的视频,需要注意目前只支持`avc`编码的`mp4``flv`文件。此外由于硬件编码器限制,如果播放视频时发现无法解码,先尝试`ffmpeg`重新编码一遍后再试,参考命令:
15+
16+
```shell
17+
ffmpeg -i input_video.mp4 -c:v libx264 -x264opts "bframes=0" -c:a aac -strict experimental output_video.mp4
18+
```
19+
20+
1521

1622

1723
## 播放`MP4`视频

0 commit comments

Comments
 (0)