当前位置:网站首页>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容器篇
- Enter C abstract to understand the similarities and differences between abstract classes and interfaces
- 分布式文档存储数据库之MongoDB索引管理
- CCR炒币机器人:新冠肺炎加速了监管机构对CBDC的兴趣
- [leetcode] 93 balanced binary tree
- 【LeetCode】 93 平衡二叉树
- 一幅图像能顶16x16字!——用于大规模图像缩放识别的变压器(对ICLR 2021年论文的简要回顾)
- 对于程序员,那些既陌生又熟悉的计算机硬件
- 关于centos启动报错:Failed to start Crash recovery kernel arming的解决方案
- 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
猜你喜欢
一个名为不安全的类Unsafe
中央重点布局:未来 5 年,科技自立自强为先,这些行业被点名
Explanation of Z-index attribute
Coding style: SSM environment in MVC mode, code hierarchical management
csdn bug1:待加
csdn bug9:待加
gnu汇编-基本数学方程-乘法
Day85: Luffy: shopping cart switching price according to different validity period & shopping cart deletion operation & price settlement & foreplay of order page
CSDN bug3: to be added
[论文阅读笔记] Community-oriented attributed network embedding
随机推荐
For programmers, those unfamiliar and familiar computer hardware
Coding style: SSM environment in MVC mode, code hierarchical management
Coding style: SSM environment in MVC mode, code hierarchical management
What can I do if I can't register didi? How to deal with it?
【技术教程】C#控制台调用FFMPEG推MP4视频文件至流媒体开源服务平台EasyDarwin过程
Promote China manufacturing upgrade, 3D visualization of production line in automobile assembly workshop
If you need a million objects
Using tail as time series to identify whales
csdn bug7:待加
csdn bug6:待加
Three ways to solve coursera video unable to watch
[论文阅读笔记] A Multilayered Informative Random Walk for Attributed Social Network Embedding
Use call, apply and bind to solve the annoying this in JS, this in event binding and parameter passing
[paper reading notes] large scale heterogeneous feature embedding
Bifrost 位点管理 之 异构中间件实现难点(1)
中央重点布局:未来 5 年,科技自立自强为先,这些行业被点名
Detach ()
[Python learning manual notes] 001. Preface to Python
Overview of the most complete anomaly detection algorithm in history
ServiceManagerProxy中mRemote变量指的什么?