VlC installation from source code in Compute Module 4

*nix specific usage questions
chayMa
New Cone
New Cone
Posts: 4
Joined: 14 Nov 2023 09:44

VlC installation from source code in Compute Module 4

Postby chayMa » 14 Nov 2023 09:57

Hello Everyone,

I am working on VLC and the project requires the installation of VLC from source code.
I am using Compute Module 4 from Rapberry with debian 11 and kernel 6.1
I have been using VLC with the same Firmware combination but under Compute module 3 and it is working well.
Now I switched to compute module 4 and it seams the configuration is not suitable for CM4 since it uses different video codec.
The result :
No video is displayed with the following log :
******************************************************************************
[0049afc0] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[004831a8] main interface error: no suitable interface module
[0041eba0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0041eba0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[004831a8] skins2 interface error: cannot initialize OSFactory
[004831a8] [cli] lua interface: Listening on host "*console".
VLC media player 3.0.19 Vetinari
Command Line Interface initialized. Type `help' for help.
> [aff05a90] main decoder error: buffer deadlock prevented
[aff3a338] gl vout display error: parent window not available
[aff3a338] gles2 vout display error: parent window not available
[aff3a338] xcb vout display error: window not available
***********************************************************************************************
Please find below the condiguration I am using.
I get the source code from v3.0.19: https://github.com/videolan/vlc/tree/3.0.x
install all dependencies

Code: Select all

./ bootstrap

Code: Select all

CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/v4l2 -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/v4l2 -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" ./configure --build=arm-linux-gnueabihf --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=${prefix}/lib/arm-linux-gnueabihf --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --disable-debug --config-cache --disable-update-check --enable-fast-install --docdir=/usr/share/doc/vlc --with-binary-version=1:3.0.19-0+rpt7+deb11u1 --enable-a52 --enable-aa --enable-aribsub --enable-avahi --enable-bluray --enable-caca --enable-chromaprint --enable-chromecast --enable-dav1d --enable-dbus --enable-dca --enable-dvbpsi --enable-dvdnav --enable-faad --enable-flac --enable-fluidsynth --enable-freetype --enable-fribidi --enable-gles2 --enable-gnutls --enable-harfbuzz --enable-jack --enable-kate --enable-libass --enable-libmpeg2 --enable-libxml2 --enable-lirc --enable-live555 --enable-mad --enable-matroska --enable-mod --enable-mpc --enable-mpg123 --enable-mtp --enable-ncurses --enable-notify --enable-ogg --enable-opus --enable-pulse --enable-qt --enable-realrtsp --enable-samplerate --enable-sdl-image --enable-sftp --enable-shine --enable-shout --enable-skins2 --enable-soxr --enable-spatialaudio --enable-speex --enable-srt --enable-svg --enable-svgdec --enable-taglib --enable-theora --enable-twolame --enable-upnp --enable-vnc --enable-vorbis --enable-x264 --enable-x265 --enable-zvbi --with-kde-solid=/usr/share/solid/actions/ --disable-aom --disable-crystalhd --disable-d3d11va --disable-decklink --disable-directx --disable-dsm --disable-dxva2 --disable-fdkaac --disable-fluidlite --disable-freerdp --disable-goom --disable-gst-decode --disable-libtar --disable-macosx --disable-macosx-avfoundation --disable-macosx-qtkit --disable-mfx --disable-microdns --disable-opencv --disable-projectm --disable-schroedinger --disable-sparkle --disable-telx --disable-vpx --disable-vsxu --disable-wasapi --disable-mmal-avcodec --enable-alsa --enable-dc1394 --enable-dv1394 --enable-libplacebo --enable-linsys --enable-nfs --enable-udev --enable-v4l2 --enable-wayland --enable-vcd --enable-smbclient --disable-oss --disable-mmx --disable-sse --disable-neon --disable-mmal --disable-vdpau --disable-libva --disable-altivec --disable-omxil --enable-run-as-root
I will be happy if someone help me and provide me the right VLC configuration for CM4.

Best regards,
ChayMa

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VlC installation from source code in Compute Module 4

Postby Rémi Denis-Courmont » 14 Nov 2023 10:43

It seems that you don't have a running X server. VLC 3.0 can only render video via X11. VLC 4 will add Wayland and maybe plain DRM.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

chayMa
New Cone
New Cone
Posts: 4
Joined: 14 Nov 2023 09:44

Re: VlC installation from source code in Compute Module 4

Postby chayMa » 14 Nov 2023 10:56

I have been playing videos on Compute module 3 using VLC without having an X server !
with the following configuration :

CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" ./configure --enable-omxil --enable-omxil-vout --enable-rpi-omxil --enable-run-as-root

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VlC installation from source code in Compute Module 4

Postby Rémi Denis-Courmont » 14 Nov 2023 16:28

It's not supported in upstream VLC. If you're using a rPI fork, then you're not in the right place to ask for help (I don't think any of the rPI dev is on this forum).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 25 guests