q191201771 / lal

🔥 Golang audio/video live streaming lib/client/server. support RTMP, RTSP(RTP/RTCP), HLS, HTTP[S]/WebSocket-FLV/TS, GB28181, H264/H265/AAC/G711/OPUS, relay, cluster, record, HTTP Notify/API/UI. 直播

Home Page:https://pengrl.com/lal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rtsp 拉流

xiebigbig opened this issue · 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  只有声音、没有视频

我情况相同, 推流时加上参数 -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 **丢帧马赛克**