+
+
Sine wave
+
Generate a test audio file playing a sine wave.
+
ffmpeg -f lavfi -i "sine=frequency=1000:sample_rate=48000:duration=5" -c:a pcm_s16le output_file.wav
+
+ - ffmpeg
- starts the command
+ - -f lavfi
- tells ffmpeg to use the libavfilter input virtual device [more]
+ - -i "sine=frequency=1000:sample_rate=48000:duration=5"
- Sets the signal to 1000 Hz, sampling at 48 kHz, and for 5 seconds
+ - -c:a pcm_s16le
- encodes the audio codec in
pcm_s16le
(the default encoding for wav files). pcm represents pulse-code modulation format (raw bytes), 16
means 16 bits per sample, and le
means "little endian"
+ - output_file.wav
- path, name and extension of the output file
+
+
+
+