当前位置:网站首页>Call the open source video streaming media platform dawinffc
Call the open source video streaming media platform dawinffc
2020-11-10 08:54:00 【osc_b71hj3or】
I wrote a popular science article before 《 How to use RTSP Push flow components EasyPusher take MP4 File pushed to EasyDarwin Open source platform 》, In this article , We tried to pass EasyPusher take MP4 File pushed to EasyDarwin, But in addition to this method , We have other ways to MP4 File push to EasyDarwin On .
This article will share with you C# The console calls FFMPEG PUSH MP4 Video files to streaming media open source service platform EasyDarwin The process .
1、 Create a new console application project , Will download okay FFMPEG Put it under the program root , Here's the picture :

stay main Write the following code in the function :
static void Main(string[] args)
{
string exePath = "./ffmpeg/bin/ffmpeg.exe";
string arguments = "";
arguments = "-re -stream_loop -1 -i test.mp4 -vf ";
arguments += "settb=AVTB,setpts='trunc(PTS/1K)*1K+st(1,trunc(RTCTIME/1K))-1K*trunc(ld(1)/1K)',drawtext=fontsize=20:fontcolor=white:text='%{localtime}'";
arguments += " -rtsp_transport tcp -vcodec h264 -f rtsp rtsp://127.0.0.1:554/test2.sdp";
ProcessStartInfo info = new ProcessStartInfo(exePath, arguments);
info.WindowStyle = ProcessWindowStyle.Hidden;
info.UseShellExecute = false;
info.RedirectStandardInput = false;// May accept input from the caller
info.RedirectStandardOutput = false;// Get the output information from the calling program
info.RedirectStandardError = false;// Redirect standard error output
info.CreateNoWindow = false;// Don't show program window
Process AppProcess = System.Diagnostics.Process.Start(info);
AppProcess.WaitForExit();
}
2、 Run the console program , You can see the program directory in the test.mp4 Video with RTSP Push the form to EasyDarwin, Let's look at streaming servers EasyDarwin Operating condition :

It can be used VLC Check the actual playback effect , Here's the picture :

If there are users who want to know about our open source projects , Can enter the EasyDarwin understand , And after years of experience , We've developed a system based on EasyDarwin Derivative EasyNVR、EasyDSS Wait for the video platform , You can all understand . If you have any questions , Welcome to consult .
版权声明
本文为[osc_b71hj3or]所创,转载请带上原文链接,感谢
边栏推荐
- delete、truncate、drop 有什么区别,误删数据怎么办
- The length of the last word in leetcode
- gnu汇编语言使用内联汇编 扩展asm
- csdn bug6:待加
- CSDN bug7: to be added
- 【LeetCode】 93 平衡二叉树
- [论文阅读笔记] Network Embedding with Attribute Refinement
- js解决浏览器打印自动分页的问题
- Assign the corresponding key and value in the map to the object
- Getiservicemanager () source code analysis
猜你喜欢

《Python Cookbook 3rd》笔记(2.2):字符串开头或结尾匹配

JS label syntax jumps out of multiple loops

Thinking about competitive programming: myths and shocking facts

初级工程师如何在职场生存

Bifrost 位点管理 之 异构中间件实现难点(1)

【技术教程】C#控制台调用FFMPEG推MP4视频文件至流媒体开源服务平台EasyDarwin过程

完美日记母公司逸仙电商招股书:重营销、轻研发,前三季度亏11亿

getIServiceManager() 源码分析

分布式文档存储数据库之MongoDB索引管理

上线1周,B.Protocal已有7000ETH资产!
随机推荐
About CentOS start error: the solution of failed to start crash recovery kernel arming
Youtube订阅——解决在弹窗内使用Youtube订阅按钮高度显示不全的问题
csdn bug1:待加
CSDN bug3: to be added
大专学历的我工作六年了,还有机会进大厂吗?
推动中国制造升级,汽车装配车间生产流水线 3D 可视化
CSDN bug4: to be added
坚持追查7年,近10亿美元比特币终被美国政府没收充公
selenium webdriver使用click一直失效问题的几种解决方法
delete、truncate、drop 有什么区别,误删数据怎么办
一幅图像能顶16x16字!——用于大规模图像缩放识别的变压器(对ICLR 2021年论文的简要回顾)
jmeter接口测试--带有token的解决方法
Ineuos industrial interconnection platform, web configuration (ineuview) increases the function of importing and exporting engineering views, as well as optimization and repair. Release: v3.2.1
For programmers, those unfamiliar and familiar computer hardware
csdn bug11:待加
iNeuOS工业互联平台,WEB组态(iNeuView)增加工程视图导入、导出功能,及优化和修复,发布:v3.2.1版本
Experiment 2
仅发送options请求,没有发送post解决方案
消防知识线上答题活动小程序复盘
商品管统——采购需求合并到采购单