Page 1 of 1

moving to libVLC 4.0

Posted: 15 Apr 2019 13:01
by MikOfClassX
Hello,

I would like to move my codebase to libVLC 4.0 from 3.0.x.

Is it api-compatible ?
Are there any guide, hints, suggestions for a smooth 4.0 api adoption ?

Thanks,

Mik
--

Re: moving to libVLC 4.0

Posted: 15 Apr 2019 17:49
by unidan
Hi, it should have nearly zero API breakage, but libvlc 4.0 is not available as a release yet so there is no migration guide.

Re: moving to libVLC 4.0

Posted: 16 Apr 2019 05:13
by mfkl
Try a diff of the file `lib/libvlc.sym` from 3.0 and master.

Re: moving to libVLC 4.0

Posted: 16 Apr 2019 08:42
by Jean-Baptiste Kempf
Be careful, though, for once, we break ABI compatibility in 4.0

Re: moving to libVLC 4.0

Posted: 16 Apr 2019 09:20
by MikOfClassX
So, a basic recompile of my code would be sufficient, right ?

Re: moving to libVLC 4.0

Posted: 16 Apr 2019 09:58
by Jean-Baptiste Kempf
Yes

Re: moving to libVLC 4.0

Posted: 16 Apr 2019 17:35
by MikOfClassX
The good news ? All my tests are OK with 4.0 (win10 x64).

Other news ?
- no speed improvements for (a)rgb video callbacks (still the LAV directshow filters are ouperforming libVLC by about 30-40% with 4k clips. That's strange)
- the DEV version still gives no accurate media timing api. See: https://forum.videolan.org/viewtopic.php?f=32&t=148843
- I am getting some "main filter error: Failed to create video converter". Maybe my fault ?

Re: moving to libVLC 4.0

Posted: 18 Apr 2019 20:53
by Jean-Baptiste Kempf
- using vmem?
- you need a new api for this
- logs ?

Re: moving to libVLC 4.0

Posted: 19 Apr 2019 11:45
by MikOfClassX
- using vmem?

yes, i am using audio/video callbacks. Any other, more efficient way ?

- you need a new api for this

is there a new timing api in 4.0 ?

- logs ?

no current logs atm. I'll try to get them.

Re: moving to libVLC 4.0

Posted: 22 Apr 2019 15:17
by Jean-Baptiste Kempf
- 4.0 allows to have GPU sharing of textures, which should remove most CPU for that.
- There will be, yes. It's not exposed.
- please.

Re: moving to libVLC 4.0

Posted: 24 Apr 2019 09:34
by MikOfClassX
about 4.0 GPU texture sharing, is already there ? Any example ?

Re: moving to libVLC 4.0

Posted: 24 Apr 2019 11:10
by unidan
Hi, it's using https://www.videolan.org/developers/vlc ... 4319649b70 and you can find examples here https://code.videolan.org/robUx4/vlc/tr ... doc/libvlc

It's half-merged (the d3d par isn't in master yet), but openGL is available: https://code.videolan.org/robUx4/vlc/bl ... player.cpp

Re: moving to libVLC 4.0

Posted: 29 Apr 2019 11:03
by MikOfClassX
oh, good reference! Thanks