albfan / miraclecast

Connect external monitors to your system via Wifi-Display specification also known as Miracast
Other
3.68k stars 408 forks source link

Flickering issue in ubuntu 18.04 #447

Closed raghwendra2022 closed 1 year ago

raghwendra2022 commented 1 year ago

When running miraclecast for some time , screen starts flickering. Need some help on this

albfan commented 1 year ago

Probably a screencast or logs for support can be helpful

raghwendra2022 commented 1 year ago

MicrosoftTeams-image (4)

Please see the attached screenshot

albfan commented 1 year ago

screencast means video (is problematic here as github do not allow mp4 or webm) from that flickering we cannot see any flickering

log for support is documented here: https://github.com/albfan/miraclecast/wiki/FAQ#log-for-support

raghwendra2022 commented 1 year ago

https://user-images.githubusercontent.com/107671658/181756085-a7816028-8150-4fa0-aafd-6e41408ff9e0.mp4

Please review the attached video

albfan commented 1 year ago

Looks like pure lag not flickering, collect logs to check if there's something obvious.

What's the environment for source and target? Windows to ubuntu? See you might need to configure some extra parameters windows uses, check https://github.com/albfan/miraclecast/wiki/FAQ#microsoft-os-support

raghwendra2022 commented 1 year ago

Yes it is windows to Ubuntu. Same issue is with Android to Ubuntu

albfan commented 1 year ago

Collect logs to review what's going on

raghwendra2022 commented 1 year ago

MiracleLogs.zip

Please find the attached logs

raghwendra2022 commented 1 year ago

Did you get the chance to review the logs

albfan commented 1 year ago

I think this is related with:

rtpjitterbuffer rtpjitterbuffer.c:570:calculate_skew: delta - skew: 0:26:19.981801335 too big, reset skew

but can you attach logs using android (remove microsoft config) and let's compare logs

raghwendra2022 commented 1 year ago

Ok sure, Thanks

raghwendra2022 commented 1 year ago

Android Device Miracast Logs.zip

Please find the logs for Android.

raghwendra2022 commented 1 year ago

Any finding that will help us to resolve this issue.

albfan commented 1 year ago

For me still this is something to address at gstreamer.

rtpjitterbuffer rtpjitterbuffer.c:570:calculate_skew: delta - skew: 0:06:46.999929427 too big, reset skew

You can modify parameters from rtpjitterbuffer

https://gstreamer.freedesktop.org/documentation/rtpmanager/rtpjitterbuffer.html?gi-language=c

here we set a latency of 100 (default is 200)

See you can use vlc as player to check if provided player is not smart enough:

https://github.com/albfan/miraclecast/wiki/miracle-sinkctl#external-player

You can use this examples to run a rtp server and test what gstreamer best reproduces it:

https://stackoverflow.com/questions/13154983/gstreamer-rtp-stream-to-vlc

raghwendra2022 commented 1 year ago

Hi, one quick question is the library has dependency on any Specific Driver

albfan commented 1 year ago

it depends on systemd basically

raghwendra2022 commented 1 year ago

Any more input will be helpful. It is working fine on One laptop but not working on another machine. We are using ubuntu 18.04

albfan commented 1 year ago

You're basically moving the problem in your laptop to a problem in miraclecast, just because its maintainer replies to open issues.

I'm unsure what causes this problem, have laptops same specs? it can be (faulty RAM, overheating, different packages installed on your OS) I really don't know.

Start by comparing logs from correct laptop with faulty laptop.

Expecting other to identify what's different from your own environment is really complex.

Closing as there's no actionable task to fix here, we can reopen if you provide any info to review