FFmpeg Unknown input format: 'gdigrab'

Viewed 1016

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.

2 Answers

gdigrab and dshow are only meant for Windows.

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

Related