How to get ToC from M4B files?

Arun Mani J J.ArunMani at proton.me
Sat Nov 5 17:27:03 UTC 2022


Hii all
I'm creating an audio player using Playbin of Gstreamer and GTK (www.gtk.org). The player perfectly plays M4B files but I'm not getting any GstMessage of type Gst.MessageType.TOC. I tested using both files from internet and manually converting an MP3 to M4B, it doesn't work.
However Celluloid (https://github.com/celluloid-player/celluloid) is able to display the ToC. I have attached the link to an MWE of the player and a sample M4B file (*).

The GStreamer related packages in my system:
$ apt list --installed | grep 'gst'
gir1.2-gst-plugins-base-1.0/testing,now 1.20.3-2 amd64 [installed,automatic]
gir1.2-gstreamer-1.0/testing,now 1.20.3-1 amd64 [installed,automatic]
gstreamer1.0-gl/testing,now 1.20.3-2 amd64 [installed,automatic]
gstreamer1.0-gtk3/testing,now 1.20.3-1+b1 amd64 [installed,automatic]
gstreamer1.0-libav/testing,now 1.20.3-1+b1 amd64 [installed,automatic]
gstreamer1.0-packagekit/testing,now 1.2.5-3+b1 amd64 [installed]
gstreamer1.0-pipewire/testing,now 0.3.59-1+b1 amd64 [installed,automatic]
gstreamer1.0-plugins-bad/testing,now 1.20.3-2+b1 amd64 [installed,automatic]
gstreamer1.0-plugins-base/testing,now 1.20.3-2 amd64 [installed]
gstreamer1.0-plugins-good/testing,now 1.20.3-1+b1 amd64 [installed]
gstreamer1.0-x/testing,now 1.20.3-2 amd64 [installed,automatic]
libgstreamer-gl1.0-0/testing,now 1.20.3-2 amd64 [installed,automatic]
libgstreamer-plugins-bad1.0-0/testing,now 1.20.3-2+b1 amd64 [installed,automatic]
libgstreamer-plugins-base1.0-0/testing,now 1.20.3-2 amd64 [installed,automatic]
libgstreamer1.0-0/testing,now 1.20.3-1 amd64 [installed,automatic]
Links:

- Player - https://paste.debian.net/hidden/f19efd69
- Audio - https://upload.disroot.org/r/WSto0jz2#4eg8eiA6OJq3ZjeJ6+oE4YVzYNSC6tTWfNM7Nepto1M=

(*) The audio file is obtained from https://freepd.com/, under CC0 license.

Thanks for reading :)
Thanks for GStreamer!
Arun Mani J

(I have not subscribed to the mailing list, so please CC me in replies)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221105/df513289/attachment.htm>


More information about the gstreamer-devel mailing list