Skip to content

Commit 6e356a7

Browse files
committed
* update faq
1 parent fb4dbfc commit 6e356a7

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/doc/en/faq.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,4 +322,9 @@ Additionally, if you just want to save a single page for offline viewing, you ca
322322

323323
## When recording is set to non-blocking mode, no audio data is captured
324324

325-
When recording in non-blocking mode on MaixCam2, after starting recording, you need to wait for the audio data preparation to complete before being able to obtain the data. Therefore, there should be an interval between two recording operations. For example, if you need to record 60ms of audio data, you can call the recording function again every 50ms.
325+
When recording in non-blocking mode on MaixCam2, after starting recording, you need to wait for the audio data preparation to complete before being able to obtain the data. Therefore, there should be an interval between two recording operations. For example, if you need to record 60ms of audio data, you can call the recording function again every 50ms.
326+
327+
## The video cannot be decoded, or an error is reported during the decoding process
328+
329+
1. Ensure the video file format is h264 or mp4
330+
2. If the error persists, try removing the B-frames from the video, keeping only I-frames and P-frames, and then attempt again. You can use the ffmpeg to achieve this: `ffmpeg -i input.mp4 -c:v libx264 -x264-params "bframes=0" output_no_b_frames.mp4`

docs/doc/zh/faq.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,4 +303,9 @@ MaixCAM 自带的**相机**应用拍摄的照片和视频可以在自带的**相
303303

304304
## 录音时设置为非阻塞模式后, 录音没有数据
305305

306-
MaixCam2在非阻塞模式下录音时, 开始录音后需要等待录音数据准备完成后才能拿到数据。因此两次录音之间需要间隔一段时间. 比如如果需要录入60ms的录音数据, 可以每50ms再调用一次录音函数.
306+
MaixCam2在非阻塞模式下录音时, 开始录音后需要等待录音数据准备完成后才能拿到数据。因此两次录音之间需要间隔一段时间. 比如如果需要录入60ms的录音数据, 可以每50ms再调用一次录音函数.
307+
308+
## 视频无法解码, 或者在解码过程中提示出错
309+
310+
1. 确保视频文件格式是`h264`或者`mp4`
311+
2. 如果仍然报错, 尝试将删除视频中的B帧,只保留I帧和P帧后再次尝试. 可以使用ffmpeg 命令行工具实现: `ffmpeg -i input.mp4 -c:v libx264 -x264-params "bframes=0" output_no_b_frames.mp4`

0 commit comments

Comments
 (0)