Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VLC issue on raspbian bullseye #141

Open
SvenVD opened this issue Nov 11, 2021 · 24 comments
Open

VLC issue on raspbian bullseye #141

SvenVD opened this issue Nov 11, 2021 · 24 comments

Comments

@SvenVD
Copy link
Owner

SvenVD commented Nov 11, 2021

No description provided.

@SvenVD
Copy link
Owner Author

SvenVD commented Nov 11, 2021

RPi-Distro/vlc#49

@SvenVD
Copy link
Owner Author

SvenVD commented Nov 17, 2021

RPi-Distro/vlc#50

@tmedina72
Copy link

I ran sudo rpi-update cb70bb6d7dd3327c539dd90090c1ec88006dbcef but still have bullseye after reboot, any suggestions?

@SvenVD
Copy link
Owner Author

SvenVD commented Nov 28, 2021

I think it is best to do a full reinstallation with a buster image

UPDATE: Raspberry Pi now officially supports the Buster images till somewhere in 2024: link. So at least for the near future use this one for Rpisurv.

@kpfa
Copy link

kpfa commented Nov 30, 2021

On a fresh install of bullseye (Raspbian lite) We loaded the snap and were then able to install rpisurv 3 from git.

sudo apt update
sudo apt install snapd
sudo snap install core
sudo snap install vlc-pi --edge --devmode
sudo snap connect vlc-pi:hardware-observe

However, another issue pops up 'tvservice is not supported when using the vc4-kms-v3d driver.'

/usr/bin/rpisurv
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
/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.
  logcfg = yaml.load(ymlfile)
2021/11/30 10:57:10 - l_default - INFO - Starting rpisurv 3.0.0
/usr/bin/tvservice is not supported when using the vc4-kms-v3d driver.
Similar features are available with standard linux tools
such as modetest from libdrm-tests.
Traceback (most recent call last):
  File "/usr/local/bin/rpisurv/surveillance.py", line 170, in <module>
    displays=parse_tvservice()
  File "/usr/local/bin/rpisurv/surveillance.py", line 69, in parse_tvservice
    tvserviceresult_l = subprocess.check_output(['/usr/bin/tvservice', '-l'], text=True )
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/tvservice', '-l']' returned non-zero exit status 1.

root@raspberrypi:~/rpisurv# tvservice -l
tvservice is not supported when using the vc4-kms-v3d driver.
Similar features are available with standard linux tools
such as modetest from libdrm-tests.

I'll start a new issue (if one doesn't already exist)

@geeklingo
Copy link

FWIW, i resolved my issue yesterday by switching from H.265 to H.264 for my secondary stream (the one i used with rpisurv)

@SvenVD
Copy link
Owner Author

SvenVD commented Jan 9, 2022

FWIW, i resolved my issue yesterday by switching from H.265 to H.264 for my secondary stream (the one i used with rpisurv)

On Bullseye?

@geeklingo
Copy link

geeklingo commented Jan 9, 2022

Yes, on the latest OS. And by switching, i mean on the cameras, didn't change anything server side.

@SvenVD
Copy link
Owner Author

SvenVD commented Jan 9, 2022

Yes, on the latest OS. And by switching, i mean on the cameras, didn't change anything server side.

Could you give some more details which version OS and which VLC version?

@geeklingo
Copy link

geeklingo commented Jan 9, 2022

My config details are in #147

Pi:

Linux raspberrypi 5.10.63-v7+ #1496 SMP Wed Dec 1 15:58:11 GMT 2021 armv7l

OS:

pi@raspberrypi:~ $ cat /etc/debian_version
10.11

VLC media player 3.0.12 Vetinari (revision 3.0.12-1-0-gd147bb5e7e)

Oh wait, is that Buster? Well I had the same issue as soon as i went to 5.10.63 and resolved by changing to H.264

@SvenVD
Copy link
Owner Author

SvenVD commented Jan 9, 2022

Yes Debian 10 is still Buster.

@geeklingo
Copy link

Yeah ok, so the Kernel upgrade was what broke my install and gave this same error. Same kernel on Bullseye.

@geeklingo
Copy link

scratch that, my fix seemed to only be temp, back to no feeds working.

@CronoBandit
Copy link

rpisurv now works under Bullseye - you just need to switch to fake kms.
I just posted the work-around in ticket: #143
Can someone else confirm this works - thanks!

@Jackfritt
Copy link

used the work-around on a fresh install of 2022-01-28-raspios-bullseye-armhf-lite.zip
on this Raspi
cat /proc/cpuinfo | grep Model
Model : Raspberry Pi 2 Model B Rev 1.1

Its not in the v3_latest yet..

Works also with a big display..
Auto detected display DEL-Dell_U4919DW at HDMI 0

@geeklingo
Copy link

Workaround didn't work for me @CronoBandit. I've just done a fresh bullseye install and still can't watch anything, keeps showing the connecting graphic but no issues with actual connection.

pi@PiNVR:/usr/local/bin/rpisurv/logs $ sudo systemctl status rpisurv
● rpisurv.service - Rpisurv Raspberry Pi Surveillance
     Loaded: loaded (/etc/systemd/system/rpisurv.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2022-06-03 13:47:20 AEST; 6min ago
   Main PID: 8082 (rpisurv)
      Tasks: 13 (limit: 1395)
        CPU: 54.000s
     CGroup: /system.slice/rpisurv.service
             ├─ 8082 /bin/bash /usr/bin/rpisurv
             ├─ 8083 python3 surveillance.py
             ├─ 8091 python3 surveillance.py
             ├─ 8092 python3 surveillance.py
             ├─ 8094 python3 surveillance.py
             ├─ 8096 python3 surveillance.py
             └─11247 /usr/bin/vcgencmd get_mem malloc_total

Jun 03 13:53:47 PiNVR rpisurv[8094]: 2022/06/03 13:53:47 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream3 attempts:38
Jun 03 13:53:47 PiNVR rpisurv[8096]: 2022/06/03 13:53:47 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream4 attempts:38
Jun 03 13:53:47 PiNVR rpisurv[11222]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun 03 13:53:47 PiNVR rpisurv[11222]: Try `vlc --help' for more information.
Jun 03 13:53:47 PiNVR rpisurv[11223]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun 03 13:53:47 PiNVR rpisurv[11223]: Try `vlc --help' for more information.
Jun 03 13:53:47 PiNVR rpisurv[11224]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun 03 13:53:47 PiNVR rpisurv[11224]: Try `vlc --help' for more information.
Jun 03 13:53:47 PiNVR rpisurv[11225]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun 03 13:53:47 PiNVR rpisurv[11225]: Try `vlc --help' for more information.

daemon.log

un  3 13:41:52 PiNVR rpisurv[4365]: 2022/06/03 13:41:52 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream1 attempts:14
Jun  3 13:41:52 PiNVR rpisurv[4367]: 2022/06/03 13:41:52 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream2 attempts:14
Jun  3 13:41:52 PiNVR rpisurv[4368]: 2022/06/03 13:41:52 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream3 attempts:14
Jun  3 13:41:52 PiNVR rpisurv[4370]: 2022/06/03 13:41:52 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream4 attempts:14
Jun  3 13:41:52 PiNVR rpisurv[5503]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:41:52 PiNVR rpisurv[5503]: Try `vlc --help' for more information.
Jun  3 13:41:52 PiNVR rpisurv[5504]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:41:52 PiNVR rpisurv[5504]: Try `vlc --help' for more information.
Jun  3 13:41:53 PiNVR rpisurv[5505]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:41:53 PiNVR rpisurv[5505]: Try `vlc --help' for more information.
Jun  3 13:41:53 PiNVR rpisurv[5506]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:41:53 PiNVR rpisurv[5506]: Try `vlc --help' for more information.
Jun  3 13:42:02 PiNVR rpisurv[4365]: 2022/06/03 13:42:02 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream1 attempts:15
Jun  3 13:42:02 PiNVR rpisurv[4367]: 2022/06/03 13:42:02 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream2 attempts:15
Jun  3 13:42:02 PiNVR rpisurv[4368]: 2022/06/03 13:42:02 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream3 attempts:15
Jun  3 13:42:03 PiNVR rpisurv[4370]: 2022/06/03 13:42:03 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream4 attempts:15
Jun  3 13:42:03 PiNVR rpisurv[5579]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:42:03 PiNVR rpisurv[5579]: Try `vlc --help' for more information.
Jun  3 13:42:03 PiNVR rpisurv[5580]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:42:03 PiNVR rpisurv[5580]: Try `vlc --help' for more information.
Jun  3 13:42:03 PiNVR rpisurv[5581]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:42:03 PiNVR rpisurv[5581]: Try `vlc --help' for more information.
Jun  3 13:42:03 PiNVR rpisurv[5583]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:42:03 PiNVR rpisurv[5583]: Try `vlc --help' for more information.
Jun  3 13:42:13 PiNVR rpisurv[4365]: 2022/06/03 13:42:13 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream1 attempts:16
Jun  3 13:42:13 PiNVR rpisurv[4367]: 2022/06/03 13:42:13 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream2 attempts:16
Jun  3 13:42:13 PiNVR rpisurv[4368]: 2022/06/03 13:42:13 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream3 attempts:16
Jun  3 13:42:13 PiNVR rpisurv[4370]: 2022/06/03 13:42:13 - core.worker - INFO - Trying to restart screen_manager_0_screen1_cam_stream4 attempts:16
Jun  3 13:42:13 PiNVR rpisurv[5663]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:42:13 PiNVR rpisurv[5663]: Try `vlc --help' for more information.
Jun  3 13:42:13 PiNVR rpisurv[5664]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:42:13 PiNVR rpisurv[5664]: Try `vlc --help' for more information.
Jun  3 13:42:13 PiNVR rpisurv[5665]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:42:13 PiNVR rpisurv[5665]: Try `vlc --help' for more information.
Jun  3 13:42:13 PiNVR rpisurv[5666]: vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1'
Jun  3 13:42:13 PiNVR rpisurv[5666]: Try `vlc --help' for more information.
Jun  3 13:42:19 PiNVR systemd[1]: Started Session 11 of user pi.

main.log

2022/06/03 13:39:29 - l_default - INFO - Starting rpisurv 3.0.0
2022/06/03 13:39:29 - l_default - ERROR - Could not autodetect displays, use values from fallback config
2022/06/03 13:39:29 - l_default - ERROR - Using config display fallback_device_0 at HDMI 0 with display number 2 800 x 480
2022/06/03 13:39:29 - l_default - INFO - Unique id of this installation is 14fb349926d2cd149eedf53e87c93ffa752f5f3e08e7f21b4cf2edca60916fea
2022/06/03 13:39:31 - l_default - INFO - Sending stats is disabled, not sending stats

Model
Model : Raspberry Pi 4 Model B Rev 1.1

OS Version
11.3

Linux Kernel
Linux PiNVR 5.15.44-v8+ #1559 SMP PREEMPT Wed Jun 1 13:27:54 BST 2022 aarch64 GNU/Linux

Firmware
version 2c647ef4127e289d4a0cb5cfbb22855bfb7f1723 (clean) (release) (start)

boot.txt

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
lcd_rotate=2
gpu_mem=512

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=1024 600 60 3 0 0 0

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-fkms-v3d
#dtoverlay=vc4-kms-v3d-pi4
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]

