The fullscreen video is skipping frames and thus the stream was getting corrupted (some I-frames were dropped, leading to incomplete reconstruction of the video). This is with the following setup:
Raspberry Pi 4B
Python 3.11.2
python-vlc 3.0.20123
The fullscreen video is skipping frames and thus the stream was getting corrupted (some I-frames were dropped, leading to incomplete reconstruction of the video). This is with the following setup:
Raspberry Pi 4B
Python 3.11.2
python-vlc 3.0.20123
Copyright © 2021 Jogjafile Inc.
The solution to this was found here: Using libVLC ignores disabled hardware acceleration
Setting the flag
--avcodec-hw=nonemade the video run normally.In the discussion in 2019, the worry was that libvlc was not taking programmatically set flags into account. But it seems to work now.
In this thread, users discuss libvlc not employing the optimizations that the Raspberry Pi -specific VLC application does. My hypothesis for why disabling hardware acceleration works is that the default acceleration employed by default by libvlc is somehow incompatible with RPi.