SvenVD / rpisurv

Raspberry Pi surveillance
https://community.rpisurv.net
GNU General Public License v2.0
610 stars 101 forks source link

VLC sabotage of fresh installs #136

Closed sborn closed 2 years ago

sborn commented 2 years ago

Earlier there was a report by rummens1337 about VLC: https://github.com/SvenVD/rpisurv/issues/113

I was doing installs from scratch last week and they were all working great. Fresh PiOS, then rpisurv as instructed. Each one worked to stream rtsp from unifi protect.

I had to put it on hold for a few days and got back to work with all new installs and now they are all doing what the rummens1337 post outlined. I do not have the old ones. Did VLC just upgrade?

I couldn't get VLC to work on more than one of my Win10 desktops (I have dozens), but if I downgraded on Win10 then VLC could stream rtsp without a problem on all of them. None of the pis can stream VLC today.

Can someone explain better the solution that Sven described?

akoryuerek commented 2 years ago

What's your kernel version ?

sborn commented 2 years ago

5.10 Everything is fresh out of the box and burned new. I messed around on some other machines via LogMeIn last night and was getting really variable results. I'm going to try an ffmpeg test on them today when I get there (I can't test them from home because I'm not set up with Pis I can remote into via ssh). I'll report back.

akoryuerek commented 2 years ago

I had also problems with 5.10.63-v7l+ by downgrading to 5.10.59-v7l+ everything will work again. Just execute sudo rpi-update cb70bb6d7dd3327c539dd90090c1ec88006dbcef and reboot and please give a feedback.

sborn commented 2 years ago

Wow. Worked perfectly! Will that be fixed in later upgrades? How do I avoid it from breaking again?

akoryuerek commented 2 years ago

Yes you can avoid, don’t update :) I assume it´s not a problem with rpisurv and the new kernel it´s actually a problem with vlc and the kernel. I tried to explain this situation at the vlc forum with my broken English, but no one was interested or they also don’t update :)

sborn commented 2 years ago

Yeah, I was asking if the fix would happen elsewhere. There is this from a while back: https://github.com/aler9/rtsp-simple-server/issues/223

sborn commented 2 years ago

Which forum did you bring this up on? I have someone who wants to work on it.

akoryuerek commented 2 years ago

Here, at the official VLC Forum

https://forum.videolan.org/viewtopic.php?f=13&t=158305

sborn commented 2 years ago

Thanks. I'll pass it on.

SvenVD commented 2 years ago

AFAIK this is the place for the rpi fork https://github.com/RPi-Distro/vlc/issues

kpfa commented 2 years ago

What worked for us was to to downgrade (until a proper fix is released): sudo rpi-update cb70bb6d7dd3327c539dd90090c1ec88006dbcef and reboot.

SvenVD commented 2 years ago

For reference https://github.com/RPi-Distro/vlc/issues/48

daendaen commented 2 years ago

I had also problems with 5.10.63-v7l+ by downgrading to 5.10.59-v7l+ everything will work again. Just execute sudo rpi-update cb70bb6d7dd3327c539dd90090c1ec88006dbcef and reboot and please give a feedback.

you are my hero!!! Thank you!!!

nphawkins201 commented 2 years ago

Anyone have a fix to get this working on a fresh install of rasbian lite, it use to work by downgrading the rpi-update, but does not seem to work anymore, using version v3.0.0-beta7

SvenVD commented 2 years ago

It seems to be fixed upstream https://github.com/RPi-Distro/vlc/issues/48.

nphawkins201 commented 2 years ago

Doing a fresh install with lite version released on October 30th, downgrade the rpi-update to ffdfc6e625eb38086b8c15eead2be90acab825c2, installed the v3.0.0-beta7 and unable to get the fresh install to display any of the demo items. running systemctl status rpisurv i get this:

