Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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://192.168.2.7:6666?pkt_size=188?buffer_size=65535

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 stackoverflow.com Dec 28 '11 at 8:06

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

2 Answers 2

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
  • Download FFmpeg

    Either 64-bit or 32-bit should work.

  • Install screen-capture-recorder-to-video-windows-free

    The actual downloads are at sourceforge, which is linked in the README. I found the README to be helpful. The installer should automatically install Microsoft Visual C++ Redistributable as well, if needed.

Use

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

svnpenn.github.com/2012/ffmpeg-screencast-windows

share|improve this answer
    
thanks, but is there a way to do it without 3rd party applications?? –  SEARAS Nov 10 '12 at 10:47
    
If I knew, I would say. –  Steven Penny Nov 10 '12 at 14:12

Your Answer

 
discard

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.