IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
Pocket PC LAME Version
KihunJang
post Oct 20 2005, 05:35
Post #1





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



Hi.

I am Pokcet PC Developer.
I porting PC Lame project.
But encording speed is very slow.
please let me know how to set lame parameter.

please help me.
Go to the top of the page
+Quote Post
Gabriel
post Oct 20 2005, 06:54
Post #2


LAME developer


Group: Developer
Posts: 2950
Joined: 1-October 01
From: Nanterre, France
Member No.: 138



As a pocket PC developer, you probably know that you do not have any floating point unit available on your platform, don't you?
Go to the top of the page
+Quote Post
KihunJang
post Oct 20 2005, 07:05
Post #3





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



QUOTE (Gabriel @ Oct 20 2005, 02:54 PM)
As a pocket PC developer, you probably know that you do not have any floating point unit available on your platform, don't you?
*

Thank you for your answer.
Floating point is supported by in our system, but supported is very weak.
Myabe do you have other method change from floating point to integer or others?
Have a nice day!

This post has been edited by KihunJang: Oct 20 2005, 07:09
Go to the top of the page
+Quote Post
optimus
post Oct 20 2005, 07:21
Post #4





Group: Members
Posts: 389
Joined: 4-August 05
From: Shanghai, China
Member No.: 23683



How slow is the encoding and what's your platform's CPU ?


--------------------
MediaCoder the transcoder
http://mediacoder.sourceforge.net
Go to the top of the page
+Quote Post
KihunJang
post Oct 20 2005, 07:28
Post #5





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



QUOTE (optimus @ Oct 20 2005, 03:21 PM)
How slow is the encoding and what's your platform's CPU ?
*


Thank you for your question.

Our CPU is XSCALE255 processor.
Encording time is 5x slower than PC.
Plese let me know method.

Have a nice day.

This post has been edited by KihunJang: Oct 20 2005, 07:29
Go to the top of the page
+Quote Post
Gabriel
post Oct 20 2005, 10:23
Post #6


LAME developer


Group: Developer
Posts: 2950
Joined: 1-October 01
From: Nanterre, France
Member No.: 138



QUOTE
Floating point is supported by in our system, but supported is very weak.

Your platform DOESN'T HAVE any fpu, so floating points are used through software emulation, which is very slow.
This means that using Lame, you will have very bad performance.
You might want to try using an integer only encoder.

QUOTE
Our CPU is XSCALE255 processor.
Encording time is 5x slower than PC.

On the other hand, only a 5x speed decrease from a standard PC is very good, considering the speed difference between both platforms.
So what is your current encoding speed with Lame on PPC?

Encoding speed can be adjusted with the -qx parameter.
Go to the top of the page
+Quote Post
KihunJang
post Oct 20 2005, 12:14
Post #7





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



Thank you. Garvriel.

I set -q7. But Encording speed is very slow.
And I changed sample_t to interger.
And I setting always 'no psy model'.
So encording speed is a little up. But I do not know that method is good.

But I do not know how to fix at now.
I wonder how to real-time recording at 'RESCO Audio Recorder' program.

Thank you.
Have a nice day.

This post has been edited by KihunJang: Oct 20 2005, 12:19
Go to the top of the page
+Quote Post
KihunJang
post Oct 20 2005, 13:51
Post #8





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



QUOTE (KihunJang @ Oct 20 2005, 08:14 PM)
Thank you. Garvriel.

I set -q7. But Encording speed is very slow.
And I changed sample_t to interger.
And I setting always 'no psy model'.
So encording speed is a little up. But I do not know that method is good.

But I do not know how to fix at now.
I wonder how to real-time recording at 'RESCO Audio Recorder' program.

Thank you.
Have a nice day.
*


I wonder how to modify mdct algorithm.
Mdct algoritm of PPC version is very slow.

Please help me.
Have nice day.
Thank you.
Go to the top of the page
+Quote Post
Gabriel
post Oct 20 2005, 14:59
Post #9


LAME developer


Group: Developer
Posts: 2950
Joined: 1-October 01
From: Nanterre, France
Member No.: 138



First, you have to check if you can hope to have encoding in real time.
What is you current encoding speed, and what are the profiling results.

If you only have 0.1x encoding speed and profiling tell you that the time is equally split between many functions, then it is hopeless.
If you are not so far from real time and most of the time is from only a few parts, then it might be doable.
Go to the top of the page
+Quote Post
KihunJang
post Oct 21 2005, 00:47
Post #10





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



Thank you for your answer.

I am sorry.
In fact I want real time encording. Because, I make recording program.

So I effort to up speed.
But I do not know how to changed floating point to fixed point.

Thanks Gabriel.
Have a nice day.
Go to the top of the page
+Quote Post
Gabriel
post Oct 21 2005, 06:52
Post #11


