successful integration, some doubts

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

successful integration, some doubts

Postby MikOfClassX » 09 Feb 2019 12:46

Hello all,

let me say that integrating libVLC into my A/V engine was definitely quick, successfull and really less painful that I imagined.
I built my very-own java A/V layer over libVLC and it seems the performance I am getting is absolutely satisfying.

Before going to production-stable builds I have some questions for the gurus here:
Note: the questions are related to file-based decoding only. I did not test anything with streams.

- is libVLC kind-of thread safe ? i.e. call a play() from a thread, seek() from another and get the current position from another ? (perverted stuff ? No: gui thread and flow control thread may work in parallel)
- is there any issue with the float32 audio samples (see https://forum.videolan.org/viewtopic.php?f=32&t=147910) ?
- sometimes the decoder stops working (no frames produced) when seeking in paused state (this happens with VLC 3.0.6 player, mkv files normally)
- sometimes stop() ends up in strange deadlocks. This seems to be a common topic here.

Last: thanks for libVLC !

Mik

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: successful integration, some doubts

Postby Jean-Baptiste Kempf » 10 Feb 2019 22:03

- yes. Be careful about stop() that is not instantaneous, though, because it needs to close and clean everything, and that can be long.
- there should not be any issue;
- that can happen;
- see above.
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: successful integration, some doubts

Postby MikOfClassX » 14 Feb 2019 08:39

About "sometimes the decoder stops working (no frames produced) when seeking in paused state (this happens with VLC 3.0.6 player, mkv files normally)":

is there any workaround ? I tried to wait buffering complete. No luck.

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: successful integration, some doubts

Postby Jean-Baptiste Kempf » 16 Feb 2019 11:09

Are you sure you are not deadlocking?
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: successful integration, some doubts

Postby MikOfClassX » 18 Feb 2019 09:27

Double checked it using the VLC player. It happens with a specific mkv videoclip, so It seems it's likely an extra-vlc problem. I hope I'll be able to send you a specific report.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 31 guests