rtmp

rtmp/rtsp/hls公网测试地址

匿名 (未验证) 提交于 2019-12-03 00:22:01
相信大家在调试播放器的时候,都有这样的困惑,很难找到合适的公有测试源,以下是 大牛直播 SDK 整理的真正可用的直播地址源。 其中,rtmp和rtsp的url,用 https://github.com/daniulive/SmarterStreaming 提供的 播放器 验证通过。 hls的地址,用vlc验证通过。 1. RTMP协议直播源 香港卫视:rtmp://live.hkstv.hk.lxdns.com/live/hks 大熊兔(VOD): rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov 国外电视台: rtsp://rtsp-v3-spbtv.msk.spbtv.com/spbtv_v3_1/214_110.sdp 3. HTTP协议直播源 香港卫视: http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8 文章来源: rtmp/rtsp/hls公网测试地址

rtmp流媒体协议播放遇到的坑

匿名 (未验证) 提交于 2019-12-02 23:43:01
前提: 前端网页是不能直接播放rtmp或rtsp直播流的。 项目中需要播放工场仓储物流的实时监控摄像头。经过各种调研,发现video.min.js+videojs-flash.min.js,再加上浏览器安装了adobe flash播放器,则能完美实时播放rtmp视频了。 但是用video.min.js也踩了个严重的坑,很多Bug都是这样,不大,但愁人! 上次看一有趣的前端Bug,说一个前端开发人员一个Bug找了一个晚上,竟不知啥原因。描述是这样,是个地图项目,却发现地图怎么都出不来,就一个蓝色背景,找了好久的原因百思不得姐阿,结果不小心拿水杯时碰到了鼠标滚轮,发现有了地图区域,于是再滚再滚,地图出来了,原来是后端人员随便给了个定位点(0,0)导致放大定位到了大西洋,全是海,尼玛真是一片蓝!~ 言归正传,今天遇到的播放rtmp流的坑,所以记录下来。 上代码: changeRtmpUrl(data: any) {   let src = data.src;   if(this.player == null){     this.player = window['videojs']('#asn_video', {       fill: true     });    }   //$('#asn_video source').attr('src', src);    //this

How do i play a stream with QMediaPlayer

痴心易碎 提交于 2019-12-02 23:37:28
I have set up a server and video streaming so that I can connect to the stream with ffplay using the following command line: ffplay rtmp://<IP>/path Is it possible to use QMediaPlayer QMediaContent or something to connect to this stream? Or maybe any other kind of stream I can create with ffserver. using the same path as with ffplay results in "Unsupported url scheme!" With further experiments i have tried ffserver http server streaming, but that ended with Qt crashing in MFStreamer::doRead() Apparently it should have called BeginRead for MFStreamer but it didn't. How do i play video streams

rtmp sm4 加解密实现测试

匿名 (未验证) 提交于 2019-12-02 23:32:01
SM4现在应用场景越来越多,在国内某些场景下有取代AES的趋势,所以我开发了基于sm4的rtmp加密方案,本方案不依赖于rtmp服务器,只要有播放和推送端就可以。可以从 https://github.com/daniulive/SmarterStreaming 下载测试,以下是测试效果图: 先打开推送端SmartPublisherDemo.exe: 然后点击"配置加密" 配置好sm4加密,点击确定,然后点击推送,即可用SmartPlayer.exe查看, 输入播放地址点击播放,会弹框提示输入密钥和IV: 点击确定即可看到解密后的视频画面: SM4和AES相比,SM4只有128位密钥长度可选,AES有128,192,256三种方式可选,二者都支持ecb, cbc, cfb, ofb等模式,上面的例子是逐帧加密的,也可以只加密视频或者音频,根据实际需求配置,如有更多问题欢迎交流: qq群: 294891451 499687479 . github 。 转载请标明出处: rtmp sm4 加解密实现测试 文章来源: https://blog.csdn.net/lsheevyfg/article/details/89785881

ffmpeg+nginx将rtsp转为rtmp

匿名 (未验证) 提交于 2019-12-02 22:10:10
一、安装ffmpeg 1. http://ffmpeg.org/download.html 下载地址,选择合适的操作系统版本下载,因为我的操作系统是centos7,所以下面的安装都是命令都是针对centos系统的 2.安装ffmpeg依赖的软件x264 sudo yum install x264-devel.x86_64 3.配置ffmpeg ./configure --enable-gpl --enable-libx264 4.编译(时间有点长) make 5.安装 make install 二、安装nginx 1.官网下载源码 http://nginx.org/ 2.到github上,下载rtmp-module, https://github.com/arut/nginx-rtmp-module ,在后面配置nginx需要用到 3.安装openssl,配置nginx需要,sudo yum install openssl-devel.x86_64 4.配置nginx,进入到nginx源码目录 ./configure --add-module=/path/to/nginx-rtmp-module 5.编译 make make install 7.修改nginx配置文件 添加 rtmp{   server{     listen 1935;     chunk_size 4000;

linux cmd video常用命令

匿名 (未验证) 提交于 2019-12-02 21:59:42
笔记 rtmp rtsp rtmp://live.hkstv.hk.lxdns.com/live/hks rtsp://${username}:${password}@${ip}:554/Streaming/channels/1001 rtsp://admin:123@192.168.0.23:554/Streaming/channels/1001 转换推流 ffmpeg -re -i rtsp://admin:123@192.168.1.130:554/Streaming/channels/1001 -vcodec copy -acodec copy -f flv rtmp://192.168.1.66:1936/live/zb ffmpeg -re -i rtsp://admin:123@192.168.1.71:554 -vcodec copy -acodec copy -f flv rtmp://192.168.1.66:1936/live/zb2 播放文件 /usr/local/ffmpeg -re -i media/class_1.mp4 -acodec copy -vcodec copy -f flv rtmp://192.168.1.66:1936/live/zb2 循环播放文件 /usr/local/ffmpeg -re -stream_loop -1 -i

Android - Stream camera as RTMP stream [closed]

笑着哭i 提交于 2019-12-02 19:44:22
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I want to capture the camera stream from an Android device and stream it to a server with RTMP (the server is out of my control). I have not figured out yet how to create a stream of data from the camera itself, but that is for a later concern. At the moment there are two problems: I wish to support API 9+ and RTMP is not native supported by Android. I've taken a look around and found this SO post Convert video Input

RTSP/RTMP Video Streaming Client iOS [closed]

你离开我真会死。 提交于 2019-12-02 17:48:17
I'm in need of a open source solution/library to stream RTSP/RTMP to an iOS Application. I need to build an app that connects to a media server, and opens the provided video stream. I believe there has to be libraries out there, but I have yet to find one that is open source, compiles, actually works, and runs on iOS 5+, iPhone 4+. I do not have a preference, RTMP or RTSP will suffice. Preferably the one with the least amount of work. I have RTSP working on the Android side, but nothing for iOS yet. This is what I already know from research today - RTSP Seems possible using Live555/FFMPEG

RTMP: Is there such a linux command line tool?

不想你离开。 提交于 2019-12-02 16:20:51
I have looked everywhere to find a linux utility that will allow me to download rtmp streams. Not flv video but MP3 streams. The location of the streams I want to download are in this format. rtmp://live.site.com/loc/45/std_fc74a6b7f79c70a5f60.mp3 Anyone know of such a command line tool? Or even anything close to what I am asking for? I do not want full software applications and it would be great if it worked on Linux via Shell or something. Thanks all One of the following should do, if you have mplayer or vlc compiled with RTMP access. mplayer -dumpstream rtmp://live.site.com/loc/45/std

srs在centos 7下的编译和运行

匆匆过客 提交于 2019-12-02 15:18:52
SRS是一个挺好用的开源直播服务器,源码位于 https://github.com/ossrs/srs 文档比较全,个人在实际使用中还是有一些小问题。在这记录一下。 一、编译 git clone https://github.com/ossrs/srs cd srs/trunk --jobs=16指示用16个进程进行make,加快速度,因为我的服务器是32核的。 ./configure --rtmp-hls --with-ffmpeg --with-http-api --jobs=16 在编译过程中编译ffmpeg出错, trunk/auto/build_ffmpeg.sh文件是编译ffmpeg时用的脚本,直接修改此脚本中./configure后面的参数,把enable_asm 删除掉。 1.编译 x264错误,报不支持asm 将x264的./configure 参数添加--disable-asm 2.编译ffmpeg时找不到libspeex,明明有这个库的,但是找不到 把ffmpeg的 ./configure 参数--enable-libspeex 删除掉。 二、推流 官方给的脚本是这个: 意思是播放 ./doc/ljg-39.mp4文件, 推送到 rtmp://test.abc.com/live/livestream #!/bin/bash for((;;)); do \ .