How to use FFmpeg to Grab screen and use udp to streamimg

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use FFmpeg to Grab screen and use udp to streamimg

絃外之音。
This is i download FFmpeg file,and i want to use gdigrab to grab screen and streaming,use UDP or RTMP.
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.
And i want to control Bit rate,pixels,FPS,to grab screen and streaming.Can you show me how to use one line to do it? :)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

45A4028D@FBF7F519.037E1559.jpg (13K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to use FFmpeg to Grab screen and use udp to streamimg

Moritz Barsnick
> 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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".