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

rtsp stream does not reconnect when device(camera) restarts. #366

Closed
saman1832 opened this issue Nov 7, 2023 · 21 comments
Closed

rtsp stream does not reconnect when device(camera) restarts. #366

saman1832 opened this issue Nov 7, 2023 · 21 comments

Comments

@saman1832
Copy link

When camera restarts then rtsp stream is not playing automatically but play in vlc.

@SuRGeoNix
Copy link
Owner

SuRGeoNix commented Nov 7, 2023

Duplicate to #361

Provide logs as requested and I will review it. You might also want to check Config.Demuxer.ReadLiveTimeout (default is 20sec timeout) so if you get a timeout just increase this (in Ticks).

@saman1832
Copy link
Author

saman1832 commented Nov 7, 2023

do we have any timeout event? so that its easy to play again.

Logs:
18.18.23.687 | Trace | [#1] [Player ] [A] Presenting 00:00:05.7208163
18.18.23.687 | Trace | [#1] [Player ] [V] Presenting 00:00:05.8000555
18.18.23.688 | Debug | [#1] [Player ] [Latency 0ms] Frames: 0 Packets: 0 Speed: 1
18.18.23.726 | Trace | [#1] [Player ] [A] Presenting 00:00:05.7608616
18.18.23.768 | Trace | [#1] [Player ] [A] Presenting 00:00:05.8023582
18.18.23.768 | Trace | [#1] [Player ] [V] Presenting 00:00:05.8800222
18.18.23.770 | Warn | [#1] [Player ] No video frames
18.18.23.770 | Debug | [#1] [Player ] OnBufferingStarted
18.18.23.770 | Trace | [#1] [Player ] Buffering
18.18.23.770 | Trace | [#1] [Decoder: Video] Start Retry 1/5
18.18.23.790 | Trace | [#1] [Decoder: Video] Start Retry 2/5
18.18.23.811 | Trace | [#1] [Decoder: Video] Start Retry 3/5
18.18.23.831 | Trace | [#1] [Decoder: Video] Start Retry 4/5
18.18.23.851 | Trace | [#1] [Decoder: Video] Start Retry 5/5
18.18.23.872 | Trace | [#1] [Decoder: Audio] Start Retry 1/5
18.18.23.892 | Trace | [#1] [Decoder: Audio] Start Retry 2/5
18.18.23.913 | Trace | [#1] [Decoder: Audio] Start Retry 3/5
18.18.23.933 | Trace | [#1] [Decoder: Audio] Start Retry 4/5
18.18.23.954 | Trace | [#1] [Decoder: Audio] Start Retry 5/5
18.18.42.419 | Warn | [#1] [Demuxer: Main] Read Timeout !!!! 20004 ms
18.18.42.419 | Trace | [#1] [Demuxer: Main] [Video] DTS: 00:00:05.9199777 PTS: 00:00:05.9199777 | FLPTS: 00:00:05.9199777 | CurTime: 00:00:05.8800222 | Buffered: 00:00:00
18.18.42.422 | Trace | [#1] [Renderer ] Processes 00:00:05.9199777
18.19.02.520 | Warn | [#1] [Demuxer: Main] Read Timeout !!!! 20100 ms
18.19.02.525 | Warn | [#1] [Demuxer: Main] Immediate exit requested (-1414092869)
18.19.22.542 | Warn | [#1] [Demuxer: Main] Read Timeout !!!! 20011 ms
18.19.22.542 | Warn | [#1] [Demuxer: Main] Immediate exit requested (-1414092869)
18.19.42.647 | Warn | [#1] [Demuxer: Main] Read Timeout !!!! 20098 ms

@SuRGeoNix
Copy link
Owner

SuRGeoNix commented Nov 7, 2023

@saman1832 you can use Player.MainDemuxer.TimedOut event for that (better use Task.Run to pause/re-open etc.)

@saman1832
Copy link
Author

@SuRGeoNix I tried Player.MainDemuxer.TimedOut but here Player.MainDemuxer is null so getting null exception .
Then i tried Player.VideoDemuxer.TimedOut but when i try to openasync url inside this, i never get debugger on opencomplete event and UI is also getting stuck. I ahve also sued task.run with dispatcher

@SuRGeoNix
Copy link
Owner

Logs!

@saman1832
Copy link
Author

saman1832 commented Nov 7, 2023

I have applied Player.MainDemuxer.TimedOut successfully but when I am debugging the code when timeout hit one by one I am able to play again. But without debugger its not restarting.
code inside timeout method:
Task.Run(() =>
{

            Dispatcher.Invoke(async() =>
            {
               
                    if (this.VideoView.Player != null)
                    {
                        
                        this.VideoView.Player.Stop();
                        
                        videoPlayerLoader.Visibility = Visibility.Visible;
                        this.VideoView.Player.OpenAsync(url);
                    }

                
            });
        });

LOGS:

23.21.42.726 | Warn | [#1] [Player ] No video frames
23.21.42.726 | Debug | [#1] [Player ] OnBufferingStarted
23.21.42.726 | Trace | [#1] [Player ] Buffering
23.21.42.726 | Trace | [#1] [Decoder: Video] Start Retry 1/5
23.21.42.746 | Trace | [#1] [Decoder: Video] Start Retry 2/5
23.21.42.767 | Trace | [#1] [Decoder: Video] Start Retry 3/5
23.21.42.787 | Trace | [#1] [Decoder: Video] Start Retry 4/5
23.21.42.808 | Trace | [#1] [Decoder: Video] Start Retry 5/5
23.21.42.829 | Trace | [#1] [Decoder: Audio] Start Retry 1/5
23.21.42.849 | Trace | [#1] [Decoder: Audio] Start Retry 2/5
23.21.42.870 | Trace | [#1] [Decoder: Audio] Start Retry 3/5
23.21.42.891 | Trace | [#1] [Decoder: Audio] Start Retry 4/5
23.21.42.911 | Trace | [#1] [Decoder: Audio] Start Retry 5/5
23.22.01.472 | Warn | [#1] [Demuxer: Main] Read Timeout !!!! 20005 ms
23.22.01.472 | Trace | [#1] [Demuxer: Main] [Video] DTS: 00:00:07.4000111 PTS: 00:00:07.4000111 | FLPTS: 00:00:07.4000111 | CurTime: 00:00:07.3200222 | Buffered: 00:00:00
23.22.01.475 | Trace | [#1] [Renderer ] Processes 00:00:07.4000111
23.22.02.605 | Debug | [#1] [Player ] Initializing
23.22.02.614 | Info | [#1] [Player ] Started [V: 00:00:07.4000111]
23.22.02.614 | Debug | [#1] [Player ] OnBufferingCompleted
23.22.02.614 | Info | [#1] [Player ] Finished -> 00:00:07.3200222
23.22.02.615 | Debug | [#1] [Decoder: Video] Stopping -> Stopped
23.22.02.615 | Debug | [#1] [Decoder: Video] Thread stopped (Stopped)
23.22.02.632 | Debug | [#1] [Decoder: Video] Stopped -> Stopped
23.22.02.632 | Info | [#1] [Decoder: Video] Disposed
23.22.02.635 | Debug | [#1] [Decoder: Audio] Stopping -> Stopped
23.22.02.635 | Debug | [#1] [Decoder: Audio] Thread stopped (Stopped)
23.22.02.641 | Debug | [#1] [Decoder: Audio] Stopped -> Stopped
23.22.02.641 | Info | [#1] [Decoder: Audio] Disposed
23.22.02.641 | Debug | [#1] [Demuxer: Main] Running -> Stopping
23.22.02.704 | Debug | [#1] [Demuxer: Main] Read Interrupt (Stopping) !!!
23.22.02.705 | Debug | [#1] [Demuxer: Main] Stopping -> Stopped
23.22.02.705 | Debug | [#1] [Demuxer: Main] Thread stopped (Stopped)
23.22.02.721 | Debug | [#1] [Demuxer: Main] Stopped -> Stopped
23.22.02.721 | Info | [#1] [Demuxer: Main] Disposed
23.22.02.723 | Debug | [#1] [Player ] [SCREAMER] Finished (Status: Stopped, Error: )
23.22.02.727 | Debug | [#1] [Player ] Initialized
23.22.02.727 | Trace | [FlyleafEngine] timeEndPeriod(1)
23.22.02.731 | Debug | [#1] [Renderer ] Disposing
23.22.02.739 | Info | [#1] [Renderer ] Destroying swap chain [Handle: 1838302]
23.22.02.777 | Info | [#1] [Renderer ] Disposed
23.22.02.777 | Debug | [#1] [Renderer ] Initializing
23.22.02.893 | Debug | [#1] [Renderer ] GPU Adapter
Intel Intel(R) Iris(R) Xe Graphics [ID: 39497 , LUID: 85041 , DVM: 128 MB , DSM: 0 B , SSM: 7.87 GB]
[Output #1] \.\DISPLAY1 [Id: 0 , Top: 0 , Left: 0 , Width: 1366, Height: 768 , Ratio: [683:384]

23.22.02.938 | Info | [#1] [Renderer ] Initialized with Feature Level 12.1
23.22.02.938 | Info | [#1] [Renderer ] Initializing 8-bit swap chain with 2 buffers [Handle: 1838302]
23.22.02.948 | Trace | [FlyleafEngine] Disposing 1
23.22.02.950 | Debug | [#1] [Player ] Initializing
23.22.02.950 | Trace | [FlyleafEngine] timeBeginPeriod(1)
23.22.02.950 | Debug | [#1] [Player ] Initialized
23.22.02.950 | Trace | [FlyleafEngine] timeEndPeriod(1)
23.22.02.996 | Debug | [#1] [Renderer ] Disposing
23.22.03.000 | Info | [#1] [Renderer ] Destroying swap chain [Handle: 1838302]
23.22.03.021 | Info | [#1] [Renderer ] Disposed
23.22.03.023 | Debug | [#1] [FlyleafHost #1] De-assign Player #1
23.22.03.023 | Info | [#1] [Player ] Disposed
23.22.03.023 | Trace | [FlyleafEngine] Disposed 1
23.22.05.029 | Debug | [#2] [Player ] Creating Player (Usage = AVS)
23.22.05.029 | Info | [#2] [Player ] Initialiazing audio (Default @ 48000Hz)
23.22.05.371 | Debug | [#2] [Renderer ] Initializing
23.22.05.444 | Debug | [#2] [Renderer ] GPU Adapter
Intel Intel(R) Iris(R) Xe Graphics [ID: 39497 , LUID: 85041 , DVM: 128 MB , DSM: 0 B , SSM: 7.87 GB]
[Output #1] \.\DISPLAY1 [Id: 0 , Top: 0 , Left: 0 , Width: 1366, Height: 768 , Ratio: [683:384]

23.22.05.476 | Info | [#2] [Renderer ] Initialized with Feature Level 12.1
23.22.05.476 | Debug | [#2] [Player ] Created
23.22.05.476 | Debug | [#1] [FlyleafHost #2] Assign Player #2
23.22.05.476 | Info | [#2] [Renderer ] Initializing 8-bit swap chain with 2 buffers [Handle: 1838302]
23.22.09.488 | Info | [#2] [Player ] Opening rtsp://192.168.4.227/live.sdp
23.22.09.488 | Debug | [#2] [Player ] Initializing
23.22.09.488 | Trace | [FlyleafEngine] timeBeginPeriod(1)
23.22.09.488 | Debug | [#2] [Decoder: Video] Stopped -> Stopped
23.22.09.488 | Info | [#2] [Decoder: Video] Disposed
23.22.09.488 | Debug | [#2] [Player ] Initialized
23.22.09.488 | Trace | [FlyleafEngine] timeEndPeriod(1)
23.22.09.489 | Info | [#2] [PluginHandler ] [OpenDefault] Open Success
23.22.09.489 | Info | [#2] [PluginHandler ] SuggestItem #0 - live.sdp
23.22.09.489 | Info | [#2] [PluginHandler ] [OpenDefault] Open Item (0) Success
23.22.09.489 | Debug | [#2] [Demuxer: Main] Stopped -> Opening

@SuRGeoNix
Copy link
Owner

For some reason you dispose the previous player and you create a new one?

Just use OpenAsync (no Stop, no Dispose)

@saman1832
Copy link
Author

saman1832 commented Nov 7, 2023

Just use OpenAsync (no Stop, no Dispose) this is causing UI freeze as well not able to play again.
when coming in timeout event status of player is playing. so if status is playing can we use openasync

@SuRGeoNix
Copy link
Owner

SuRGeoNix commented Nov 7, 2023

Just tried this code and worked fine for me

Player.VideoDemuxer.TimedOut += (o, e) =>
{
    Player.OpenAsync(@"...");
};

You need to debug your code, you shouldn't Dispose the Player (actually also the FlyleafHost) from what I can see

@saman1832
Copy link
Author

I tried but it is making my UI Freeze.
00.03.57.739 | Debug | [#1] [Player ] [Latency 0ms] Frames: 0 Packets: 0 Speed: 1
00.03.57.739 | Trace | [#1] [Player ] [A] Presenting 00:00:05.0594557
00.03.57.798 | Trace | [#1] [Player ] [A] Presenting 00:00:05.1009070
00.03.57.818 | Trace | [#1] [Player ] [V] Presenting 00:00:05.1994888
00.03.57.819 | Warn | [#1] [Player ] No video frames
00.03.57.819 | Debug | [#1] [Player ] OnBufferingStarted
00.03.57.819 | Trace | [#1] [Player ] Buffering
00.03.57.819 | Trace | [#1] [Decoder: Video] Start Retry 1/5
00.03.57.840 | Trace | [#1] [Decoder: Video] Start Retry 2/5
00.03.57.861 | Trace | [#1] [Decoder: Video] Start Retry 3/5
00.03.57.881 | Trace | [#1] [Decoder: Video] Start Retry 4/5
00.03.57.902 | Trace | [#1] [Decoder: Video] Start Retry 5/5
00.03.57.923 | Trace | [#1] [Decoder: Audio] Start Retry 1/5
00.03.57.944 | Trace | [#1] [Decoder: Audio] Start Retry 2/5
00.03.57.965 | Trace | [#1] [Decoder: Audio] Start Retry 3/5
00.03.57.986 | Trace | [#1] [Decoder: Audio] Start Retry 4/5
00.03.58.006 | Trace | [#1] [Decoder: Audio] Start Retry 5/5
00.04.16.606 | Warn | [#1] [Demuxer: Main] Read Timeout !!!! 20103 ms
00.04.16.606 | Trace | [#1] [Demuxer: Main] [Video] DTS: 00:00:05.2795000 PTS: 00:00:05.2795000 | FLPTS: 00:00:05.2795000 | CurTime: 00:00:05.1994888 | Buffered: 00:00:00
00.04.18.567 | Info | [#1] [Player ] Opening rtsp://192.168.4.227/live.sdp
00.04.18.567 | Debug | [#1] [Player ] Initializing
00.04.18.568 | Trace | [#1] [Renderer ] Processes 00:00:05.2795000
00.04.18.587 | Info | [#1] [Player ] Stopped
00.04.18.587 | Debug | [#1] [Player ] OnBufferingCompleted
00.04.18.587 | Info | [#1] [Player ] Finished -> 00:00:05.1994888
00.04.18.592 | Debug | [#1] [Decoder: Video] Pausing -> Paused
00.04.18.599 | Debug | [#1] [Decoder: Audio] Pausing -> Paused
00.04.36.653 | Warn | [#1] [Demuxer: Main] Read Timeout !!!! 20047 ms
00.05.01.964 | Warn | [#1] [Demuxer: Main] Read Timeout !!!! 20001 ms

@SuRGeoNix
Copy link
Owner

Can you pause the debugger and see why it freezes (which thread/dead lock?)

@saman1832
Copy link
Author

when I am pausing the debugger and running then its working fine. But let me check again

@saman1832
Copy link
Author

I found this.

It starting after timeout but again getting stopped then paused.(see highleted one)

00.25.21.678 | Warn | [#3] [Demuxer: Main] Read Timeout !!!! 20098 ms
00.25.21.678 | Trace | [#3] [Demuxer: Main] [Video] DTS: 00:00:04.8000000 PTS: 00:00:04.8000000 | FLPTS: 00:00:04.8000000 | CurTime: 00:00:04.7198666 | Buffered: 00:00:00
00.25.21.678 | Info | [#3] [Player ] Opening rtsp://192.168.4.227/live.sdp
00.25.21.678 | Debug | [#3] [Player ] Initializing
00.25.21.680 | Trace | [#3] [Renderer ] Processes 00:00:04.8000000
00.25.21.690 | Info | [#3] [Player ] Stopped
00.25.21.690 | Warn | [#3] [Player ] [MediaBuffer] No video frame
00.25.21.690 | Info | [#3] [Player ] Finished -> 00:00:04.7198666
00.25.21.690 | Debug | [#3] [Decoder: Video] Pausing -> Paused
00.25.21.697 | Debug | [#3] [Decoder: Audio] Pausing -> Paused
00.25.21.703 | Debug | [#3] [Player ] [SCREAMER] Finished (Status: Opening, Error: )
00.25.21.708 | Debug | [#3] [Decoder: Video] Paused -> Stopping
00.25.21.708 | Debug | [#3] [Decoder: Video] Stopping -> Stopped
00.25.21.708 | Debug | [#3] [Decoder: Video] Thread stopped (Stopped)

@saman1832
Copy link
Author

saman1832 commented Nov 7, 2023

00.28.51.661 | Trace | [FlyleafEngine] timeEndPeriod(1)
00.28.51.662 | Info | [#4] [PluginHandler ] [OpenDefault] Open Success
00.28.51.662 | Info | [#4] [PluginHandler ] SuggestItem #0 - live.sdp
00.28.51.662 | Info | [#4] [PluginHandler ] [OpenDefault] Open Item (0) Success
00.28.51.662 | Debug | [#4] [Demuxer: Main] Stopped -> Opening
afte this no logs are coming

sometime
00.39.57.154 | Debug | [#1] [Demuxer: Main] Running -> Stopping
00.39.57.226 | Debug | [#1] [Demuxer: Main] Read Interrupt (Stopping) !!!

@SuRGeoNix
Copy link
Owner

SuRGeoNix commented Nov 7, 2023

I don't see something with these logs. Its normal to see the screamer to stop/finish. You need to identify the freeze, I suspect a binding or another event that you listen which hangs the UI.

@saman1832
Copy link
Author

saman1832 commented Nov 7, 2023

now UI is not freezing but player is not opening

00.49.58.787 | Debug | [#1] [Player ] [SCREAMER] Finished (Status: Opening, Error: )
00.49.58.792 | Debug | [#1] [Decoder: Video] Paused -> Stopping
00.49.58.792 | Debug | [#1] [Decoder: Video] Stopping -> Stopped
00.49.58.792 | Debug | [#1] [Decoder: Video] Thread stopped (Stopped)
00.49.58.811 | Debug | [#1] [Decoder: Video] Stopped -> Stopped
00.49.58.811 | Info | [#1] [Decoder: Video] Disposed
00.49.58.811 | Debug | [#1] [Decoder: Audio] Paused -> Stopping
00.49.58.811 | Debug | [#1] [Decoder: Audio] Stopping -> Stopped
00.49.58.811 | Debug | [#1] [Decoder: Audio] Thread stopped (Stopped)
00.49.58.821 | Debug | [#1] [Decoder: Audio] Stopped -> Stopped
00.49.58.821 | Info | [#1] [Decoder: Audio] Disposed
00.49.58.821 | Debug | [#1] [Demuxer: Main] Running -> Stopping
00.49.58.865 | Debug | [#1] [Demuxer: Main] Read Interrupt (Stopping) !!!
00.49.58.865 | Debug | [#1] [Demuxer: Main] Stopping -> Stopped
00.49.58.865 | Debug | [#1] [Demuxer: Main] Thread stopped (Stopped)
00.49.58.873 | Debug | [#1] [Demuxer: Main] Stopped -> Stopped
00.49.58.873 | Info | [#1] [Demuxer: Main] Disposed
00.49.58.873 | Debug | [#1] [Player ] Initialized
00.49.58.874 | Info | [#1] [PluginHandler ] [OpenDefault] Open Success
00.49.58.874 | Info | [#1] [PluginHandler ] SuggestItem #0 - live.sdp
00.49.58.874 | Info | [#1] [PluginHandler ] [OpenDefault] Open Item (0) Success
00.49.58.874 | Debug | [#1] [Demuxer: Main] Stopped -> Opening
00.49.58.875 | FFmpeg | Debug | [tcp @ 000001dea9d29180] No default whitelist set
00.49.58.875 | FFmpeg | Debug | [tcp @ 000001dea9d29180] Original list of addresses:
00.49.58.875 | FFmpeg | Debug | [tcp @ 000001dea9d29180] Address 192.168.4.227 port 554
00.49.58.875 | FFmpeg | Debug | [tcp @ 000001dea9d29180] Interleaved list of addresses:
00.49.58.875 | FFmpeg | Debug | [tcp @ 000001dea9d29180] Address 192.168.4.227 port 554
00.49.58.875 | FFmpeg | Verbose | [tcp @ 000001dea9d29180] Starting connection attempt to 192.168.4.227 port 554
00.51.19.064 | Debug | [#1] [FlyleafHost NP] Disposed
00.51.19.070 | Debug | [#2] [FlyleafHost #1] De-assign Player #1
00.51.19.074 | Info | [#1] [Renderer ] Destroying swap chain [Handle: 6491994]
00.51.19.075 | Debug | [#2] [FlyleafHost #1] Disposed
00.51.19.082 | Debug | [#1] [Player ] Initializing
00.51.19.167 | Debug | [#1] [Demuxer: Main] Opening -> Stopped
00.51.19.167 | Info | [#1] [Demuxer: Main] Disposed
00.51.19.167 | Info | [#1] [DecoderContext] [OpenPlaylistItem] None => live.sdp [Error: Cancelled]
00.51.19.167 | Info | [#1] [DecoderContext] [Open] rtsp://192.168.4.227/live.sdp [Error: Cancelled]
00.51.19.167 | Debug | [#1] [Player ] Initialized
00.51.19.204 | Debug | [#1] [Renderer ] Disposing
00.51.19.226 | Info | [#1] [Renderer ] Disposed
00.51.19.227 | Info | [#1] [Player ] Disposed

@saman1832
Copy link
Author

@SuRGeoNix please see the above cooment

@SuRGeoNix
Copy link
Owner

You dispose the FlyleafHost/Player/SwapChain. Not sure what you are doing as I cannot see your code.

@saman1832
Copy link
Author

@SuRGeoNix after applying
Player.VideoDemuxer.TimedOut += (o, e) =>
{
Player.OpenAsync(@"...");
};
the Playback opencomplete event is called after 5-7 mins.
You can have any rtsp url and switch off then on the camera the timeout will be hit then you can replicate easily.

@saman1832
Copy link
Author

LOGS:
18.29.20.989 | Warn | [#1] [Player ] Not enough buffer (restarting)
18.29.20.989 | Debug | [#1] [Player ] OnBufferingStarted
18.29.40.700 | Warn | [#1] [Demuxer: Main] Read Timeout !!!! 20007 ms
18.29.40.700 | FFmpeg | Debug | [NULL @ 00000187a83a93c0] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
18.29.40.702 | Info | [#1] [Player ] Opening rtsp://192.168.134.227/live.sdp
18.29.40.702 | Debug | [#1] [Player ] Initializing
18.29.40.702 | FFmpeg | Debug | [hevc @ 00000187a83b6480] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
18.29.40.702 | FFmpeg | Debug | [hevc @ 00000187a83b6480] Output frame with POC 365.
18.29.40.720 | Info | [#1] [Player ] Started [V: 00:00:24.2820333] [A: 00:00:24.0498866]
18.29.40.720 | Debug | [#1] [Player ] OnBufferingCompleted
18.29.40.720 | Info | [#1] [Player ] Finished -> 00:00:24.2016000
18.29.40.725 | Debug | [#1] [Decoder: Video] Pausing -> Paused
18.29.40.732 | Debug | [#1] [Decoder: Audio] Pausing -> Paused
18.29.40.735 | Debug | [#1] [Player ] [SCREAMER] Finished (Status: Opening, Error: )
18.29.40.740 | Debug | [#1] [Decoder: Video] Paused -> Stopping
18.29.40.740 | Debug | [#1] [Decoder: Video] Stopping -> Stopped
18.29.40.740 | Debug | [#1] [Decoder: Video] Thread stopped (Stopped)
18.29.40.754 | Debug | [#1] [Decoder: Video] Stopped -> Stopped
18.29.40.754 | Info | [#1] [Decoder: Video] Disposed
18.29.40.754 | Debug | [#1] [Decoder: Audio] Paused -> Stopping
18.29.40.754 | Debug | [#1] [Decoder: Audio] Stopping -> Stopped
18.29.40.754 | Debug | [#1] [Decoder: Audio] Thread stopped (Stopped)
18.29.40.761 | Debug | [#1] [Decoder: Audio] Stopped -> Stopped
18.29.40.761 | Info | [#1] [Decoder: Audio] Disposed
18.29.40.761 | Debug | [#1] [Demuxer: Main] Running -> Stopping
18.29.40.800 | Debug | [#1] [Demuxer: Main] Read Interrupt (Stopping) !!!
18.29.40.801 | Debug | [#1] [Demuxer: Main] Stopping -> Stopped
18.29.40.801 | Debug | [#1] [Demuxer: Main] Thread stopped (Stopped)
18.29.40.812 | Debug | [#1] [Demuxer: Main] Stopped -> Stopped
18.29.40.812 | Info | [#1] [Demuxer: Main] Disposed
18.29.40.812 | Debug | [#1] [Player ] Initialized
18.29.40.813 | Info | [#1] [PluginHandler ] [OpenDefault] Open Success
18.29.40.813 | Info | [#1] [PluginHandler ] SuggestItem #0 - live.sdp
18.29.40.813 | Info | [#1] [PluginHandler ] [OpenDefault] Open Item (0) Success
18.29.40.813 | Debug | [#1] [Demuxer: Main] Stopped -> Opening
18.29.40.814 | FFmpeg | Debug | [tcp @ 00000187a83a7d00] No default whitelist set
18.29.40.814 | FFmpeg | Debug | [tcp @ 00000187a83a7d00] Original list of addresses:
18.29.40.814 | FFmpeg | Debug | [tcp @ 00000187a83a7d00] Address 192.168.134.227 port 554
18.29.40.814 | FFmpeg | Debug | [tcp @ 00000187a83a7d00] Interleaved list of addresses:
18.29.40.814 | FFmpeg | Debug | [tcp @ 00000187a83a7d00] Address 192.168.134.227 port 554
18.29.40.814 | FFmpeg | Verbose | [tcp @ 00000187a83a7d00] Starting connection attempt to 192.168.134.227 port 554

AT 18.29 Player.VideoDemuxer.TimedOut += (o, e) =>
{
Player.OpenAsync(@"...");
}; this piece if code is executed.

@SuRGeoNix
Copy link
Owner

@saman1832 I cannot see your implementation. What I see from your logs is that you dispose the Demuxer and then trying to re-open it. That shouldn't be happening. You are doing something wrong with your code.

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