Bug 265931 - multimedia/kodi: Unable to resolve: libdvdnav-x86_64-freebsd.so dvdnav_get_vm........
Summary: multimedia/kodi: Unable to resolve: libdvdnav-x86_64-freebsd.so dvdnav_get_vm...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-18 17:47 UTC by Alexander Vereeken
Modified: 2022-12-22 16:09 UTC (History)
2 users (show)

See Also:
yzrh: maintainer-feedback+
yzrh: merge-quarterly?


Attachments
kodi.log (78.23 KB, text/plain)
2022-08-18 17:47 UTC, Alexander Vereeken
no flags Details
Use forked libdvd (3.65 KB, patch)
2022-08-18 22:48 UTC, yzrh
no flags Details | Diff
testport log (bzip2) (126.97 KB, application/x-bzip)
2022-08-18 22:49 UTC, yzrh
no flags Details
Use forked libdvd (Fix variable name) (3.81 KB, patch)
2022-08-19 01:37 UTC, yzrh
no flags Details | Diff
new testport log (bzip2) (127.23 KB, application/x-bzip)
2022-08-19 01:44 UTC, yzrh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Vereeken 2022-08-18 17:47:18 UTC
Created attachment 235997 [details]
kodi.log

Hello,

when i try to play a DVD then i get the an less useful GUI error but in the log:

