rtmp

用nginx搭建http/rtmp/hls协议的MP4/FLV流媒体服务器

自闭症网瘾萝莉.ら 提交于 2020-01-15 09:00:25
前前后后搭建了两三个星期,终于可以告一段落,nginx实在是有点强大。写一篇笔记来记录一下这个过程中的思路和解决方案。 一.搭建nginx平台: 基本是基于http://blog.csdn.net/xiaoliouc/article/details/8363984 一步步安装nginx搭建流媒体服务器 这篇博客来搭建。 我的ubuntu是14.04LTS。各种包的版本是: nginx-1.9.9 nginx_mod_h264_streaming-2.2.7.tar.gz openssl-0.9.8zh.tar.gz pcre-8.12.tar.gz zlib-1.2.7.tar.gz 为了支持rtmp,还下载了一个模块nginx-rtmp-module-master,没有版本的区别。 在安装过程中的注意事项: 1.上述无非是./configure make make install. 2.记住如果要修改nginx的./configure的话只用make无需install因为不是覆盖安装。 3.要在sbin的目录下检查./nginx -V 才能看到nginx的配置。 4.nginx在make的时候注意把objs里面的Makefile的权限改成a+w,并且将-Werror删掉,这样就不会把warning看成error来对待。修改makefile是在configure之后make之前。

Playing RTMP stream with VideoJS player

亡梦爱人 提交于 2020-01-13 07:04:27
问题 I'm trying to play RTMP stream with VideoJS player, below is my code: <head> <link href="http://vjs.zencdn.net/6.2.0/video-js.css" rel="stylesheet"> <!-- If you'd like to support IE8 --> <script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script> </head> <body> <video id="my-video" class="video-js" controls preload="auto" width="640" height="264" data-setup='{"techorder" : ["flash"]}'> <source src="rtmp://184.72.239.149/vod/mp4/BigBuckBunny_115k.mov" type="rtmp/mp4"> <p class=

Playing RTMP stream with VideoJS player

…衆ロ難τιáo~ 提交于 2020-01-13 07:03:08
问题 I'm trying to play RTMP stream with VideoJS player, below is my code: <head> <link href="http://vjs.zencdn.net/6.2.0/video-js.css" rel="stylesheet"> <!-- If you'd like to support IE8 --> <script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script> </head> <body> <video id="my-video" class="video-js" controls preload="auto" width="640" height="264" data-setup='{"techorder" : ["flash"]}'> <source src="rtmp://184.72.239.149/vod/mp4/BigBuckBunny_115k.mov" type="rtmp/mp4"> <p class=

常用NGINX配置指令翻译

落花浮王杯 提交于 2020-01-13 06:39:04
Core rtmp 语法: rtmp {…} 上下文: root 包含所有RTMP设置的块 server 语法: server {…} 上下文: rtmp 声明RTMP服务器实例 rtmp { server { } } listen 语法: isten (addr[:port]|port|unix:path) [bind] [ipv6only=on|off] so_keepalive=on|off|keepidle:keepintvl:keepcnt|proxy_protocol 上下文: server ( 所有的语句结束不要忘记加上分号 ) server { listen 1935 ; } application 语法: application name {…} 上下文: server 创建RTMP应用程序(类似电视频道),与http 配置中的location不一样,名字不可以模式匹配 server { listen 1935 ; application myapp { } } timeout 语法: timeout value 上下文: rtmp, server 套接字超时时间,该值主要用于写入。大多数时间,RTMP模块不会期望除发布者套接字之外的所有套接字上的任何活动。如果您希望断开的套接字快速断开连接,请使用诸如keepalive或RTMP ping之类的活动工具。

兼容性强、简单、成熟、稳定的RTMPClient客户端拉流功能组件EasyRTMPClient

