SuRGeoNix / Flyleaf

Media Player .NET Library for WinUI 3/ WPF/WinForms (based on FFmpeg/DirectX)
GNU Lesser General Public License v3.0
712 stars 100 forks source link

Audio stopped after some time in rtsp stream #480

Closed sharmasulekh87 closed 2 months ago

sharmasulekh87 commented 3 months ago

Hello @SuRGeoNix , I am using Flyleaf version 3.7.41 and try to play rtsp url having audio stream, but it stopped after 1 minutes approx. The video continues but no audio after that. I have set the MaxAudioFrames count to 4. Although it plays ok with ffplay. I am hereby attaching the logs. Please guide me what more can i add to rectify the issue.

Player_1719903380.log

SuRGeoNix commented 3 months ago

Hi @sharmasulekh87,

It seems that you set the Demuxer.AllowFindStreamInfo to false, I guess to faster opening the stream. However, that might be the reason for your issue as it does not read properly the stream's codec parameters. You can also try to enable/disable this Audio.FiltersEnabled. Try to increase the MaxAudioFrames even higher 40+. Finally, try to update to the latest FlyleafLib (v3.7.43 fixed a number of issues/improvents with audio).

I cannot see anything in the logs (use trace for flyleaf), also you saying the issue happened 1 minute after and the logs are for 30 seconds.

Regards, John