1、ffmepg簡單用法
ffmpeg -re -i test.mp4 -vcodec h264 -f h264 udp://localhost:40001
ffmpeg -re -f h264 -i udp://localhost:40001 -vcodec h264 -f h264 rtsp://localhost/test
ffmpeg -re -i test.mp4 -rtsp_transport udp -vcodec h264 -f rtsp rtsp://localhost/test
2 ffmepg與ffplay結合
#### 本地h264
ffmpeg -re -i test.mp4 -vcodec copy -f h264 udp://127.0.0.1:30000
ffplay udp://127.0.0.1:30000
#### 本地播放轉rtp
ffmpeg -re -i test2.h264 -vcodec copy -f rtp rtp://127.0.0.1:30000>ding.sdp
ffplay -protocol_whitelist "file,http,https,rtp,udp,tcp,tls" ding.sdp
####
ffmpeg -re -i test2.h264 -vcodec copy -f rtp rtp://172.20.34.221:30001>ding.sdp