LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2009, 10:12 PM   #1
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Rep: Reputation: 15
Unhappy live webcam streaming problem with ffmpeg


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

Quote:
ffmpeg -r 15 -s 352x288 -f video4linux2 -i /dev/video0 http://localhost:8090/feed1.ffm
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??
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FFMPEG & MENCODER Problem lets any streaming client crash(Firefox/Opera/Safari) ChrisKane Linux - Software 0 08-04-2009 09:19 AM
Problem whiile streaming the captured image from a webcam!! nitin.redhat Linux - General 0 10-06-2006 04:11 PM
streaming webcam server gtkuntz Linux - Software 3 04-08-2006 12:27 PM
Streaming Live Video using Webcam lkittinger Linux - Software 3 01-29-2006 01:56 PM
direct streaming video with webcam rbonneau Linux - General 2 09-17-2003 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration