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
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);