Jump to content

stderr messages from libvlc with MediaPlayer plugin


photo

Recommended Posts

Posted

Hi,

The new MediaPlayer works really great, but we have quite a lot of stderr warning messages from libvlc:

At init time:

[000002814c460070] main libvlc error: stale plugins cache: modified C:\XXX\bin\plugins\Unigine\MediaPlayer\plugins\access\libaccess_concat_plugin.dll
[000002814c460070] main libvlc error: stale plugins cache: modified C:\XXX\bin\plugins\Unigine\MediaPlayer\plugins\access\libaccess_imem_plugin.dll
[000002814c460070] main libvlc error: stale plugins cache: modified C:\XXX\bin\plugins\Unigine\MediaPlayer\plugins\access\libaccess_mms_plugin.dll
[000002814c460070] main libvlc error: stale plugins cache: modified C:\XXX\bin\plugins\Unigine\MediaPlayer\plugins\access\libaccess_realrtsp_plugin.dll
[000002814c460070] main libvlc error: stale plugins cache: modified C:\XXX\bin\plugins\Unigine\MediaPlayer\plugins\access\libaccess_srt_plugin.dll
[000002814c460070] main libvlc error: stale plugins cache: modified C:\XXX\bin\plugins\Unigine\MediaPlayer\plugins\access\libaccess_wasapi_plugin.dll
[000002814c460070] main libvlc error: stale plugins cache: modified C:\XXX\bin\plugins\Unigine\MediaPlayer\plugins\access\libattachment_plugin.dll
[000002814c460070] main libvlc error: stale plugins cache: modified C:\XXX\bin\plugins\Unigine\MediaPlayer\plugins\access\libcdda_plugin.dll
... and so on for ALL vlc plugins

At runtime:

[00000281e8954ac0] main vout display error: Failed to set on top
[00000281e89bab60] main vout display error: Failed to set on top
[0000028465ed4bd0] main vout display error: Failed to set on top
[000002814c50c3c0] main vout display error: Failed to set on top
[00000281719be3c0] main vout display error: Failed to set on top
[000002814c50c3c0] main vout display error: Failed to set on top
[000002814c50c3c0] main vout display error: Failed to set on top
[00000281719be3c0] main vout display error: Failed to set on top
...continuous output (but low frequency)

As suggested here https://forum.unigine.com/topic/9650-solved-221-mediaplayer-streaming-rtsp-content/#findComment-46228
I added the full libvlc plugins and dll (needed for RTSP).

As I said, the plugin works as expected, no bugs so far, just a bit annoyed at these stderr messages from libvlc and wondering if something has to be done on my setup or in the code, or in the plugin itself (couldn't see a specific config to be tweaked, though).

Thanks!

 

Posted

Hi Stephane,

The first error with cache generation you can potentially fix by regenerating VLC cache for the specific folder with plugins, please see the discussion from stackoverflow: https://stackoverflow.com/questions/68246840/how-to-avoid-main-libvlc-error-when-using-the-python-vlc-package

But somtimes the video content itself is causing this behavior (for example, some werid or damaged file). Maybe RTSP stream is actually causing this, even with a correctly built cache. In that case I don't think that any solution exists, other then tryin to filter out (if it's even possible) these messages inside a plugin.

The second error can only be fixed within the MediaPlayer plugin itself.

For some reason, even when no windows are being used, such as with offscreen rendering to a texture, VLC sometimes attempts to set window parameters for non-existent windows. In your case, it is trying to set the “always on top” flag. We will check whether we can simply filter out such error in the next SDK update.

Could you please also confirm whether you are seeing only a single “Failed to set on top” error message, or if there are any other errors appearing as well?

Thank you!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Hi Stephane,

In the upcoming 2.22 update you can control log level of the MediaPlayer plugin via command-line start-up argument (-vlc_log_level 0 / 1 / 2 / 3). By default in release (development) builds there will be no logs (level 0), in debug there will be error-only messages (1), but you can always override this by passing argument on engine start-up (no runtime switch between log levels).

Also we will manually clear cache on each plugin init to avoid stale plugins cache error.

Thanks!

 

  • Thanks 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...