当前位置:网站首页>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索引管理
- Explanation of Z-index attribute
- Detach ()
- 《Python Cookbook 3rd》笔记(2.1):使用多个界定符分割字符串
- 编码风格:Mvc模式下SSM环境,代码分层管理
- Coding style: SSM environment in MVC mode, code hierarchical management
- Fire knowledge online answer activity small program
- B. protocal has 7000eth assets in one week!
- Coding style: SSM environment in MVC mode, code hierarchical management
- 利用尾巴作为时间序列进行处理来识别鲸鱼
猜你喜欢

网络安全工程师演示:原来***是这样控制你的服务器的!(下)

An unsafe class named unsafe

Gets the property value of a column in the list collection object

Seam engraving algorithm: a seemingly impossible image size adjustment method

利用尾巴作为时间序列进行处理来识别鲸鱼

JMeter interface test -- a solution with token

图-无向图

C++ STL容器篇

推动中国制造升级,汽车装配车间生产流水线 3D 可视化

OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜
随机推荐
CSDN bug9: to be added
day85:luffy:购物车根据有效期不同切换价格&购物车删除操作&价格结算&订单页面前戏
推动中国制造升级,汽车装配车间生产流水线 3D 可视化
坚持追查7年,近10亿美元比特币终被美国政府没收充公
Hong Kong listed companies transfer cards to acquire 42.5% equity of chuangxinzhong and plan to speed up the distribution of marketing services
《Python Cookbook 3rd》笔记(2.1):使用多个界定符分割字符串
Learning from scratch YoMo series: Opening
Bartender2021实现安全远程标签打印,年终全新发布
ServiceManagerProxy中mRemote变量指的什么?
js解决浏览器打印自动分页的问题
gnu汇编语言使用内联汇编 扩展asm
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
JS solves the problem of automatic pagination in browser printing
The solution of polar experience insensitive verification
编码风格:Mvc模式下SSM环境,代码分层管理
Leetcode 1-sum of two numbers
CSDN bug11: to be added
Fire knowledge online answer activity small program
CSDN bug5: to be added