Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  WMA again
« previous next »
  • Print
Pages: 1 2 [3] 4 5 6

Author Topic: WMA again  (Read 57686 times)

Offline Marsdaddy

  • Member
  • *
  • Posts: 17
Re: WMA again
« Reply #30 on: April 05, 2006, 10:17:45 AM »
Here is an update, as promised!

I submitted a version of "libwma" to the tracker on Saturday and it was suggested that rather than integrate straightaway into the rockbox codec architecture, I should write a plugin to test the decoder for accuracy and speed.

Well, I've now written a "wma2wav" plugin, which is working on my simulator build.

Next step is to try it on a real device (iRiver H340) to see if it's up to the job. Listening to the WAV output I think it's a little "rough", I need to do something a bit more scientific with the output.

When I have wma2wav working and have more faith in the decoder, I shall make a patch of it.

And that is the end of the news. ;D
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: WMA again
« Reply #31 on: April 05, 2006, 05:05:37 PM »
Awesome news!

Assuming you can get your iRiver to record the PCM samples, you could compare the output to WMP.  Do you have matlab?  You could pretty easily use the wavread() command on your output and WMP's and then go sample by sample to see how close you are.  I doubt you'll be sample exact since theres fp involved in the WMP decoder most likely, but assuming you're within a bit or two, I doubt anyone will mind :)

Edit:  new = news
« Last Edit: April 05, 2006, 05:31:59 PM by saratoga »
Logged

Offline MU4L

  • Member
  • *
  • Posts: 201
    • Soccer24-7.com
Re: WMA again
« Reply #32 on: April 05, 2006, 06:01:25 PM »
Great work Marsdaddy - look forward to the patch :D !!!
Logged
Rockboxed Units: iPod 5G 60GB modified with iVue ClearPanel Case and MK2431GAH 240GB HDD:
Standard: U10 (for physical activities):
'Phones: Ultimate Ears Super.fi 3 Studio (iPod),  Shure E2c (U10).

Offline Mr. Brownstone

  • Member
  • *
  • Posts: 199
Re: WMA again
« Reply #33 on: April 05, 2006, 06:23:42 PM »
Fantastic news! Keep up the good work, we all appreciate it! ;D
Logged
Of course, that’s just my opinion. I could be wrong.

Offline Marsdaddy

  • Member
  • *
  • Posts: 17
Re: WMA again
« Reply #34 on: April 10, 2006, 07:56:37 AM »
Further update for those awaiting this!

I have completed the plugin WMA decoder and have been banging my head against the wall for the last few days because although the code compiles and runs fine in the uisimulator, it won't compile for my platform, the iRiver H340. For the technically minded, it causes an internal compiler error "insn does not satisfy its constraints".

I have been attempting to come up with test code that exhibits the problem but of course it does not show when I isolate the code. I will continue to rework/reorder the code until I get it to generate correctly.

Wish me luck  ???
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: WMA again
« Reply #35 on: April 10, 2006, 08:06:49 AM »
If you just produce a package/patch with what you have that shows the problem, I'm sure there are several people around that can help you.

Cooperation is what makes open source different you know!
Logged

Offline Mr. Brownstone

  • Member
  • *
  • Posts: 199
Re: WMA again
« Reply #36 on: April 10, 2006, 08:08:12 AM »
Good luck and excellent work!

But here's a suggestion: Why not show your code to the other ROCKbox devs here? They already have a great deal of experience working with the H300's and may be able to show you where you're going wrong, and will speed up your learning process and development time. :)
Logged
Of course, that’s just my opinion. I could be wrong.

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: WMA again
« Reply #37 on: April 10, 2006, 08:25:20 AM »
Quote from: Marsdaddy on April 10, 2006, 07:56:37 AM
Further update for those awaiting this!

I have completed the plugin WMA decoder and have been banging my head against the wall for the last few days because although the code compiles and runs fine in the uisimulator, it won't compile for my platform, the iRiver H340. For the technically minded, it causes an internal compiler error "insn does not satisfy its constraints".

I have been attempting to come up with test code that exhibits the problem but of course it does not show when I isolate the code. I will continue to rework/reorder the code until I get it to generate correctly.

Wish me luck  ???

I've came up against these problems with porting the AAC codec - it's due to bugs in the m68k version of gcc.

One thing that worked was to ensure that the signedness of variables was consistent - i.e. removing comparisons between signed and unsigned variables seems to tickle gcc into submission.

Otherwise, just try randomly changing your code...

But as Daniel said, if you post a package of your source so far, then others would be happy to help.
Logged

Offline Marsdaddy

  • Member
  • *
  • Posts: 17
