[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://” 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?

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


More information about the ffmpeg-user mailing list