Rockbox Technical Forums

Support and General Use => Audio Playback, Database and Playlists => Topic started by: eevan on May 18, 2008, 03:25:21 PM

Title: Sansa c200 won't play a large mpc file
Post by: eevan on May 18, 2008, 03:25:21 PM
I have a Musepack compressed CD image along with the cuesheet. It's filesize is 85 MB.
It played nicely in r17437-080510, but when I upgraded to r17518-080515, the player shows the WPS, disk access icon is constantly on and the system freezes. Today I tried with r17576-080518, but it's the same.

Smaller mpc files play ok with all builds. Also, I removed the cuesheet file and tried to play the file without it, but the problem is still there.
Title: Re: Sansa c200 won't play a large mpc file
Post by: Buschel on May 18, 2008, 03:43:39 PM
Hi, the were quite some changes to mpc the last weeks. So here are some questions to be able to track your issue down:

1. are the files which do not play anmore sv4, sv5 or sv6 files? you can check via several tools on your pc.
2. can you track down the first version with which this happens. mpc-related changes were r17438, r17446 and only performance related r17507, r17552 and r17562.

thanks
Title: Re: Sansa c200 won't play a large mpc file
Post by: eevan on May 18, 2008, 03:54:22 PM
Hi, thanks for reply!
I can answer to your first question immediately. All my mpc files are SV7.0

I'm downloading the builds that you specified right now. I'm willing to help you track this down :)
Title: Re: Sansa c200 won't play a large mpc file
Post by: Buschel on May 18, 2008, 04:00:43 PM
ok, then r17446 is my top-candidate from what you describe -- but let's see
Title: Re: Sansa c200 won't play a large mpc file
Post by: eevan on May 18, 2008, 04:22:40 PM
I'm unable to find exact previous builds. :( There are only previous daily builds, so I found 17451, installed it, and the player stucks when I try to playback the mentioned file.
Title: Re: Sansa c200 won't play a large mpc file
Post by: Buschel on May 18, 2008, 04:28:33 PM
just to make sure: r17435 works fine?
Title: Re: Sansa c200 won't play a large mpc file
Post by: eevan on May 18, 2008, 04:34:06 PM
I have just checked the r17435 and the file plays.

I kept r17437 as a backup. That's how I spotted the problem. Maybe that's the last build without this problem.
Title: Re: Sansa c200 won't play a large mpc file
Post by: Buschel on May 18, 2008, 04:41:56 PM
Ok, next questions:

- what's the duration of the file (in seconds)?
- how many frames does it have?
Title: Re: Sansa c200 won't play a large mpc file
Post by: eevan on May 18, 2008, 04:47:00 PM
Code: [Select]
File Size : 85.5MB (89 714 356 bytes)
Last Modified : 2008-05-18 19:25:58
Duration : 59:57.373 (158644164 samples)
Sample Rate : 44100 Hz
Channels : 2
Bitrate : 200 kbps
Codec : Musepack
Codec Profile : Musepack 'Standard'
Frames:  137,712
Encoding : lossy
Tool : mppenc Beta 1.16
<STREAMVERSION> : 7
Title: Re: Sansa c200 won't play a large mpc file
Post by: Buschel on May 18, 2008, 04:55:41 PM
Perfect, thanks a lot. I think I've got an idea about where the bug may be located -- I'll give an update in this thread.

Last question for today: With your working revision -> Does seeking work fine with this file? Like seeking to 10%, 20%, 50%, 80%, 90% of the file?
Title: Re: Sansa c200 won't play a large mpc file
Post by: eevan on May 18, 2008, 05:12:02 PM
Don't mention it :)
Your work is much harder. I just have to try several builds. I'm glad I was helpful.

OK. About seeking. Well, it's not working ok. Everything that follows is happening on r17437. I thought that's because of the cuesheet, so tried without it. And it goes like this: I fast forward to about 6 minutes and it finds that position and plays nicely. Then I fast forward to 13 minutes something and I hear a horrible mess for a second or so, and it continues playing from about 7 minutes. The same goes for bigger leaps. I think that it works ok if I fast forward just a few minutes.

Thanks!
Title: Re: Sansa c200 won't play a large mpc file
Post by: Buschel on May 19, 2008, 02:14:14 PM
Hi, please try r17584. The seeking within large files should still not be possible, but it shouldnÄt crash on load.
Title: Re: Sansa c200 won't play a large mpc file
Post by: eevan on May 19, 2008, 05:27:42 PM
Hi!
Great, it's not crashing anymore indeed!

Thanks!
Title: Re: Sansa c200 won't play a large mpc file
Post by: Buschel on May 19, 2008, 05:47:50 PM
I am working on the seek-mechanism right now. I guess there'll be an update here soon.

EDIT:
For those of you who are able to compile rockbox: FS#9015 (http://www.rockbox.org/tracker/task/9015) contains the rework of mpc buffered seeking. With this patch seeking should be working even for large files of >28.5min duration.

EDIT2:
Rework of seek buffer submitted with r17604. Seeking within large files is possible now.

EDIT3:
Fixed some backward seeking stuff that was still not properly working with r17606.
Title: Re: Sansa c200 won't play a large mpc file
Post by: eevan on May 22, 2008, 06:38:01 PM
I've just came from work, and downloaded the new build.
I read your commit comments and tested everything.

It works great!

The only thing I noticed is that the playback resume after power on takes quite a lot of time if the previous position was in the second half of the file, but it does not crash and finds the exact position. That isn't really an issue. In fact, it works like a charm :)