Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to stream Desktop using FFMPEG in windows??

I have tried ffmpeg -list_devices true -f dshow -i dummy

and after that this to stream

ffmpeg -f dshow  -i video="Chicony USB 2.0 Camera"  -r 30 -vcodec mpeg4 -q 12 -f mpegts        udp://

Using this i got to stream the Camera.

What command i have to type to stream the Desktop in windows?

share|improve this question

migrated from Dec 28 '11 at 8:06

This question came from our site for professional and enthusiast programmers.

Or, you can use UScreenCapture. It's using the DShow API of DirectX, and available for both x86 and x64 architectures. After you installed it, you'll find a new input source "UScreenCapture", witch is your live desktop screen respectively.

If you're sending it to a Wowza server, here's the command what you need:

ffmpeg -f dshow -i video="UScreenCapture" -s **width** x **height** -r **framerate** -vcodec libx264 -pix_fmt yuv420p -b:v **bitrate** -an -vbsf h264_mp4toannexb -f mpegts udp://**your.destination.url:PORTNUMBER**?pkt_size=1316

Note that I explicitly changed the pixel format(pix_fmt), because ffmpeg used yuv444p instead of yuv420p. I had to do this to make it work.

It works pretty well for me.

Regards, G.

share|improve this answer
  1. Download FFmpeg. Either 64-bit or 32-bit should work.

  2. Install Screen Capturer Recorder. The installer should automatically install Microsoft Visual C++ Redistributable as well, if needed.

  3. Use

    ffmpeg -f dshow -i video=screen-capture-recorder -r 24000/1001 -q 1 out.avi

FFmpeg screencast Windows

share|improve this answer
thanks, but is there a way to do it without 3rd party applications?? – Searush Nov 10 '12 at 10:47
On Win systems the answer is unfortunately no. – Gergely Lukacsy Jan 28 '15 at 9:31
If you have Linux system (with running X server), you can use the built in x11grab device like this: ffmpeg -f x11grab -framerate 25 -video_size 1280x720 -i :0.0 [...] Check the official documentation [here].( – Gergely Lukacsy Jan 28 '15 at 9:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.