当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- C++ STL容器篇
- Coding style: SSM environment in MVC mode, code hierarchical management
- Coding style: SSM environment in MVC mode, code hierarchical management
- 使用call、apply和bind解决js中烦人的this,事件绑定时的this和传参问题
- The length of the last word in leetcode
- Yixian e-commerce prospectus of perfect diary parent company: focusing on marketing and ignoring R & D, with a loss of 1.1 billion in the first three quarters
- 史上最全异常检测算法概述
- 分布式文档存储数据库之MongoDB索引管理
- learning to Estimate 3D Hand Pose from Single RGB Images论文理解
- 港股上市公司移卡收购创信众42.5%股权 谋划加快营销服务布局
猜你喜欢
CSDN bug5: to be added
Oschina: my green plants are potatoes, ginger and garlic
One image can hold 16x16 words! ——Transformers for large scale image scaling recognition (a brief review of ICLR 2021 papers)
Mongodb index management of distributed document storage database
奸商加价销售mate40,小米可望在高端手机市场夺取更多市场
learning to Estimate 3D Hand Pose from Single RGB Images论文理解
Thinking about competitive programming: myths and shocking facts
寻找性能更优秀的不可变小字典
jt-day10
解决Coursera视频无法观看的三种方法(亲测有效)
随机推荐
消防知识线上答题活动小程序复盘
分布式文档存储数据库之MongoDB索引管理
Seam engraving algorithm: a seemingly impossible image size adjustment method
【操作教程 】国标GB28181协议安防视频平台EasyGBS订阅功能介绍及开启步骤
After seven years of pursuing, nearly one billion US dollars of bitcoin was eventually confiscated and confiscated by the US government
【技术教程】Visual Studio 2017自建WebRTC中peerconnection_client程序报LNK2019 无法解析的外部符号错误
上线1周,B.Protocal已有7000ETH资产!
推动中国制造升级,汽车装配车间生产流水线 3D 可视化
商品管统——采购需求合并到采购单
csdn bug3:待加
CSDN bug5: to be added
learning to Estimate 3D Hand Pose from Single RGB Images论文理解
Difficulties in heterogeneous middleware implementation of Bifrost site management (1)
gnu汇编语言使用内联汇编 扩展asm
Only options request is sent, no post solution is sent
区块链论文集【三十一】
ServiceManagerProxy中mRemote变量指的什么?
对于程序员,那些既陌生又熟悉的计算机硬件
Getiservicemanager () source code analysis
仅发送options请求,没有发送post解决方案