上一页 1 2 3 4 5 6 7 8 ··· 29 下一页
摘要: 这个项目基于kurento tutorial的hello world构建。 项目地址:https://github.com/godka/kurento-rtmp sdp参考:https://www.cnblogs.com/bigben0123/p/14229018.html sdp是个文本文件,vl 阅读全文
posted @ 2021-01-04 15:00 Bigben 阅读(2192) 评论(0) 推荐(0) 编辑
摘要: 翻译自:https://www.kurento.org/blog/rtp-i-intro-rtp-and-sdp 一、The Real-time Transport Protocol -- RTP FFmpeg and GStreamer 是两个工具可操作rtp,也提供可编程。 rtp已经成为事实的 阅读全文
posted @ 2021-01-04 11:59 Bigben 阅读(3254) 评论(0) 推荐(0) 编辑
摘要: 基于Gstreamer的rtp转rtmp代码 flv不支持 音频 48000. 支持44k。flv不支持音频opus格式。 1,用ffmpeg推流到rtp。 srs的示例flv文件: ffmpeg -re -stream_loop -1 -i ./doc/source.200kbps.768x320 阅读全文
posted @ 2020-12-25 13:37 Bigben 阅读(4203) 评论(0) 推荐(0) 编辑
摘要: ffmpeg参数中文详细解释 a) 通用选项 -L license -h 帮助 -fromats 显示可用的格式,编解码的,协议的... -f fmt 强迫采用格式fmt -I filename 输入文件 -y 覆盖输出文件 -t duration 设置纪录时间 hh:mm:ss[.xxx]格式的记 阅读全文
posted @ 2020-12-21 15:23 Bigben 阅读(6324) 评论(0) 推荐(1) 编辑
摘要: ubuntu 虚拟机下使用摄像头 :把usb2.0改成3.0;或者相反。等了半天,突然好了。虚拟机用摄像头参考。没用见下面的安装一个虚拟摄像头。 在vlc,cheese都打不开虚拟摄像头:no device found。 后来运行kurento的helloworld示例,先推流到虚拟摄像头: ffm 阅读全文
posted @ 2020-12-16 14:34 Bigben 阅读(3252) 评论(0) 推荐(0) 编辑
摘要: 一位用户反馈说在win10 64位系统安装VMware Workstation与Device/Credential Guard软件后出现不兼容问题,提示“VMware Workstation 与 Device/Credential Guard 不兼容。在禁用 Device/Credential Gu 阅读全文
posted @ 2020-12-15 18:05 Bigben 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 1> 修改配置文件sudo vim /etc/security/limits.conf添加: root soft nofile 65535 root hard nofile 65535 root soft noproc 65535 root hard noproc 65535 非root用户需再另行 阅读全文
posted @ 2020-12-14 10:44 Bigben 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: webRTC ==(通过nodejs指定的sdp,这个sdp写的要与webrtc源一致)==》 RTP ==》RTMP 各种推流方法:https://www.cnblogs.com/bigben0123/p/14188475.html 整个启动流程: 1,启动kurento服务: ~/kms/kms 阅读全文
posted @ 2020-12-10 11:52 Bigben 阅读(4346) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <sstream> #include <string> class CMyStream { public: typedef void (CMyStream::* EndlCallback)(); CMyStream& operator<<(E 阅读全文
posted @ 2020-12-03 17:47 Bigben 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 读文件 #include <fstream> #include <iostream> #include <random> #include <sstream> #include <string> std::ifstream inFile("d:\\bigfile.txt"); std::string 阅读全文
posted @ 2020-12-02 11:46 Bigben 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 在1秒以后模拟鼠标click按钮: <html lang="en" class="no-js"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compa 阅读全文
posted @ 2020-12-02 11:38 Bigben 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 切换release /debug版本: 阅读全文
posted @ 2020-11-27 16:54 Bigben 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 1,C风格字符串一般以char* 或 char str[]表示,字符串以'\0'结尾 2,sizeof()获得给定数据类型或变量的内存大小,strlen()获得字符串长度 3,字符串字面量 char* arr = "hello"; arr[1] = 'b'; // 未定义行为,非法 char arr 阅读全文
posted @ 2020-11-27 14:44 Bigben 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: c++函数式编程:https://blog.csdn.net/richenyunqi/article/details/89530589 转自:https://blog.csdn.net/m0_43383220/category_10485824.html 1 模板参数推导 1.1,C++17可对类模 阅读全文
posted @ 2020-11-27 10:27 Bigben 阅读(1695) 评论(0) 推荐(0) 编辑
摘要: C++17剖析:string在Modern C++中的实现 2019-01-26 19:17 猴子顶呱呱 阅读(388) 评论(0) 编辑 收藏 概述 GCC 8.2提供了两个版本的std::string:一个是基于Copy On Write的,另一个直接字符串拷贝的。前者针对C++11以前的,那时 阅读全文
posted @ 2020-11-26 17:47 Bigben 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 编译程序加不加 -lpthread 的区别 作者:Lokki 出处:http://www.cnblogs.com/Swartz/ 欢迎转载,也请保留这段声明。谢谢! 讨论贴 最近在CSDN上看到一个帖子在讨论 进程间共享的Posix mutex的锁定状态能否被子进程继承?,其中4楼的帖子给出了一个测 阅读全文
posted @ 2020-11-25 15:30 Bigben 阅读(523) 评论(0) 推荐(1) 编辑
摘要: 下载:git clone https://github.com/google/gumbo-parser.git 预先安装gcc等sudo apt-get install libtool $cd gumbo-parser/ $ ./autogen.sh $ ./configure $ make $ s 阅读全文
posted @ 2020-11-24 17:53 Bigben 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 转自:Chromium学习笔记:程序启动入口分析(Windows) 以下笔记内容均为Windows版本。 本篇笔记跟踪记录了Chromium的启动过程,主要关注 Browser 进程和 Renderer 进程。根据 Chromium 项目的分层设计,我们把 Content API 称作为 Conte 阅读全文
posted @ 2020-11-18 19:51 Bigben 阅读(2143) 评论(0) 推荐(0) 编辑
摘要: 经典就是好用,各种开发包,直接下载后,解压,运行eclipse就行: https://www.eclipse.org/downloads/packages/ 生成静态库: https://blog.csdn.net/u012707739/article/details/77899880 Eclips 阅读全文
posted @ 2020-11-17 19:38 Bigben 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 在java中,有类常量。因为java没有头文件,直接写在类定义即可。 c++17中,也支持直接写在头文件定义类中,记得一定加上inline: static inline const string TOP_LEVEL_DOMAIN_STR{ "((aero|arpa|asia|a[cdefgilmno 阅读全文
posted @ 2020-11-13 17:42 Bigben 阅读(2698) 评论(0) 推荐(0) 编辑
摘要: js代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <button onclick="modify()"> modify designMode 阅读全文
posted @ 2020-11-11 10:03 Bigben 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1, 下载:https://github.com/gerhardberger/electron-pdf-window 存到目录下,如d:\dev 2,用electron执行nodejs文件 electron.exe index.js index.js const { app, BrowserWind 阅读全文
posted @ 2020-11-10 16:14 Bigben 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 多进程架构,有一个浏览器进程和N个沙盒渲染器进程,Blink在沙盒渲染中运行。浏览器选项卡、iframe可共享同个渲染器进程。 沙箱运行:在沙箱中,须通过父浏览器进程来调度使用资源(文件访问、网络、音视频播放、用户配置文件读取(cookie,密码)等。Blink将浏览器进程抽象为一组服务,使用Moj 阅读全文
posted @ 2020-11-10 15:34 Bigben 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 正则表达式 c++ 阅读全文
posted @ 2020-11-09 14:15 Bigben 阅读(2028) 评论(0) 推荐(1) 编辑
摘要: C++11 REGEX MATCH ALL 获取全部匹配 转自:https://sst.st/p/1758 目录 C++11 Regex 概念区分 关于 regex_token_iterator 和 regex_iterator 的区别 代码示例 REFERENCE C++11 Regex 处理规模 阅读全文
posted @ 2020-11-05 16:54 Bigben 阅读(1426) 评论(1) 推荐(0) 编辑
摘要: 具体参考gn的说明。 1,在全局里面设置编译参数的值:electron/build/args/testing.gn里面设置开关: enable_desktop_capturer=false 会覆盖调定义时的值也可使直接使用:gn --args="enable_doom_melon=true enab 阅读全文
posted @ 2020-11-05 13:52 Bigben 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: Getting Started with Headless Chrome By Eric Bidelman Engineer @ Google working on web tooling: Headless Chrome, Puppeteer, Lighthouse TL;DR Headless 阅读全文
posted @ 2020-11-02 19:29 Bigben 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 深入理解Git的实现原理 作者:马鸣谦 邮箱:1612557569@qq.com (如有和文章相关的技术问题,欢迎通过邮件探讨,见信必回) 声明:原创文章,转载请注明出处,勿用于商业用途,侵权必究! 0、导读 本文适合对git有过接触,但知其然不知其所以然的小伙伴,也适合想要学习git的初学者,通过 阅读全文
posted @ 2020-10-30 16:48 Bigben 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 程序员小灰-算法集锦 本文整理了公众号《程序员小灰》里面的经典算法,供大家参考学习。 漫画:什么是ConcurrentHashMap? 漫画:高并发下的HashMap 漫画:什么是HashMap? 漫画:什么是红黑树? 什么是AES算法?(整合版) 漫画:什么是SHA系列算法? 漫画:什么是MD5算 阅读全文
posted @ 2020-10-28 19:38 Bigben 阅读(6266) 评论(1) 推荐(2) 编辑
摘要: electron加入headless包。打印到pdf:-print-to-pdf 打印到png图片: --screenshot chrome的启动main:src\chrome\app\chrome_main.cc 用electron执行headless: e run --headless --en 阅读全文
posted @ 2020-10-28 17:35 Bigben 阅读(940) 评论(2) 推荐(0) 编辑
摘要: Skip to main content CHROME CHROME OS CHROME APIS <webview> Tag Description: Use the webview tag to actively load live content from the web over the n 阅读全文
posted @ 2020-10-28 09:41 Bigben 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: 看一个目录里面的target所有的宏定义。比如看chrome编译时的所有宏定义。chrome在BUILD.gn文件中是个group,找到它的依赖: gn desc out\Default //chrome:chrome_initial defines --blame From //build/con 阅读全文
posted @ 2020-10-27 17:19 Bigben 阅读(984) 评论(0) 推荐(0) 编辑
摘要: typescript变量名后面的感叹号是什么意思? ts的代码如下: let foo = () =>{ let name = "alberto"; return name!; } document.body.innerHTML = foo(); 编译成js后的代码如下: var foo = func 阅读全文
posted @ 2020-10-27 10:50 Bigben 阅读(13360) 评论(0) 推荐(0) 编辑
摘要: SwiftShader 是个基于cpu软解码实现OpenGL ES and Direct3D 9 graphics APIs12。提供硬解码独立的3D图形。 在electron上,替换调ANGLE库,即用SwiftShader编译出的 libegl.dll 和 libglesv2.dll覆盖ANGL 阅读全文
posted @ 2020-10-26 19:29 Bigben 阅读(526) 评论(0) 推荐(0) 编辑
摘要: Headless Chrome architecture skyostil@ February 17th, 2016 go/ghost-rider (internal link), crbug.com/546953 Introduction Goals Non-Goals Architecture 阅读全文
posted @ 2020-10-26 19:02 Bigben 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 安装 puppeteer插件npm install puppeteer -S 引入puppeteer这个插件 const puppeteer = require('puppeteer'); 两种方式抓取网页快照 用browserless.io国外网站提供的服务。这个服务对测试demo免费。无需注册。 阅读全文
posted @ 2020-10-26 15:26 Bigben 阅读(688) 评论(0) 推荐(0) 编辑
摘要: 1, 创建窗口时必须打开nodeIntegration: win = new BrowserWindow({ width: 800, height: 600, sandbox: true, webPreferences: { nodeIntegration: true }, }) 2,示例 html 阅读全文
posted @ 2020-10-23 10:18 Bigben 阅读(2611) 评论(0) 推荐(0) 编辑
摘要: 线程 任务 chrome 阅读全文
posted @ 2020-10-22 12:00 Bigben 阅读(591) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 29 下一页