Video not shown, docker container restart

Hi,

I have issues with anthias and video (mp4).
I’m running anthias (raspiOS light 64bit and then the installation of anthias with the bash command) on a raspberry pi 4GB and 90° rotated screen.
Therefor I commented “dtoverlay=vc4-kms-v3d” in /boot/firmware/config.txt and added “display_hdmi_rotate=1” at the end of the file.
Images are displayed fine but when a video should be shown, the screen get black and then splashscreen is shown, anthias is restarting.
The docker container “anthias-viewer” is then restarted (log below).

Even when I do not rotate screen, the video is shown but the TV shows when the video starts and end the source info on the screen (like you change source input).

I want to run it with 90° rotation…

Can anyone help me?

Btw: I tried it first on a raspberry pi 5 4GB with several possible installation methods (pi OS light / full, directly with the anthias image, etc.), but I never got the screen rotated, that’s why I switched now to a pi 4 :frowning:

Thanks and regards

LOG from docker container “anthias-viewer”:

get_next_asset counter 0 returning asset 2 of 3
Showing asset EFL_2025_Flyer_1.jpg (image)
Asset URI /data/screenly_assets/8d19e9d1e27c4d759c6388430dfe0a57.jpg
Current url is /data/screenly_assets/8d19e9d1e27c4d759c6388430dfe0a57.jpg
Sleeping for 10
get_next_asset
refresh_playlist
refresh: counter: (0) deadline (2025-04-12 13:15:00+00:00) timecur (2025-03-13 15:28:27.751543+00:00)
get_next_asset after refresh
get_next_asset counter 0 returning asset 3 of 3
Showing asset EFL_Hauptsponsoren.mp4 (video)
Asset URI /data/screenly_assets/b1cf887b20b44bd29241c6c162c9582e.mp4
Displaying video /data/screenly_assets/b1cf887b20b44bd29241c6c162c9582e.mp4 for 7
Failed to create secure directory (/data/.config/pulse): Permission denied
[01fa5770] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Failed to create secure directory (/data/.config/pulse): Permission denied
[01fc8c38] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Reading config-file...
Current url is null
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[01fabd00] gles2 generic error: parent window not available
[01fabd00] xcb generic error: window not available
[01fbc4e8] gles2 vout display error: parent window not available
[01fbc4e8] gl vout display error: parent window not available
[01fbc4e8] xcb vout display error: window not available
[01fbc4e8] drm_vout vout display: <<< OpenDrmVout: DPV0 1080x1920(1080x1920 @ 0,0 0/0), cfg.display: 1080x1920, source: 1080x1920(1080x1920 @ 0,0 1/1)
[01fbc4e8] drm_vout vout display error: Failed to get xlease
[01fbc4e8] drm_vout vout display error: Failed to open vc4
Error opening terminal: unknown.
./bin/start_viewer.sh: line 57: kill: (37) - No such process
./bin/start_viewer.sh: line 39: /sys/fs/cgroup/memory/memory.swappiness: No such file or directory
Loading browser...
Current url is http://anthias-nginx:80/static/img/standby.png
Starting new HTTP connection (1): anthias-nginx:80
http://anthias-nginx:80 "GET /splash-page HTTP/1.1" 200 None
Scheduler init
update_playlist
Generating asset-list...
generate_asset_list deadline: 2025-04-12 13:15:00+00:00
update_playlist done, count 3, counter 0, index 0, deadline 2025-04-12 13:15:00+00:00
Current url is http://anthias-nginx:80/splash-page

@obi-om, thanks for raising this issue.Let me look closely. It could be that Anthias for Pi 5 needs a different display system (like Wayland or X11). For Pi 5, it currently uses the framebuffer directly.

Hi, thanks in advance :slight_smile:
Just to be on safe side: currently I try it with the pi 4 (the long story from above).
With pi 5 I stopped now. I have both available, so if there is a working solution for pi5 with rotated screen and working videos would also be fine :slight_smile:

1 Like

Thanks! It’s great that you have it quite working on your Pi 4.
I’ll take note of that. We plan on making rotation options to work out of the box in the future so that it will be a seamless experience. Updating the inner workings (e.g., the display server used) could be a stepping stone.

Ok, now we have unfortunately misunderstanding.

To summarize shortly:

  • pi4: screen rotation working but then video is not playing and causing docker container “anthias-viewer” to crash. Without screen-rotation, video is working, but also not proper (with hdmi interruption).
  • pi5: I was not able to achive screen-rotation (with several combinations). I did not come to the point to test video because I need screen roation. So I stopped it with pi5 and switched to pi4.

I aim for pi4 now as there at least sceen rotation is working, my long error description from above is the issue with the pi4.

BR

Thanks for clarifying that, @obi-om. Given that, Anthias needs to be fixed for Pi 4 as well.

I have the same problem when enabling portrait mode with your method you used (on the config.txt). I checked the master code on Athias on Github.It was set to1920x1080 only; there’s no option for portrait mode or rotation.