ffmpeg部署现场直播

#所有需要安装的包都在contribs目录里。

faac

1. #cd /usr/local/src/contribs

2. [[email protected] contribs]# tar zxvffaac-1.28.tar.gz

3. [[email protected] contribs]# cd faac-1.28

4. [[email protected] faac-1.28]# ./configure--prefix=/usr/local/ --enable-shared

5.[[email protected]]# make && make install

#此时出现报错:“make[2]: Entering directory`/usr/local/src/contribs/faac-1.28/common‘

Making all in mp4v2

make[3]: Entering directory`/usr/local/src/contribs/faac-1.28/common/mp4v2‘

source=‘3gp.cpp‘ object=‘3gp.o‘ libtool=no \

DEPDIR=.depsdepmode=none /bin/sh ../../depcomp \

g++-DHAVE_CONFIG_H -I. -I. -I../.. -I../../include   -Wall -c -o 3gp.o 3gp.cpp

../../depcomp: line 512: exec: g++: notfound

make[3]: *** [3gp.o] Error 127

make[3]: Leaving directory `/usr/local/src/contribs/faac-1.28/common/mp4v2‘

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory`/usr/local/src/contribs/faac-1.28/common‘

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory`/usr/local/src/contribs/faac-1.28‘

make: *** [all] Error 2”

解决方法:[[email protected] mp4v2]# cd/usr/local/src/contribs/faac-1.28/common/mp4v2

[[email protected] mp4v2]# vim mpeg4ip.h 把第124行的C改成C++,第126行行首加上const,之后在执行make && make instal,问题解决了。

Lame

1.#cd  /usr/local/src/contribs

2.[[email protected]]# tar zxvf lame-3.98.4.tar.gz

3.[[email protected]]# cd lame-3.98.4

4.[[email protected]]# ./configure --prefix=/usr/local/ --enable-shared

5.[[email protected]]# make && make install

Libogg

1.#cd  /usr/local/src/contribs

2.[[email protected]]# tar zxvf libogg-1.3.0.tar.gz

3.[[email protected]]# cd  libogg-1.3.0

4.[[email protected]]# ./configure --prefix=/usr/local/ --enable-shared

5.[[email protected]]# make && make install

Libtheora

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf libtheora-1.1.1.tar.gz

3.[[email protected] contribs]# cdlibtheora-1.1.1

4.[[email protected]]#./configure --prefix=/usr/local/ --enable-shared

5.[[email protected] libtheora-1.1.1]#ldconfig –v

6.[[email protected] libtheora-1.1.1]#make && make install

Libvorbis

1.#cd  /usr/local/src/contribs

2. [[email protected]]# tar zxvf libvorbis-1.3.3.tar.gz

3. [[email protected]]# cd libvorbis-1.3.3

4. [[email protected]]# ./configure --prefix=/usr/local/ --enable-shared

5.[[email protected]]# make && make install

vo-aacenc

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf vo-aacenc-0.1.2.tar.gz

3.[[email protected]]# cdvo-aacenc-0.1.2

4.[[email protected] vo-aacenc-0.1.2]#./configure --prefix=/usr/local/ --enable-shared

5.[[email protected] vo-aacenc-0.1.2]#make && make install

Yasm

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf yasm-1.2.0.tar.gz

3.[[email protected] contribs]# cdyasm-1.2.0

4.[[email protected] yasm-1.2.0]#./configure --prefix=/usr/local/

5.[[email protected] yasm-1.2.0]# make&& make install

x264-snapshot

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# bunzip2last_x264.tar.bz2

3.[[email protected] contribs]# tar xvflast_x264.tar

4.[[email protected] contribs]# cdx264-snapshot-20130505-2245/

5.[[email protected]]# ./configure --prefix=/usr/local/ --enable-shared--enable-pic

6.[[email protected]]# make && make install

libraw1394

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf libraw1394-2.0.5.tar.gz

3.[[email protected] contribs]# cdlibraw1394-2.0.5

4.[[email protected] libraw1394-2.0.5]#./configure --prefix=/usr/local/ --enable-shared

5.[[email protected] libraw1394-2.0.5]#make && make install

libdc1394

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf libdc1394-2.2.1.tar.gz

3.[[email protected] contribs]# cdlibdc1394-2.2.1

4.[[email protected] libdc1394-2.2.1]#./configure --prefix=/usr/local/ --enable-shared

[[email protected] libdc1394-2.2.1]# make && make install

Libfreetype

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# unziplibfreetype2-master.zip

3.[[email protected] contribs]# cdlibfreetype2-master

4.[[email protected] libfreetype2-master]#./configure --prefix=/usr/local/ --enable-shared

5.[[email protected]]# make && make install

Fribidi

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# bunzip2fribidi-0.19.4.tar.bz2

3.[[email protected] contribs]# tar xvffribidi-0.19.4.tar

4.[[email protected] contribs]# cdfribidi-0.19.4

5.[[email protected] fribidi-0.19.4]#./configure --prefix=/usr/local/ --enable-shared

