首先选择正确的ffmpeg包 百度搜索ffmpeg官网,点击进入下图所示. 点击download,进入下载页面,选择window,window下面只有一个builds版本,如图红线部分圈出来的 点击build,进入版本选择页面,对于我们普通使用者,我们选择static版本就好,当然如果你要进行更高级别的开发,你可以选择Source code.现在我们要选择的版本是version4.2.1,architecture windows64-bit,linking static. 点击Download…
现在经常有写场景需要提示用户下载app, 但是如果用户已经安装,我们希望是直接打开app. 实际上,js是没有判断app是否已经安装的方法的,我们只能曲线救国. 首先,我们需要有call起app的schema, 以及下载地址,比如: var schema = 'myApp://main'; var downUrl = 'https://yourmain.com/downloadUrlTag'; 一.使用websocket通信实现页端和app的通信 1. android app需要实现websoc…
// rtsp推流  /opt/srs/srs2 ./objs/ffmpeg/bin/ffmpeg -re -i /root/mp4/1.mp4 -vcodec copy -codec copy -f rtsp rtsp://192.168.2.161/live/rtsp_test // rtmp 推流./objs/ffmpeg/bin/ffmpeg -re -i /root/mp4/1.flv -vcodec copy -codec copy -f flv rtmp://192.168.2.1…
1. 安装nginx服务器 1.1 clone $ brew tap denji/homebrew-nginx 1.2 安装 $ brew install nginx-full --with-rtmp-module 安装过程过程中可能会报错 ➜ ~ brew install nginx-full --with-rtmp-module ==> Installing nginx-full from denji/nginx Error: Xcode alone is not sufficient on…
问题说明: springboot继承 WebSocketConfigurer实现websocket通信服务,服务器端报错,"The decoded text message was too big for the output buffer and the endpoint does not support partial messages",浏览器端显示服务器上的该次会话已经关闭.1009错误,内容长度超限. 问题解决 在应用启动类中通过注解注入方式设置通信的文本和二进制消息的大小.…
===================================================== 最简单的基于FFmpeg的推流器系列文章列表: <最简单的基于FFmpeg的推流器(以推送RTMP为例)> <最简单的基于FFMPEG的推流器附件:收流器> ===================================================== 本文记录一个最简单的基于FFmpeg的推流器(simplest ffmpeg streamer).推流器的作用就…
原文:C#(SuperWebSocket)与websocket通信 客户端代码 点击可以查看一些关于websocket的介绍 <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> <body> <input type="button&qu…
from:  https://blog.csdn.net/weiyuefei/article/details/64125208 ffmpeg循环推流方法 You should be able to use the -stream_loop -1 flag before the input (-i): ffmpeg -threads 2 -re -fflags +genpts -stream_loop -1 -i ./test.mp4 -c copy ./test.m3u8 The -fflags…
参考: https://github.com/ossrs/srs/wiki/v2_CN_SampleFFMPEG git clone https://github.com/ossrs/srs cd srs/trunk ./configure make make install ./objs/srs -c conf/myconf.conf 其中: ./configure --with-ffmpeg && make 如果编译失败就去掉--with-ffmpeg,自己安装ffmpeg 本地推流:…
网络程序设计无疑是nodejs + html最好用 一.nodejs的安装 1.在ubuntu上的安装 sudo apt install nodejs-legacy sudo apt install npm node.js 升级与版本切换——最简单的方法 https://segmentfault.com/a/1190000006869650 2.从nodejs v4版本开始已经发布了适用于嵌入式的运行环境, 我的硬件平台是cortex a5, armv7体系结构的,用最新版node-v9.9.0…