[FFmpeg-user] Capturing audio with x11grab

Philip Rhoades phil at pricom.com.au
Tue Nov 10 14:08:25 CET 2015


Moritz,


On 2015-11-10 22:46, Moritz Barsnick wrote:
> Hi Phil,
> 
> On Tue, Nov 10, 2015 at 22:39:24 +1100, Philip Rhoades wrote:
>>    http://iview.abc.net.au
>> - which I think are basically Flash videos, I have tried:
> 
> Have you tried downloading the actual video file with youtube-dl?
> http://yt-dl.org/


The video is not on YT it is on the abc.net.au site . .


> Capturing from screen sound so last-resort-hacky that I would avoid it
> at any cost!
> 
>>    ffmpeg -f alsa -ac 2 -i hw:1 -f video4linux2 -f x11grab -framerate 
>> 25
>> -i :0.0 ./out.mpg
>> 
>> which gets the video OK but only gets my heavy breathing into the mic 
>> on
>> my headset - I presume there is some way of capturing the audio that 
>> is
>> coming out of the computer?
> 
> Perhaps you shouldn't be breathing so heavily. ;-)


ffmpeg gets me excited!


> Kidding aside: I
> don't know whether alsa can even do that, that is to redirect the audio
> output to a pseudo input. I know that pulseaudio can, if your system
> happens to support that.


I uninstalled it because it annoys me for other reasons . . I suppose I 
could restore it temporarily . .


> It takes a bit of googling, but you can direct
> even just one program's output to a pseudo-sink, and then grab that
> sink directly with ffmpeg. I know it works - I have done it (to get
> some really rare stuff off Spo**fy).


Right . . I might have to give it a go if I can't find a nicer way . .

Thanks!

Phil.
-- 
Philip Rhoades

PO Box 896
Cowra  NSW  2794
Australia
E-mail:  phil at pricom.com.au


More information about the ffmpeg-user mailing list