Skip to content

LibVLCSharp doesn't work well on Ubuntu ARM64

Summary

  • LibVLCSharp.WinForms v. 3.4.4
  • LibVLCSharp v. 3.4.4
  • VideoLAN.LibVLC.Windows v. 3.0.10
  • Ubuntu Server ARM64 on Raspberry Pi 4 Model b 4GB RAM.

This command was executed.

apt-get install libvlc-dev
apt-get install vlc
apt-get install gtk-sharp2

App compiled with .NET Framework 4.7.2. Mono version:

Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-2 Wed Feb 26 23:41:24 UTC 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  arm64
        Disabled:      none
        Misc:          softdebug
        Interpreter:   yes
        LLVM:          supported, not enabled.
        Suspend:       preemptive
        GC:            sgen (concurrent by default)

Minimal project and steps to reproduce

https://code.videolan.org/forpdfsending/libvlcsharponubuntuarm64

Compiled application on my Win 10 machine and tested on it - works well.

Copied Debug folder to Ubuntu Server ARM64 on Raspberry Pi 4 Model b 4GB RAM. Started mono WindowsFormsApp1.exe

Sound is playing, but instead of video I see only black screen and app infinitely logged to console:

Gtk-Message: 19:29:13.232: Failed to load module "canberra-gtk-module"
[0000ffff58045e60] main video output error: video output creation failed
[0000ffff740ee770] main decoder error: failed to create video output
[0000ffff58045e60] main video output error: video output creation failed
[0000ffff740ee770] main decoder error: failed to create video output
[0000ffff5805ffd0] main video output error: video output creation failed
[0000ffff740ee770] main decoder error: failed to create video output
[h264 @ 0xffff74110ec0] get_buffer() failed
[h264 @ 0xffff74110ec0] thread_get_buffer() failed
[h264 @ 0xffff74110ec0] decode_slice_header error
[h264 @ 0xffff74110ec0] no frame!
[0000ffff5c045dc0] main video output error: video output creation failed
[0000ffff740ee770] main decoder error: failed to create video output
[h264 @ 0xffff7411fae0] get_buffer() failed
[h264 @ 0xffff7411fae0] thread_get_buffer() failed
[h264 @ 0xffff7411fae0] decode_slice_header error
[h264 @ 0xffff7411fae0] no frame!
[0000ffff50045dc0] main video output error: video output creation failed
[0000ffff740ee770] main decoder error: failed to create video output
[h264 @ 0xffff74167030] get_buffer() failed
[h264 @ 0xffff74167030] thread_get_buffer() failed
[h264 @ 0xffff74167030] decode_slice_header error
[h264 @ 0xffff74167030] no frame!

Any ideas, how to fix that?

Edited by Arthur Khusnutdinov
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information