Hello,
I'm a long-time-lurker first-time-poster who recently got fully converted from the dark side (windows)...
I am struggling to get my webcam with audio streaming across my home LAN via ffmpeg/ffserver. I'd appreciate any help to get this working.
::The Problem::
I can start ffserver with no problems.
When I call ffmpeg, I get the below output. At the bottom the number of frames / kB encoded is shown for a second, then the encoding stops and I am returned back to my command line.
I'm accessing my server via SSH. Interestingly, after calling the ffmpeg, putty then becomes incapable of displaying any characters I type, yet commands from the command line still execute.
Attempts to access the stream on another network computer at http://<server's LAN IP>:58081/test.webm via VLC fail.
I have tested ffmpeg without ffserver and it is able to capture the webcam video and audio to a .webm file which I can then play back remotely via VLC without a problem. libvpx and libogg are definitely installed on the server.
Any ideas what I am doing wrong? I ideally want low-latency (real-time) audio and video streaming from the webcam.
::ffmpeg info::
::My Configuration & Commands ::Code:FFmpeg version 0.6-4:0.6-2ubuntu6.2, Copyright (c) 2000-2010 the FFmpeg developers built on Sep 16 2011 17:11:24 with gcc 4.4.5 configuration: --extra-version=4:0.6-2ubuntu6.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --enable-shared --disable-static WARNING: library configuration mismatch libavutil configuration: --extra-version=4:0.6-2ubuntu6.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay libavcodec configuration: --extra-version=4:0.6-2ubuntu6.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay libavformat configuration: --extra-version=4:0.6-2ubuntu6.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay libavdevice configuration: --extra-version=4:0.6-2ubuntu6.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay libavfilter configuration: --extra-version=4:0.6-2ubuntu6.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay libswscale configuration: --extra-version=4:0.6-2ubuntu6.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay libpostproc configuration: --extra-version=4:0.6-2ubuntu6.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 [video4linux2 @ 0x973d420]Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2, from '/dev/video0': Duration: N/A, start: 3457623.726137, bitrate: -2147483 kb/s Stream #0.0: Video: rawvideo, yuyv422, 1280x720, -2147483 kb/s, 1000k tbr, 1000k tbn, 1000k tbc [alsa @ 0x973eb20]Estimating duration from bitrate, this may be inaccurate Input #1, alsa, from 'hw:1,0': Duration: N/A, start: 3457624.998958, bitrate: N/A Stream #1.0: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s [libvpx @ 0x9749860]v0.9.5 Output #0, webm, to 'http://localhost:58180/feed1.ffm': Metadata: encoder : Lavf52.64.2 Stream #0.0: Video: libvpx, yuv420p, 1280x720, q=2-31, 512 kb/s, 1k tbn, 15 tbc Stream #0.1: Audio: libvorbis, 16000 Hz, 1 channels, s16, 32 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #1.0 -> #0.1 Press [q] to stop encoding $mike@metis:~$ [putty now won't display any characters here!]
OS: Maverick (server)
Webcam: Logitech HD C270
-------/etc/ffserver.conf-------
----------------------------------Code:Port 58180 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 4096 CustomLog - <Feed feed1.ffm> File /tmp/feed1.ffm FileMaxSize 1024K ACL allow 127.0.0.1 </Feed> <Stream test.webm> # --FEED-- Feed feed1.ffm Format webm # --VIDEO-- VideoCodec libvpx VideoFrameRate 15 VideoBufferSize 80000 VideoBitRate 512 VideoQMin 1 VideoQMax 10 VideoSize 1280x720 PreRoll 0 # --AUDIO-- AudioBitRate 32 AudioChannels 1 AudioSampleRate 16000 #AudioCodec libogg </Stream>
Cheers,Code:$ ffserver $ ffmpeg -s hd720 -f video4linux2 -i /dev/video0 -vcodec libvpx -vb 512000 -r 15 -f alsa -ac 1 -i hw:1,0 -acodec libvorbis -ab 32000 -ar 16000 -f webm http://localhost:58180/feed1.ffm
Mike
Bookmarks