display1.yml

  screens:
#      #######################################################################################################
#      # Below config is included for demo and test purposes
#      # After installation you can start Rpisurv and the demo should be started
#      #######################################################################################################

    - camera_streams:
        - url: "rtsp://admin:mypwd@192.168.0.59:554/cam/realmonitor?channel=1&subtype=1"
        - url: "rtsp://admin:mypwd@192.168.0.56:554/cam/realmonitor?channel=1&subtype=1"
        - url: "rtsp://admin:mypwd@192.168.0.53:554/cam/realmonitor?channel=1&subtype=1"
        - url: "rtsp://admin:mypwd@192.168.0.51:554/cam/realmonitor?channel=1&subtype=1"

@aifesteves
Copy link

AMD64 debian bullseye has the same problem.

@CronoBandit
Copy link

CronoBandit commented Jun 9, 2022

Still working for me.
I’d like to help, but those of you saying the work-around doesn’t work, seem to be running different environments.
Here’s mine:

Used rpi-imager to burn sdcard. Choose OS “Raspberry Pi OS (32-bit)” aka recommended.
Or, you can choose “Raspberry Pi OS Lite (32-bit)” or “Raspberry Pi OS Full (32-bit)” .
Note: I have not tested rpisurv nor this work-around under 64-bit.