旧巷老猫 提交于 2020-01-12 12:21:56
EasyRTMPClient EasyRTMPClient拉流功能组件是EasyDarwin流媒体团队开发、提供和维护的一套非常稳定、易用、支持重连的RTMPClient工具,SDK形式提供,全平台支持(包括Windows/Linux 32&64,Android,iOS,ARM各平台),接口简单、兼容性强、且成熟稳定! 有了librtmp为什么还要做EasyRTMPClient?主要还是可集成的程度问题,EasyRTMPClient能清晰地回调出帧率、时间戳、首帧是否为I帧、ES数据流、能保存ES进行分析,一直都是围绕着“Easy”来进行架构和设计,能最接近现实项目中的应用需求,关键是什么平台端都能用,可能是市面上唯一的! 调用示例 EasyRTMPClient :以RTMPClient的形式,从RTMP URL将音视频获取到本地; Windows编译方法, Visual Studio 2010 编译:./EasyRTMPClient/win/EasyRTMPClient.sln Linux编译方法, chmod +x ./Buildit ./Buildit Usage, -------------------------------------------------------------- EasyRTMPClient.exe -d <rtmp-url>[ -s <save

How to stream over RTMP on Android?

ⅰ亾dé卋堺 提交于 2020-01-12 03:27:11
问题 I'm trying to play video file on a remote server. Video format is flv and server is Flash Media Server3.5. I'm going to connect to server over RTMP and to implement the palyback of video file using Android Media Player. Really,is it possible? Any help is my pleasure. 回答1: http://www.aftek.com/afteklab/aftek-RTMP-library.shtml I found this one, but haven't had much luck, there are very few docs and after jigging it to try and support Video (no examples as i can see) i found that the core

Piping process output to new process

懵懂的女人 提交于 2020-01-11 07:29:12
问题 I am having issues piping the output from the rtmpdump process to ffmpeg and I believe the issue is my process is stealing the output of rtmpdump. In my research I have heard of trying to use a cmd.exe process and run rtmpdump.exe as a /C command within that, but this issue is I lose reference to the rtmpdump.exe process that is spawned from that, and I need to be able to manage multiple rtmpdump processes within my program and selectively kill certain ones at times. I initially tried

音视频基础2

大憨熊 提交于 2020-01-11 01:47:50
一、直播 1、使用开源的rtmp服务器—SRS(simple RTMP Server),不好下载,直接用老师网盘的。文档就在github上,(RTMP 直播 介绍) 2、将srs装到ubuntu上,启动服务器 3、流程就是Mac转成flv—> 用ffmpeg推rtmp流到---->Linux(虚拟机)SRS RTMP流媒体服务器—将trmp转发给其他电脑上的firefox/ iPhone播放rtmp(flv里面的H.264 ACC),flv也是容器 1)接收RTMP—拆分flv—得到H.264 pps sps AAC----FFmpeg解码H.264—AAC转pcm—OpenGL ES显示----OpenAL 播放 2)第二种方式:接收RTMP—丢给FFmpeg,它自动分离音视频—FFmpeg解码H.264视频—FFmpeg自动解码AAC—OpenGL ES显示—OpenAL/AudioQueue 播放 4、直播:iPhone 主播(iPhone采集音视频h.264+acc组包(使用librtmp)成RTMP流)—RTMP推流—>RTMP Server 流媒体转发服务器---->观察者获得RTMP流 来源: CSDN 作者: 腥红之怨 链接: https://blog.csdn.net/qq_41834780/article/details/103919760

ffmpeg 命令使用

一世执手 提交于 2020-01-07 14:17:39
1、将文件当做直播送至live ffmpeg -re -i localFile.mp4 -c copy -f flv rtmp://server/live/streamName 2、将直播媒体保存至本地文件 ffmpeg -i rtmp://server/live/streamName -c copy dump.flv 3、将其中一个直播流,视频改用h264压缩,音频不变,送至另外一个直播服务流 ffmpeg -i rtmp://server/live/originalStream -c:a copy -c:v libx264 -vpre slow -f flv rtmp://server/live/h264Stream 4.将其中一个直播流,视频改用h264压缩,音频改用faac压缩,送至另外一个直播服务流 ffmpeg -i rtmp://server/live/originalStream -c:a libfaac -ar 44100 -ab 48k -c:v libx264 -vpre slow -vpre baseline -f flv rtmp://server/live/h264Stream 5、将其中一个直播流,视频不变,音频改用faac压缩,送至另外一个直播服务流 ffmpeg -i rtmp://server/live/originalStream

Upload file on server through rtmps+java

守給你的承諾、 提交于 2020-01-06 20:02:16
问题 I need to upload file on server through flex GUI which send file on server with using rtmps protocol. I tried to send on server just FileReference and request has performed, but on server side i got only empty ObjectMap. I know that I can user URLRequest, but I need exactly rtmps request. My Flex code: public function uploadFile(file:FileReference):void{ NetConnection nc = new NetConnection(); nc.client = this; nc.proxyType = "best"; nc.connect(connectionURL, "3.0", "userName", "password");