美文网首页
live55 推流

live55 推流

作者: 五帝星一 | 来源:发表于2020-05-28 13:44 被阅读0次

学习资料

官方提供的资料

资料

官方文档

文档

源码编译

  • 将卸载的源码放到Linux换将下,解压源码包

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" lang="" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" spellcheck="false" cid="n38" mdtype="fences">tar -zxvf live.2020.05.15.tar.gz</pre>

  • 得到live文件夹加,进入live目录下

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" lang="" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" spellcheck="false" cid="n42" mdtype="fences">cd live/</pre>

  • 生成makefile

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" lang="" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" spellcheck="false" cid="n81" mdtype="fences">./genMakefiles linux</pre>

  • 编译

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" lang="" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" spellcheck="false" cid="n50" mdtype="fences">make</pre>

RTSP 推流

  • FFmpeg MP4转h264

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" spellcheck="false" cid="n69" mdtype="fences">//input.mp4是指要转换视频的地址;output.mp4是转化后视频的存放路径
ffmpeg -i input.mp4 -vcodec h264 output.mp4
ffmpeg -i input.mp4 -vcodec mpeg4 output.mp4</pre>

  • 编译后在live/mediaServer下生成live555MediaServer,拷贝一个.264测试视频文件到/live/mediaServer下

  • 开启LIVE555服务器

<pre class="md-fences md-end-block ty-contain-cm modeLoaded" lang="shell" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; display: block; break-inside: avoid; text-align: left; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); position: relative !important; border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" spellcheck="false" cid="n71" mdtype="fences">./live555MediaServer</pre>

Windows 下打开VLC播放

打开VLC播放器,媒体->打开网络串流,输入rtsp://ip:8554/文件名.264

相关文章

  • live55 推流

    学习资料 官方提供的资料 资料 官方文档 文档 源码编译 将卸载的源码放到Linux换将下,解压源码包 tar -...

  • live555 mac平台测试服务器简单搭建

    最近需要学习rtsp拉流,简单搭建一个服务器方便自测1.下载live55源码并编译 2.准备视频源 3.运行ser...

  • 《Android音视频系列-7》直播推流

    这篇文章将介绍在Android平台使用RTMPDump来进行直播推流。 一、推流核心思想 推流,可以推H264裸流...

  • 七牛云3

    直播推流地址: rtmp://推流地址/直播空间名/推流请求返回的 title?key=publishKey 直播...

  • JavaCV 本地视频推流

      导入 JavaCV 依赖,编写推流代码如下:   使用播放器验证推流效果   推流时,主要解决两个问题:直播流...

  • 音视频开发视频和视频帧:ffmpeg的RTMP推流

    推荐视频:RTSP/RTMP推流分析 推流架构分析/推流缓存队列的设计 /FFmpeg函数阻塞问题分析https:...

  • ZLMediaKit独家特性介绍

    1、先播放后推流 痛点:推流成功前不能提前播放 场景介绍:有些及时推流的场景,存在推流和播放同时发生的场景,这种场...

  • 视频流推流

    视频流监控 媒体流服务器 需要CentOS环境 安装SRS SRS(Simple RTMP Server) 是国...

  • iOS直播推流实现-推流

    将最近学习的直播推流技术做个笔记。iOS推流的主要流程如下: 视频音频采集[https://www.jianshu...

  • 视频直播方案分析

    1.RtmpPush开源推流项目 1.1简介:开源免费推流项目;RTMP推流 1.2优缺点 1.2.1优点:开源免...

网友评论

      本文标题:live55 推流

      本文链接:https://www.haomeiwen.com/subject/lcuoahtx.html