ffserver - 无效的编解码器名称libvpx

时间:2015-06-05 08:52:04

标签: ffmpeg video-streaming ffserver

我有ffserver.conf的以下配置:

public function getFilmeByCateg()
{
    $categorii = Categorii::all();
    //$Movies = Movies::all();
    $categorie = Request::segment(2);
    $cat = Categorii::where('denumire', '=',$categorie)->first();
    $movie_ids = Categorii_filme::where('categorie_id', '=' ,$cat->categorie_id)->get()->lists('movie_id');


    $filme = Movies::whereIn('movie_id','=',$movie_ids)->paginate(12);


    return view('filme')->with('Movies',$filme)->with('categorii',$categorii);
}

当我使用该配置文件运行服务器时,出现以下错误:

Port 8090                      # Port to bind the server to
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000             # Maximum bandwidth per client
                               # set this high enough to exceed stream bitrate
CustomLog -
NoDaemon                       # Remove this if you want FFserver to daemonize after start

<Feed feed1.ffm>               # This is the input feed where FFmpeg will send
   File ./feed1.ffm            # video stream.
   FileMaxSize 1G              # Maximum file size for buffering video
   ACL allow 127.0.0.1         # Allowed IPs
</Feed>

<Stream test.webm>              # Output stream URL definition
   Feed feed1.ffm              # Feed from which to receive video
   Format webm

   # Audio settings
   AudioCodec vorbis
   AudioBitRate 64             # Audio bitrate

   # Video settings
   VideoCodec libvpx
   VideoSize 720x576           # Video resolution
   VideoFrameRate 25           # Video FPS
   AVOptionVideo flags +global_header  # Parameters passed to encoder
                                       # (same as ffmpeg command-line parameters)
   AVOptionVideo cpu-used 0
   AVOptionVideo qmin 10
   AVOptionVideo qmax 42
   AVOptionVideo quality good
   AVOptionAudio flags +global_header
   PreRoll 15
   StartSendOnKey
   VideoBitRate 400            # Video bitrate
</Stream>

<Stream status.html>            # Server status URL
   Format status
   # Only allow local people to get the status
   ACL allow localhost
   ACL allow 192.168.0.0 192.168.255.255
</Stream>

<Redirect index.html>    # Just an URL redirect for index
   # Redirect index.html to the appropriate site
   URL http://www.ffmpeg.org/
</Redirect>

如何成功运行它?我想流媒体直播webm视频,但到目前为止,我仍然坚持启动ffserver ..

1 个答案:

答案 0 :(得分:3)

Ffmpeg列出了任何调用的配置选项,并且配置中没有--enable-libvpx选项。尝试使用--enable-libvpx构建ffmpeg。