Answer the question
In order to leave comments, you need to log in
FFplay loses video stream from rtmp server sent by ffmpeg only plays audio stream, how to fix?
I start streaming like this
C:\ffmpeg -rtbufsize 1000000K -re -f dshow -i video="HD Pro Webcam C920" -f dshow -i audio="Microphone (HD Pro Webcam C920)" -s 320x240 -c:v libx264 -c:a aac -ar 44100 -ac 2 -f flv "rtmp://37.143.12.233:1935/live1/stream"
and watch the stream like this
C:\ffplay rtmp://37.143.12.233:1935/live1/ stream
if I start the player first and then stream then everything is fine, but if I first start the stream and then the player, then I hear only sound, sometimes it works fine at first, but rarely, if I send only video, everything is fine. I tried to change audio codec settings, ffmpeg and ffplay version but it didn't help. Then I tried other players like VLC media player and some web player https://hls-js.netlify.app/demo/.With the web player it's better, I don't lose the video, but in 9/10 cases I get an eternal loading and I have to constantly click the "Apply" button. What do I need to do in order not to lose the video stream in the ffplay player and, perhaps, the problem is in how I start the stream? I will be grateful for any help.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question