Capture Windows screen with ffmpeg

后端 未结 7 1435
心在旅途
心在旅途 2021-01-30 01:06

The ffmpeg is cross-platform and very powerful software to handle video/audio or to stream it. On Linux ffmpeg can capture X11 screen with a command below:

ffmpe         


        
7条回答
  •  孤独总比滥情好
    2021-01-30 01:36

    ffmpeg windows static version 4.2.2, screen recording with audio

    to check your microphone

    ffmpeg -list_devices true -f dshow -i dummy
    

    next copy your audio="YOUR MICROPHONE OR STEREO MIX", mine is "Microphone (Realtek High Definition Audio)".

    ffmpeg -rtbufsize 1500M -f dshow -i audio="Microphone (Realtek High Definition Audio)" -f -y -rtbufsize 100M -f gdigrab -t 00:00:30 -framerate 30 -probesize 10M -draw_mouse 1 -i desktop -c:v libx264 -r 30 -preset ultrafast -tune zerolatency -crf 25 -pix_fmt yuv420p "d:\ffmpeg_testing.mp4"
    

提交回复
热议问题