LAME developer


Group: Developer
Posts: 2950
Joined: 1-October 01
From: Nanterre, France
Member No.: 138



First you have to know if real time encoding can be doable if you manage to speed up some parts.
For this, you have to know the current encoding speed, and have profiling data.
Please post those data, then we will know if we can think about real time encoding.

This post has been edited by Gabriel: Oct 21 2005, 06:53
Go to the top of the page
+Quote Post
KihunJang
post Oct 21 2005, 08:20
Post #12





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



I setting q7 and MONO.

1th Test. -> No Modify
8000Khz 8bit Mono 10 seconds wav file(75.6KB) -> Encording time 14 seconds
11025Khz 8bit Mono 10 seconds wav file(115KB) -> Encording time 21 seconds
22050Khz 8bit Mono 10 seconds wav file(209KB) -> Encording time 36 seconds

2th Test -> Modify.
1) sample_t is change short.
2) PROTOTYPES set 0.
3) BRHIST set 0.
4) 'gfc->psymodel' set false.
5) 'gfc->l3_side.tt[gr][ch].block_type' set 'SHORT_TYPE'.
6) 'adjust_ATH' function delete.

8000Khz 8bit Mono 10 seconds wav file(75.6KB) -> Encording time 8 seconds
11025Khz 8bit Mono 10 seconds wav file(115KB) -> Encording time 11 seconds
22050Khz 8bit Mono 10 seconds wav file(209KB) -> Encording time 18 seconds

8000Khz 16bit Mono 10 seconds wav file(154KB) -> Encording time 8 seconds
11025Khz 16bit Mono 10 seconds wav file(211KB) -> Encording time 12 seconds
22050Khz 16bit Mono 10 seconds wav file(426KB) -> Encording time 20 seconds

----------------
I don't know how can i get the current encoding speed and profiling data.
Please let me know and i will post them on this forum.
Have a nice day
Thanks.

This post has been edited by KihunJang: Oct 21 2005, 08:28
Go to the top of the page
+Quote Post
Gabriel
post Oct 21 2005, 08:44
Post #13


LAME developer


Group: Developer
Posts: 2950
Joined: 1-October 01
From: Nanterre, France
Member No.: 138



QUOTE
2th Test -> Modify.

You changed several things. How do we/you know which change increased speed?

QUOTE
'gfc->psymodel' set false.

You could have used -q9

QUOTE
'gfc->l3_side.tt[gr][ch].block_type' set 'SHORT_TYPE'.

Regarding quality, this is very bad. Using --noshort would have been a better idea.

QUOTE
I don't know how can i get the current encoding speed and profiling data.
Please let me know and i will post them on this forum.

Sorry, but I do not know your development environment/compiler.

It seems that real-time encoding of 22kHz mono data might be doable, considering that your current encoding speed is 0.5x. Once again, you have to use profiling, otherwise you are just doing blind modifications.
Go to the top of the page
+Quote Post
KihunJang
post Oct 21 2005, 09:31
Post #14





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



Thank you for your answer.

I set -q9. So I use '--noshort'.

Test result is alike.

8000Khz 8bit Mono 10 seconds wav file(75.6KB) -> Encording time 8 seconds
11025Khz 8bit Mono 10 seconds wav file(115KB) -> Encording time 11~12 seconds
22050Khz 8bit Mono 10 seconds wav file(209KB) -> Encording time 18 seconds

8000Khz 16bit Mono 10 seconds wav file(154KB) -> Encording time 8 seconds
11025Khz 16bit Mono 10 seconds wav file(211KB) -> Encording time 12 seconds
22050Khz 16bit Mono 10 seconds wav file(426KB) -> Encording time 18 ~ 19 seconds

---------------------
In my opinion, a cause of slow speed problem is occur from 'windows_subbands' fuction.
Do you have solve method?

Have a nice day!
Thanks.
Go to the top of the page
+Quote Post
Gabriel
post Oct 21 2005, 09:55
Post #15


LAME developer


Group: Developer
Posts: 2950
Joined: 1-October 01
From: Nanterre, France
Member No.: 138



QUOTE
In my opinion, a cause of slow speed problem is occur from 'windows_subbands' fuction.

Profiling data?
Go to the top of the page
+Quote Post
KihunJang
post Oct 21 2005, 10:42
Post #16





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



Gabriel.

I am sorry.
I do not know mean 'Pofiling data'.

Please explan it more detail.

Have a nice day!
Thanks.
Go to the top of the page
+Quote Post
Gabriel
post Oct 21 2005, 10:47
Post #17


LAME developer


Group: Developer
Posts: 2950
Joined: 1-October 01
From: Nanterre, France
Member No.: 138



