melnijir / Dicaffeine

Repository for things connected to Dicaffeine player/streamer.
https://dicaffeine.com
MIT License
101 stars 3 forks source link

Black screen after hitting play #48

Open immerglotzer opened 1 year ago

immerglotzer commented 1 year ago

Hello,

after installing Dicaffeine everything seems to be working. The Ndi stream from Resolume is Displayed and I can select it. When I hit play there is no video shown on the screen. I am using a Raspberry Pi 3 Model B+ with Debian Buster and followed the Installing commands on the Website: "Raspberry Pi OS (32-bit !deprecated!) with desktop based on Debian Buster Raspbian". What could be going wrong?

wjdean76 commented 9 months ago

I'm having the exact same issue. Fresh install of Pi OS and Dicaffeine.

melnijir commented 9 months ago

Hi, I'm sorry, the Buster release is no longer supported, I'll remove it from the website. Please use the newest Bullseye distribution.

wjdean76 commented 9 months ago

Sorry but I am using the bullseye version.

On Thu, Sep 14, 2023 at 4:52 PM Jiri Melnikov @.***> wrote:

Hi, I'm sorry, the Buster release is no longer supported, I'll remove it from the website. Please use the newest Bullseye distribution.

— Reply to this email directly, view it on GitHub https://github.com/melnijir/Dicaffeine/issues/48#issuecomment-1720201534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMDQ6WDI5SSWO56DBLUPWDX2N4ADANCNFSM6AAAAAAZXF37UM . You are receiving this because you commented.Message ID: @.***>

melnijir commented 9 months ago

I'll check that. It's just a Resolume thing or is it happening with more different sources?

wjdean76 commented 9 months ago

Mine is from Vmix and NDI test patterns. Not resolume.

On Thu, Sep 14, 2023 at 5:09 PM Jiri Melnikov @.***> wrote:

I'll check that. It's just a Resolume thing or is it happening with more different sources?

— Reply to this email directly, view it on GitHub https://github.com/melnijir/Dicaffeine/issues/48#issuecomment-1720219491, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMDQ6SDYIMTMT7RQ4KGIF3X2N6BPANCNFSM6AAAAAAZXF37UM . You are receiving this because you commented.Message ID: @.***>

XxR3YxX commented 9 months ago

I'll check that. It's just a Resolume thing or is it happening with more different sources?

I'm using the newest 32 bit Debian Bullseye with RPI desktop version. Installed both the Full and Lite version and I have this same issue with both. I had dicaffeine working previously for months and then it quit working 2 or so weeks ago. It gives me the black screen when I hit play on both the simple and advanced modes. Regardless of being 1 source I want to monitor or 2. Please let me know what I need to do so I can fix it. I have reinstalled and updated everything, still the same issue.

thetylermoore commented 9 months ago

I'll check that. It's just a Resolume thing or is it happening with more different sources?

I'm using the newest 32 bit Debian Bullseye with RPI desktop version. Installed both the Full and Lite version and I have this same issue with both. I had dicaffeine working previously for months and then it quit working 2 or so weeks ago. It gives me the black screen when I hit play on both the simple and advanced modes. Regardless of being 1 source I want to monitor or 2. Please let me know what I need to do so I can fix it. I have reinstalled and updated everything, still the same issue.

I'm seeing a workaround where the black screen is resolved when the RPI is plugged into the network but then comes back immediately when I switch back to a connection on wireless.

immerglotzer commented 9 months ago

I resolved my issue. The Problem had to do with the network configuration. The stream Name can show up without the network being set up correctly. The cabled network connection has to be Active with a set IP(when hovering over network in the top bar, it shows up). When I had the black screen it said „link is up, configuring“ To get it working I had to uncheck the box “Automatically configure empty options“.

akaFlo commented 8 months ago

I also have the black screen, I can stream from the pi just fine and see all streams but when I play a stream I get a black screen. tried sending and receiving in all possible resolutions and checked the network settings like immerglotzer suggested. Anybody any ideas what else I can try?

XxR3YxX commented 8 months ago

So I tried all the workarounds mentioned here and nothing has worked for me. Even installed the May 3rd version of bullseye (11, legacy). Still have the same black screen issue. The streams show up and I can select them but when I hit play I still have the black screen. Not sure what else I can do!

tenstriip commented 7 months ago

Same issues here, latest release of Bullseye. Black screen when trying to send from or receive on pi. Static IP is set, I am able to ssh and vnc into the device, NDI stream names show up in source selection but when I select one and press play it's just a black screen.

CHHE-ledtec commented 7 months ago

I have the Same issue

Cable Connection Static IP Streams are showing up but only play black screen

marcjwojtowicz commented 7 months ago

I have the same issue. I had installed Dicaffeine on a Raspberry Pi 3B running Raspberry Pi OS Bullseye a couple months ago, and that worked great using the instructions at https://dicaffeine.com/raspbian.

Today I am unable to use Dicaffeine successfully on a Raspberry Pi 4 model B running Raspberry Pi OS Bullseye. This is with a fresh install of the OS on an SD card, and after first bootup I follow the instructions at https://dicaffeine.com/raspbian without installing any other software.

In all cases, I am using a wired ethernet connection. Based on comments above in this thread, I tried disabling WiFi and Bluetooth on the Raspberry Pi 4 model B, but it didn't make any difference. To test, I am running NDI Tools test patterns on a Windows PC on the LAN. This still works with Dicaffeine on the Raspberry Pi 3B. As others have reported above, on the Raspberry Pi 4 model B, I can see and pick the NDI stream name, but I get a black screen after pressing play. I also confirmed no additional network traffic is seen on the Windows PC after pressing play (which is seen when using the Raspberry Pi 3B and video is displayed properly there.)

Something else I tried was to clone the SD card from the Raspberry Pi 3B where Dicaffeine is still working, and I inserted it into the Raspberry Pi 4 model B and booted off that to test. It boots up fine and the Dicaffeine web interface works fine, but it shows the black screen after pressing the Play button. So, this seems to be something related to differences in hardware between Raspberry Pi 3B and Raspberry Pi 4 model B, where some library isn't working properly on the Raspberry Pi 4 model B, but works fine on the Raspberry Pi 3B.

Any ideas on anything else I can try to troubleshoot further?

marcjwojtowicz commented 6 months ago

After troubleshooting this issue on the Raspberry Pi 4 model B, the problem was narrowed down to a temporary file ownership issue. If the owner of the temp file is the user trying to run the yuri2 process, you get the black screen issue. The default owner of the temp file is the first user that tries to run the yuri2 process. I don't understand why this works on Raspberry Pi 4 model B (or why it isn't needed on Raspberry Pi 3B), but it fully fixes the black screen after play issue for us:

sudo rm -f /tmp/NTK_NDI_QUIC_SERVER_V5_5960
sudo touch /tmp/NTK_NDI_QUIC_SERVER_V5_5960
sudo chown nobody /tmp/NTK_NDI_QUIC_SERVER_V5_5960

To make the same temporary file change survive a reboot of the Raspberry Pi 4 model B, you can update the dicaffeine.service file as follows:

systemctl --user edit dicaffeine.service

The command above opens dicaffeine.service in nano, so immediately after line 2 which contains...

### Anything between here and the comment below will become the new contents of the file

...add the following lines, then save and exit nano with Ctrl-O, then Enter, then Ctrl-X.

[Service]
ExecStartPre=sudo rm -f /tmp/NTK_NDI_QUIC_SERVER_V5_5960
ExecStartPre=sudo touch /tmp/NTK_NDI_QUIC_SERVER_V5_5960
ExecStartPre=sudo chown nobody /tmp/NTK_NDI_QUIC_SERVER_V5_5960

I hope this info helps someone, or helps the author fix the issue so this work-around isn't needed!

MADempsey commented 6 months ago

marcjwojtowicz Fixed This! Thank You

melnijir commented 6 months ago

Please can you check if the same is happening with the newest Raspberry OS Debian Bookworm release and the beta version available for download on: https://dicaffeine.com/raspbian?

Thanks a lot!

akaFlo commented 5 months ago

Big thx to marcjwojtowicz! It works!! Black screen is gone.