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

Slow video in console-only #344

Open
casperriboe opened this issue Jun 15, 2022 · 1 comment
Open

Slow video in console-only #344

casperriboe opened this issue Jun 15, 2022 · 1 comment

Comments

@casperriboe
Copy link

casperriboe commented Jun 15, 2022

Hi,

Whenever I run my RPi 4B 4GB in console mode RPiPlay renders the feed really slowly. It keeps getting slower and slower like in issue https://github.com/FD-/RPiPlay/issues/265. However when I run it inside the Desktop GUI it performs fine.

At first I thought it might be the resolution and I was somewhat correct. With a 4K resolution in the GUI the feed performed similarly slow. Scaling the window down made it go faster. So I made the resolution smaller and running RPiPlay in fullscreen was fine.
I finally got the resolution down in the console but even at 1280x720 it would run as slow. I tried changing the assigned GPU memory so ARM would have 512mb and GPU 512mb as well, still no dice.
Lastly I also tried patching GStreamer using the guide provided from UxPlay https://github.com/FDH2/UxPlay/wiki/Gstreamer-Video4Linux2-plugin-patches

I'm running latest Bullseye Raspberry Pi OS, with all latest updates as of today. It was the same without the latest updates.
RPiPlay is installed through PiKiss.

What can I do? It seems to me like the console is missing some GPU-related resources. Only workaround I can think of is auto-running RPiPlay inside the GUI but I don't see an option to have the mirror window automatically enter fullscreen.

@fduncanh
Copy link

fduncanh commented Jun 17, 2022

The UxPlay GStreamer patches provide 32-/64-bit Video4Linux2 support for the Pi, using the GStreamer plugin.

Unless something in it has recently changed, RPiPlay only uses 32-bit OpenMAX for non-GStreamer GPU support. (unfortunately OpenMAX is deprecated and no longer actively supported on RPi, so this has no long-term future). The Gstreamer option on RPiPlay will probably not work with Video4Linux2, since some tweaks to the video pipeline are needed. You should see if using UxPlay-1.53 instead of RPiPlay fixes your issue. Use uxplay -rpifb for use with KMS framebuffer, which I guess is what you mean by console mode, (no X11).

The UxPlay Video4Linux2 support is now working great on RPi 4B using development GStreamer-1.21, which is scheduled to be released as GStreamer-1.22 later this summer, and the UxPlay site has backport patches to GStreamer-18.4 and later available now, before the 1.22 release.

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