lavfi virtual device - the same parameters for ffmpeg and ffplay
The ffmpeg tool can work with multiple inputs and outputs so the parser looks for -i to demarcate input options. The lavfi device will read the graph from the input argument 

Use

ffmpeg -f lavfi -i "testsrc2=d=1[out0];sine=d=1[out1]" test.mp4