Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • LibVLCSharp LibVLCSharp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLAN
  • LibVLCSharpLibVLCSharp
  • Issues
  • #210

Closed
Open
Created Aug 28, 2019 by Paweł Saniewski@Paulos16

Winforms VideoView not playing video on Ubuntu18.04 with mono.

Hello! My goal is to make a Winforms form that opens an .mp4 video located on my PC. For that I'm using LibVLCSharp.Winforms and I run it with Mono 6.0.0 on Ubuntu 18.04.

The problem is when I call Play() on a MediaPlayer object, the video opens in a new window and everything looks fine, but when I call Play() on a MediaPlayer of VideoView that's embedded in a Winforms form, then the audio plays normally, but there's no video showing at all and the output looks as follows:

[00007f1774074ce0] main video output error: video output creation failed

[00007f178c0d1170] main decoder error: failed to create video output

[h264 @ 0x7f178c0e4540] get_buffer() failed

[h264 @ 0x7f178c0e4540] thread_get_buffer() failed

[h264 @ 0x7f178c0e4540] decode_slice_header error

[h264 @ 0x7f178c0e4540] no frame!

And the same message repeats forever.

Here's the source code files I'm using:

Form1.cs

Program.cs

It's based on the sample provided in the LibVLCSharp git project. All the references and packages are provided.

Any help will be greatly appreciated!

With regards, Pawel

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking

VideoLAN code repository instance