uname -a
Linux hostpi 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux

Note: this is armv7l – not AMD, not aarch64. Only vlc on ARM environments will have the mmal libs compiled into vlc, which is why @geeklingo sees those vlc: unknown option or missing mandatory argument `--mmal-display=hdmi-1

cat /proc/cpuinfo | grep Model
Model : Raspberry Pi 4 Model B Rev 1.5

fkms -vs- kms (this is the work-around) :
grep vc4 /boot/config.txt

#dtoverlay=vc4-kms-v3d
dtoverlay=vc4-fkms-v3d

Note: The main reason previously-working rpisurv systems broke when folks upgraded to Bullseye 32bit from Buster 32-bit, was the default config.txt in Bullseye switched over to kms api. If you go back and look at a typical Pi Buster install, you will see it loads fkms. I think the move to kms is going to be the way forward from what developers are saying, as it is the newest api. However, it is still very much “in-progress” and currently missing the mmal hooks needed to access the Pi’s GPU. Therefore, those that choose to run Bullseye, we must deliberately switch back to the fkms api until then.

Furthermore, those of you that are running the 64-bit are also failing to access the Pi's mmal hardware layer, apparently due to the 64-bit version of vlc not having mmal support at all. So go back to 32-bit and switch back to the fkms driver and things will work again.

vlc --version

VLC media player 3.0.16 Vetinari (revision 1.0.6-1682-g88158c836)
VLC version 3.0.16 Vetinari (1.0.6-1682-g88158c836)
Compiled by pi on serge-testpi (Nov 10 2021 15:40:45)
Compiler: gcc version 10.2.1 20210110 (Raspbian 10.2.1-6+rpi1)

apt list --installed | grep vlc

libvlc-bin/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
libvlc5/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
libvlccore9/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-bin/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-data/stable,now 3.0.16-1+rpi1+rpt2 all [installed,automatic]
vlc-l10n/stable,now 3.0.16-1+rpi1+rpt2 all [installed,automatic]
vlc-plugin-access-extra/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-base/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-notify/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-qt/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-samba/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-skins2/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-video-output/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-video-splitter/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-visualization/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed]

@geeklingo
Copy link

geeklingo commented Jun 14, 2022

Man, just did a clean build and same same.

uname -a
Linux kitchennvr 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux

cat /proc/cpuinfo | grep Model
Model : Raspberry Pi 4 Model B Rev 1.1

grep vc4 /boot/config.txt
dtoverlay=vc4-fkms-v3d

vlc --version

VLC media player 3.0.16 Vetinari (revision 1.0.6-1682-g88158c836)
VLC version 3.0.16 Vetinari (1.0.6-1682-g88158c836)
Compiled by pi on serge-testpi (Nov 10 2021 15:40:45)
Compiler: gcc version 10.2.1 20210110 (Raspbian 10.2.1-6+rpi1)
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public Licence;
see the file named COPYING for details.
Written by the VideoLAN team; see the AUTHORS file.

apt list --installed | grep vlc

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libvlc-bin/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
libvlc5/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
libvlccore9/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-bin/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-data/stable,now 3.0.16-1+rpi1+rpt2 all [installed,automatic]
vlc-l10n/stable,now 3.0.16-1+rpi1+rpt2 all [installed,automatic]
vlc-plugin-access-extra/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-base/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-notify/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-qt/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-samba/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-skins2/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-video-output/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-video-splitter/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc-plugin-visualization/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed,automatic]
vlc/stable,now 3.0.16-1+rpi1+rpt2 armhf [installed]

main.log

2022/06/14 10:10:37 - l_default - INFO - Starting rpisurv 3.0.0
2022/06/14 10:10:37 - l_default - ERROR - Could not autodetect displays, use values from fallback config
2022/06/14 10:10:37 - l_default - ERROR - Using config display fallback_device_0 at HDMI 0 with display number 2 1920 x 1080
2022/06/14 10:10:37 - l_default - INFO - Unique id of this installation is ce24571e341b476d89a15a1a2f39ae83ceb95eec1f417053e4f687a04a508710

vlc

VLC media player 3.0.16 Vetinari (revision 1.0.6-1682-g88158c836)
[009c2020] main interface error: no suitable interface module
[0094fb98] main libvlc error: interface "globalhotkeys,none" initialization failed
[0094fb98] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[009c2020] skins2 interface error: cannot initialize OSFactory
[009ae878] main playlist: playlist is empty
[009c2020] [cli] lua interface: Listening on host "*console".
VLC media player 3.0.16 Vetinari
Command Line Interface initialized. Type `help' for help.
>
😈 daemon.log 😈
Jun 14 10:24:28 kitchennvr rpisurv[2202]: 2022/06/14 10:24:28 - l_default - INFO - Starting rpisurv 3.0.0
Jun 14 10:24:28 kitchennvr rpisurv[2202]: 2022/06/14 10:24:28 - l_default - ERROR - Could not autodetect displays, use values from fallback config
Jun 14 10:24:28 kitchennvr rpisurv[2202]: 2022/06/14 10:24:28 - l_default - ERROR - Using config display fallback_device_0 at HDMI 0 with display number 2 1920 x 1080
Jun 14 10:24:28 kitchennvr rpisurv[2202]: 2022/06/14 10:24:28 - l_default - INFO - Unique id of this installation is 14fb349926d2cd149eedf53e87c93ffa752f5f3e08e7f21b4cf2edca60916fea
Jun 14 10:24:29 kitchennvr rpisurv[2202]: Traceback (most recent call last):
Jun 14 10:24:29 kitchennvr rpisurv[2202]:   File "/usr/local/bin/rpisurv/surveillance.py", line 188, in <module>
Jun 14 10:24:29 kitchennvr rpisurv[2202]:     screen_manager=ScreenManager(f'screen_manager_{count}', display, enable_opportunistic_caching_next_screen, disable_pygame)
Jun 14 10:24:29 kitchennvr rpisurv[2202]:   File "/usr/local/bin/rpisurv/core/ScreenManager.py", line 20, in __init__
Jun 14 10:24:29 kitchennvr rpisurv[2202]:     self._init_drawinstance()
Jun 14 10:24:29 kitchennvr rpisurv[2202]:   File "/usr/local/bin/rpisurv/core/ScreenManager.py", line 214, in _init_drawinstance
Jun 14 10:24:29 kitchennvr rpisurv[2202]:     self.drawinstance = Draw([int(self.display["resolution"]["width"]), int(self.display["resolution"]["height"])], self.disable_pygame, self.name)
Jun 14 10:24:29 kitchennvr rpisurv[2202]:   File "/usr/local/bin/rpisurv/core/util/draw.py", line 52, in __init__
Jun 14 10:24:29 kitchennvr rpisurv[2202]:     self.surface = pygame.display.set_mode((self.resolution_width, self.resolution_height))
Jun 14 10:24:29 kitchennvr rpisurv[2202]: pygame.error: No video mode large enough for 1920x1080
Jun 14 10:24:29 kitchennvr systemd[1]: rpisurv.service: Main process exited, code=exited, status=1/FAILURE
⚙️ /boot/config.txt ⚙️
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
gpu_mem=512

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]

