-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Playback does not work #5
Comments
please configure with --with-debug and show error log |
In this log I started nginx and then tried to play a stream using ffplay: Notice that I didn't publish a stream this time but the same problem still occurs. That should keep things simple (publishing a stream floods the debug log with data). Notice the 30 second gap after 22:09:33. That's where the timeout occurs and the error mentioned above is displayed. |
Your log has absolutely no problems . Moreover the client closes playback with deleteStream call after the error. The error does not mean there was a protocol problem. ffmpeg outputs this error on read timeout (when nothing comes in within certain period of time - 30sec for this case) I should see the full log (with publisher) to see if anything is actually being published and sent to playback client. |
I've setup a completely seperate vm and used the config from the test directory and now it works. I still have trouble playing streams from xsplit but that is probably a problem with the stream itself (audio works but video doesn't unless you restart the stream when the player is already listening). Closing this issue. |
same problem, it works well when I set "worker_processes 1" |
I also experienced the same problem on Ubuntu 22.10 Desktop, this change also resolved it for me... Bizarre. |
I'm trying to get a basic setup working and so far it seems the publishing side is ok. I can stream to the server and I see the publishing stream in the stats. When I try to connect with players though I just get error after a timeout.
ffplay says this:
ffplay -i "rtmp://192.168.2.25/live/myStream live=1"
RTMP_ReadPacket, failed to read RTMP packet header
rtmp://192.168.2.25/live/myStream live=1: Invalid data found when processing input
The config is fairly straightforward:
The text was updated successfully, but these errors were encountered: