streaming video4linux4 from a web cam

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

streaming video4linux4 from a web cam

Miguel-59
Hello,
I m using a webcam logitech pro 9000. I m trying to stream its video (in
video4linux4) usign ffmeg and ffserver to watch teh video on a web page,
just using the url.

It works perfectly using mjpeg but the video is really slow. It also
worked using flv format.

first, I run ffserver with the configuration below, and then, I run teh
ffmpeg


ffmpeg -f video4linux2 -s 176x144 -r 2000 -i /dev/video1 -f avi
http://localhost:8090/feed1.ffm


when I try to wacth it on a firefox, it doesnt work :( ... I get  a
black screen.
if I try to watch it with mplayer i get the following:

mcm@McM:/etc$ mplayer http://localhost:8090/saibi.avi
MPlayer 1.0rc2-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU           T2060  @ 1.60GHz (Family: 6, Model:
14, Stepping: 12)
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/saibi.avi.
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:  0.86% (2812 bytes)  
AVI file format detected.
[aviheader] Audio stream found, -aid 0
[aviheader] Video stream found, -vid 1
** empty list?!
AVI: Missing video stream!? Contact the author, it may be a bug :(


Exiting... (End of file)


could you help me?

thank you in advance,
Miguel


ffserver.conf

Port 8090
BindAddress 0.0.0.0
MaxClients 1000
MaxBandwidth 1500
CustomLog -
NoDaemon

<Feed feed1.ffm>
   File /tmp/feed1.ffm
   FileMaxSize 200K
   ACL allow 127.0.0.1
</Feed>

<Stream saibi.avi>
   Feed feed1.ffm
   Format avi
   AudioBitRate 24
   AudioChannels 1
   AudioSampleRate 22050
   VideoBitRate 128
   VideoFrameRate 15
   VideoSize 320x240
   VideoGopSize 60
</Stream>

<Stream stat.html>
   Format status
   ACL allow localhost
   ACL allow 192.168.0.0 192.168.255.255
</Stream>

<Redirect index.html>
   URL http://ffmpeg.sourceforge.net/
</Redirect>

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user