Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtsp 拉流 #335

Open
xieyuhua opened this issue Dec 16, 2023 · 1 comment
Open

rtsp 拉流 #335

xieyuhua opened this issue Dec 16, 2023 · 1 comment
Labels

Comments

@xieyuhua
Copy link

推流地址

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  只有声音、没有视频
@jianghairui
Copy link

jianghairui commented Feb 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants