Grab sound of a SDL game with ffmpeg/avconv
Posted
by
Peregring-lk
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Peregring-lk
Published on 2013-11-04T03:53:51Z
Indexed on
2013/11/04
4:13 UTC
Read the original article
Hit count: 302
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).
© Ask Ubuntu or respective owner