Open modi12jin opened 1 year ago
Files in SD card
ffmpeg
ffmpeg -i input.mp4 -ar 44100 -ac 1 -ab 32k -filter:a loudnorm -filter:a "volume=-5dB" output.mp3
ffmpeg -i input.mp4 -vf "fps=20,scale=-1:272:flags=lanczos,crop=480:in_h:(in_w-480)/2:0" -q:v 9 output.mjpeg
#define I2S_DOUT 37
#define I2S_BCLK 36
#define I2S_LRC 35
// 初始化音频
out = new AudioOutputI2S(I2S_NUM_0);
out->SetGain(0.5); //设置音量0~1
out->SetRate(44100); //采样率
out->SetChannels(1);//1单声道,2立体声
out->SetBitsPerSample(16); //指定每个样本的位数,通常为8或16
out->SetPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
mp3 = new AudioGeneratorMP3();
aFile = new AudioFileSourceFS(SD_MMC);
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x420934d2
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a68
entry 0x403c98d4
Found 6 in root directory!
Starting playback!
fileNo: 1
Loading video: /02.mjpeg
Loading audio: /02.mp3
In playVideo() loop!
Created aFile!
Created vFile!
Skip frame
Skip frame
Skip frame
Skip frame
Skip frame
Skip frame
Skip frame
Skip frame
Skip frame
Skip frame
Skip frame
Skip frame
Skip frame