lal icon indicating copy to clipboard operation
lal copied to clipboard

rtsp 拉流

Open xieyuhua opened this issue 1 year ago • 1 comments

推流地址

rtsp://192.168.2.6:5544/live/test110

使用VLC播放器播放

rtsp://192.168.2.6:5544/live.sdp   无问题
http://192.168.2.6:8680/hls/live.sdp/test110.m3u8  只有声音、没有视频

xieyuhua avatar Dec 16 '23 03:12 xieyuhua

我情况相同, 推流时加上参数 -vcodec libx264 后有画面了 但是只有ffplay播放hls完全正常 问题: VLC和浏览器播放hls都有画面, 但是丢帧并伴有马赛克

ffmpeg -re -stream_loop -1 -i test.mp4 -vcodec libx264 -rtsp_transport tcp -f rtsp rtsp://127.0.0.1:5544/live/rs_1

ffplay http://192.168.1.196:8080/hls/rs_1.m3u8 **正常**

ffplay rtsp://127.0.0.1:5544/live/rs_1 **正常**

VLC,浏览器播放 http://192.168.1.196:8080/hls/rs_1.m3u8 **丢帧马赛克**

jianghairui avatar Feb 06 '24 07:02 jianghairui