+
+
SMPTE bars + Sine wave audio
+
Generate a SMPTE bars test video + a 1kHz sine wave as audio testsignal.
+
ffmpeg -f lavfi -i smptebars=size=720x576:rate=25 -f lavfi -i "sine=frequency=1000:sample_rate=48000" -c:a pcm_s16le -t 10 -c:v ffv1 output_file
+
+ - ffmpeg
- starts the command
+ - -f lavfi
- tells ffmpeg to use the libavfilter input virtual device
+ - -i smptebars=size=720x576:rate=25
- asks for the smptebars test filter as input. Adjusting the
size
and rate
options allow you to choose a specific frame size and framerate. [more]
+ - -f lavfi
- use libavfilter again, but now for audio
+ - -i "sine=frequency=1000:sample_rate=48000"
- Sets the signal to 1000 Hz, sampling at 48 kHz.
+ - -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"
+ - -t 10
- specifies recording time of 10 seconds
+ - -c:v ffv1
- Encodes to FFV1. Alter this setting to set your desired codec.
+ - output_file.wav
- path, name and extension of the output file
+
+
+
+