2

Hello i am using ffserver with ffmpeg to stream a video with audio from web cam. The ffserver.conf file is :

Port 80
BindAddress 0.0.0.0
MaxClients 10
MaxBandwidth 50000
NoDaemon

<Feed webcam.ffm>
  file /tmp/webcam.ffm
  FileMaxSize 10M
</Feed>

<Stream webcam.avi>
Feed webcam.ffm
Format avi
VideoSize 176x128
VideoFrameRate 15
VideoBufferSize 40
VideoBitRate 64
AudioBitRate 32
AudioChannels 1
AudioSampleRate 11025
VideoQMin 1
VideoQMax 20
</Stream>

<Stream stat.html>
Format status
</Stream>

And the command i am executing is :

ffserver -f /root/ff.conf & ffmpeg -vcodec mjpeg -v verbose -r 15 -s 176x128 -f video4linux2 -i /dev/video0 -f alsa -ac 1 -i hw:1 http://localhost:81/webcam.ffm

The problem is that i cant see the stream through the web. Is there any other way to fix that or stream a video with audio through webcam? Thank you.

1 Answers1

0

My /etc/ffserver.conf is

Port 8090
BindAddress 0.0.0.0
MaxClients 1000
MaxBandwidth 10000
NoDaemon
File /tmp/feed1.ffm
FileMaxSize 5M
Feed feed1.ffm
Format mpjpeg
VideoFrameRate 2
VideoIntraOnly
NoAudio
Strict -1*

More detail, you can see tutorial here: http://engineer2you.blogspot.com/2016/10/rasbperry-pi-ffmpeg-install-and-stream.html

Ghanima
  • 15,855
  • 15
  • 61
  • 119