当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 中央重点布局:未来 5 年,科技自立自强为先,这些行业被点名
- Only options request is sent, no post solution is sent
- Exception: invalid or unexpected token
- getIServiceManager() 源码分析
- jt-day10
- 奸商加价销售mate40,小米可望在高端手机市场夺取更多市场
- YouTube subscription: solve the problem of incomplete height display of YouTube subscription button in pop-up window
- [paper reading notes] large scale heterogeneous feature embedding
- js解决浏览器打印自动分页的问题
- 《Python Cookbook 3rd》笔记(2.2):字符串开头或结尾匹配
猜你喜欢

Coding style: SSM environment in MVC mode, code hierarchical management
![[paper reading notes] a multilayered informational random walk for attributed social network embedding](/img/3d/657a60600219ce6cfc514ad1b1bb49.jpg)
[paper reading notes] a multilayered informational random walk for attributed social network embedding

B. protocal has 7000eth assets in one week!

注册滴滴加不上车怎么办?要怎么处理?

Mongodb index management of distributed document storage database

JS label syntax jumps out of multiple loops

YouTube subscription: solve the problem of incomplete height display of YouTube subscription button in pop-up window

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

使用call、apply和bind解决js中烦人的this,事件绑定时的this和传参问题

csdn bug1:待加
随机推荐
csdn bug3:待加
Several solutions to the problem that selenium webdriver always fails to use click
[论文阅读笔记] A Multilayered Informative Random Walk for Attributed Social Network Embedding
[elixir! 0073] beam built-in memory database ETS
Assign the corresponding key and value in the map to the object
[paper reading notes] rosane, robust and scalable attributed network embedding for sparse networks
CSDN bug6: to be added
Fire knowledge online answer activity small program
Filezilla server配置FTP服务器中的各种问题与解决方法
Network security engineer Demo: original * * controls your server like this! (2)
CSDN bug11: to be added
learning to Estimate 3D Hand Pose from Single RGB Images论文理解
寻找性能更优秀的不可变小字典
[Python learning manual notes] 001. Preface to Python
[paper reading notes] a multilayered informational random walk for attributed social network embedding
港股上市公司移卡收购创信众42.5%股权 谋划加快营销服务布局
CSDN bug7: to be added
[elixir! #0073] beam 内置的内存数据库 —— ETS
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
Difficulties in heterogeneous middleware implementation of Bifrost site management (1)