Skip to content

Commit b8a0d88

Browse files
committed
Merge branch 'doc/fix_i2s_es8311_ffmpeg_instruction' into 'master'
docs(i2s_es8311): fixed ffmpeg instruction in README Closes IDFGH-16529 See merge request espressif/esp-idf!42260
2 parents a15ab23 + 8ac2f4c commit b8a0d88

File tree

1 file changed

+1
-1
lines changed
  • examples/peripherals/i2s/i2s_codec/i2s_es8311

1 file changed

+1
-1
lines changed

examples/peripherals/i2s/i2s_codec/i2s_es8311/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ The example have contained a piece of music in canon.pcm, if you want to play yo
142142
2. Install 'ffmpeg' tool
143143
3. Check your music format using ```ffprobe a.mp3```, you can get the stream format (e.g. Stream #0.0: Audio: mp3, 44100Hz, stereo, s16p, 64kb/s)
144144
4. Cut your music since there is no enough space for the whole piece of music. ```ffmpeg -i a.mp3 -ss 00:00:00 -t 00:00:20 a_cut.mp3```
145-
5. Transfer the music format into .pcm. ```ffmpeg -i a_cut.mp3 -f s16ls -ar 16000 -ac -1 -acodec pcm_s16le a.pcm```
145+
5. Transfer the music format into .pcm. ```ffmpeg -i a_cut.mp3 -f s16le -ar 16000 -ac 2 -acodec pcm_s16le a.pcm```
146146
6. Move 'a.pcm' under 'main' directory
147147
7. Replace 'canon.pcm' with 'a.pcm' in 'CMakeLists.txt' under 'main' directory
148148
8. Replace '_binary_canon_pcm_start' and '_binary_canon_pcm_end' with '_binary_a_pcm_start' and '_binary_a_pcm_end' in `i2s_es8311_example.c`

0 commit comments

Comments
 (0)