pi@Cameraviewer:~ $ sudo systemctl status rpisurv ● rpisurv.service - Rpisurv Raspberry Pi Surveillance Loaded: loaded (/etc/systemd/system/rpisurv.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Tue 2021-11-09 18:37:06 MST; 494ms ago Process: 791 ExecStart=/usr/bin/rpisurv (code=exited, status=1/FAILURE) Main PID: 791 (code=exited, status=1/FAILURE) CPU: 773ms

System Log:

Nov 9 18:45:51 Cameraviewer rpisurv[951]: /usr/local/bin/rpisurv/core/util/setuplogging.py:15: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. Nov 9 18:45:51 Cameraviewer rpisurv[951]: logcfg = yaml.load(ymlfile) Nov 9 18:45:51 Cameraviewer rpisurv[951]: pygame 1.9.6 Nov 9 18:45:51 Cameraviewer rpisurv[951]: Hello from the pygame community. https://www.pygame.org/contribute.html Nov 9 18:45:51 Cameraviewer rpisurv[951]: 2021/11/09 18:45:51 - l_default - INFO - Starting rpisurv 3.0.0-beta7 Nov 9 18:45:51 Cameraviewer rpisurv[954]: /usr/bin/tvservice is not supported when using the vc4-kms-v3d driver. Nov 9 18:45:51 Cameraviewer rpisurv[954]: Similar features are available with standard linux tools Nov 9 18:45:51 Cameraviewer rpisurv[954]: such as modetest from libdrm-tests. Nov 9 18:45:51 Cameraviewer rpisurv[951]: Traceback (most recent call last): Nov 9 18:45:51 Cameraviewer rpisurv[951]: File "/usr/local/bin/rpisurv/surveillance.py", line 170, in Nov 9 18:45:51 Cameraviewer rpisurv[951]: displays=parse_tvservice() Nov 9 18:45:51 Cameraviewer rpisurv[951]: File "/usr/local/bin/rpisurv/surveillance.py", line 69, in parse_tvservice Nov 9 18:45:51 Cameraviewer rpisurv[951]: tvserviceresult_l = subprocess.check_output(['/usr/bin/tvservice', '-l'], text=True ) Nov 9 18:45:51 Cameraviewer rpisurv[951]: File "/usr/lib/python3.9/subprocess.py", line 424, in check_output Nov 9 18:45:51 Cameraviewer rpisurv[951]: return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, Nov 9 18:45:51 Cameraviewer rpisurv[951]: File "/usr/lib/python3.9/subprocess.py", line 528, in run Nov 9 18:45:51 Cameraviewer rpisurv[951]: raise CalledProcessError(retcode, process.args, Nov 9 18:45:51 Cameraviewer rpisurv[951]: subprocess.CalledProcessError: Command '['/usr/bin/tvservice', '-l']' returned non-zero exit status 1. Nov 9 18:45:51 Cameraviewer systemd[1]: rpisurv.service: Main process exited, code=exited, status=1/FAILURE Nov 9 18:45:51 Cameraviewer systemd[1]: rpisurv.service: Failed with result 'exit-code'.

SvenVD commented 2 years ago

What is the OS and vlc version you are running

nphawkins201 commented 2 years ago

`pi@Cameraviewer:~ $ vlc --version VLC media player 3.0.16 Vetinari (revision 1.0.6-1680-ge976d3c3b) VLC version 3.0.16 Vetinari (1.0.6-1680-ge976d3c3b) Compiled by pi on serge-testpi (Oct 22 2021 14:49:51) Compiler: gcc version 10.2.1 20210110 (Raspbian 10.2.1-6+rpi1)

pi@Cameraviewer:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" pi@Cameraviewer:~ $

SvenVD commented 2 years ago

There seems to be yet another and new issue with vlc on Bullseye, I suggest downgrading to Buster for the time being https://github.com/RPi-Distro/vlc/issues/49

nphawkins201 commented 2 years ago

I will give it a try, thanks.

SvenVD commented 2 years ago

I opened new issue for the bullseye problem https://github.com/SvenVD/rpisurv/issues/141 for this to not keep this clean, this issue resolved

JGVB commented 2 years ago

I have the same problem on Bullseye with none of these fixes working

Your version of vlc does not have the needed mmal options. Rpisurv needs those
Minimum tested vlc version for Rpisurv is (VLC media player 3.0.12 Vetinari (revision 3.0.12-1-0-gd147bb5e7e)
Aborting installation, upgrade to latest vlc player with mmal support
vlc --version
VLC media player 3.0.17.4 Vetinari (revision 3.0.13-8-g41878ff4f2)
VLC version 3.0.17.4 Vetinari (3.0.13-8-g41878ff4f2)
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"