Hi,
I have already installed ffmpeg for live webcam streaming in my ubuntu machine. I try to run ffserver and it is working fine.
This is my ffserver.conf file
Quote:
Port 8090
# bind to all IPs aliased or not
BindAddress 0.0.0.0
# max number of simultaneous clients
MaxClients 1000
# max bandwidth per-client (kb/s)
MaxBandwidth 10000
# Suppress that if you want to launch ffserver as a daemon.
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 5M
</Feed>
# FLV output - good for streaming
<Stream test.flv>
# the source feed
Feed feed1.ffm
# the output stream format - FLV = FLash Video
Format flv
VideoCodec flv
# this must match the ffmpeg -r argument
VideoFrameRate 15
# generally leave this is a large number
VideoBufferSize 80000
# another quality tweak
VideoBitRate 200
# quality ranges - 1-31 (1 = best, 31 = worst)
VideoQMin 1
VideoQMax 5
VideoSize 352x288
# this sets how many seconds in past to start
PreRoll 0
# wecams don't have audio
Noaudio
</Stream>
|
Then i run ffmpeg command to send my webcam streaming to my ffserver in the same machine
and the output is ...
Quote:
[flv @ 0xb7d482f0]rc buffer underflow440kB time=1332.7 bitrate= 930.9kbits/s
[flv @ 0xb7d482f0]rc buffer underflow
[flv @ 0xb7d482f0]rc buffer underflow
[flv @ 0xb7d482f0]rc buffer underflow
[flv @ 0xb7d482f0]rc buffer underflow
[flv @ 0xb7d482f0]rc buffer underflow
[flv @ 0xb7d482f0]rc buffer underflow
[flv @ 0xb7d482f0]rc buffer underflow
[flv @ 0xb7d482f0]rc buffer underflow496kB time=1333.3 bitrate= 930.8kbits/s
[flv @ 0xb7d482f0]rc buffer underflow
.
.
bla. bla
|
I try to view it by using mplayer
then the output is
Quote:
Player 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing http://localhost:8090/test.flv.
Resolving localhost for AF_INET6...
Couldn't resolve name for AF_INET6: localhost
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]: 8090...
Cache size set to 320 KBytes
Cache fill: 2.50% (8192 bytes) nop_streaming_read error : Resource temporarily unavailable
Cache fill: 4.77% (15616 bytes)
libavformat file format detected.
[lavf] Video stream found, -vid 0
VIDEO: [FLV1] 352x288 0bpp 12.333 fps 0.0 kbps ( 0.0 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 352 x 288 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 352x288 => 352x288 Planar YV12
[flv @ 0x896a290]illegal dc 128 at 14 5
[flv @ 0x896a290]Error at MB: 129
[flv @ 0x896a290]run overflow at 9x0 i:1
[flv @ 0x896a290]Error at MB: 9
[flv @ 0x896a290]concealing 396 DC, 396 AC, 396 MV errors
V:12192.8 2/ 2 ??% ??% ??,?% 0 0 0%
GNOME screensaver enabled
Exiting... (End of file)
|
It just popup one blink my webcam video(half second).. then it crash unexpectedly.
Does anyone know how to fix this problem??