当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 分布式文档存储数据库之MongoDB索引管理
- 【LeetCode】 93 平衡二叉树
- Enter C abstract to understand the similarities and differences between abstract classes and interfaces
- Taulia推出国际支付条款数据库
- OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜
- 仅发送options请求,没有发送post解决方案
- CSDN BUG1: to be added
- day85:luffy:购物车根据有效期不同切换价格&购物车删除操作&价格结算&订单页面前戏
- 竞争性编程的思考:那些神话和令人震惊的事实[图]
- csdn bug9:待加
猜你喜欢
港股上市公司移卡收购创信众42.5%股权 谋划加快营销服务布局
完美日记母公司逸仙电商招股书:重营销、轻研发,前三季度亏11亿
[paper reading notes] a multilayered informational random walk for attributed social network embedding
gnu汇编语言使用内联汇编 扩展asm
mac终端Iterm2支持rz和sz的解决方案
csdn bug6:待加
大专学历的我工作六年了,还有机会进大厂吗?
Mongodb index management of distributed document storage database
【技术教程】Visual Studio 2017自建WebRTC中peerconnection_client程序报LNK2019 无法解析的外部符号错误
CSDN bug9: to be added
随机推荐
Use call, apply and bind to solve the annoying this in JS, this in event binding and parameter passing
csdn bug10:待加
假如需要一百万个对象
CSDN bug5: to be added
Solution of MAC terminal iterm2 supporting RZ and sz
mac终端Iterm2支持rz和sz的解决方案
大专学历的我工作六年了,还有机会进大厂吗?
Fire knowledge online answer activity small program
Factory approach model
[论文阅读笔记] Large-Scale Heterogeneous Feature Embedding
Gets the property value of a column in the list collection object
分布式文档存储数据库之MongoDB索引管理
Assign the corresponding key and value in the map to the object
Learning from scratch YoMo series: Opening
Several solutions to the problem that selenium webdriver always fails to use click
C++ STL容器篇
[paper reading notes] network embedding with attribute refinement
推动中国制造升级,汽车装配车间生产流水线 3D 可视化
我手撸了一个划线翻译工具!
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