有谁能成功运行用ffserver实时串流吗?

Is there anyone who can successfully run real time streaming with ffserver?

我希望流式传输我的摄像机和音频麦克风。使用 ffserver.

ffserver 说它可以这样做,但我就是找不到任何可用的资源?

如果有人知道,能告诉我怎么做吗?

请参考以下links:


以下是我的测试环境配置:

ffserver 配置[/etc/ffserver.conf]

HttpPort 8090 
RtspPort 5554
HttpBindAddress 0.0.0.0 
MaxClients 1000 
MaxBandwidth 10000 
NoDaemon 

<Feed feed1.ffm> 
File /tmp/feed1.ffm 
FileMaxSize 5M 
</Feed> 

<Stream test.mpeg4>
Feed feed1.ffm
Format rtp
VideoCodec mpeg4
VideoFrameRate 15
VideoBufferSize 80000
VideoBitRate 100
VideoQMin 1
VideoQMax 5
VideoSize 352x288
PreRoll 0
Noaudio
</Stream>

运行 ffserver 如下所示:

ffserver -d

开始从网络摄像头捕捉视频:

ffmpeg -r 25 -s 352x288 -f video4linux2 -i /dev/video0 http://localhost:8090/feed1.ffm

现在您可以使用任何 rtsp 客户端播放您的流。在我的示例中,我使用 ffplay:

ffplay "rtsp://localhost:5554/test.mpeg4

我刚刚在我的笔记本电脑上测试了这个配置。而且效果很好!

我也尝试过视频和音频,但是视频和声音都无法建立。

HttpPort 8090 
RtspPort 8554
HttpBindAddress 0.0.0.0 
MaxClients 1000 
MaxBandwidth 10000 
NoDefaults

<Feed feed1.ffm> 
    File /tmp/feed1.ffm 
    FileMaxSize 5M
    ACL allow 127.0.0.1
</Feed> 

<Stream test>
    Feed feed1.ffm
    Format rtp

    #VideoCodec libx264
    #VideoFrameRate 25
    #VideoBufferSize 80000
    VideoBitRate 4000
    VideoSize 1920x1080

    AudioCodec aac
    Strict -2
    AudioBitRate 8000
    AudioChannels 2
    AudioSampleRate 44100
    AVOptionAudio flags +global_header

</Stream>

但是通过添加 "Noaudio",只有视频在播放。如何解决这个问题ß