Screenly / Anthias

The world's most popular open source digital signage project.
https://anthias.screenly.io
Other
2.42k stars 610 forks source link

Black screen between videos on Raspberry Pi 3B using it on Raspberry Pi OS 64 Bit Lite #1851

Open 1amrishi opened 8 months ago

1amrishi commented 8 months ago

Installed Anthias on my Raspberry pi 3B after installing the latest Rpi OS 64 Bit Lite as i also wanted to use tailscale for remote access but the issue is that after uploading multiple videos compressd using handbrake, as those are the only videos seeming to work on it, there is a black screen of 4-5 Seconds between each video.

is this a know or unsolvable issue, please guide me.

Napsty commented 8 months ago

Same issue here, even with just one asset active there's an annoying black screen of around 5 second until the video is played again. Also happens on Raspberry Pi 4.

vpetersson commented 8 months ago

Important variables:

Napsty commented 8 months ago

In my case SD card is a class 10, the video duration is 29s.

vpetersson commented 8 months ago

Does the duration decrease if you use a shorter asset?

Napsty commented 8 months ago

I was unable to test this myself but the person on site confirmed that the black screen duration is always ~5s, doesn't matter which video file was playing and which duration that video had.

1amrishi commented 8 months ago

Important variables:

  • What kind of SD card (anything less than a Class 10 should be avoided)
  • How long is the video?

I am also using a sandisk 32gb class 10 i have multiple videos of 30sec- 1 min

1amrishi commented 8 months ago

Does the duration decrease if you use a shorter asset?

no

Napsty commented 8 months ago

Just installed a new Anthias using the script installation on a separate device (Raspberry Pi 3b+) and there's 7-8 seconds black screen between playing the assets.

By the way, this also happens when manually triggering the "Next Asset" in the UI.

I also tried to use older Anthias images (tried with tag 4170486-pi3) but same result.

Note: the black screen seems to be the console output of the Raspberry Pi

Napsty commented 8 months ago

Re-installed the whole thing, using a Raspbian Legacy (Bullseye) 64 bit this time (was Bookworm before). Same thing happens; roughly 8s black screen between videos playing.

pacmac commented 7 months ago

Same thing with fresh install. Class 10 card, 29 second long video, blank screen for about 3 seconds at the end / beginning

I am using the raspberry Pi 3 image: https://github.com/Screenly/Anthias/releases/download/v0.18.6/2023-03-06-raspberrypi3.zip

I only have one asset uploaded.

pacmac commented 7 months ago

I did another install:

https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2022-09-26/2022-09-22-raspios-bullseye-arm64-lite.img.xz

bash <(curl -sL https://install-anthias.srly.io)

./screenly/bin/upgrade_containers.sh

That has a delay of 8 seconds between videos as opposed to 3 seconds from the previous.

I tried forcing the player to OMX in viewer.py but it made no difference.

ShubhamGhait commented 2 months ago

Same for my case black screen problem while playing video 0f 18 sec duration. I have Raspberry pi compute module 4 with master@21d1a41, and I installed R-Pi OS legacy 64 bit. I also query related to Anthias web setup regarding boot up time and time between two asset can we adjust , screen resolution setup ?

nicomiguelino commented 2 months ago

@ShubhamGhait

gram11111111 commented 2 months ago

I still get a black screen between videos it's around 4 seconds, installed on a Pi 3B+ if it has been running for a bit the transitions get even longer

nicomiguelino commented 2 months ago

@gram11111111, thanks for sharing your findings.

gram11111111 commented 2 months ago

Thank you for all your contribution, really hope you'll be able to fix it

ShubhamGhait commented 2 months ago

@ShubhamGhait

  • As of now, setup/customization of screen resolution is not supported.
  • How long is the black screen in your device when playing videos? @nicomiguelino Sorry for the wait for the response.
    1. There is a black screen for about four to five seconds every video. Should you possess the ability to resolve the aforementioned issue, please offer a remedy.
nicomiguelino commented 2 months ago

@ShubhamGhait, I'm still on the phase of making the playback work with using Qt (instead of OMX) for playing videos. Based on testing the changes (still a work in progress), the black screen between videos seems to disappear, but there's the risk of cross-play (where one video plays where the other video is still playing).

If there's no progress in this one, I'll be proceeding with trying out things VLC again.

Nezzu-bit commented 1 month ago

@nicomiguelino

Whats the progress till now? i got the same issue. Blackscreen of 6-8 seconds between every video on my Pi 4b. Doesnt matter which video format im using ( .mov, .mp4, .avi, .mkv... ). Are there any fixes of that?

nicomiguelino commented 1 month ago

@Nezzu-bit, changes (migration from OMX to VLC) were aleady merged and the deployment is underway.