@CronoBandit
Copy link

@geeklingo
Good, your ENV looks identical to mine now. And it appears you are now past the lack of mmal support errors from vlc – cool.

However, your errors that stick-out to me are:

Jun 14 10:24:28 kitchennvr rpisurv[2202]: 2022/06/14 10:24:28 - l_default - ERROR - Could not autodetect displays, use values from fallback config
Jun 14 10:24:28 kitchennvr rpisurv[2202]: 2022/06/14 10:24:28 - l_default - ERROR - Using config display fallback_device_0 at HDMI 0 with display number 2 1920 x 1080
. . . 
Jun 14 10:24:29 kitchennvr rpisurv[2202]: pygame.error: ---> No video mode large enough for 1920x1080  <---

Wrong resolution -maybe ??
Almost like issues with your HDMI monitor. From what I hear, the Pi can be a bit finicky on some hardware. Try taking a look at this page for tips on troublesome HDMI displays:
https://learn.adafruit.com/using-weird-displays-with-raspberry-pi/everything-else
Its pretty in-depth with all sorts of things to try, even driving specific resolutions … please let the community know if any of that helped or not.

@geeklingo
Copy link

@CronoBandit yeah i am using the Raspberry 7" touch screen. Where is it pulling that resolution config from?

@CronoBandit
Copy link

