Record audio Desktop with ffmpeg
Hi, I creating a mini soft for screencast (audio + video) with ffmpeg. For the video, it's ok. For the sound, the capture of sound of my webcam (/dev/dsp1) it's ok. [code]ffmpeg -f oss -ar 44100 -i /dev/dsp1 -acodec mp2 -ab 128k test.mp3[/code] But for my audio desktop : [code]ffmpeg -f oss -ar 44100 -i /dev/dsp -acodec mp2 -ab 128k test.mp3[/code] The file is empty... I have make many test but... (find on internet) [code]ffmpeg -f oss -ar 44100 -ac 1 -i /dev/dsp -acodec pcm_s16le mumuv-050- mono.wav[/code] [code]ffmpeg -f oss -ar 44100 -ac 1 -i /dev/audio -acodec pcm_s16le mumuv-050- mono.wav[/code] nothing works... Other test with multi soft : [code]sox -t alsa "hw:0,0" -t ogg -A -2 -c1 -r11025 - | ffmpeg -y -i - -ar 11025 -ab 52 -ac 1 -f x11grab -s 800x600 -i :0.0+10,20 -b 200 -r 12 -aspect 4:3 -f flv test.flv[/code] [code]arecord -D hw:42 -f S16_LE -r 12345 -c 2 > file.wav[/code] [code]arecord --quiet --file-type wav --rate=44000 > test.wav[/code] Test with alsa... : [code]ffmpeg -f alsa -r 16000 -i hw:2,0 -acodec libmp3lame -ab 96k output.avi FFmpeg version SVN-r19468, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' -- libdir='${prefix}/lib' --shlibdir='${prefix}/lib' --bindir='${prefix}/bin' -- incdir='${prefix}/include/ffmpeg' --enable-shared --enable-libmp3lame --enable- gpl --enable-libfaad --mandir='${prefix}/share/man' --enable-libvorbis -- enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable- x11grab --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-libspeex -- enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac -- disable-decoder=libdirac --enable-libschroedinger --disable- encoder=libschroedinger --enable-avfilter-lavf --enable-libopenjpeg --enable- version3 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.32. 0 / 52.32. 0 libavformat 52.36. 0 / 52.36. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 0. 5. 0 / 0. 5. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Nov 16 2009 20:16:27, gcc: 4.4.1 Unknown input or output format: alsa[/code] don't work again... Does anybody know how I can do? Thank's and sorry+++ for my English.
participants (1)
-
hizoļ¼ free.fr