From 310ec5338142a9fece250873e419175553d18371 Mon Sep 17 00:00:00 2001 From: Martin <31348196+Earl0fPudding@users.noreply.github.com> Date: Sat, 9 Jan 2021 14:57:11 +0100 Subject: [PATCH] Add ffmpeg command for wav conversion --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 903b9d9..a93889a 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,12 @@ You can transmitt uncompressed WAV (.wav) files directly or read audio data from sudo apt-get install sox sox acoustic_guitar_duet.wav -r 22050 -c 1 -b 16 -t wav - | sudo ./fm_transmitter -f 100.6 - ``` -Please note only uncompressed WAV files are supported. If you receive the "corrupted data" error try converting the file, eg. by using SoX: +Please note only uncompressed WAV files are supported. If you receive the "corrupted data" error try converting the file, eg. by using FFMPEG: +``` +ffmpeg -i not_wav_song.webm -f wav -bitexact -acodec pcm_s16le -ar 22050 -ac 1 song.wav +sudo ./fm_transmitter -f 100.6 song.wav +``` +Or you could also use SoX: ``` sudo apt-get install sox libsox-fmt-mp3 sox my-audio.mp3 -r 22050 -c 1 -b 16 -t wav my-converted-audio.wav