rtmp

Possible to stream videos using Amazon S3/CloudFront with HTML5 player?

前提是你 提交于 2019-12-02 14:06:56
I want to use an HTML5 video player and stream videos. Is this possible with S3/CloudFront? I understand Amazon uses the RTMP streaming protocol and HTML5's video tag does not support RTMP. Is there any way to stream videos with HTML5 players? Much of what @Wayne Koorts posted provides the basis for a good answer. The disconnect it seems is that you can "stream" video via progressive download. This works with any html5 compatible video file, as he illustrated. In order to get the best performance in a progressive download of mp4 files, you need the moov atom meta data to appear at the

Does PTS have to start at 0?

我与影子孤独终老i 提交于 2019-12-02 10:50:42
I've seen a number of questions regarding video PTS values not starting at zero, or asking how to make them start at zero. I'm aware that using ffmpeg I can do something like ffmpeg -i <video> -vf="setpts=PTS-STARTPTS" <output> to fix this kind of thing However it's my understanding that PTS values don't have to start at zero. For instance, if you join a live stream then odds are it has been going on for an hour and the PTS is already somewhere around 3600000+ but your video player faithfully displays everything just fine. Therefore I would expect there to be no problem if I intentionally

使用 ffmpeg 命令直播推流

本小妞迷上赌 提交于 2019-12-02 08:30:42
CMD使用到的命令 D: -> 表示进入D盘 cd /live -> 表示进入某个路径 执行条件 1.ffmpeg.exe 与视频放在同一目录下,纯英文目录 2.执行以上命令进入到ffmpeg.exe所在的目录 3.在当前目录执行 ffmpeg.exe 命令 查看是否执行成功 打开ffmpeg rtmp推流 rtmp推流 ffmpeg.exe -re -i "a.mp4" -acodec aac -ar 32000 -vcodec copy -f flv "rtmp://wst.zhihuishu.com/livepkgr/rb_10775004_1?k=0a259b-5f10797f" rtmp固定时间推流 ffmpeg.exe -ss 00:02:45 -re -i "a.mp4" -acodec aac -ar 32000 -vcodec copy -f flv "rtmp://wst.zhihuishu.com/livepkgr/rb_10775006_1?k=b0158c-5f10797f" 推流成功页面 来源: https://www.cnblogs.com/IT-study/p/11737636.html

How do I specify a crossdomain policy file to allow Flash to grab a bitmap from an RTMP (Wowza) video stream?

馋奶兔 提交于 2019-12-01 23:30:31
I'm trying to get a bitmap/snapshot of a Wowza video stream playing on my client, like so: var bitmapData:BitmapData = new BitmapData(view.videoPlayerComponent.width, view.videoPlayerComponent.height); bitmapData.draw(view.videoPlayerComponent); When I do this, I get this error message: SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: http://localhost:51150/Resources/WRemoteWebCam.swf cannot access rtmp://localhost/videochat/smithkl42._default/. No policy files granted access. I presume the error comes from not being able to locate the appropriate crossdomain.xml file.

nginx及nginx-rtmp-module安装

十年热恋 提交于 2019-12-01 20:45:00
系统说明: centos6.2_64 一、版本 nginx-1.4.4 nginx-rtmp-module-1.0.6 https://github.com/shenhailuanma/nginx-rtmp-module.git 二、安装 ./configure --add-module=/root/nginx-rtmp-module-1.0.6 很正常的,出现问题: ./configure: error: the HTTP rewrite module requires the PCRE library. 安装pcre-devel与openssl-devel解决问题 在centos下: yum -y install pcre-devel openssl openssl-devel 在ubuntu下: sudo apt-get update sudo apt-get install libpcre3 libpcre3-dev 你可能还需要安装 sudo apt-get install openssl libssl-dev 然后,make,make install就安装完成了。 三、配置文件 #uer nobody; worker_processes 1; error_log logs/error.log debug; #error_log logs/error.log notice

Piping process output to new process

半腔热情 提交于 2019-12-01 12:58:57
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 something simple like this: var p = new Process(); p.StartInfo.FileName = "rtmpdump.exe"; p.StartInfo

集RTMP、HLS、FLV,、WebSocket 于一身的网页直播/点播播放器EasyPlayer.js截取快照的方法分享

折月煮酒 提交于 2019-12-01 12:36:55
EasyPlayer是一款精炼、高效、稳定的流媒体播放器,分为RTSP版、RTMP版、Pro版和H5版四个版本,支持各种各样的流媒体音视频协议和文件的播放,在安防、互联网、教育、录播、IPTV等多个领域大放异彩,广泛应用! 关于EasyPlayer.js EasyPlayer几乎涵盖了开发者所需的全部平台,尤其是在web端的EasyPlayer.js,极大地方便了开发者在解决B/S型业务开发时遇到的播放器接入的问题,比如:不懂前端的js代码、没有公网服务器放置这些js脚本和网页、微信对接入IP播放地址有限制等。EasyPlayer.js适时地推出了一款非常优秀的工具页面,集 rtmp, hls, flv, websocket 于一身的网页直播/点播播放器, 使用简单, 功能强大,不论是测试,还是被集成,都很方便! EasyPlayer.js如何实现截取快照? 分析问题 如何实现点击上图中圈出来的按钮生成一个快照? 首先在播放器实例化时在控制栏添加一个按钮并绑定一个点击事件,此事件的作用是生成此时的快照并下载到本地。此功能最大的难点就在于如何生成将video标签里面的内容生成一张图片。可以通过canvas来生成图片。 解决问题 此段代码就是先获取video标签,然后通过canvas来绘制图片。 来源: https://www.cnblogs.com/TSINGSEE/p

