Comments (4)
I'm able to reproduce the problem and have traced it back to the max_dec_frame_buffering injection in the video renderer. I played around with the max_dec_frame_buffering value a bit, and it seems reducing it to 4 works with iOS (portrait and landscape) and mirroring the native monitor and a 1080p external monitor from macOS.
So, please modify line 301 of renderers/video_renderer_rpi.c to:
h->sps->vui.max_dec_frame_buffering = 4;
And let me know if that helps!
If you don't want macOS to change the screen resolution while mirroring the native monitor, change the "Optimise for" monitor setting to "Built-in Retina Display" in the system settings.
Technical background:
The max_dec_frame_buffering injection is used to reduce video pipeline latency on the Raspberry Pi GPU. The idea is mentioned in a thread on the RPi forums, but since we don't have any control over the stream creation, we have to inject it into the SPS NAL at the receiver end, which is hacky on its own (And I don't really know why only certain values work, while values slightly higher or lower don't). From my testing, the h264 library RPiPlay uses isn't 100% reliable, so that adds another potential error source.
While implementing max_dec_frame_buffering injection, for a while the code for constructing modified_data had a bug that I only noticed when I tested iOS portrait before publishing my code. The currently used max_dec_frame_buffering value 8 was tested with macOS and iOS while that bug was still present.
from rpiplay.
@kevin-hv Can you confirm the fix?
from rpiplay.
Just Building it, sry I wasn’t available.
Commenting asap.
from rpiplay.
Now the mirroring works, thank you for the quick fix.
from rpiplay.
Related Issues (20)
- ^hello
- RPi Play still showing in Screen Mirroring
- Raspberry PI Raspi 4 no Airplay output on HDMI ports HOT 5
- Nothing happens when trying to screenshare HOT 10
- no audio using screen mirroring
- How do you uninstall? HOT 1
- Is there Raspi Image HOT 1
- Screen is tearing with gstreamer HOT 2
- make -j or j1 error HOT 1
- Display of Apple device not appearing HOT 3
- RPiPlay doesn't support Raspberry Pi OS Bullseye HOT 1
- RPiPlay on Raspberry Pi 4 B 8B Issue HOT 7
- How to get the screen resolution of iOS device?
- Building Error during Make HOT 1
- use RPiPlay on analog output
- Unable to stream on screen error ** (rpiplay:7237): CRITICAL **: 21:32:04.090: gst_app_src_push_internal: assertion 'GST_IS_APP_SRC (appsrc)' failed HOT 2
- Stop Replying To HDCP Requests
- Not showing on Raspberry pi 5 32Bits HOT 2
- Impossible to Screen mirror Netflix HOT 6
- BUG: Video start delaying after iphone display rotated to horizontal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpiplay.