Raspberry pi freeze when trying to install vlc - raspberry-pi

I am trying to install vlc on my raspberry pi 3. Using sudo apt-get install vlc. The process starts, but eventually freezes. This is the only time it freezes and it does so every time I try. Cant reboot through ssh either. I use the official stontronica power supply, so doubt that is the problem.
Any help is much appreciated

Related

It is either cec-ctl or VLC, not both on Raspberry Pi 3 B+ Bullseye

My Node.js project utilizes CEC control and VLC where the app turns on the TV and chooses the HDMI port that the VLC video stream will be viewed on at a scheduled time.
Everything worked on Buster except that too many indeterminate crashes with segmentation faults occur with cec-client.
Since I am nearing a 'production' release, I thought it best to upgrade the OS to Bullseye and find a cec-client replacement. I found cec-ctl and made it asynchronous - ctl-cec works perfectly, everytime, no crashes. BUT, now VLC does not render anything, not even a black screen. Doing a 'ps' command during a time that a video should be playing, I can see that VLC is running.
What I tried: It turns out that changing the /boot/config.txt dtoverlay=vc4-fkms-v3d (Buster) to dtoverlay=vc4-kms-v3d (Bullseye) causes the problem. The Buster version of dtoverlay seems to be required for VLC to run, and The Bullseye version of dtoverlay is required for a /dev/cec0 to be created and used by ctl-cec.
All I can see from my inexperienced view is mutual exclusivity, but this doesn't feel like this is the final answer. Using both dtoverlay version (Buster/Bullseye) will brick the pi (speaking from the very recent experience of one not well-versed in dtoverlays).
I also tried: I Googled this problem to the extent of my search skills and have not been able to resolve this problem.
Any help is greatly appreciated!
Raspbian OS: Bullseye (Desktop)
Raspberry Pi 3 B+
App: Node.js based with ability to make config changes and set schedules via an external browser within the LAN.
The solution for my project, after days of Googling, turned out to be TOO simple (found here: https://www.reddit.com/r/archlinuxarm/comments/lg4z5u/no_hdmi_audio_via_alsa_on_raspberry_pi_400/):
sudo apt install pulseaudio
along with:
dtoverlay=vc4-kms-v3d
VLC and cec-ctl now work together perfectly on Raspberry Pi 3B+/Bullseye

Raspberry NOOBS: remote desktop / multiple workspaces

I have a Raspberry Pi 4B running under NOOBS. I have installed XRDP to be able to access the Raspberry from Windows.
The remote connection is working fine but whenever I launch an application (ex: Chromium) from Windows, I don't see anything happening. If I check directly on the screen connected on the Raspberry, I see that the application is running there.
It looks like whatever I launch on the remote desktop screen, the output goes to the native screen and I can't see it in the remote desktop window. I'm connected with exactly the same user on both sides.
Do you have any idea how to solve this?
Raspberry is known for not beeing compatible with any VNC Software.
You should try RealVNC first which comes with NOOBS. Make sure you have the latest version.
sudo apt-get update
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer
At your desktop select Menu > Preferences > Raspberry Pi Configuration > Interfaces.
Ensure that VNC is Enabled.
Now get your RealVNC Application for Windows and youre ready to go.
Another alternative is TightVNC, which works in most cases fine, too.

How to restart ALSA without restarting the raspberry pi itself?

I have a Rasperry Pi 3 with an external USB Sound Card. Everything is working fine... sometimes. Some other times the Raspberry Pi is starting up and there is some problem with the sounds system. Sound is not working. When I try to open alsamixer it is saying like "Error while opening the mixer device: No device found" (it's in german... this is the rough translation).
If I get this error, then I have to restart the whole raspberry pi. It would be much nicer if I could just restart alsa somehow. But till now I could not find out how.
OS is Raspbian
Cheers.
This should do the trick
sudo /etc/init.d/alsa-utils stop
sudo alsa force-reload
sudo /etc/init.d/alsa-utils start

GStreamer is not working properly on Raspberry Pi

I am trying to install the newest version of GStreamer onto Raspberry Pi.
I want to instsall both Gstreamer and Gstreamer-dev.
I want the newest version so probably not apt-get install?
The problem I want to solve is that, I do not have element 'faac' or 'avenc_aac', which I need for audio capture.
And also,
gst-device-monitor-1.0
shows
Probing devices...
** (gst-device-monitor-1.0:5760): ERROR **: Failed to start device monitor!
Trace/breakpoint trap
Which I expect it to work.
Thanks in advance!

Raspberry Pi Pianobar PulseAudio

I have been trying to get pianobar working on my Raspberry Pi. I built version 2013.05.19-dev from Github and it works when I have /etc/libao.conf default_driver=alsa. The problem is that this gives horrible quality audio. I followed the instructions for installing PulseAudio and MPD on dbader's blog. Now when I set default_driver=pulse, pianobar tells me /!\ Cannot open audio device. I have been looking for a solution to this so any tips or help would be great!