Opdenkamp-git and bluray-support
#1
Hey guys,

asked about the following in some other threads, but didn't get an answer:


http://forum.xbmc.org/showpost.php?p=861908&postcount=600

http://forum.xbmc.org/showpost.php?p=860...stcount=39
http://forum.xbmc.org/showpost.php?p=865...tcount=108

Compiled libbluray from videolan-git and xbmc from opdenkamp-git with libbluray enabled. If I mount my bluray-isos manual, I can watch the m2ts-files. The following isn't possible:
  • automount bluray-iso (dvd-iso works fine)
  • rewind/fastforward chapters

--> this should be possible with mario sitz ppa.

What is the problem? Are these features possible with opdenkamp-git or only with mario sitz ppa? Are there some special packets I need to install?

What about the standard xbmc-development-git? Is it possible with this?

Is it possible to combine the code from mario sitz ppa with the opdenkamp-git to get this working?

It is the only problem I have to solve with xbmc, everything else is working fine. Great job and thanx to the xbmc-developers for this absolutely great "media-center-gui".


Greetings

Hoppel
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#2
there's nothing special in the pvr tree that does anything with blueray. does it work on mainline xbmc (eden-pre?)
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply
#3
Hey dushmaniac,

don't know if that works on mainline xbmc, I only read that it should with mario sitz ppa. But I "need" pvr, so my question was how to get this working with your git?

Here you can see as chapter-rw/ff should look: http://forum.xbmc.org/showthread.php?tid=91143

Philmatic doesn't answer on a pm. My blurays are fully decrypted isos.

Greets
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#4
Hey guys,

here a complete log while opening "testbd.iso" with full bluray-structure:

http://pastebin.com/GGX8yHxL

I think these are the relevant ERROR-lines:

From the first part of the log we can see, that xbmc knows the medium to be not a DVD and starts testing for bluray. Then we can see a lot of such "ignored size"-messages:

Code:
23:02:43 T:140400190809856   ERROR: DVDFileSeekForce - ignored size of file indicated in UDF

After that phase, I think these ERRORs can be interesting:
Code:
23:02:44 T:140400190809856   ERROR: GetDirectory - Error getting /mnt/wd20ears/movies/Bluray/testbd/testbd.iso/BDMV/
23:02:44 T:140400190809856   ERROR: Open - error probing input format,
23:02:44 T:140400190809856   ERROR: OpenDemuxStream - Error creating demuxer

What do you think about these error-messages?
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#5
Hey guys,

I built another bluray-iso and with this the following features work:
  • automount bluray-iso
  • rewind/fastforward chapters

But not always, it works in round about 50% of starting this iso. Yehaa!!! Better than nothing! Big Grin In the other 50% xbmc crashes completely.

Here are some xbmc-logs I made while starting this bluray-iso:

complete log: http://pastebin.com/BgvvBMxn

some errors I assembled from this log:

Code:
14:34:02 T:140667382638336   DEBUG: CDVDInputStreamBluray - Opening file udf iso file udf:///mnt/wd20ears/movies/Bluray/bluraytest/bluraytest.iso/BDMV/CLIPINF/00034.clpi... (0x416a370)
14:34:02 T:140667382638336   ERROR: DVDFileSeekForce - ignored size of file indicated in UDF
14:34:02 T:140667382638336   DEBUG: CDVDInputStreamBluray - Closed file (0x416a370)
14:34:02 T:140667382638336   DEBUG: CDVDInputStreamBluray - Opening file udf iso file udf:///mnt/wd20ears/movies/Bluray/bluraytest/bluraytest.iso/BDMV/STREAM/00001.m2ts... (0x416a370)
14:34:02 T:140667382638336   DEBUG: ScanForExternalSubtitles: Searching for subtitles...
14:34:02 T:140667382638336   ERROR: GetDirectory - Error getting /mnt/wd20ears/movies/Bluray/bluraytest/bluraytest.iso/BDMV/
14:34:03 T:140667382638336   ERROR: CDVDAudioCodecPassthroughFFmpeg::Open - FFmpeg SPDIF muxer does not support this codec
14:34:03 T:140667326908160   ERROR: ffmpeg[AA0D4700]: [dca] Not a valid DCA frame
14:34:03 T:140667326908160   ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet

With the message "CDVDPlayerVideo - video decoder was flushed" xbmc freezes completely and its (xbmc) service has to be restarted:

Code:
14:34:03 T:140668049463264   ERROR: GLX: Same window as before, refreshing context
14:34:03 T:140668049463264    INFO: GL: Maximum texture width: 8192
14:34:03 T:140668049463264   DEBUG: ------ Window Init (VideoFullScreen.xml) ------
14:34:03 T:140668049463264    INFO: Loading skin file: VideoFullScreen.xml
14:34:03 T:140668049463264   DEBUG: Load VideoFullScreen.xml: 7.39ms
14:34:03 T:140668049463264   DEBUG: Alloc resources: 7.72ms (7.49 ms skin load)
14:34:03 T:140668049463264   DEBUG: LIRC: Update - NEW at 375177:0000000080010069 00 KEY_LEFT devinput (KEY_LEFT)
14:34:03 T:140668049463264   DEBUG: OnKey: 169 (a9) pressed, action is StepBack
14:34:03 T:140668049463264   DEBUG: ------ Window Init (DialogSeekBar.xml) ------
14:34:03 T:140668049463264   DEBUG: Alloc resources: 0.08ms (0.00 ms skin load)
14:34:03 T:140668049463264   ERROR: VDPAU Device Preempted - attempting recovery
14:34:03 T:140668049463264   ERROR:  (VDPAU) Error: The display was pre-empted, or a fatal error occurred.(2) at VDPAU.cpp:1351
14:34:03 T:140667335300864  NOTICE: Attempting recovery
14:34:03 T:140667335300864  NOTICE:  (VDPAU) FiniVDPAUOutput
14:34:03 T:140668049463264   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
14:34:03 T:140667335300864  NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
14:34:03 T:140667335300864   DEBUG: CDVDPlayerVideo - video decoder was flushed

And here the complete xbmc-log when the bluray.iso is working fine: http://pastebin.com/1EDcHPqa

What about the vdpau-error and why xbmc still works, after message "CDVDPlayerVideo - video decoder was flushed"?

Code:
14:38:36 T:139732522264544   ERROR: GLX: Same window as before, refreshing context
14:38:36 T:139732522264544    INFO: GL: Maximum texture width: 8192
14:38:36 T:139732522264544   DEBUG: ------ Window Init (VideoFullScreen.xml) ------
14:38:36 T:139732522264544    INFO: Loading skin file: VideoFullScreen.xml
14:38:36 T:139732522264544   DEBUG: Load VideoFullScreen.xml: 6.81ms
14:38:36 T:139732522264544   DEBUG: Alloc resources: 7.11ms (6.92 ms skin load)
14:38:36 T:139732522264544   DEBUG: ------ Window Init (DialogSeekBar.xml) ------
14:38:36 T:139732522264544   DEBUG: Alloc resources: 0.07ms (0.00 ms skin load)
14:38:36 T:139732522264544   ERROR: VDPAU Device Preempted - attempting recovery
14:38:36 T:139732522264544   ERROR:  (VDPAU) Error: The display was pre-empted, or a fatal error occurred.(2) at VDPAU.cpp:1351
14:38:36 T:139731805603584  NOTICE: Attempting recovery
14:38:36 T:139731805603584  NOTICE:  (VDPAU) FiniVDPAUOutput
14:38:36 T:139732522264544   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
14:38:36 T:139731857831680   DEBUG: CDVDPlayer::HandleMessages - player started 2
14:38:36 T:139731805603584  NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
14:38:36 T:139731805603584   DEBUG: CDVDPlayerVideo - video decoder was flushed
14:38:36 T:139731805603584  NOTICE:  (VDPAU) screenWidth:1920 vidWidth:1920
14:38:36 T:139731805603584  NOTICE:  (VDPAU) screenHeight:1080 vidHeight:1080
14:38:36 T:139731805603584  NOTICE:  (VDPAU) Total Output Surfaces Available: 2 of a max (tmp: 2 const: 4)
14:38:36 T:139731815307008   DEBUG: CVideoReferenceClock: Received RandR event 123
14:38:36 T:139731815307008   DEBUG: CVideoReferenceClock: output of nvidia-settings -nt -q RefreshRate3: 60,000 Hz
14:38:36 T:139731815307008   DEBUG: CVideoReferenceClock: Detected refreshrate by nvidia-settings: 60.000000 hertz, rounding to 60 hertz
14:38:38 T:139732124014336   DEBUG: AddOnLog: VDR XVDR Client: SendPing
14:38:39 T:139732522264544   DEBUG: LIRC: Update - NEW at 49492:00000000800100cf 00 KEY_PLAY devinput (KEY_PLAY)
14:38:39 T:139732522264544   DEBUG: OnKey: 234 (ea) pressed, action is Play
14:38:39 T:139731805603584  NOTICE:  (VDPAU) Creating the video mixer
14:38:39 T:139732522264544   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
14:38:39 T:139732522264544   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
14:38:39 T:139731797210880   DEBUG: CDVDPlayerAudio:: Discontinuity - was:83605.750781, should be:95868.263366, error:12262.512586
14:38:39 T:139732522264544   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
14:38:42 T:139731805603584   DEBUG: CPullupCorrection: detected pattern of length 1: 20854.17, frameduration: 20854.166667
14:38:43 T:139731805603584   DEBUG: CalcFrameRate framerate was:23.976024 calculated:47.952075
14:38:43 T:139731805603584   DEBUG: CVideoReferenceClock: Clock speed 100.099944%
14:38:43 T:139731805603584  NOTICE:  fps: 47.952075, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
14:38:43 T:139731805603584   DEBUG: OutputPicture - change configuration. 1920x1080. framerate: 47.95. format: VDPAU
14:38:43 T:139731805603584   DEBUG: Resolution default: 1920x1080 @ 50.00Hz (13) not a very good match for fps 47.952 (weight: 0.043), trying 2:3 cadence
14:38:43 T:139731805603584   DEBUG: Resolution default: 1920x1080 @ 50.00Hz (13) not a very good match for fps 47.952 with 2:3 cadence (weight: 0.583), choosing 60 hertz
14:38:43 T:139731805603584   DEBUG: 60 hertz refreshrate not available, choosing highest
14:38:43 T:139731805603584  NOTICE: Display resolution ADJUST : default: 1920x1080 @ 58.00Hz (21) (weight: 0.210)
14:38:43 T:139732522264544  NOTICE: Using GL_TEXTURE_2D
14:38:43 T:139732522264544  NOTICE: GL: Using VDPAU render method
14:38:43 T:139732522264544  NOTICE: GL: NPOT texture support detected
14:38:43 T:139732522264544  NOTICE: GL: Using GL_ARB_pixel_buffer_object

some other errors, I found in the log about ffmpeg:

Code:
14:39:31 T:139731857831680   ERROR: ffmpeg[DBBFF700]: [mpegts] ignoring previously allocated packet on stream 0
14:40:32 T:139731797210880   ERROR: ffmpeg[D822F700]: [dca] Not a valid DCA frame
14:40:32 T:139731797210880   ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet

Isn't anybody here using bluray-isos with the opdenkamp-git? What could be my problem? vdpau, ffmpeg ...

Greetings

Hoppel
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#6
The crashes are probably related to changes of refresh rate and not necessarily related to bluray. This is a known bug (I am working on this)
Reply
#7
In other threads I read that crashes caused by refresh rate changes could be related to x64. Is this true? Or, do this issues occur with x86, too?
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#8
hoppel118 Wrote:In other threads I read that crashes caused by refresh rate changes could be related to x64. Is this true? Or, do this issues occur with x86, too?

This issue can occur on 64 and 32 bit, even with other hardware decoders. Since this issue is related to timing it just might occur more often on 64 bit systems.
Reply
#9
Ok, is it somehow possible to disable autorefresh refresh rate changes. I read about this to be possible in xorg.conf, but can't find the right command.

In this way it must be possible to start the bluray-iso without a complete crash of xbmc (with the information in mind stuttering to be there because of the wrong refresh rate).

What do you think?
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#10
My quick fix is to set xbmc gui @24hz as i prefer to watch 720/1080p . Mkv.
When i watch dvds it will crash sometimes but never on bluray / HDTV rips.
So you could manualy choose the refreshrate that matches your material in xbmc gui.
Reply
#11
Hey guys,

the problem is seemingly "solved".

No need to disable auto refresh rate in xorg.conf, found the option in the xbmc gui under "System - Settings - Video - Playback". Here I disabled the option "Adjust display refresh rate to match Video" and my blurays are starting fine in all my tests. Great, thank you for directing to this.

But I can't figure out the disadvantage through disabling this option. Watched movies with 24, 25 and 50fps, there is no judder to see. Why? Shouldn't it judder with this option disabled?

In my opinion this option was enabled by default. If so (can't remember if I activated this), it should be changed until the option works properly.

My xbmc gui uses the standard refresh rate @50hz.

Thank you very much!

Greetings Hoppel
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#12
hi there

I still have the problem with "ignored size of file indicated in UDF".
when I mount the iso ("$ mount -oloop xyz.iso /tmp/iso") and play the specific video file, it works of course. but if I try to play the folder structure or even the iso (which would end up in reading the structure as well) it fails in more than 3 of 5 of my (unencrypted) isos Sad

any idea where to start looking at? Is this libbluray related?
Reply
#13
dragontux Wrote:any idea where to start looking at? Is this libbluray related?

I don't think that the problem is related to libbluray, because when mounting isos manually specific files just work.

Did you test this?

hoppel118 Wrote:No need to disable auto refresh rate in xorg.conf, found the option in the xbmc gui under "System - Settings - Video - Playback". Here I disabled the option "Adjust display refresh rate to match Video" and my blurays are starting fine in all my tests.

After setting the xbmc-gui to this my bluray-isos start perfektly.

We don't have any information about your system...

Greetings
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply
#14
hoppel118 Wrote:I don't think that the problem is related to libbluray, because when mounting isos manually specific files just work.
Yes but it only works if I play the video files (*.m2ts, no need for libbluray for that) not when I play the directory structure (which is what libbluray is for!), pre-mounted or auto-mounted doesn't matter Sad
Reply
#15
I started even now a bluray-iso while watching the log with "tail". The following error messages are still there:

Code:
19:11:50 T:140390607419136   ERROR: DVDFileSeekForce - ignored size of file indicated in UDF

But after this "log-phase" the bluray-iso starts working without any other problem.

dragontux Wrote:Yes but it only works if I play the video files (*.m2ts, no need for libbluray for that) not when I play the directory structure (which is what libbluray is for!), pre-mounted or auto-mounted doesn't matter Sad

Are you sure? I never tested playing a *.m2ts without libbluray compiled against xbmc.

What about answering to questions? I still don't know if you adjusted the xbmc gui settings I mentioned above and I still don't know anything about your system!

Greetings
frontend: nvidia shield tv 2019 pro | apple tv 4k | sonos arc 5.1.2 | lg oled65c97la
backend: supermicro x11ssh-ctf | xeon | 64gb ecc | wd red | zfs raid-z2 | dd max s8

software: debian | proxmox | openmediavault | docker | kodi | emby | tvheadend | fhem | unifi
Reply

Logout Mark Read Team Forum Stats Members Help
Opdenkamp-git and bluray-support0