Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFmpeg Unknown input format: 'gdigrab'

Basically I am using ubuntu 18.04 and I am trying to get a specific window screen and record it into the .flv or .mp4 file using FFmpeg but when I run this command

ffmpeg -f gdigrab -framerate 30 -i title="german.avi - VLC media player" -b:v 3M  germ.flv

I got an error attached in the screenshot Saying Unknown input format: 'gdigrab'

enter image description here

I tried to use dshow instead of gdigrab but got same error. Can someone tell me how to solve this issue or another method that could be able to record a specific window screen.

Any help in this regard would be greatly appreciated.

like image 570
Abdul ahad Avatar asked Oct 29 '25 17:10

Abdul ahad


1 Answers

gdigrab and dshow are only meant for Windows.

On linux, use x11grab. See -ffmpeg -h demuxer=x11grab for options.

like image 161
Gyan Avatar answered Oct 31 '25 10:10

Gyan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!