[FFmpeg-user] How to use FFmpeg to Grab screen and use udp to streamimg

Moritz Barsnick barsnick at gmx.net
Fri May 12 22:48:17 EEST 2017


> And I can use "ffmpeg -f gdigrab -framerate 30 -video_size 640x480 -i
> desktop out.mpg " to generate the file,and use like“ffmpeg -re -i
> ds.h264 -vcodec copy -f h264 udp://192.168.1.172:8080” to streaming
> local file。But i dont know how to Combined that into one line.

Have you tried combining the correct inputs with the correct outputs?

Try:
$ ffmpeg -f gdigrab -framerate 30 -video_size 640x480 -i desktop -f h264 udp://192.168.1.172:8080

Moritz


More information about the ffmpeg-user mailing list