当前位置:网站首页>Use ffmpeg to push and pull streams
Use ffmpeg to push and pull streams
2022-07-22 16:43:00 【Who am I?】
Webcam streaming
Catalog
Pull the webcam video stream and rtsp Stream to the streaming media server
Pull the webcam RTSP The circulation RTMP And push the stream to the streaming media server :
Push local video files to streaming media server (TCP):
Push local video files to streaming media server (UDP):
Pull the webcam video stream and rtsp Stream to the streaming media server
ffmpeg -i rtsp://admin:[email protected]:554/cam/realmonitor?channel=3&subtype=0 -vcodec copy -rtsp_transport tcp -f rtsp rtsp://10.10.10.2:554/stream
If there are special characters in the address that cause the push-pull flow to fail, you can add double quotation marks to solve :
ffmpeg -i "rtsp://admin:[email protected]:554/cam/realmonitor?channel=3&subtype=0" -vcodec copy -rtsp_transport tcp -f "rtsp rtsp://10.10.10.2:554/stream"
Pull the webcam RTSP The circulation RTMP And push the stream to the streaming media server :
ffmpeg -rtsp_transport tcp -i "rtsp://admin:[email protected]" -f flv -c:v copy -a:v copy -r 25 -s 1920*1080 "rtmp://10.10.10.200/live/test"
Local streaming
Push local video files to streaming media server (TCP):
ffmpeg -re -i input.mp4 -rtsp_transport tcp -vcodec h264 -acodec copy -f rtsp "rtmp://10.10.10.200/live/test"
Push local video files to streaming media server (UDP):
ffmpeg -re -i input.mp4 -rtsp_transport udp -vcodec h264 -acodec copy -f rtsp "rtmp://10.10.10.200/live/test"
边栏推荐
- The principle of embedded IDE, openocd introduction and how stlink connects STM32 board
- CF464E The Classic Problem
- Switch and router technology: Standard ACL, extended ACL and named ACL
- Beautify multiple digits
- Mask RCNN source code explanation
- How to configure webrtc protocol for low latency playback on easycvr platform v2.5.0 and above?
- Fundamentals of action theory
- Operation tutorial: UOB camera registers the detailed configuration of easycvr platform through gb28181 protocol
- UE4 进入指定区域实现触发加速功能
- ECCV 2022 | correction des dommages importants au rendement de la cible causés par le fpn: Vous devriez regarder tous les objets
猜你喜欢
AcWing_11. 背包问题求方案数_dp
Rsync downlink synchronization +inotify real-time synchronization deployment
层序遍历BFS(广度优先)
【Leetcode栈与队列--最小栈】155.最小栈
Repair the problem of adding device groups and editing exceptions on easycvr platform
洛谷_P1112 波浪数_思维_进制 / 构造 / 枚举
JVM memory model: virtual machine stack
Complex network modeling (propagation phenomenon on the network)
看融合数学教学的steam教育模式
Random forest learning notes
随机推荐
MySQL查询计划key_len如何计算
我,AI博士生,在线众筹研究主题
AT4162 [ARC099C] Independence
toString()及重写的作用与应用
How can the easycvr platform access special devices without authentication?
QUuid
How to write update set a= (select) in PostgreSQL?
力扣每日一题-第41天-645. 错误的集合
Gold warehouse database kmonitor usage guide --2. monitoring indicators
ECCV 2022 | 修正FPN帶來的大目標性能損害:You Should Look at All Objects
ARC110F Esoswap
[leetcode stack and queue -- minimum stack] 155. Minimum stack
JVM memory model: virtual machine stack
Technologie des commutateurs et des routeurs: ACL standard, ACL étendu et ACL nommé
Simulation Implementation of string
Informatics Olympiad all in one 1974: [16noip popularization group] palindrome date | Luogu p2010 [noip2016 popularization group] palindrome date
STM32控制电机简易教程
[ARC116F] Deque Game
When the easycvr platform cascades, there is an error prompt. What is the reason why the port is unreachable?
Execute function semicolon immediately