-
Streaming with ffserver & ffmpeg. Possible audio encoding issue
Hello,
I’m attempting to stream my desktop and audio with ffmpeg and ffserver. My ffserver config is posted below:
Port 8090
RTSPPort 1234
BindAddress 0.0.0.0
RTSPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -
NoDaemonFile /tmp/stream.ffm
FileMaxSize 32MFeed stream.ffm
Format rtp
File /tmp/stream.sdp
AudioBitRate 64
AudioChannels 1
AudioSampleRate 22050VideoBitRate 128
VideoBufferSize 400
VideoFrameRate 15
VideoSize 384x240VideoGopSize 12
VideoHighQuality
Video4MotionVectorAudioCodec libmp3lame
VideoCodec libx264Also my ffmpeg command that I am using to stream is below.
ffmpeg -f x11grab -r 25 -s 384x240 -i :0.0 -f alsa -ac 2 -ar 44100 -i hw:0,0 -f rtp rtp://192.168.1.102:8090/stream.ffmIt has no problems running, however when I try to use either VLC or mplayer to play the stream, it will crash, both complain about audio not being encoded properly.
Thanks,
Harold