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"