Video - MP4錄音

材料準備

範例說明

介紹

在這個例子中,我們將使用 Ameba Pro2 開發板將來自板載攝像頭傳感器 (JXF37) 和音頻編解碼器的視頻和音頻數據錄製到 SD 卡上的 MP4 文件中。

以下示例顯示了 MP4 錄製的不同用例。
1. AudioOnly
2. VideoOnly
3. SingleVideoWithAudio
4. DoubleVideoWithAudio

流程

在 “File” -> “Examples” -> “AmebaVideo” -> “RecordMP4” 打開其中一個 RecordMP4 示例。

1

由於將使用攝像頭視頻輸出,因此請確保“工具”中的“Video Init”選項設置為啟用。

1

編譯代碼並將其上傳到 Ameba。 按下 Reset 按鈕後,Ameba Pro 2 板將開始錄製 MP4 到 SD 卡。

1

錄製時間結束後,MP4 文件將停止錄製。

1

斷開 Ameba Pro 2 板的電源,取出 SD 卡並連接到計算機以查看內容。 根據編譯的示例,將有一個或兩個 MP4 視頻。 使用 VLC 打開 MP4 文件,關於 MP4 文件的詳細信息可以在 “Tools” -> “Codec Information”得到。

ExampleMP4 file details
RecordMP4AudioOnlySingle 30 second MP4 file with audio only 1
RecordMP4VideoOnlySingle 30 second MP4 file with video only 1
RecordMP4SingleVideoWithAudioSingle 30 second MP4 file with audio and video 1
RecordMP4DoubleVideoWithAudioOne 30 second and one 15 second MP4 file
Both files with audio and video
1
1
程式碼說明
獲得更好視頻質量的推薦設置,請參考Ameba FAQ: https://forum.amebaiot.com/t/ameba-faq/1220
Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved. Terms of Use
Please confirm that QQ communication software is installed
請先確認已安裝QQ通訊軟體