当前位置:网站首页>How to use RTSP streaming component easypusher to push MP4 files to easydarwin open source platform?
How to use RTSP streaming component easypusher to push MP4 files to easydarwin open source platform?
2020-11-09 17:46:00 【TSINGS】
EasyPusher It is a free one maintained by Qingxi video team RTSP Thruster ,EasyDarwin Is an open source streaming media service , Recently, I met a lot of netizens' consultation , How to integrate MP4 File push to EasyDarwin The problem of , Let's implement the process step by step .
EasyPusher Provides a push FILE The engineering of DEMO, Engineering, :EasyPusher_FILE.
1、 First read the video file ,DEMO Under the program directory , as follows :
std::string sTestFilm = “./test.mp4”;
And then from MP4 File access audio and video coding information , fill pusher In the structure of media information
Then judge whether the audio track and video track exist or not and deal with it accordingly , Set up callbacks and call push functions :
EasyPusher_SetEventCallback(g_fPusherHandle, __EasyPusher_Callback, 0, NULL);// Callback function
EasyPusher_StartStream(g_fPusherHandle, ConfigIP, atoi(ConfigPort), ConfigName, EASY_RTP_OVER_TCP, "admin", "admin", &mediainfo, 1024, 0);// push , By default TCP Way to connect
After a successful push , We are EasyDarwin As you can see, the video stream we pushed is shown below :
It can be used VLC Pull the stream to see the 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 .
版权声明
本文为[TSINGS]所创,转载请带上原文链接,感谢
边栏推荐
- The database executes truncate table cm_ CHECK_ ITEM_ How does his recover
- Rookie gospel, 28 books step by step to make you a big bull! (a copy of learning syllabus attached)
- Rabbitmq installation
- [invite you to vote] who is the key driver behind these big open source events in 2020?
- iOS下带小数点的数字键盘
- 树莓派内网穿透建站与维护,使用内网穿透无需服务器
- Abbyy finereader 15 adds editing page layout function
- Flink的安装部署
- 菜鸟福音,28本书籍循序渐进让你成为大牛!(附学习大纲一份)
- Abbyy finereader 15 added edit table cell function
猜你喜欢
The selection of wire displacement encoder needs the guidance of precise electronics
MathType中如何编辑求和公式
函数计算进阶-IP查询工具开发
详解Git
高性能库DPDK精简理解
How important these built-in icons are to easily build a high profile application interface!
Ultra simple integration of Huawei system integrity testing, complete equipment security protection
Function calculation advanced IP query tool development
Function calculation advanced IP query tool development
Application of pull wire displacement sensor in slope cracks
随机推荐
[God level operation] analyze the Ninja code with the traditional Chinese thoughts of Confucius and Laozi!
【面试经验】BAT程序员面试200人,常见最常问的面试问题做出解析
Kubernetes-17: kubernets package management tool -- Introduction and use of Helm
自定义室内地图在线工具
CIM平台可视化建设
手势切换背景,让直播带货更加身临其境
C#控制台调用FFMPEG推MP4视频文件至流媒体开源服务平台EasyDarwin过程
QML Repeater
Analysis of h264nalu head
会展云技术解读 | 面对突发事故,APP 如何做好崩溃分析与性能监控?
The internal network penetration of raspberry is built and maintained. No server is required for intranet penetration
关于生活,可能有用的40条建议
单链表反转
校准服务的六个轴心
Revealing the logic of moving path selection in Summoner Canyon?
揭秘在召唤师峡谷中移动路径选择逻辑?
Building Hadoop environment based on pseudo distributed under centos7
详解Git
Equivalent judgment between floating point numbers
云数据库的本质是什么?探究华为云数据库的核心价值