ffmpeg推RTP

https://www.cnblogs.com/swing07/p/10903280.html

 

r>ffmpeg -re -stream_loop -1  -i  D:\work\file\shipin\tmp.264  -vcodec copy -f rtp rtp://127.0.0.1:8000>test.sdp

tor>ffplay -protocol_whitelist "file,udp,rtp" -i  test.sdp

 


ffmpeg -re  -i  opus-output-no-b-frame.mp4  -vcodec copy -an -f rtp rtp://127.0.0.1:8008  -acodec copy -vn -f rtp rtp://192.168.1.200:8009

ffmpeg -re -stream_loop -1  -i  opus-output-no-b-frame.mp4  -vcodec copy -an -f rtp rtp://127.0.0.1:8008  -acodec copy -vn -f rtp rtp://127.0.0.1:8009
 

 ffmpeg -re -stream_loop -1  -i  output-no-b-frame.mp4 -vcodec copy -an -f rtp rtp://127.0.0.1:8008  -acodec libopus -vn -f rtp rtp://127.0.0.1:8009
 

 

ffmpeg -re -stream_loop -1 -i  /home/test/shipin/test-640x480-no-b-frame.h264  -vcodec copy -f rtp rtp://127.0.0.1:8008

 

ffmpeg -re -stream_loop -1  -i  opus-h264.mp4 -vcodec h264 -an -f rtp rtp://127.0.0.1:8008 

 

# ffmpeg -re -stream_loop -1  -i  opus-h264.mp4 -vcodec h264 -an -f rtp rtp://127.0.0.1:8008 -vn -acodec libopus -f rtp rtp://127.0.0.1:8009
ffmpeg -re -stream_loop -1  -i  test.mp4 -vcodec h264 -an -f rtp rtp://127.0.0.1:8008 -vn -acodec libopus -f rtp rtp://127.0.0.1:8009

 ffmpeg -re -stream_loop -1  -i  test.mp4 -vcodec h264 -an -f rtp rtp://127.0.0.1:8008  -acodec libopus -vn -f rtp rtp://127.0.0.1:8009
 

ffmpeg rtp 推 mp4文件

https://blog.csdn.net/lcalqf/article/details/108410687

#!/bin/bash
./ffmpeg \
    -re \
    -v info \
    -stream_loop -1 \
    -i live_video.mp4 \
    -map 0:a:0 \
    -acodec copy -ab 128k -ac 2 -ar 48000 \
    -map 0:v:0 \
    -pix_fmt yuv420p -c:v copy -b:v 1000k -deadline realtime -cpu-used 4 \
    -f tee \
    "[select=a:f=rtp:ssrc=1111:payload_type=100]rtp://xx.xx.xx.xx:8000?rtcpport=8000}|[select=v:f=rtp:ssrc=2222:payload_type=101]rtp://10.xx.xx.xx:8000?rtcpport=8000"

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值