no sound with ffmpeg screengrab

April 11th, 2012 - 12:31 am ET by bad sector | Report spam
i have what looks like the following sound packages installed on a
suse-12.1 system

jack
alsa-oss
pulseaudio


# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1


I have generally no problem with sound under kde4, such as a video file
playing with audio using vlc or kaffeine etc. or playing a synthesiser.

trying to screengrab with ffmpeg I can get video but no audio

here are a few of the attempts, I'd like to get at least a very
rudimentary line working that includes anything on the screen (including
any sound or several sounds) and then include some extra switches if any



ffmpeg -f x11grab -s 1920x1200 -r 25 -i :0.0 -sameq /0/sa14/out.mpg

this gets video (screen including video player). Sound that's
part of the video being played or the result of syntesizer
manipulation doesn't make it.



ffmpeg -y -f oss -i /dev/dsp -f x11grab -s 1920x1200 -r 25 -i :0.0
-sameq /0/sa14/out.mpg

[oss @ 0x638640] /dev/dsp: No such file or
directory /dev/dsp: Input/output error

there is no device /dev/dsp but the ZynAddSubFx syjt HAS to be
started using "padsp zynaddsubfx" or it will remain silent.



ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s 1920x1200 -r 25 -i :0.0
-sameq /0/sa14/out.mpg

ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM
pulse [alsa @ 0x638680] cannot open audio device pulse
(No such file or directory) pulse: Input/output
error

???
email Follow the discussionReplies 2 repliesReplies Make a reply

Replies

#1 anotherpaul
April 12th, 2012 - 11:33 am ET | Report spam
On 2012-04-11, bad sector wrote:

i have what looks like the following sound packages installed on a
suse-12.1 system

jack
alsa-oss
pulseaudio


# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1


I have generally no problem with sound under kde4, such as a video file
playing with audio using vlc or kaffeine etc. or playing a synthesiser.

trying to screengrab with ffmpeg I can get video but no audio

here are a few of the attempts, I'd like to get at least a very
rudimentary line working that includes anything on the screen (including
any sound or several sounds) and then include some extra switches if any



ffmpeg -f x11grab -s 1920x1200 -r 25 -i :0.0 -sameq /0/sa14/out.mpg

this gets video (screen including video player). Sound that's
part of the video being played or the result of syntesizer
manipulation doesn't make it.



ffmpeg -y -f oss -i /dev/dsp -f x11grab -s 1920x1200 -r 25 -i :0.0
-sameq /0/sa14/out.mpg

[oss @ 0x638640] /dev/dsp: No such file or
directory /dev/dsp: Input/output error

there is no device /dev/dsp but the ZynAddSubFx syjt HAS to be
started using "padsp zynaddsubfx" or it will remain silent.



ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s 1920x1200 -r 25 -i :0.0
-sameq /0/sa14/out.mpg

ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM
pulse [alsa @ 0x638680] cannot open audio device pulse
(No such file or directory) pulse: Input/output
error

???







Could be that the config/parameters used by the sound driver is incorrect.

I haven't any sound for the past 3 suse versions from my HT Omega++ soundcard;
the error msg say that the configuration of the oxygen driver is wrong so
it wasn't installed.

Similar topics