[Cin] Blu-ray Tools and more testing

Terje J. Hanssen terjejhanssen at gmail.com
Fri Nov 26 22:07:58 CET 2021


The following articles made me aware of some basic Blu-ray tools of 
interest:

https://www.videolan.org/developers/libbluray.html
https://wiki.gentoo.org/wiki/Blu-ray
https://packages.gentoo.org/packages/media-video/bluray_info

=======

After installation on current openSUSE Leap 15.3, this looks like:

zypper se -is bluray
Loading repository data...
Reading installed packages...

S  | Name             | Type    | Version          | Arch   | Repository
---+------------------+---------+------------------+--------+----------------
i+ | libbluray-bdj    | package | 1.3.0-lp153.96.1 | noarch | 
multimedia:libs
i+ | libbluray-tools  | package | 1.3.0-lp153.96.1 | x86_64 | 
multimedia:libs
i+ | libbluray2       | package | 1.0.2-2.38       | x86_64 | Main 
Repository
i  | libbluray2-32bit | package | 1.0.2-2.38       | x86_64 | Main 
Repository


And to list the libbluray-tools:

rpm -ql libbluray-tools
/usr/bin/bd_info
/usr/bin/bd_list_titles
/usr/bin/bd_splice


A fourth tool, "bluray_info" used in the Gentoo article, I didn't 
packaged for Leap i.e as rpm, and I didn't succeed to compile and 
install it using "Linux" procedure in the tar install file. So tip here 
is welcome ;)

http://bluray.beandog.org/bluray_info/
https://sourceforge.net/projects/bluray-info/

=======

Without going in detail on each disc content and structure, here are my 
preliminary test output for some earlier written BD-RE discs (Nero Linux 
and bdwrite). Most of them recognized by my Samsung UBD-K8500 player as 
Data discs. Autoplay not started for /udfs/BDMV/BDAV (as it does for DVD 
SD and Wide-SD), but it is possible to browse down to STREAM and play 
video files (m2ts, AC-3, HEVC, h264, HD and SD, but not pure dv.avi). 
(Browsing is not required with VLC, with Nautilus just open the top 
directory: Open>with VLC which starts playing a single video file.)


Error:
------
bd_info /dev/sr0
Using libbluray version 1.0.2
disc.c:323: failed opening UDF image /dev/sr0
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bd_open('/dev/sr0', '(null)') failed.


bd_info /dev/sr0
Using libbluray version 1.0.2
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bd_open('/dev/sr0', '(null)') failed.


No errors ....
---------
bd_info /dev/sr0
Using libbluray version 1.0.2
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /dev/sr0
index_parse.c:227: index.bdmv: unknown extension data at 120
BluRay detected     : yes
First Play supported: yes
Top menu supported  : no
HDMV titles         : 1
BD-J titles         : 0
UNSUPPORTED titles  : 0
BD-J detected       : no
AACS detected       : no
BD+ detected        : no
Application info:
   initial mode preference : 2D
   3D content exists       : No
   video format            : ignored (0x0)
   frame rate              : ignored (0x0)
   initial dynamic range   : SDR (0x0)
   provider data           : '                                '
No disc library metadata

Failed
------
bd_list_titles /dev/sr0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /dev/sr0
index_parse.c:227: index.bdmv: unknown extension data at 120
Main title: 1
index:   1 duration: 00:07:38 chapters:   2 angles:  1 clips:   1 
(playlist: 00000.mpls) V:1 A:1  PG:0  IG:0  SV:0 SA:0


bd_list_titles /dev/sr0
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bd_open(/dev/sr0) failed


Error and warnings
------------------
ffprobe bluray:/dev/sr0
ffprobe version 4.4 Copyright (c) 2007-2021 the FFmpeg developers
   built with gcc 7 (SUSE Linux)
[.............]
static --enable-gpl --enable-version3 --disable-openssl 
--enable-avresample --enable-gnutls --enable-ladspa --enable-libass 
--enable-libbluray --enable-libbs2b --enable-libcelt --enable-libcdio 
--enable-libdav1d --enable-libdc1394 --enable-libdrm 
--enable-libfontconfig --enable-libfreetype --enable-libfribidi 
--enable-libgsm --enable-libjack --enable-libmp3lame 
--enable-libopenjpeg --enable-libopenmpt --enable-libopus 
--enable-libpulse --enable-libspeex --enable-libssh --enable-libtheora 
--enable-libtwolame --enable-libvidstab --enable-libvmaf 
--enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libwebp 
--enable-libxml2 --enable-libzimg --enable-libzvbi --enable-libmfx 
--enable-vaapi --enable-vdpau --enable-version3 
--enable-libfdk-aac-dlopen --enable-nonfree --enable-libvo-amrwbenc 
--enable-libx264 --enable-libx265 --enable-librtmp --enable-libxvid
   libavutil      56. 70.100 / 56. 70.100
   libavcodec     58.134.100 / 58.134.100
   libavformat    58. 76.100 / 58. 76.100
   libavdevice    58. 13.100 / 58. 13.100
   libavfilter     7.110.100 /  7.110.100
   libavresample   4.  0.  0 /  4.  0.  0
   libswscale      5.  9.100 /  5.  9.100
   libswresample   3.  9.100 /  3.  9.100
   libpostproc    55.  9.100 / 55.  9.100
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /dev/sr0
index_parse.c:227: index.bdmv: unknown extension data at 120
[bluray @ 0x556e57ffdbc0] 1 usable playlists:
[bluray @ 0x556e57ffdbc0] playlist 00000.mpls (0:07:38)
[bluray @ 0x556e57ffdbc0] selected 00000.mpls
[h264 @ 0x556e580291c0] non-existing PPS 0 referenced
     Last message repeated 1 times
[.......]
[h264 @ 0x556e580291c0] no frame!
[mpegts @ 0x556e5801a600] Stream #2: not enough frames to estimate rate; 
consider increasing probesize
[mpegts @ 0x556e5801a600] start time for stream 2 is not set in 
estimate_timings_from_pts
[mpegts @ 0x556e5801a600] stream 2 : no TS found at start of file, 
duration not set
bluray.c:256: 00000.m2ts: no timestamp for SPN 0 (got 0). clip 
2040-20628240.
[mpegts @ 0x556e5801a600] Could not find codec parameters for stream 2 
(Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 
'probesize' (5000000) options
Input #0, mpegts, from 'bluray:/dev/sr0':
   Duration: 00:07:38.29, start: 0.045333, bitrate: 8877 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
   Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k 
tbn, 50 tbc
   Stream #0:1[0x1100]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 
stereo, fltp, 224 kb/s
   No Program
   Stream #0:2[0x1fff]: Video: h264, none, 90k tbr, 90k tbn

===========

Terje J. H




More information about the Cin mailing list