albfan / miraclecast

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

Black screen for 6 seconds at the beginning of the screen projection #418

Closed wugaosheng123 closed 1 year ago

wugaosheng123 commented 2 years ago

When the screen projection is successful, the screen will occasionally delay for 6 seconds, and then the normal screen will appear.

Then I used the VLC player to test the video stream. When there is a black screen for 6 seconds, there will be the following error message.

main error: buffer deadlock prevented
mpeg4audio error: Multiple blocks per frame in ADTS not supported
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 4) for PID 0
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 4) for PID 256
alsa error: cannot estimate delay: WF 8J *it
avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
main error: Timestamp conversion failed (delay 1000000, buffering 0, bound 9000000)
main error: Could not convert timestamp 1503470206 for FFmpeg
main error: Timestamp conversion failed (delay 1000000, buffering 0, bound 9000000)
main error: Could not convert timestamp 1503503539 for FFmpeg
main error: Timestamp conversion failed (delay 1000000, buffering 0, bound 9000000)
main error: Could not convert timestamp 1503520420 for FFmpeg
main error: Timestamp conversion failed (delay 1000000, buffering 0, bound 9000000)
main error: Could not convert timestamp 1503553754 for FFmpeg
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 6) for PID O
ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 6) for PID 256
main error: ES OUT SET_(GROUP _)PCR is called too late (jitter of 44972 ms ignored)
main error: Timestamp conversion failed for 298667: no reference clock
main error: Could not convert timestamp 0 for faad
main error: Timestamp conversion failed for 320001: no reference clock
main error: Could not convert timestamp 0 for faad
main error: Timestamp conversion failed for 341334: no reference clock
main error: Could not convert timestamp 0 for faad
main error: Timestamp conversion failed for 362667: no reference clock
main error: Could not convert timestamp 0 for faad
alsa error: cannot estimate delay: UfF eg*i
avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
main error: Timestamp conversion failed (delay 1000000, buffering 0, bound 9000000)
main error: Could not convert timestamp 1276516253 for FFmpeg
main error: Timestamp conversion failed (delay 1000000, buffering 0, bound 9000000)
main error: Could not convert timestamp 1276549586 for FFmpeg
main error: Timestamp conversion failed (delay 1000000, buffering 0, bound 9000000)
main error: Could not convert timestamp 1276582919 for FFmpeg
main error: Timestamp conversion failed (delay 1000000, buffering 0, bound 9000000)
main error: Could not convert timestamp 1276616253 for FFmpeg

I think it may not be the problem with my GStreamer pipeline, but the problem with video streaming. But I don't know what's wrong with the video stream, or what tests I should do. Thanks!

albfan commented 2 years ago

Definitely, debug problems in stream is interesting.

So you always see this 6 seconds black screen or only sometimes?

wugaosheng123 commented 2 years ago

This 6-second black screen does not always appear, but sometimes. I suspect there is a problem with a parameter during WiFi-D negotiation.

albfan commented 1 year ago

We cannot make any guess without review logs. See wifi FAQ to reopen the issue