Track numbers greater than 255

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
ejmk
Posts:2
Joined:Fri Dec 16, 2011 5:39 pm
AV Hardware:Linux Server with MediaTomb and (new) TwonkyServer 6.0.38
XBMC
PC with foobar 2000 + upnp
Track numbers greater than 255

Post by ejmk » Fri Dec 16, 2011 7:01 pm

Hi,

I'll swap my old linux server running mediatomb for a NAS. That's why I try to evaluate the Twonky Server.

Technical:
TwonkyMedia version : Twonky Server for linux 6.0.38
Server Hardware: noname PC Hardware with Intel(R) PIII and 256 MByte RAM
Operating System: SUSE Linux 7.3 with many changes beside the distribution
If you are running as a system service (Windows only) : ./.
Client(s) and their software version : foobar 2000 1.1.9 with upnp 0.99.35 | XBMC 10.1 auf Intel-HW | AV Media Controller 1.0.4144.25069 from the Developer Tools for UPnP Technologies
Type(s) of media you are having problems with : audio/mp3 and audio/flac
How many files you have in your database : 752 (only for testing)
Network type (Wired/Wireless) : all wired
Other items on your network (Router make/model for example) : no other upnp devices

And here the problem: All tracknumbers greater then 255 are shiftet by n*256. This will say:
Track 1 -> Track 1 -> ok
Track 255 -> Track 255 -> ok
Track 256 -> Track 0 -> nok
Track 258 -> Track 2 -> nok
Track 514 -> Track 2 -> nok
...
This can be seen with XBMC and foobar2000.
Having a look with the AV Media Controller from the Developer Tools for UPnP Technologies the upnp:originalTrackNumber is set to the value what foobar and XBMC shows.
Purging the database and rescan the library, restarting the server does not change the behaviour.

Here the log while scanning one of the tracks with tracknumber > 255 what I did prepare for finding easy in the log:
18:54:33:024 [Trace] - LOG_SCAN: db_add_dir_entry_impl : processing /hdc/daten/daten2/Media/Musik/Bette Midler/258 - The Rose - Kopie.flac (check = 1)
18:54:33:024 [Trace] - LOG_SCAN: db_add_dir_entry_impl : no /hdc/daten/daten2/Media/Musik/Bette Midler/258 - The Rose - Kopie.flac found in db
18:54:33:024 [Info] - LOG_SCAN: db_add_dir_entry_impl : adding file /hdc/daten/daten2/Media/Musik/Bette Midler/258 - The Rose - Kopie.flac
18:54:33:036 [Info] - LOG_SCAN: db_add_dir_entry_impl : processed /hdc/daten/daten2/Media/Musik/Bette Midler/258 - The Rose - Kopie.flac
18:54:33:036 [Trace] - LOG_SCAN: db_add_dir_entry_impl : done with /hdc/daten/daten2/Media/Musik/Bette Midler/258 - The Rose - Kopie.flac

Pointing to the mediatomb server the tracknumbers shown by the upnp:originalTrackNumber shown by the AV Media Controller are correct as been stored in the Tags/Comments and foobar and XBMC shows the right tracknumber.
The Device is set to "Windows 7" in the Server Configuration.

I did find only one post in the board
http://www.twonkyforum.com/viewtopic.ph ... 255#p14939
what did point to this problem but there is no answer :(

Is there an solution for this issue bcs I have a lot of media (e.g. soundclips) organized in special "albums" with more then 255 tracks.

Thanks
ejmk

Twonky_Rick
Posts:3816
Joined:Wed Nov 19, 2008 1:59 am
AV Hardware:Samsung 650 Series TV (2010), 4.5TB HP MediaSmart server with 100,000 songs, 5) AT&T U-Verse STB, CE form-factor Media Center PC and 6 other networked PCs running TwonkyManager, 2 Sonos ZP80, Sonos S5 speaker, Apple TV (running XBMC), Roku Soundbridge, X-Box 360, Sony PS3, Kodak 10" Wireless Photo Frame, iPhone with PlugPlayer software, Sonos CR-100.
Location:San Diego
Contact:

Re: Track numbers greater than 255

Post by Twonky_Rick » Tue Dec 20, 2011 6:04 pm

Thanks for reporting this issue. I don't have a solution, but I'll pass it on to the engineers.

- Rick
Follow me on Twitter! mostlytech1
Checkout my blog: http://mostly-tech.com/

ejmk
Posts:2
Joined:Fri Dec 16, 2011 5:39 pm
AV Hardware:Linux Server with MediaTomb and (new) TwonkyServer 6.0.38
XBMC
PC with foobar 2000 + upnp

Re: Track numbers greater than 255

Post by ejmk » Wed Dec 21, 2011 7:05 pm

Thanks for reporting the bug.
How can I gather information when it's fixed? Does PacketVideo releasepPatches or will the fix be done in an "normal" release?

Thanks
ejmk

Twonky_Rick
Posts:3816
Joined:Wed Nov 19, 2008 1:59 am
AV Hardware:Samsung 650 Series TV (2010), 4.5TB HP MediaSmart server with 100,000 songs, 5) AT&T U-Verse STB, CE form-factor Media Center PC and 6 other networked PCs running TwonkyManager, 2 Sonos ZP80, Sonos S5 speaker, Apple TV (running XBMC), Roku Soundbridge, X-Box 360, Sony PS3, Kodak 10" Wireless Photo Frame, iPhone with PlugPlayer software, Sonos CR-100.
Location:San Diego
Contact:

Re: Track numbers greater than 255

Post by Twonky_Rick » Sat Dec 24, 2011 6:05 pm

We normally announce updates here on the forum. The reason for this probem is because we store track numbers as 8 bit integers. We could easily increase this to 16 or 32 bits, however that would increase our memory usage. Since very few people have track numbers larger than 255, we will not be making this change.

Sorry I don't have better news for you.

- Rick
Follow me on Twitter! mostlytech1
Checkout my blog: http://mostly-tech.com/

Locked