FFmpeg using X11grab for screen recording under Linux, using DirectShow filters under Windows
First you need to install a software, screen capture recorder
The compilation is:
http://sourceforge.net/projects/screencapturer/files/
The source address is:
Https://github.com/rdp/screen-capture-recorder-to-video-windows-free
After the installation is finished, execute at the command line:
- Ffmpeg-list_devices true-f dshow-i dummy
The system output is roughly as follows:
- [DShow @ 002db420] DirectShow Video Devices
- [DShow @ 002db420] "Screen-capture-recorder"
- [DShow @ 002db420] DirectShow Audio Devices
- [DShow @ 002db420] "Virtual-audio-capturer"
FFmpeg has been able to capture DirectShow video devices, and audio devices.
"Screen-capture-recorder" This is the desktop capture device, if the computer has a webcam, it will be listed.
"Virtual-audio-capturer" This is an audio capture device.
And then you can use FFmpeg to make a video.
Java code
- Ffmpeg-f dshow-i video="Screen-capture-recorder"-F dshow-i audio="Virtual-audio-capturer"-pix_fmt yuv420p-v Codec Libx264-acodec libvo_aacenc-s 1280x720-r 25-q 10-ar 44100-ac 2-tune zerolatency-preset Ultra Fast-f Mpegts-| Ffmpeg-f Mpegts-i-C copy-bsf:a aac_adtstoasc-f flv temp.flv
FFmpeg Screen Capture Recorder