FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.89k stars 354 forks source link

Video4Linux on RPi working now on UxPlay: could be backported to RPiPlay. #334

Open fduncanh opened 2 years ago

fduncanh commented 2 years ago

GStreamer OpenMAX plugin omxh264dec was broken for a long time, but now the development branch of GStreamer has got Video4Linux plugin v4l2h264dec working for hardware accelerated video on the R Pi GPU. This is the one to be supported in the future on Pi.

see https://github.com/FDH2/UxPlay/issues/70 The GStreamer-based RPiPlay offspring UxPlay on RPi OS bullseye (32 or 64 bit) and Manjaro-Arm-RPi4 works with the patched plugin. (backports to GStreamer 1.18.4 (bullseye) and 1.20.0 (Manjaro) are available)

EDIT: The patch for GStreamer-1.18.5 (used by Ubuntu 20.10) is also now available,

FD- commented 2 years ago

Very interesting indeed!

fduncanh commented 2 years ago

Here are some reports of success of UxPlay with Raspberry Pi model 4B using Video4Linux2 for GPU h264 decoding

kang000feng commented 2 years ago

Very interesting indeed!

Dear developer,good day! May I ask how to Make sure the DUMP flags are not active ? How to check it? Thank you

fduncanh commented 2 years ago

No idea what DUMP flags are. You can test UxPlay on RPi with Video4Linux2 at the UxPlay site https://github.com/FDH2/UxPlay . you will need to patch the gstreamer Video4Linux2 plugin as explained there, until GStreamer-1.22 is released. This is for RPi OS Bullseye, Ubuntu 22.04, etc. There is no support for older GStreamer < 1.18.4, as in a Debian Buster-based OS with 1.16.2

kang000feng commented 1 year ago

No idea what DUMP flags are. You can test UxPlay on RPi with Video4Linux2 at the UxPlay site https://github.com/FDH2/UxPlay . you will need to patch the gstreamer Video4Linux2 plugin as explained there, until GStreamer-1.22 is released. This is for RPi OS Bullseye, Ubuntu 22.04, etc. There is no support for older GStreamer < 1.18.4, as in a Debian Buster-based OS with 1.16.2

Dear developer, DUMP flags is from your README.md, quote"For best performance:

Use a wired network connection Compile with -O3 (cmake --DCMAKE_CXX_FLAGS="-O3" --DCMAKE_C_FLAGS="-O3" ..) Make sure the DUMP flags are not active Make sure you don't use the -d debug log flag Make sure no other demanding tasks are running (this is particularly important for audio on the Pi Zero)"

fduncanh commented 1 year ago

@kang000feng RpiPlay and UxPlay are now different projects. UxPlay supports RPi using gstreamer and video4linux2.(32 and 64 bit) RpiPlay supports RPi using Omx (32 bit) / If you need UxPlay support, and its documentation doesnt solve it, post your issue there.