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

Receiving 'eof' after a few frames when playing RTSP stream. #142

Open
rnixx opened this issue Mar 22, 2023 · 1 comment
Open

Receiving 'eof' after a few frames when playing RTSP stream. #142

rnixx opened this issue Mar 22, 2023 · 1 comment

Comments

@rnixx
Copy link
Contributor

rnixx commented Mar 22, 2023

When connecting to a RTSP stream and initializing MediaPlayer paused, sometimes 'eof' is received after a few frames, depending on the stream producer.

I encountered this behavior with a RTSP stream from a NDI converter. The same stream works fine when connecting to it with ffplay directly.

I also tried to reproduce the issue with a stream from VLC, but the issue not happened.

@matham
Copy link
Owner

matham commented Mar 22, 2023

Try setting the log level to debug and connecting a logger to see the full ffpyplayer logs.

from ffpyplayer.tools import set_loglevel, set_log_callback
import logging

set_log_callback(logger=logging, default_only=True)
set_loglevel('trace')
logging.root.setLevel(logging.DEBUG)
from ffpyplayer.player import MediaPlayer
...

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

2 participants