@geeklingo
Not sure. I would think that should have auto-configured. Perhaps poor ram-split is affecting yours.... have you played around with your gpu & cma memory-split settings? I noticed you have "gpu_mem" cranked all the way up to 512 ?? That's always given mine issues. It's going to eat into cma (auto-resize smaller). I remember reading somewhere that the Pi 4 B does not need gpu memory allocated that way anymore.... instead, keep the setting in, but drop it down and add a higher cma value in the overlay like this:

/boot/config.txt

dtoverlay=vc4-fkms-v3d-pi4,cma-512
gpu_mem=128
boot_delay=2

These settings works really nicely on mine, streaming 9 feeds on a 1920x1080 hdmi Asus monitor. Maybe a small boot delay might help with screen detect.

Also, I'll post this too for comparison...
/boot/cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=705a4f4a-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
I wanna say splash / no splash might help with auto-resolution.

@geeklingo
Copy link

geeklingo commented Jun 14, 2022

ahh ok will try a couple of things.

My cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=88e61625-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

Updated my general.yml with:

fallbacks:
  displays:
    - hdmi: 0
      display_number: 2
      resolution:
        width: "800"
        height: "480"
      device_name: "fallback_device_0"

And that seems to have made a little progress. I get the rpisurv screen but no streams.

Jun 15 07:16:54 kitchennvr rpisurv[866]: [b270c580] mmal_avcodec decoder error: Failed to update format
Jun 15 07:16:54 kitchennvr rpisurv[870]: [b270ed80] mmal_avcodec decoder: Looking for HEVC decoder 'hevc'
Jun 15 07:16:54 kitchennvr rpisurv[870]: [hevc @ 0xaa7057b0] VPS 0 does not exist
Jun 15 07:16:54 kitchennvr rpisurv[870]: usrvcsm: [vcsm_malloc_cache]: [870] [ffmpeg uncached]: ioctl mem-alloc FAILED [-1] (hdl: 0)
Jun 15 07:16:54 kitchennvr rpisurv[870]: Unable to alloc 4194304 bytes from VCSM for ffmpeg uncached
Jun 15 07:16:54 kitchennvr rpisurv[870]: [hevc @ 0xaa7057b0] Failed to allocate bitbuf 0
Jun 15 07:16:54 kitchennvr rpisurv[871]: [b270c470] mmal_avcodec decoder: Find chroma fail
Jun 15 07:16:54 kitchennvr rpisurv[871]: [b270c470] mmal_avcodec decoder error: Failed to update format
Jun 15 07:16:54 kitchennvr rpisurv[870]: [hevc @ 0xaa7057b0] Failed setup for format rpi: hwaccel initialisation returned error.
Jun 15 07:16:54 kitchennvr rpisurv[868]: [b270c700] mmal_avcodec decoder: Find chroma fail
Jun 15 07:16:54 kitchennvr rpisurv[868]: [b270c700] mmal_avcodec decoder error: Failed to update format
Jun 15 07:16:54 kitchennvr rpisurv[866]: [b270c580] mmal_avcodec decoder: Find chroma fail

@si458
Copy link
Contributor

si458 commented Dec 9, 2022

my pi needed updating, so i updated all its packaged and now it runs vlc v3.0.17.4-0+deb11u1+rpi1+rpt4
but i keep getting the mmal is missing
Dec 09 13:27:29 fthcctvpi rpisurv[706]: vlc: unknown option or missing mandatory argument '--mmal-display=hdmi-1'

i was also running buster, then i stupid decided to try upgrading my pi to bullseye to see if the vlc was fixed there
now its running bullseye and vlc 3.0.18-0+deb11u1+rpi1 which is still producing the mmal is missing message

how can i now install an old version of vlc which has the mmal compiled?

EDIT: managed to fix my issue from this post - https://forums.raspberrypi.com/viewtopic.php?t=336387#p2014202
uninstall vlc then pin to archive repo then install old vlc verion with mmal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants