Posts: 26,215
Joined: Oct 2003
Reputation:
187
my point is that the dll of mplayer handles changing vob files itself - we have no input into this at all.
it does not, however, handle changing audio files itself. thus, we must feed it a single audio file at a time. thus, the issue with gaps between playback.
Posts: 168
Joined: Feb 2004
Reputation:
0
2004-11-03, 13:59
i bet you would get more donations if you where to run a campain for someone to code a way to play mp3's back to back with no gap! i for one would have thier babies!
Posts: 26,215
Joined: Oct 2003
Reputation:
187
you are more likely to get someone to code something up for a format that is actually gapless such as flac or ogg (by writing a custom player for audio only)
mp3 can be made gapless through a bunch of hacks.
currently it would require having a large audio cache in xbmc (large enough to stop + reload mplayer with the next song) in order for it to be gapless. this will also mean disconnecting the audio output from mplayer (the audio out devices are setup on mplayer_openfile(), and are destroyed on mplayer_closefile()).
plus, a big buffer causes memory issues (around 10mb/minute) and we'd need at least 2mb i should think to be safe with the mplayer loading system.
it was easy enough to do the gapless playback for the cdda player as i had complete control over the buffers. with mplayer, we'd need to rewrite the output code.
just some suggestions incase someone is thinking of implementing it.
Posts: 168
Joined: Feb 2004
Reputation:
0
(not being a programmer) could you not create an app that would stream the mp3's to the mplayer dll much like shoutcast?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
yes, it would work if you successfully detached the audio output stuff from mplayer so that you could switch between the two instances of mplayer.
however this would involve 2 copies of mplayer being loaded (ie twice the memory usage of which mplayer already uses a fair bit) plus you'd have to recode the entire player backend as it's only coded to support one player at a time.
good luck.
as i've said before (over and over again) a better way (and perhaps easier)) is to code a new player for whatever audio formats you need, simply using libvorbis, libflac, libmp3 etc.
Posts: 6
Joined: Nov 2004
Reputation:
0
would a new audio core also make it possible to play songs off smb shares without having the harddisk spinning up in between? if so, that would be really, really nice. it's what's stopping me from using xbmc as primary audio player at the moment. apart from that, it's already a fantastic video player.
Posts: 108
Joined: Dec 2004
Reputation:
0
gui
Senior Member
Posts: 108
hello to all!wondering if there is a way to reduce the time of play between music traks,becouse playng from the hdd a mixed album,you can ear tha gap between the two.any help??thanx
Posts: 26,215
Joined: Oct 2003
Reputation:
187
it's not likely to happen with mplayer as the playing core, at least not unless mplayer itself has gapless playback for music playlists (which i doubt).
an easier method would be to build a new standalone core for audio only playback, as is done with the cdda player for instance (which is completely gapless). lame and libogg/vorbis are already compiled for the xbox i believe (for the cd ripper), so adding an ogg or mp3 player would probably be a nice small coding project for someone like yourself.
cheers,
jonathan
Posts: 2
Joined: Jan 2005
Reputation:
0
is there a way for get the xbmc to play a mp3 with out the 2 second gap between tracks? i am storing all my mp3s on my pc and have teh xbox networked but when i play a mixed techno cd it inserts the 2 seconds gap between tracks? is any way to stop it from doing this?
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
no. search forums for details