Re: WMA again
« Reply #38 on: April 10, 2006, 08:50:37 AM »
Quote from: linuxstb on April 10, 2006, 08:25:20 AM
I've came up against these problems with porting the AAC codec - it's due to bugs in the m68k version of gcc.

One thing that worked was to ensure that the signedness of variables was consistent - i.e. removing comparisons between signed and unsigned variables seems to tickle gcc into submission.

Thanks for this - I've made some modifications and it's got me past the original problem onto some more constraints violations. Thanks again for the suggestion  8)
Logged

Offline MU4L

  • Member
  • *
  • Posts: 201
    • Soccer24-7.com
Re: WMA again
« Reply #39 on: April 20, 2006, 02:38:54 PM »
Just wondering if there was any more news on the progression front, Marsdaddy  :) ?




Hope everything's going well,


MU4L
Logged
Rockboxed Units: iPod 5G 60GB modified with iVue ClearPanel Case and MK2431GAH 240GB HDD:
Standard: U10 (for physical activities):
'Phones: Ultimate Ears Super.fi 3 Studio (iPod),  Shure E2c (U10).

Offline Marsdaddy

  • Member
  • *
  • Posts: 17
Re: WMA again
« Reply #40 on: April 21, 2006, 03:10:05 PM »
Quote from: MU4L on April 20, 2006, 02:38:54 PM
Just wondering if there was any more news on the progression front, Marsdaddy  :) ?

Hope everything's going well,

Yes everything is going well but slowly... I was not expecting that the compiler used for the iRiver would have serious bugs in it! Anyway - I've got a plugin that compiles and runs fine in the simulator but barfs and dies on the H300 -- I am making progress but it's taking longer than I hoped.

So good news of sorts. I'll keep you posted - and the help I've had from the rockbox community has been invaluable  ;)
Logged

Offline c0rrupted

  • Member
  • *
  • Posts: 5
Re: WMA again
« Reply #41 on: April 25, 2006, 04:08:07 AM »
hell yea!!!. i only found out about rockbox a week ago and was dissapointed that it didnt support wma. alot of my collection is in mp3 but i have about 10 albums that are all wma and to convert from wma to mp3 i wouldnt think would be a good idea so keep up the good work m8
Logged

Offline Marsdaddy

  • Member
  • *
  • Posts: 17
Re: WMA again
« Reply #42 on: May 10, 2006, 07:47:16 AM »
Another update for all those wondering where this has got to...

Today I decoded a WMA file on my H300 via a plugin I've written :)

That's the good news, two current issues: -

1) The decoder is not accurate enough - I sort of knew this but wanted to carry on with getting the WMA decoder working in the simulator and H300 first. I have a plan for tackling this as I can debug another WMA decoder etc. etc.

2) The decoder is sllllloooooowwwww... too slow. Good news is there are a number of places in the code that optimisations can be made.

I will tackle issue (1) first then optimise the fixed version

As always, when there is something to tell you I will post here  ;)
Logged

Offline MU4L

  • Member
  • *
  • Posts: 201
    • Soccer24-7.com
WMA support edges ever closer
« Reply #43 on: May 10, 2006, 10:45:44 AM »
Brilliant news Marsdaddy, and good to see you getting on so well.


I look forward to hearing more news from you  ;D.



MU4L
Logged
Rockboxed Units: iPod 5G 60GB modified with iVue ClearPanel Case and MK2431GAH 240GB HDD:
Standard: U10 (for physical activities):
'Phones: Ultimate Ears Super.fi 3 Studio (iPod),  Shure E2c (U10).

Offline preglow

  • Developer
  • Member
  • *
  • Posts: 164
Re: WMA again
« Reply #44 on: May 10, 2006, 05:56:21 PM »
Quote from: Marsdaddy on May 10, 2006, 07:47:16 AM
1) The decoder is not accurate enough - I sort of knew this but wanted to carry on with getting the WMA decoder working in the simulator and H300 first. I have a plan for tackling this as I can debug another WMA decoder etc. etc.
When I had a look at the patch, I noticed you only seem to use 32 bit multiplies everywhere. Might the precision problems be related to this? We usually use 64 bit muls pretty much everywhere we can.

Quote from: Marsdaddy on May 10, 2006, 07:47:16 AM
2) The decoder is sllllloooooowwwww... too slow. Good news is there are a number of places in the code that optimisations can be made.
No surprise there. Almost all our codecs had to have quite some optimising before running well. How slow are we talking? I bet there are some people (me included) that'd love to help you in optimising it, so pretty please, aim to have it commited before you start working too much on this on your own :)
Nice work!
Logged

  • Print
Pages: 1 2 [3] 4 5 6
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  WMA again
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.121 seconds with 14 queries.