I am using RPI 2 and trying to record a screen and stream it on udp using ffmpeg. I tried the following lines
ffmpeg -f video4linux2 -i video="screen-capture-recorder":audio="Stereo Mix (IDT High Definition" -vcodec libx264 -preset ultrafast -tune zerolatency -r 10 -async 1 -acodec libmp3lame -ab 24k -ar 22050 -bsf:v h264_mp4toannexb -maxrate 750k -bufsize 5000k -f mpegts udp://184.108.40.206:1234
But I am getting error.
The ffmpeg program is only provided for script compatibility and will be removed in a future release. It has been deprecated in the Libav project to allow for incompatible command line syntax improvements in its replacement called avconv (see Changelog for details). Please use avconv instead.
Unknown input format: 'video4linux2'
I also tried x11grab but still getting the same error.