6.[[email protected] fribidi-0.19.4]#make && make install

Fontconfig

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf fontconfig-2.9.0.tar.gz

3.[[email protected] contribs]# cdfontconfig-2.9.0

4.[[email protected] fontconfig-2.9.0]#./configure --prefix=/usr/local/ --enable-shared

5.[[email protected] fontconfig-2.9.0]#make && make install

Libass

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf libass-0.10.1.tar.gz

3.[[email protected] contribs]# cdlibass-0.10.1

#此时报错:checking for FREETYPE... configure: error:Package requirements (freetype2 >= 9.10.3) were not met:

No package ‘freetype2‘ found

解决方法:[[email protected]]# exportPKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

4.[[email protected] libass-0.10.1]#./configure --prefix=/usr/local/ --enable-shared

5.[[email protected] libass-0.10.1]#make && make install

Openssl

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf openssl-1.0.1c.tar.gz

3.[[email protected] contribs]# cdopenssl-1.0.1c

4.[[email protected] openssl-1.0.1c]# ./config--prefix=/usr/local/ --openssldir=/usr/local/openssl threads zlib-dynamicshared

5.[[email protected] openssl-1.0.1c]# make&& make install

Rtmpdump

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf rtmpdump-2.3.tgz

3.[[email protected] contribs]# cdrtmpdump-2.3

4.[[email protected] rtmpdump-2.3]#make SYS=posix

5.[[email protected] rtmpdump-2.3]#make install

Speex

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf speex-1.2rc1.tar.gz

3.[[email protected] contribs]# cdspeex-1.2rc1

4.[[email protected] speex-1.2rc1]# ./configure--prefix=/usr/local/ --enable-shared --enable-sse

5.[[email protected] speex-1.2rc1]# make&& make install

Twolame

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf twolame-0.3.13.tar.gz

3.[[email protected] contribs]# cdtwolame-0.3.13

4.[[email protected] twolame-0.3.13]#./configure --prefix=/usr/local/ --enable-shared

5.[[email protected] twolame-0.3.13]#make && make install

FFmpeg

1.#cd  /usr/local/src/contribs

2.[[email protected] contribs]# tarzxvf ffmpeg.tar.gz

3.[[email protected] contribs]# cdffmpeg

4.[[email protected]]#./configure --prefix=/usr/local/ --enable-gpl --enable-version3--enable-nonfree --enable-shared --enable-zlib --enable-bzlib --enable-libfaac--enable-libmp3lame --enable-libtheora --enable-libvo-aacenc --enable-libvorbis--enable-libx264 --enable-pic --enable-pthreads --enable-libdc1394--enable-libass --enable-pic --enable-openssl --enable-libtwolame--enable-libspeex --enable-librtmp --enable-libfreetype

5.[[email protected] ffmpeg]#make&& make install

接下来测试一下ffmpeg是否安装成功:

# ffmpeg –version   #出现报错:ffmpeg:error while loading shared libraries: libavdevice.so.55: cannot open sharedobject file: No such file or directory

解决方法:[[email protected]...ffmpeg]# echo "/usr/local/lib" >> /etc/ld.so.conf

[[email protected] ffmpeg]# ldconfig

之后测试一下ffmpeg是否安装成功:

# ffmpeg –version  出现如下信息说明安装成功:

ffmpegversion 2.2.git

built on Apr10 2014 22:32:22 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)

configuration:--prefix=/usr/local/ --enable-gpl --enable-version3 --enable-nonfree--enable-shared --enable-zlib --enable-bzlib --enable-libmp3lame--enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libx264--enable-pic --enable-pthreads --enable-libdc1394 --enable-pic--enable-libtwolame --enable-libspeex

libavutil      52. 67.100 / 52. 67.100

libavcodec     55. 52.102 / 55. 52.102

libavformat    55. 34.101 / 55. 34.101

libavdevice    55. 11.100 / 55. 11.100

libavfilter     4. 3.100 /  4.  3.100

libswscale      2. 5.102 /  2.  5.102

libswresample   0. 18.100 / 0. 18.100

libpostproc    52. 3.100 / 52.  3.100

ffmpeg部署现场直播,布布扣,bubuko.com

时间: 2024-08-02 07:01:57

ffmpeg部署现场直播的相关文章

切换台进行多机位切换画面现场直播搭建详解教程

超多机位的导播作业是不少活动项目需要的方式,尤其是运动会.大型演唱会.校园远程教育及晚会活动的异地连线直播.要运用超多机位现场导播作业,在导播系统上就必须达到10组以上输入,才能够适时的把节目内容呈现观众眼前,这样直播画面才具有多花样的变化. 那么如何才能搭建出多机位画面切换输出的现场直播呢?搜索引擎搜索了一下发现对于切换台多机位的直播问题,很多网友都有疑问. 洋铭切换台与索尼摄像机怎么连接? 现场多机位视频直播都需要什么设备? 如何使用洋铭切换台blackmagic采集卡实现网络直播教程? 切

使用洋铭SE-500HD切换台进行多机位切换画面现场直播搭建详解教程

