Gambas France BETA


Pas de compte ? Incription

Erreur VLC

Ce sujet est résolu.

1
AuteurMessages
valaquarus#1 Posté le 7/8/2024 à 11:14:48
-- Unus Ex Altera --Bonjour,
même si le programme TestVLC fonctionne j'ai cette erreur dans la console :
[0000729d1c001720] glx gl error: Xlib not initialized for threads
../include/vlc_xlib.h:46:vlc_xlib_init: Xlib not initialized for threads.
This process is probably using LibVLC incorrectly.
Pass "--no-xlib" to libvlc_new() to fix this.

Pour la corriger, la console demande de passer "--no-xlib" à libvlc_new(), comment fait on ça?
Système d'exploitation : KDE neon 6.0 ~ Version Gambas : 3.19.3
vuott#2 Posté le 7/8/2024 à 14:52:57
Ne cedere ineluctabili possimus :affraid:
C'est la première fois que je vois cette erreur.

https://www.google.com/search?client=firefox-b-d&q=vlc_xlib_init%3A+Xlib+not+initialized+for+thread
« Vita non suavis esse potest, nec Mors amara. »
vuott#3 Posté le 7/8/2024 à 15:21:25
Ne cedere ineluctabili possimusVous pouvez passer ce paramètre comme ceci:
1
2
3
4
5
6
7
8
9
......

DIM ss AS String[]

ss = ["--no-xlib"]

inst = libvlc_new(ss.Count, ss)

...etc...
« Vita non suavis esse potest, nec Mors amara. »
vuott#4 Posté le 7/8/2024 à 15:31:59
Ne cedere ineluctabili possimusUhmmm...Avant d’essayer la solution de passer ce paramètre, essayez cette autre solution avec la fonction externe "XInitThreads()" de libX11:
1
2
3
4
5
6
7
8
9
10
11
12
...etc...etc...

PRIVATE EXTERN XInitThreads() IN "libX11:6.4.0"


PUBLIC SUB Form_Open()

IF XInitThreads() == 0 THEN Error.Raise("Aliquid errorem facit !")

MConn.main()

...etc...etc...

« Vita non suavis esse potest, nec Mors amara. »
valaquarus#5 Posté le 7/8/2024 à 17:11:51
-- Unus Ex Altera --Réponse en passant :
1
2
3
4
5
6
7
DIM ss AS String[]

ss = ["--no-xlib"]

MConn.main()
' inst = libvlc_new(0, Null)
inst = libvlc_new(ss.Count, ss)


[00007792600e70f0] mpeg4audio packetizer: AAC channels: 2 samplerate: 48000
[000077926002ce20] main decoder error: buffer deadlock prevented
[000077923c0131d0] main filter error: Failed to create video converter
[0000779260002630] vdpau_avcodec generic error: Xlib is required for VDPAU
Système d'exploitation : KDE neon 6.0 ~ Version Gambas : 3.19.3
vuott#6 Posté le 7/8/2024 à 17:39:01
Ne cedere ineluctabili possimuset en utilisant la solution avec la fonction externe 'XInitThreads()' ?
« Vita non suavis esse potest, nec Mors amara. »
valaquarus#7 Posté le 7/8/2024 à 18:27:07
-- Unus Ex Altera --Là ça coince et j'ai cette erreur :
Système d'exploitation : KDE neon 6.0 ~ Version Gambas : 3.19.3
vuott#8 Posté le 7/8/2024 à 18:34:04
Ne cedere ineluctabili possimus
Là ça coince et j'ai cette erreur :

O, mi bone Deus !
Oui, pardon, complétez la déclaration de cette fonction externe comme ceci :
1
2
3
' Status XInitThreads(void)
' Initializes Xlib support for concurrent threads.
PRIVATE EXTERN XInitThreads() AS INTEGER IN "libX11:6.4.0"
« Vita non suavis esse potest, nec Mors amara. »
valaquarus#9 Posté le 7/8/2024 à 18:43:01
-- Unus Ex Altera --Plus d'erreur sauf ceci qui semble moindre :

[00007537f00e8840] mpeg4audio packetizer: AAC channels: 2 samplerate: 24000
[00007537f002b060] main decoder error: buffer deadlock prevented
[00007537d00048a0] gl gl: Initialized libplacebo v4.192.1 (API v192)
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
[00007537f002b060] avcodec decoder: Using Intel i965 driver for Intel(R) Ironlake Mobile - 2.4.1 for hardware decoding
WARNING: Invalid RefPicListX[] entry!!! It is not included in DPB
[h264 @ 0x7537e00a2cc0] mmco: unref short failure
[h264 @ 0x7537e00a2cc0] mmco: unref short failure
[h264 @ 0x7537e00a2cc0] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 0x7537e00698c0] mmco: unref short failure
[h264 @ 0x7537e00698c0] mmco: unref short failure

Système d'exploitation : KDE neon 6.0 ~ Version Gambas : 3.19.3
vuott#10 Posté le 7/8/2024 à 19:06:50
Ne cedere ineluctabili possimusIl me donne cette erreur :

vaapi generic error: profile(7) is not supported
avcodec decoder: Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding
Failed setup for format vdpau: hwaccel initialisation returned error.
avcodec decoder error: existing hardware acceleration cannot be reused
vaapi generic error: profile(7) is not supported


J'ai cette distribution Linux: MANJARO Linux

Cependant, le code fonctionne régulièrement pour moi.
« Vita non suavis esse potest, nec Mors amara. »
1