2022-08-18 19:40:06.981 T:104665    INFO <general>: VideoPlayer::OpenFile: dvd://
2022-08-18 19:40:06.981 T:108387   DEBUG <general>: Thread VideoPlayer start, auto delete: false
2022-08-18 19:40:06.981 T:104665   DEBUG <general>: OnPlayBackStarted: CApplication::OnPlayBackStarted
2022-08-18 19:40:06.981 T:108387    INFO <general>: Creating InputStream
2022-08-18 19:40:06.981 T:108387   DEBUG <general>: SECTION:LoadDLL(special://xbmcbin/system/players/VideoPlayer/libdvdnav-x86_64-freebsd.so)
2022-08-18 19:40:06.981 T:108387   DEBUG <general>: Loading: /usr/local/lib/kodi/system/players/VideoPlayer/libdvdnav-x86_64-freebsd.so
2022-08-18 19:40:06.981 T:104665   DEBUG <general>: ffmpeg[(nil)X]: [image2] Custom AVIOContext makes no sense and will be ignored with AVFMT_NOFILE format.
2022-08-18 19:40:06.981 T:108387 WARNING <general>: Unable to resolve: libdvdnav-x86_64-freebsd.so dvdnav_get_vm, reason: Undefined symbol "dvdnav_get_vm"
2022-08-18 19:40:06.981 T:108387   ERROR <general>: Unable to resolve exports from dll special://xbmcbin/system/players/VideoPlayer/libdvdnav-x86_64-freebsd.so

FreeBSD stable/13-n252107

Kodi: Compiled with Encrypted DVD Support

Thanks in advance for any suggestions!
Comment 1 yzrh 2022-08-18 20:07:24 UTC
Thanks for the bug report, I can confirm the problem -- bundled libraries.
I will submit a patch as soon as possible.
Comment 2 yzrh 2022-08-18 22:48:50 UTC
Created attachment 236003 [details]
Use forked libdvd

portlint -C

WARN: Makefile: Consider adding support for a NLS knob to conditionally disable gettext support.
WARN: Makefile: [43]: possible direct use of command "gmake" found. use ${GMAKE} instead.
WARN: Consider to set DEVELOPER=yes in /etc/make.conf
0 fatal errors and 3 warnings found.
Comment 3 yzrh 2022-08-18 22:49:49 UTC
Created attachment 236004 [details]
testport log (bzip2)
Comment 4 yzrh 2022-08-19 01:37:12 UTC
Created attachment 236005 [details]
Use forked libdvd (Fix variable name)

portlint -C

WARN: Makefile: Consider adding support for a NLS knob to conditionally disable gettext support.
WARN: Makefile: [42]: possible direct use of command "gmake" found. use ${GMAKE} instead.
WARN: Consider to set DEVELOPER=yes in /etc/make.conf
0 fatal errors and 3 warnings found.
Comment 5 yzrh 2022-08-19 01:44:09 UTC
Created attachment 236006 [details]
new testport log (bzip2)
Comment 6 Alexander Vereeken 2022-08-19 15:07:49 UTC
Hello,

thank you for your quick reply and the patch.

When i want now open the DVD then it reads the DVD for one sec and then kodi closes.

2022-08-19 17:05:04.298 T:105819    INFO <general>:   msg: libdvdnav: Using dvdnav version 6.0.0
                                                   
2022-08-19 17:05:04.298 T:105819   DEBUG <general>: libdvdread: Couldn't find device name.
                                                   
2022-08-19 17:05:04.298 T:105820   DEBUG <general>: Thread BackgroundLoader 0x8ed586100 terminating
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg: libdvdnav: Unable to open device file /home/Alexander88207/DVD.
                                                   
2022-08-19 17:05:04.299 T:105819   DEBUG <general>: libdvdnav: vm: dvd_read_name failed
                                                   
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg: libdvdnav: vm: DVD Title: 
                                                   
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg: libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions:
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg:  1
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg:  2
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg:  3
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg:  4
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg:  5
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg:  6
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg:  7
2022-08-19 17:05:04.299 T:105819    INFO <general>:   msg:  8
2022-08-19 17:05:04.299 T:105819   DEBUG <general>:   msg: 
                                                   
2022-08-19 17:05:04.300 T:105819   DEBUG <general>: Open - Setting region mask 02
2022-08-19 17:05:04.300 T:105819    INFO <general>: VideoPlayer: playing a file with menu's
2022-08-19 17:05:04.300 T:105819    INFO <general>: Creating Demuxer
--------

This is the log when i try it from library file

2022-08-19 17:02:19.327 T:102212    INFO <general>: VideoPlayer::OpenFile: dvd://
2022-08-19 17:02:19.327 T:105533   DEBUG <general>: Thread VideoPlayer start, auto delete: false
2022-08-19 17:02:19.327 T:102212   DEBUG <general>: OnPlayBackStarted: CApplication::OnPlayBackStarted
2022-08-19 17:02:19.327 T:105533    INFO <general>: Creating InputStream
2022-08-19 17:02:19.327 T:105533   DEBUG <general>: SECTION:LoadDLL(special://xbmcbin/system/players/VideoPlayer/libdvdnav-x86_64-freebsd.so)
2022-08-19 17:02:19.327 T:105533   DEBUG <general>: Loading: /usr/local/lib/kodi/system/players/VideoPlayer/libdvdnav-x86_64-freebsd.so
2022-08-19 17:02:19.327 T:105533    INFO <general>:   msg: libdvdnav: Using dvdnav version 6.0.0
                                                   
2022-08-19 17:02:19.327 T:105533    INFO <general>:   msg: libdvdread: Can't stat 
                                                   
2022-08-19 17:02:19.327 T:105533    INFO <general>:   msg: libdvdread: Could not open 
                                                   
2022-08-19 17:02:19.327 T:105533   DEBUG <general>: libdvdnav: vm: failed to open/read the DVD
                                                   
2022-08-19 17:02:19.327 T:105533   ERROR <general>: Error on dvdnav_open
2022-08-19 17:02:19.327 T:105533   ERROR <general>: CVideoPlayer::OpenInputStream - error opening []
2022-08-19 17:02:19.327 T:105533    INFO <general>: CVideoPlayer::OnExit()
2022-08-19 17:02:19.327 T:105533   DEBUG <general>: Thread VideoPlayer 0x893c71100 terminating

There should be no issue regarding permissions, $USER is in the operater group and other players can access /dev/cd0 fine. Opening directly /dev/cd0 works but it doesn't gets used as DVD instead the menu stuff gets played as a normal video file.
Comment 7 yzrh 2022-08-19 21:37:40 UTC
There is an open issue on github: https://github.com/xbmc/xbmc/issues/20048.

I guess the problem is that Kodi does not mount DVD automatically.
Could you try to mount the DVD then play it in Kodi?  By the way, Kodi
can read IFO from a disc image, you can choose which chapter to play
that way.
Comment 8 Fernando Apesteguía freebsd_committer freebsd_triage 2022-12-16 06:34:42 UTC
Since we added this patch in bug #268234, is it possible to close this one?
Comment 9 Fernando Apesteguía freebsd_committer freebsd_triage 2022-12-22 16:09:53 UTC
Assuming this is fixed in bug #268234