基于nginxRtmp的直播平台(挑战斗鱼!B站),不能用当场剁吊~

强颜欢笑 提交于 2019-12-01 10:13:20
废话:起因是我想和我女朋友看电影(异地恋),但是B站,斗鱼直播电影的话必须要他们买了版权,然而他们为什么要花钱为你买版权?,所以我在B站斗鱼直播, 超管不然放,一放就封,很正常很普通的电视剧啦,但是我就不爽了,凭什么不然我和我女朋友看电影,于是我决定搭建一个直播平台,我本人(优秀大学生)是做大数据分析的,java,前端原来都做过。 好了,然后就搜资料,上午2小时迷迷糊糊,越深挖,越清楚,越兴奋。然后就搞定了。 直播地址:120.78.65.53:8080/live (打开flash即可观看)前提是我必须先开启直播。 推流中 是不是很酷!,不但如此,在手机上也能看,网页浏览器也能看,用VLC播放器也能看,楼主皆有亲测,虽然中间遇到了很多坑,但是还是成功了,整个从无到有的过程用了我2天 注意这里有个小坑,google浏览器,必须在设置中开启flash才可以,而不是询问。360,浏览器默认允许flash可以直接播放 首先咱们下载nginx,这是我当时找rtmp的尝试 最好的博客(它没有写全面的解释,我来补充) https://blog.csdn.net/l1028386804/article/details/80022437 请记住一定要一步一步跟着它来,每个包必须按照它说的装。为了避免版本冲突,版本也要下一样的。我这里也有下载好的版本,需要的加我qq1035133465,问我要就行

windows下搭建ffmpeg+nginx+rtmp-module搭建实时视频环境

淺唱寂寞╮ 提交于 2019-12-01 08:08:01
下载ffmpeg的Windows静态版; 下载nginx-rtmp-windows版: https://github.com/illuspas/nginx-rtmp-win32 解压 启动nginx 启动ffmpeg,打开ff-prompt.bat 这里通过将摄像头的rtsp流转成rtmp流和hls流来实时播放 通过rtsp生成rtmp流: ffmpeg -i "rtsp://admin:12345@192.168.1.246:554/h264/ch1/main/av_stream" -f flv -r 1 -s 1920 x1080 -an "rtmp://192.168.1.205:1935/live/stream" 访问nginx下的index.html http://192.168.1.205:8080/index.html 通过flash插件 播放rtmp地址 rtmp://192.168.1.205:1935/live/stream 使用flash的好处就是多浏览器支持,虽然chrome,Firefox等浏览器都在去插件,但flash插件仍被保留 通过rtsp生成hls ffmpeg -i "rtsp://admin:12345@192.168.1.246:554/h264/ch1/main/av_stream" -vcodec libx264 -vprofile

EasyDSS高性能RTMP、RTSP、HLS(m3u8)、HTTP-FLV流媒体服务器是如何解决视频流跨域访问的问题

不想你离开。 提交于 2019-12-01 07:49:56
EasyDSS 流媒体服务器软件,提供一站式的转码、点播、直播、时移回放服务,极大地简化了开发和集成的工作。 其中,点播功能主要包含:上传、转码、分发。直播功能,主要包含:直播、录像,直播支持RTMP输入,RTMP/HLS/HTTP-FLV的分发输出;录像支持自定义保存时长、检索及下载。提供丰富的二次开发接口,基于JSON的封装及HTTP调用。提供播放鉴权、推流鉴权等安全保证。提供用户及相关权限管理配置。 EasyDSS解决视频流跨域访问问题 提出问题 最近一个客户遇到个问题,客户要给第三方的APP提供H5页面,里面有其他视频平台提供的HLS视频流。当客户直接播放这个H5页面时,视频流可以正常播出,但是在第三方的APP上,视频一直无法播放。 分析问题 通过现象得知,视频平台提供的视频流并无问题,将视频流直接嵌入第三方的app中也可以正常播放,但是嵌入H5页面无法播放。通过分析可知应该是视频平台存在跨域访问限制的安全机制。 解决问题: 由于视频平台已经过保,客户也找不到第三方的公司来处理,因此向我们咨询有无解决访方案。 通过了解,我们给客户推荐我们的EasyDSS系统,通过EasyDSS流媒体系统中虚拟直播功能的获取视频平台的视频流,在通过直播平台将视频流分发出去。由于EasyDSS系统没有跨域问题,因此可以在第三方的APP上播放。 ## 关于EasyDSS 来源: https:/