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

Playback does not work #5

Closed
dennisjac opened this issue May 21, 2012 · 6 comments
Closed

Playback does not work #5

dennisjac opened this issue May 21, 2012 · 6 comments

Comments

@dennisjac
Copy link

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:

rtmp {
    server {
        listen 1935;
        chunk_size 4000;

        application live {
            live on;
            allow publish all;
            allow play all;
        }
    }
}
@arut
Copy link
Owner

arut commented May 21, 2012

please configure with --with-debug and show error log

@dennisjac
Copy link
Author

In this log I started nginx and then tried to play a stream using ffplay:
https://gist.github.com/2764363

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.

@arut
Copy link
Owner

arut commented May 22, 2012

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.

@dennisjac
Copy link
Author

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.

@dodolzg
Copy link

dodolzg commented Dec 29, 2017

same problem, it works well when I set "worker_processes 1"

@gregorykau
Copy link

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.

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

No branches or pull requests

4 participants