rtmp

iOS-直播开发(开发从底层做起)

依然范特西╮ 提交于 2020-01-05 16:25:07
一直在忙, 也没写过几次播客! 但一直热衷于直播开发技术, 公司又不是直播方向的, 所以就年前忙里偷袭研究了一下直播开发, 然后翻阅了很多大神的技术博客等, 写了一个简单的Demo, 又根据网上大神们的技术博客搭建了简易的本地RTMP服务器! 由于时间问题, 没来记得来记录下来, 目前demo 只完成了直播音视频采集, 转码, RTMP协议推流, 和本地RTMP简易服务器 推流这一环节, 拉流还没来得及写, RTMP流的播放用的是VLC, 来实现视频流的播放的! 网上有各种大牛写的播客, 都很好的, 但我写这篇播客的目的就是, 想记录一下当时的思路, 还有分享出来, 让各位大神指点一下不足之处, 来完善这个小项目! 表达一下我对直播开发的热爱哈哈...如果有幸能给大家帮些忙, 我倍感荣幸! 好, 废话不多说, 接下来我们直接开始! 代码链接: Github: https://github.com/jessonliu/JFLivePlaye 技术部分------ ⬇️ 脑涂: ![ 直播思维导图.png ] 视频直播的大概流程就上脑涂上所画的, 还有一些没列出来, 比如, 聊天, 送礼, 踢出, 禁言, 等等一系列功能, 但本文只是针对视频直播的简单实现! 下边来说一下以下的几个点和使用到的类(后边会附上demo, 里边还有详细的备注) 1. 音视频采集 音视频采集,

RTMP stream plays sound for 1 second, then stops - no video at all

拈花ヽ惹草 提交于 2020-01-05 10:34:58
问题 I'm using JWPlayer 6.8 (latest) to play RTMP streams. The example page code is as simple as: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JWPlayer Stream Test</title> <script type="text/javascript" src="jwplayer/jwplayer.js"></script> </head> <body> <div id="canvas"></div> <script type="text/javascript"> jwplayer('canvas').setup({ file : "stream.smil", width : 1024, height : 768 }) </script> </body> </html> The SMIL manifest: <smil> <head> <meta base="rtmp://192.168.1.160:1340

Auto-Stop a YouTube Live Event if encoder crashes

泪湿孤枕 提交于 2020-01-04 05:46:16
问题 I know YouTube API v3, allows you to create new Live Events and then you need to bind broadcasts with streams, change the status manually, etc... in order for your live event to be published. But... I noticed that, when the remote encoder stops sending video to the stream, the Event keeps running. It will keep running until you manually stop the stream. I was wondering if there is any way to auto-stop the stream in the case my encoder crashes, or maybe I press the home button in the mobile

Publish webcam feed to Flash Media Server

匆匆过客 提交于 2020-01-03 00:38:20
问题 I have a fairly high-end webcam (snc-rz25n) that I need to rebroadcast using the Flash Media Server. I can get the picture as MPEG-4 (not h.264). So I need to transcode to h.264 and publish at multiple bitrates to FMS. The only solution I have been able to come up with thus far is to transcode the stream using ffmpeg and then also use ffmpeg to downconvert the stream (for the multiple bitrates) and then publish all of these transcoded streams to FMS via custom Java code (using Red5). Surely

mediaelement.js - RTMP support for audio streaming?

风流意气都作罢 提交于 2020-01-01 18:16:10
问题 Is there currently any support for streaming audio via RTMP using either native HTML5 or Flash fallback with MediaElement? I saw what looked like support for Video using the flashStreamer option in the video tag 'data-mejsoptions' attribute. 回答1: I know your question is a year old but I'm going to try and answer it in the hope I can save someone the time and trouble of figuring it out. As far as I'm aware RTMP is not supported in any of the native HTML5 audio/video elements. Luckily

Streaming with CloudFront to JWPlayer

