[FFmpeg-user] Screen Capture - Windows 10

Ron Barnes rbarnes at njdevils.net
Thu Jun 1 15:59:50 EEST 2017


Hello all,

 

I have been trying for days to figure out how to capture the video from my
desktop and save it as a playable file.  I've been successful to a point.

I am able to capture audio and video from my desktop as far as opening and
using apps, moving my mouse and what not, but when I open a web browser and
go to google or CNN or Yahoo or Fox News or anywhere for that matter, the
Browser Window header is present (Firefox or IE) and the mouse pointer but
the Browser Window with the content is a black screen.  I believe it is
because Microsoft no longer supports Direct Show and or my video card is not
compatible with FFmpeg or the feed to the browser is somehow separate from
the video I can see on the screen.  I'm clueless here.  

 

Does anyone see where I may have gone south in the script below or the
hardware I'm using?  If possible, would someone offer an alternate script I
can try?

 

Here is my script.  It has been put together using google searches as I'm
very new to FFmpeg.

 

ffmpeg -y -rtbufsize 2000M -f gdigrab -thread_queue_size 1024 -probesize 50M
-r 30 -video_size 1920x1080 -draw_mouse 1 -i desktop -f dshow -i
audio="Stereo Mix (Realtek High Definition Audio)" -c:v libx264 -r 30
-preset ultrafast -tune zerolatency -crf 25 -pix_fmt yuv420p -c:a aac
-strict -2 -ac 2 -b:a 96k -y "I:\Captured\TestAV.mp4"

 

 

 

Please let me start off with some information regarding my system.  I have a
4GHZ/8 core AMD CPU with 128GB RAM, leveraging a 2TB Samsung SSD.  My Net
connection is FIOS Gigabit service.  1GB down and 850MB up.  My Graphics
card is NVIDIA GeForce GTX 560 with 2GB of memory.

As you can see below I have only three direct show devices.  A webcam,
webcam microphone and Stereo Mix.  There is no video device.

 

I:\Captured>ffmpeg -list_devices true -f dshow -i dummy

ffmpeg version N-86310-g220b24c Copyright (c) 2000-2017 the FFmpeg
developers

  built with gcc 7.1.0 (GCC)

  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid
--enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
--enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
--enable-lzma --enable-zlib

  libavutil      55. 63.100 / 55. 63.100

  libavcodec     57. 96.101 / 57. 96.101

  libavformat    57. 72.101 / 57. 72.101

  libavdevice    57.  7.100 / 57.  7.100

  libavfilter     6. 90.100 /  6. 90.100

  libswscale      4.  7.101 /  4.  7.101

  libswresample   2.  8.100 /  2.  8.100

  libpostproc    54.  6.100 / 54.  6.100

[dshow @ 0000000000d36c00] DirectShow video devices (some may be both video
and audio devices)

[dshow @ 0000000000d36c00]  "Logitech HD Pro Webcam C920"

[dshow @ 0000000000d36c00]     Alternative name
"@device_pnp_\\?\usb#vid_046d&pid_082d&mi_00#7&4c735ef&0&0000#{65e8773d-8f56
-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}"

[dshow @ 0000000000d36c00] DirectShow audio devices

[dshow @ 0000000000d36c00]  "Microphone (HD Pro Webcam C920)"

[dshow @ 0000000000d36c00]     Alternative name
"@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{CC06F875-05FB-40A6-
8E75-977962237BDA}"

[dshow @ 0000000000d36c00]  "Stereo Mix (Realtek High Definition Audio)"

[dshow @ 0000000000d36c00]     Alternative name
"@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{A4989FE2-26C5-4354-
8237-19F262B7BF79}"

dummy: Immediate exit requested

 

Regards,

 

-Ron B



More information about the ffmpeg-user mailing list