gaogaoyanjiu

亲手搭建一套简单的直播系统

源码安装ffmpeg(带libx264)

ffmpeg编译参考官网文档:http://trac.ffmpeg.org/wiki/CompilationGuide/Centos

环境:CentOS6.2_64

1、下载源码包

wget ftp://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-20120718-2245-stable.tar.bz2

解压:tar jxvf x264-snapshot-20120718-2245-stable.tar.bz2

wget http://ffmpeg.org/releases/ffmpeg-0.11.1.tar.gz

解压:tar zxvf ffmpeg-0.11.1.tar.gz

2、安装x264

2.1 安装依赖包

缺少yasm

安装:yum install yasm -y

2.2 安装x264

./configure --prefix=/usr --enable-shared && make && make install

重新加载配置:ldconfig

3、安装ffmpeg

ffplay必须依赖于sdl

yum install SDL -y

安装:

./configure --enable-libx264 --enable-gpl && make && make install
附(自动安装脚本):

 

#! /bin/bash

echo "Install yasm  ..."
yum install yasm SDL* gtk+* -y

echo "Install libx264 ..."
wget ftp://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-20120718-2245-stable.tar.bz2
tar jxvf x264-snapshot-20120718-2245-stable.tar.bz2
cd x264-snapshot-20120718-2245-stable
./configure --enable-shared && make && make install
ldconfig

echo "Install ffmpeg ..."
cd ..
wget http://ffmpeg.org/releases/ffmpeg-0.11.1.tar.gz
tar zxvf ffmpeg-0.11.1.tar.gz
cd ffmpeg-0.11.1
./configure --enable-libx264 --enable-gpl && make && make install

 

 

 

泛娱乐化直播系统、视频会议实时互动直播系统

 

 视频压缩技术

 

 

 

分类:

技术点:

相关文章:

  • 2022-01-01
  • 2021-12-31
  • 2021-12-21
  • 2021-11-05
  • 2021-11-28
  • 2022-12-23
  • 2021-05-26
猜你喜欢
  • 2021-12-08
  • 2022-02-08
  • 2022-12-23
  • 2021-11-08
相关资源
相似解决方案