こ雲淡風輕ζ 提交于 2020-01-01 12:12:16
问题 I followed the following tutorial: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/TutorialStreamingJWPlayer.html And I hosted my html codes inside localhost (at the moment). I get the player opened but player do not play any videos. It just keep rotating (indicating its still loading). But nothing buffers or nothing else happens. <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script type="text/javascript"

Recording Audio through RTMP/Rails

和自甴很熟 提交于 2020-01-01 07:03:37
问题 I am in the process of building a rails/flex application which requires audio to be recorded and then stored in our amazon s3 account. I have found no alternative to using some form of RTMP server for recording audio through flash, but our hosting environment will not allow us to install anything like FMS, Red5, etc. Is there any existing Ruby/Rails RTMP solution that will allow audio recording? If not, is it possible for Rails to at least intercept the RTMP stream and then I can hope to

FFmpeg: NetStream.Play.StreamNotFound on RMTP stream

亡梦爱人 提交于 2020-01-01 04:39:05
问题 I want to take snapshots periodically of a RTMP live video stream. I can see the rtmp video stream using VLC. This is the rtmp url: rtmp://antena3fms35livefs.fplive.net/antena3fms35live-live/stream-antena3_1 I'm using the following command to capture the snapshots, according to the official FFmpeg site here: ffmpeg -i rtmp://antena3fms35livefs.fplive.net/antena3fms35live-live/stream-antena3_1 -f image2 -vf fps=fps=1 out%d.png The command produces the following output: ffmpeg version N-64667

nginx搭建直播

六月ゝ 毕业季﹏ 提交于 2019-12-31 21:36:55
1.搭建nginx直播 2.使用安卓推流 3.使用html播放 环境虚拟机: ip: 192.168.1.181 设置: vi /etc/sysconfig/network-script/ifcfg-ens33 IPADDR=192.168.1.181 GATEWAY=192.168.1.1 NETMASK=255.255.255.0 DNS1=192.168.1.1 1.搭建nginx直播 1-1.安装编译所需软件: yum -y install git pcre pcre-devel zlib zlib-devel gcc openssl openssl-devel wget zip unzip 1-2.安装编译所需软件: wget http://nginx.org/download/nginx-1.14.1.tar.gz -P /usr/local/src/ git clone git://github.com/arut/nginx-rtmp-module.git /usr/local/src/nginx-rtmp-module tar -zxvf /usr/local/src/nginx-1.14.1.tar.gz -C /usr/local/src/ cd /usr/local/src/nginx-1.14.1/ ./configure --with-http_ssl

LiveQing云端录像存储-根据指定时间段下载_播放及最大间隔配置

风流意气都作罢 提交于 2019-12-28 23:45:27
LiveQing云端直播点播流媒体软件 : 提供设备接入; RTMP推流服务、RTMP分发、HLS分发、HTTP-FLV分发; 云端录像、云端录像检索、云端录像点播、云端录像下载; RTMP转推、推流鉴权验证、推流信息统计、播放信息统计; 直播分享、开放直播、拉转直播; 视频上传、视频转码、视频分享、视频下载; 后台管理、二次开发接口、防盗链、播放地址加密、播放器集成等。 上篇博文讲述了云端录像的显示的两种模式 LiveQing提供的云录像回看接口 01 查询有录像设备 02 查询设备所有录像记录 03 按日查询设备所有录像 04 重要录像标记 05 取消重要录像的标记 06 删除单条录像 07 删除设备所有录像 08 按天删除设备录像 09 下载录像文件 10 指定时间段录像播放及下载(mp4合成播放下载) 11 指定时间段录像播放(连续录像hls播放) 12 获取录像快照 13 查询设备所有录像 指定时间段录像播放及下载(mp4合成播放下载) 10 指定时间段录像播放及下载(mp4合成播放下载) 可以直接用,这里的播放器播放测试,贴入播放地址如: http://192.168.31.116:10080/record/video/play/xmc9pPeig/20190404155724/20190404165724 说明: 这个接口启播比较慢,需要后台合成mp4