http://en.wikipedia.org/wiki/Profiling
Go to the top of the page
+Quote Post
KihunJang
post Oct 21 2005, 11:23
Post #18





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



Actually, I don't understand profiling data not enough at the site.
What is include in profiling data file?
Just in profiling date, include list of step by step operation? or not.
I am sorry that not understand your explain about profiling data.
Can you post me profiling data example file?
Thank you very much.
Go to the top of the page
+Quote Post
Gabriel
post Oct 21 2005, 11:33
Post #19


LAME developer


Group: Developer
Posts: 2950
Joined: 1-October 01
From: Nanterre, France
Member No.: 138



Profiling will tell you how much time your program spent in functions, like:

*function A: 35%
*function B: 17%
*function C: 3%
....

This way you know what to optimize, instead of blindly trying to guess bottlenecks.

Some profilers can also give you the time repartition by line number inside functions.

This kind of data is critical to achieve speedups and to establish feasability of a port to a new architecture.
Go to the top of the page
+Quote Post
KihunJang
post Oct 21 2005, 13:13
Post #20





Group: Members
Posts: 13
Joined: 7-October 05
Member No.: 24928



Hi. Gabriel.

I am sorry.
I don't know profiling data of PPC.
So I checked step by step. This method is very slow. ^^ .

I am sorry.
Plese let me know method.
So I can post.

Thank you very much.
Go to the top of the page
+Quote Post
kjoonlee
post Oct 21 2005, 13:38
Post #21





Group: Members
Posts: 2526
Joined: 25-July 02
From: South Korea
Member No.: 2782



Can you use gcc? Then gprof is your answer. Try looking for info on gprof or other profilers, at kldp.org or bbs.kldp.org.

If you're on Windows, try devpia.

gpgstudy.com might have some info on programming for handheld devices.


--------------------
http://blacksun.ivyro.net/vorbis/vorbisfaq.htm
Go to the top of the page
+Quote Post
scjifeng
post Oct 28 2005, 10:00
Post #22





Group: Members
Posts: 4
Joined: 28-October 05
Member No.: 25400



hi all!

I am Pokcet PC Developer,too
I am do mp3 encode in MX1/MX21(ARM920T/ARM926EJ)+embedded linux ,I find the lame which is one of the best encode software.I rewrite the makefile ,so it can run in my target machine.NOW the problem is the time ,I encode a 100K WAV file take me about 45sec,with -q9,It is too long!
originally,I want do a real-time record mp3 from mic or line in using the mpegrec(need lame) or sox|lame,but now it is impossible because encoding time is too long.
Then I find another quite simple encode software especially for ARM named shine.And it have a Fixed edition with an ARM assembler to solve the without FPU problem.But now I have not successful make it (I do not know how to make the .c and .s together,the .s always error when make),so I do not know how it work.unfortunately the message about shine in Internet is quite few,I even do not know if it can do real-time record mp3 from mic or line in by the sox|shine or something other way.In my PC ,I can not do that by now.
I am a newbie and at a loss.If you can help me ,I will appreciate it.If you have something maybe usefull for me,please let me know.
Go to the top of the page
+Quote Post
kritip
post Oct 28 2005, 10:21
Post #23





Group: Members
Posts: 528
Joined: 15-January 02
From: Warwickshire -- England
Member No.: 1036



http://www.rjamorim.com/rrw/shine.html took me to:

http://www.everett9981.freeserve.co.uk/pete.htm

where it states

QUOTE
This is a port of an MP3 encoder, optimised for speed. It's simple, small, and fast. Executes at speeds of just better than real time on a 233MHz SA RPC. One version for all machines, but it will be work best (fastest) with a StrongArm processor.

Please note. This is not a high quality encoder. At a 128k bitrate it may be acceptable to you. Try it and see. If not there are links to higher quality alternatives at RISCOS.org


is that device similar speed to what you are trying to use? IF you device is a lot slower, it may not be worth it.

Kristian
Go to the top of the page
+Quote Post
Gabriel
post Oct 28 2005, 10:32
Post #24


LAME developer


Group: Developer
Posts: 2950
Joined: 1-October 01
From: Nanterre, France
Member No.: 138



QUOTE
NOW the problem is the time ,I encode a 100K WAV file take me about 45sec,with -q9,It is too long!

How far are you from realtime? (the size of the wav file doesn't tell us its duration)






Reminder for all our Korean friends: Shine is GPL and LAME is LGPL. Theorically, you should respect their licences.
Go to the top of the page
+Quote Post
HbG
post Oct 28 2005, 15:32
Post #25





Group: Members
Posts: 289
Joined: 12-May 03
From: The Hague
Member No.: 6555



What about helix? It's very fast too, and it's output is of acceptable quality.


--------------------
Veni Vidi Vorbis.
Go to the top of the page
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd September 2014 - 17:45