LibVLC errors on initialization?

This forum is about all development around libVLC.
ibrewster
New Cone
New Cone
Posts: 8
Joined: 06 Jul 2021 17:05

LibVLC errors on initialization?

Postby ibrewster » 06 Jul 2021 17:20

I am using LibVLC (pulled from VLC version 3.0.9) in a Qt/C++ app I am running under xUbuntu Linux on an old (circa 2009 I think) MacBook Pro. Whenever I initialize the player (using a remote RTSP feed), I get the following string of errors. Note that the video *does* play, so clearly these errors are not fatal, but I was wondering if I might be able to get a more efficient/faster initialization by specifying some parameters or installing additional drivers/etc to avoid these errors?

Code: Select all

libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [00007fc170033380] glconv_vaapi_x11 gl error: vaDeriveImage: operation failed [00007fc16800b340] main video output error: video output creation failed [00007fc0f80b2af0] main decoder error: failed to create video output [00007fc0f80b2af0] avcodec decoder: [h264 @ 0x7fc16c024500] Failed setup for format vdpau: hwaccel initialisation returned error. [00007fc0f80b2af0] avcodec decoder error: existing hardware acceleration cannot be reused libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [00007fc120001a10] glconv_vaapi_x11 gl error: vaDeriveImage: operation failed libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 [00007fc14c001480] glconv_vaapi_x11 gl error: vaDeriveImage: operation failed [00007fc16800b340] main video output error: video output creation failed [00007fc0f80b2af0] main decoder error: failed to create video output
The code I am currently using to initialize libVLC is here:

Code: Select all

vlcInstance=libvlc_new(0,NULL); QString rtsp_url="rtsp://<my_rtsp_source>"; libvlc_media_t *vlcMedia=libvlc_media_new_location(vlcInstance,rtsp_url.toUtf8()); vlcPlayer=libvlc_media_player_new_from_media(vlcMedia); libvlc_audio_set_volume(vlcPlayer,75); vlcEventManager=libvlc_media_player_event_manager(vlcPlayer); libvlc_event_attach(vlcEventManager,libvlc_MediaPlayerPlaying, &play_event_handler,this); libvlc_event_attach(vlcEventManager,libvlc_MediaPlayerEncounteredError, &vlc_error_handler,this); libvlc_media_player_set_xwindow(vlcPlayer, ui->videoframe->winId()); libvlc_media_player_play(vlcPlayer);

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests