Grab sound of a SDL game with ffmpeg/avconv
- by Peregring-lk
I'm trying to make a screencast of a SDL game which I developed some years ago, with the following command:
sleep 5 && avconv -f x11grab -s 1366x768 -r 25 -i :0.0 -same_quant screen_cast.mkv
(in this 5 seconds of sleep, I open the game).
But the generated video (screen_cast.mkv) doesn't capture audio.
I use for my game the SDL_Mixer library, with default configuration (22050 for frequency, AUDIO_S16SYS for format, and 2 channels).
What's the problem? (with options -f alsa -i pulse it doesn't work either).