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

BUG: Video start delaying after iphone display rotated to horizontal #373

Open
imananoosheh opened this issue May 6, 2024 · 1 comment

Comments

@imananoosheh
Copy link

Description of the Bug I'm facing

I have a fresh Raspberry Pi OS (64-bit) installed on Raspberry Pi 400
Device Info:
Raspberry Pi 400 | quad-core 64-bit ARM Cortex-A72 @ 1.8GHz | 4GB RAM
I have installed the Gstreamer libraries mentioned below and then I cloned and followed the instructions to build and run the rpiplay. it mirrors the iPhone screen fine in a vertical position but when it's rotated to a horizontal position (such as in YouTube) the video starts delaying and the below errors pop in the terminal mentioning this needs to be filed as a bug; so I did. Also CPU goes to the roof in this stage.

Note: Please let me know if any further details are needed.

STDOUT LOG RECORD:

p*******r@raspberrypi:~ $ rpiplay -n rpiplayserver -b on -a hdmi 
Using low-latency mode
Initialized server socket(s)
*** WARNING *** The program 'rpiplay' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
Accepted IPv4 client on socket 23
Local: 10.0.0.3
Remote: 10.0.0.241
Accepted IPv4 client on socket 25
Local: 10.0.0.3
Remote: 10.0.0.241
raop_rtp_mirror starting mirroring
raop_rtp starting audio
raop_rtp starting audio
raop_rtp starting audio
raop_rtp starting audio
raop_rtp starting audio
raop_rtp starting audio
raop_rtp starting audio
raop_rtp starting audio

** (rpiplay:2799): WARNING **: 10:08:38.312: v4l2h264dec0: 3 frames 9848-9850 left undrained after CMD_STOP, eos sent too early: bug in decoder -- please file a bug

** (rpiplay:2799): WARNING **: 10:08:45.919: v4l2h264dec0: 14 frames 10433-10446 left undrained after CMD_STOP, eos sent too early: bug in decoder -- please file a bug

** (rpiplay:2799): WARNING **: 10:09:03.607: v4l2h264dec0: 3 frames 11261-11263 left undrained after CMD_STOP, eos sent too early: bug in decoder -- please file a bug

** (rpiplay:2799): WARNING **: 10:09:31.809: v4l2h264dec0: 14 frames 13178-13191 left undrained after CMD_STOP, eos sent too early: bug in decoder -- please file a bug

** (rpiplay:2799): WARNING **: 10:09:47.480: v4l2h264dec0: 3 frames 13923-13925 left undrained after CMD_STOP, eos sent too early: bug in decoder -- please file a bug

Installed GStreamer packages:

https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c#install-gstreamer-on-ubuntu-or-debian

apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

OS Info

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
@GymLeaderTalon
Copy link

It could be the OS bookworm has some compatibility issues. You could try it with OS Buster to see if that resolved the issue. Check out this post for more info:

https://github.com/FD-/RPiPlay/issues/296#issuecomment-1678325787

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