install ffserver for streaming with libx264 and mp3lame on ubuntu
来源:互联网 发布:华通云数据 编辑:程序博客网 时间:2024/06/05 11:53
In this article I want to explain how to install ffserver for streaming with libx264 and mp3lame on ubuntu 12.04 with clean process.
1) Download FFMpeg ( ffmpeg-0.6.6 )
2) Install libx264-dev, libmp3lame-dev, libasound2-dev from distribution repository
3) ./configure --enable-gpl --enable-libx264 --enable-libmp3lame and make
4) Use this as config file for ffserver and put it into doc directory as ffserver.conf
Port 9090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000
CustomLog -
NoDaemon
File /tmp/feed1.ffm
FileMaxSize 100M
ACL allow 127.0.0.1
Feed feed1.ffm
Format flv
#audio AudioBitRate 64
AudioChannels 1
AudioSampleRate 11025
AVOptionAudio flags +global_header
#video
VideoBitRate 256
VideoBufferSize 400
VideoFrameRate 25
VideoBitRateTolerance 100
VideoSize 704x480
VideoGopSize 12
AudioCodec libmp3lame
VideoCodec libx264
AVOptionVideo coder 0
AVOptionVideo bf 0
AVOptionVideo flags2 +mixed_refs+fastpskip
AVOptionVideo flags +loop
AVOptionVideo cmp +chroma
AVOptionVideo partitions +parti8x8+parti4x4+partp8x8+partb8x8
AVOptionVideo me_method hex
AVOptionVideo subq 7
AVOptionVideo me_range 16
AVOptionVideo g 250
AVOptionVideo keyint_min 10
AVOptionVideo sc_threshold 40
AVOptionVideo i_qfactor 0.71
AVOptionVideo b_strategy 1
AVOptionVideo qcomp 0.6
AVOptionVideo qmin 10
AVOptionVideo qmax 51
AVOptionVideo qdiff 4
AVOptionVideo refs 3
AVOptionVideo directpred 1
AVOptionVideo trellis 1
AVOptionVideo wpredp 0
AVOptionVideo flags +global_header
#NoAudio
#NoVideo
#VideoQMin 1
#VideoQMax 31
#Preroll 5
StartSendOnKey
Feed feed1.ffm
Format swf
#audio
AudioBitRate 64
AudioChannels 1
AudioSampleRate 11025
AVOptionAudio flags +global_header
#video
VideoBitRate 256
VideoBufferSize 400
VideoFrameRate 25
VideoBitRateTolerance 100
VideoSize 704x480
VideoGopSize 12
#NoAudio
#NoVideo
#VideoQMin 1
#VideoQMax 31
#Preroll 5
StartSendOnKey
Format status
# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
# Redirect index.html to the appropriate site
URL http://www.ffmpeg.org/
#this permit to obtain 2 streams, one for flv streaming (h264+mp3) and the other for swf streaming (flv+mp3)
5) Run ./ffserver -f doc/ffserver.conf
6) Now the source
- Axis camera 232D+: use './ffmpeg -i rtsp://192.168.0.35/mpeg4/media.amp -f alsa -ac 2 -i hw:0,0 http://127.0.0.1:9090/feed1.ffm' command line for connect ffserver with axis camera video using pc sound card as sound input
- Axis camera M-1031W: use './ffmpeg -i rtsp://192.168.0.95/axis-media/media.amp http://127.0.0.1:9090/feed1.ffm' command line for connect ffserver with axis camera video/sound
- File: use this command line for streaming a file live './ffmpeg -i /home/dexmac/record.avi http://127.0.0.1:9090/feed1.ffm'
8) If you want to put this on line use flowplayer and follow my "streaming with flowplayer and ffserver" how-t
- install ffserver for streaming with libx264 and mp3lame on ubuntu
- Streaming media with ffserver
- Streaming media with ffserver
- Install OpenCV dependencies on Ubuntu 16.04 with python2 and python3
- Howto Install and Configure Doxygen for QtCreator on Ubuntu
- Ffmpeg Install With Libx264 (H264)
- Install Hadoop on Ubuntu with two computers
- Install hunspell with python on Ubuntu
- install opencv with ffmpeg on ubuntu
- Install Java on Ubuntu with Apt-Get
- How to debug SceneLib with Eclipse and How to install SceneLib 1.0 on Ubuntu 10.04
- Howto Install and Configure VTK on Ubuntu
- Howto Install and Configure QtCreator on Ubuntu
- Howto Install and Configure PCL on Ubuntu
- Howto Install and Configure ROS on Ubuntu
- Install PostgreSql and PostGIS On Ubuntu Server
- Install Haskell on Ubuntu and CentOS
- Install scala and sbt on Ubuntu
- Xwindow的工作原理
- C语言版的线性回归分析函数
- WPF 中使用XML作为Binding数据源
- asmlinkage宏
- Json对象的对写(Jackson使用)。
- install ffserver for streaming with libx264 and mp3lame on ubuntu
- C++开源矩阵计算工具——Eigen 在VS2005中的下载、配置与使用
- 关于apache的优化配置
- 什么是编译和链接??经典解释
- OpenGL基础
- 必须掌握的命令行
- Javascript高级程序设计第二版第八章--BOM--笔记
- ffmpeg 配置与编译
- 使用tm-extractors-0.4.jar来读取word文件