-
Notifications
You must be signed in to change notification settings - Fork 132
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
Approximately 6 second delay on RTSP stream #37
Comments
Hi, Is if 6 seconds in the beginning of the stream, i.e. the first frame appears 6 seconds later after you press the Play button? |
To build the C++ part of the control you will need to build FFmpeg and boost first. The instructions are here: #33 (comment) |
Yes, it usually takes the same number of seconds until the stream shows.
But I also experienced a ~2 second delay before it starts but ~6s later
(which is more weird).
Thanks for the docs, I will take a look.
…On 30 Nov 2017 00:15, "Alexander Iacobciuc" ***@***.***> wrote:
Hi,
Is if 6 seconds in the beginning of the stream, i.e. the first frame
appears 6 seconds later after you press the Play button?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACsRzvauUi8D0fI66xU6d9JEO0WrTea9ks5s7eWFgaJpZM4Qvvvj>
.
|
You could try your stream with ffplay: https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-20171128-86cead5-win64-static.zip |
There is no delay on the StreamPlayer. I run my cameras into Blue Iris and I use the StreamPlayer control to play the video from BI on the desktop. Within a quarter of a second from the time motion is detected, the video begins to play. However, I first used StreamPlayer to play the video directly from the camera. When you try that, the video does not fully display until the I frame shows up. That just doesn't work. But the problem isn't with StreamPlayer control, it is with the process of starting the camera and trying to sync the video. And I doubt it would make a difference as to which camera you use. Not sure about that. But I did have the same problem with 5 different brands of cameras. |
@jacobbo in theory, could I force the frame queue ( This way I might skip some frames but it would always show the latest frame? What do you think? I will try to recompile StreamPlayer and replace .dll |
Your idea is that for the first 6 seconds the stream has 'stale' frames, isn't? But then it's not a control's issue, that's a stream's issue. Regarding your question, yes, you can skip frames, but this will be a very custom solution and you need a criteria based on which you will be skipping frames. |
Sorry to bother you but I would like to try out that solution but I cannot get ffmpeg to compile. I've followed the instructions you provided as well as their guide https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC
Which seems like c99 syntax problem. But they mentioned this is something to worry about only on <2012 MSVC Do you have any advice maybe how to simplify the build procedure? I tried to find pre-compiled binaries of boost/ffmpeg and try with them. |
I do not remember such an issue. Which tools are you using to build it? I successfully build it using MSVC 2015 + MSYS + YASM x64. Pre-compiled binaries will not work, as I use static linking for FFmpeg. |
I fixed the compilation issue and managed to compile ffmpeg with I've added everything into VC++ Directories (Library/Include) for Release x64. Still I cannot get it to compile, it says I cannot find .a files anywhere. I would expect them after compiling ffmpeg with the static option :( |
That's correct, the .a files should be generated by make. |
btw, have you tried ffplay? |
I did, there is a lag also (2 seconds). Tail: |
Running |
I see. The control supports setting the rtsp_transport option, but doesn't support the probesize option.
|
But I don't understand ffmpeg, I did |
'make install' is not needed, just 'make' is enough in my case. Also, make produces logging info, you could forward it to a file and find out what's going on. |
Ah Let't me try probe now! |
Probe helped a little bit but in the end I removed that sleep and now it works <1s lag! |
You mentioned that some other players handle your stream correctly, i.e. without the lag. |
ONVIF Device Manager. Source is also available
…On 2 Dec 2017 12:29, "Alexander Iacobciuc" ***@***.***> wrote:
You mentioned that some other players handle your stream correctly, i.e.
without the lag.
I'm wondering what are they?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#37 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACsRzsgeeXXeLP8q-klcGjZVlmYIpqI4ks5s8TSdgaJpZM4Qvvvj>
.
|
Hi,
I tried to use StreamPlayerControl and it works fine except there is a 6 second delay in the stream. I've looked into StreamPlayer C++ code but couldn't find anything there that might cause this. I also couldn't build StreamPlayer C++ code, do you maybe have instructions for it? I would like to debug it somehow...
By the way, I'm using a cheap camera but I also tried it in ONVIF Device Manager https://sourceforge.net/projects/onvifdm/ and there live stream worked flawlessly (no delays, perfect image).
Do you have any ideas what might cause this?
The text was updated successfully, but these errors were encountered: