After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 720687 - game-music-emu files with multiple songs only play first song
game-music-emu files with multiple songs only play first song
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-12-18 16:31 UTC by mihai.draghicioiu
Modified: 2018-11-03 13:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description mihai.draghicioiu 2013-12-18 16:31:26 UTC
Hi guys! The GBS format supports multiple songs (from the Game Boy) in one .gbs file. See [1] for an example file. I've checked the git code [2], and even though the game-music-emu library supports playback and querying info about multiple songs in one file (via gme_track_count() and gme_start_track()), track 0 (first track of file) is hardcoded, thus ignoring any other tracks in the same file.

I would write the patch myself, but I don't know the GStreamer API well enough, I'm only familiar with the game-music-emu API. I've seen an article [3] about streamids, so I know this should be possible. If someone can hint to where I can look in the code, maybe a similar plugin that supports multiple tracks, or the API headers, I can make a patch.

[1] http://www.zophar.net/music/gbs/castlevania-2-belmont-s-revenge.html
[2] http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/gme/gstgme.c
[3] http://blogs.gnome.org/uraeus/2012/11/25/improved-handling-of-files-with-multiple-tracks-in-gstreamer/
Comment 1 mihai.draghicioiu 2013-12-18 20:10:51 UTC
I need to mention that these are not like multi-language audio in a movie, since they're not simultaneous. The end result should be opening the gbs file with your favorite player ( I use rhythmbox), and instead of one entry, several entries should be added in the playlist. Not sure if this has to do with GStreamer though.
Comment 2 mihai.draghicioiu 2013-12-18 20:16:28 UTC
I need to mention that these are not like multi-language audio in a movie, since they're not simultaneous. The end result should be opening the gbs file with your favorite player ( I use rhythmbox), and instead of one entry, several entries should be added in the playlist. Not sure if this has to do with GStreamer though.

Alternately, songs could be concatenated. This is a patch that I could write, if the other ideas cannot be cleanly implemented.
Comment 3 Sebastian Dröge (slomo) 2014-01-05 10:36:23 UTC
Other tracks should probably be exposed with the TOC interface.
Comment 4 GStreamer system administrator 2018-11-03 13:19:37 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/123.