当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- CCR炒币机器人:新冠肺炎加速了监管机构对CBDC的兴趣
- Thinking about competitive programming: myths and shocking facts
- 一幅图像能顶16x16字!——用于大规模图像缩放识别的变压器(对ICLR 2021年论文的简要回顾)
- Three ways to solve coursera video unable to watch
- Leetcode 1-sum of two numbers
- csdn bug1:待加
- Explanation of Z-index attribute
- 世界上最伟大的10个公式,其中一个人尽皆知
- Bartender2021 realizes secure remote label printing, new year-end release
- Factory approach model
猜你喜欢
js解决浏览器打印自动分页的问题
iNeuOS工业互联平台,WEB组态(iNeuView)增加工程视图导入、导出功能,及优化和修复,发布:v3.2.1版本
YouTube subscription: solve the problem of incomplete height display of YouTube subscription button in pop-up window
csdn bug7:待加
大专学历的我工作六年了,还有机会进大厂吗?
The solution of polar experience insensitive verification
C++ STL容器篇
消防知识线上答题活动小程序复盘
What's the difference between delete, truncate, and drop, and what to do if you delete data by mistake
csdn bug6:待加
随机推荐
《Python Cookbook 3rd》笔记(2.1):使用多个界定符分割字符串
Seam engraving algorithm: a seemingly impossible image size adjustment method
CSDN bug3: to be added
一幅图像能顶16x16字!——用于大规模图像缩放识别的变压器(对ICLR 2021年论文的简要回顾)
对于程序员,那些既陌生又熟悉的计算机硬件
Three ways to solve coursera video unable to watch
Simple use of JMeter
An unsafe class named unsafe
csdn bug8:待加
[leetcode] 92 integer inversion
吴恩达《Machine Learning》精炼笔记 4:神经网络基础 - 知乎
区块链论文集【三十一】
从零开始学习 YoMo 系列教程:开篇
What can I do if I can't register didi? How to deal with it?
Exception: invalid or unexpected token
大专学历的我工作六年了,还有机会进大厂吗?
YouTube subscription: solve the problem of incomplete height display of YouTube subscription button in pop-up window
编码风格:Mvc模式下SSM环境,代码分层管理
About CentOS start error: the solution of failed to start crash recovery kernel arming
Python cookbook 3rd note (2.1): using multiple qualifiers to split strings