超多机位的导播作业是不少活动项目需要的方式,尤其是运动会.大型演唱会.校园远程教育及晚会活动的异地连线直播.要运用超多机位现场导播作业,在导播系统上就必须达到10组以上输入,才能够适时的把节目内容呈现观众眼前,这样直播画面才具有多花样的变化. 那么如何才能搭建出多机位画面切换输出的现场直播呢?搜索引擎搜索了一下发现对于切换台多机位的直播问题,很多网友都有疑问. 洋铭切换台与索尼摄像机怎么连接? 现场多机位视频直播都需要什么设备? 如何使用洋铭切换台blackmagic采集卡实现网络直播教程? 切

使用ffmpeg搭建HLS直播系统

[时间:2018-04] [状态:Open] [关键词:流媒体,stream,HLS, ffmpeg,live,直播,点播, nginx, ssegment] 0 引言 本文作为HLS综述的后续文章. 主要目的是使用ffmpeg搭建一个简单的HLS点播及直播系统.使用nginx作为HTTP服务器. HLS不管点播还是直播,都是基于HTTP的文件分发系统,所以本文的基本思路是: 使用nginx搭建HTTP服务器 使用ffmpeg实现ts文件的分片,并生成m3u8 ffmpeg使用本地文件模拟HLS

神马六合,管家婆开奖现场直播,今晚开马开奖现场直播,今晚六会彩开奖直播,香港六合形开奖直播

强大的品牌后盾 强大的品牌后盾,引进德国最新技术,20年专注防水材料研发与生产,第一个推出防水材料企业. 完整的产品结构 丨118香港六合开奖结果查询开奖直播,13769 om王中王下载安装在产品设计和开发能力上一直贵为行业翘楚,目前生产和销售的产品超过3500种 大专栏  神马六合,管家婆开奖现场直播,今晚开马开奖现场直播,今晚六会彩开奖直播,香港六合形开奖直播>卓越的产品品质 技术先进,功能卓越,全面执行国际最高工艺标准,真正健康.真正环保. 经营管理支持 出资培训,每年密集推出各类培训班.

iOS平台基于ffmpeg的视频直播技术揭秘

现在非常流行直播,相信很多人都跟我一样十分好奇这个技术是如何实现的,正好最近在做一个ffmpeg的项目,发现这个工具很容易就可以做直播,下面来给大家分享下技术要点: 首先你得编译出ffmpeg运行所需的静态库,这个百度一下有很多内容,这里我就不多说了,建议可以用Github上的一个开源脚本来编译,简单粗暴有效率. 地址:GitHub - kewlbear/FFmpeg-iOS-build-script: Shell scripts to build FFmpeg for iOS and tvOS

Android Multimedia框架总结(二十六)利用FFmpeg进行解码直播流

转载请把头部出处链接和尾部二维码一起转载,本文出自逆流的鱼yuiop:http://blog.csdn.net/hejjunlin/article/details/59225373 早在去年九月份时,写过一篇<手把手图文并茂教你用Android Studio编译FFmpeg库并移植>,今天用去年编译好的3.1.3的ffmpeg,进行在Android平台上解码直播流.看下Agenda: 环境 Java代码 ndk代码 解码运行 环境: Mac OX Android Studio 2.2 andr

使用FFmpeg转录网络直播流

爱奇艺万能播放器的最新版本增加了一个播放网络流的功能.不过,入口藏在播放器区域的右键菜单里,不太好找: 找来一个直播流URL,比如东森新闻 http://60.199.188.151/HLS/WG_ETTV-N/index.m3u8,试了一下,还不赖呢! 有时候,看到精彩的直播内容,想把某些片段保存到本地.无奈播放器不提供这样的功能.那么,开个小窗给FFmpeg吧,它可以搞定! 命令行如下: ffmpeg -i http://60.199.188.151/HLS/WG_ETTV-N/index.

golang ffmpeg 做网络直播

最近在公司做在线视频转码的工作,研究了下ffmpeg 最后直接研究了下网络直播,我是在我自己的mac 上面测试的,效果,还可以,先看看效果图吧 ffmpeg 我是通过brew安装 的,这步就略了 VLC这个播放器怎么安装的也略了 我先是在github上面找了一个开源的直播流工具 https://github.com/gwuhaolin/livego 然后把它run 起来,最后看几个直播流参数吧: 桌面成功: ffmpeg -f avfoundation -pixel_format uyvy422

使用ffmpeg进行网络直播

一.采集:使用python调用摄像头采集,原设想是使用树莓派摄像头采集,但是经费紧张买不起,先用摄像头凑合下,反正很简单. 原理就是先录一小段视频,然后循环播放,用celery做任务控制,每5秒钟录一段很小的视频,然后再循环录制.控制录制开始和停止的方法就是在redis钟设置一个键,录像程序运行的前提是这个键允许录制,如果要求录制停止就把这个键设置为停止.每5秒循环录制.正式使用后用python调用ffmpeg的命令进行推流直播,录制视频的格式是avi格式,要记得定时删除.录视频使用opencv