
Originally Posted by
caf4926
@oldcpu
I see this with your code
Code:
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM pulse
[alsa @ 0x807d2e0] cannot open audio device pulse (No such file or directory)
pulse: Input/output error
I don't get that error. ... It possibly means I have something installed that you don't ? But my ffmpeg install is pretty basic:
Code:
oldcpu@corei7:~> rpm -qa '*ffmpeg*'
ffmpeg-0.9.1-1.1.x86_64
chromium-ffmpeg-18.0.972.0-100.1.x86_64
gstreamer-0_10-ffmpeg-0.10.11-1000.11.x86_64
libffmpeg-devel-0.9.1-1.1.x86_64
Here is what I get from the ffmpeg command:
Code:
oldcpu@corei7:~> ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 15 -s 1280x1024 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -threads 0 output.avi
ffmpeg version 0.9.1, Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 6 2012 11:01:08 with gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585]
configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-postproc --enable-gpl --enable-x11grab --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-debug --disable-stripping --enable-libgsm --enable-libschroedinger --enable-libdirac --enable-avfilter --enable-libvpx --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libdc1394 --enable-pthreads --enable-librtmp
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 4 / 53. 42. 4
libavformat 53. 24. 2 / 53. 24. 2
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[alsa @ 0x635a80] Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'pulse':
Duration: N/A, start: 1327385289.770833, bitrate: N/A
Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[x11grab @ 0x7fc758006c40] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1280 height: 1024
[x11grab @ 0x7fc758006c40] shared memory extension found
[x11grab @ 0x7fc758006c40] Estimating duration from bitrate, this may be inaccurate
Input #1, x11grab, from ':0.0':
Duration: N/A, start: 1327385289.861135, bitrate: 629145 kb/s
Stream #1:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1280x1024, 629145 kb/s, 15 tbr, 1000k tbn, 15 tbc
Incompatible pixel format 'bgra' for codec 'libx264', auto-selecting format 'yuv420p'
[buffer @ 0x7fc758014400] w:1280 h:1024 pixfmt:bgra tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x7fc758015ea0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x7fc75802e1e0] w:1280 h:1024 fmt:bgra -> w:1280 h:1024 fmt:yuv420p flags:0x4
[libx264 @ 0x7fc758014e20] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x7fc758014e20] profile Constrained Baseline, level 3.2
Output #0, avi, to 'output.avi':
Metadata:
ISFT : Lavf53.24.2
Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1280x1024, q=-1--1, 15 tbn, 15 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s
Stream mapping:
Stream #1:0 -> #0:0 (rawvideo -> libx264)
Stream #0:0 -> #0:1 (pcm_s16le -> pcm_s16le)
Press [q] to stop, [?] for help
frame= 1400 fps = 15 q=3.0 size= 42800kB time=00:01:50.00 bitrate=3000.0kbits/s
where that last line is incrementally constantly
I also have 'ffmpeg' tuned previous using 'pavucontrol'.
and
and
Perhaps you have another application running that is not using pulse audio that is refusing to share the audio device with pulse audio ?
Bookmarks