I'm trying to create a streaming server using ffmpeg, and I'm stuck, so
please advise if You can.
I've tested :
- ffmpeg-0.4.9_p20080326
- ffmpeg-0.4.9_p20070616
Both versions behave the same way. This is my emerge -pv ffmpeg
media-video/ffmpeg-0.4.9_p20080326 USE="a52 aac amr bindist debug
doc encode imlib mmx mp3 network theora threads x264 xvid zlib -X
(-altivec) -hardcoded-tables -ieee1394 -ipv6 -sdl -test -truetype
-vorbis"
This command:
# ffmpeg -r 25 -s 352x288 -y -f video4linux2 -vc 1 -i /dev/video0 -f
oss -itsoffset 00:00:00.500 -i /dev/dsp -isync -vcodec wmv1 -acodec
wmav1 /tmp/test.wmv
gives me a perfect wmv file created from bt878 card and audio card
Unfortunatelly when I run:
# ffserver -f /etc/ffserver/ffserver.conf
# ffmpeg -r 25 -s vga -y -f video4linux2 -vc 1 -i /dev/video0 -f oss
-itsoffset 00:00:00.500 -i /dev/dsp -isync
http://localhost:8090/feed.ffm
I get no viewable steam from ffserver, although everything is encoding
like it should (at least that is what shell tells me)
My ffserver.conf : (the important parts atleast)
#############################################
Port 8090
BindAddress 0.0.0.0
MaxClients 1000
MaxBandwidth 20000
CustomLog /var/log/ffserver/access_log
<Feed feed.ffm>
FileMaxSize 200K
ACL allow 127.0.0.1
</Feed>
<Stream stream.asf>
Feed feed.ffm
Format asf
AudioBitRate 64
AudioChannels 1
AudioSampleRate 22050
VideoBitRate 256
VideoBufferSize 400
VideoFrameRate 15
VideoSize 160x128
VideoGopSize 25
AudioCodec wmav1
VideoCodec wmv1
VideoQMin 3
VideoQMax 16
Preroll 15
StartSendOnKey
</Stream>
###########################################