moving to libVLC 4.0

This forum is about all development around libVLC.
MikOfClassX
Blank Cone
Blank Cone
Posts: 48
Joined: 29 Dec 2018 10:23

moving to libVLC 4.0

Postby MikOfClassX » 15 Apr 2019 13:01

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

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: moving to libVLC 4.0

Postby unidan » 15 Apr 2019 17:49

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.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: moving to libVLC 4.0

Postby mfkl » 16 Apr 2019 05:13

Try a diff of the file `lib/libvlc.sym` from 3.0 and master.
https://mfkl.github.io

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: moving to libVLC 4.0

Postby Jean-Baptiste Kempf » 16 Apr 2019 08:42

Be careful, though, for once, we break ABI compatibility in 4.0
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

MikOfClassX
Blank Cone
Blank Cone
Posts: 48
Joined: 29 Dec 2018 10:23

Re: moving to libVLC 4.0

Postby MikOfClassX » 16 Apr 2019 09:20

So, a basic recompile of my code would be sufficient, right ?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: moving to libVLC 4.0

Postby Jean-Baptiste Kempf » 16 Apr 2019 09:58

Yes
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

MikOfClassX
Blank Cone
Blank Cone
Posts: 48
Joined: 29 Dec 2018 10:23

Re: moving to libVLC 4.0

Postby MikOfClassX » 16 Apr 2019 17:35

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 ?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: moving to libVLC 4.0

Postby Jean-Baptiste Kempf » 18 Apr 2019 20:53

- using vmem?
- you need a new api for this
- logs ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

MikOfClassX
Blank Cone
Blank Cone
Posts: 48
Joined: 29 Dec 2018 10:23

Re: moving to libVLC 4.0

Postby MikOfClassX » 19 Apr 2019 11:45

- 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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: moving to libVLC 4.0

Postby Jean-Baptiste Kempf » 22 Apr 2019 15:17

- 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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

MikOfClassX
Blank Cone
Blank Cone
Posts: 48
Joined: 29 Dec 2018 10:23

Re: moving to libVLC 4.0

Postby MikOfClassX » 24 Apr 2019 09:34

about 4.0 GPU texture sharing, is already there ? Any example ?

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: moving to libVLC 4.0

Postby unidan » 24 Apr 2019 11:10

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

MikOfClassX
Blank Cone
Blank Cone
Posts: 48
Joined: 29 Dec 2018 10:23

Re: moving to libVLC 4.0

Postby MikOfClassX » 29 Apr 2019 11:03

oh, good reference! Thanks


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests